CMake: removed empty unit test file in TcpIpcModule
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Mon, 11 Mar 2013 11:02:40 +0000 (04:02 -0700)
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Thu, 14 Mar 2013 12:03:40 +0000 (05:03 -0700)
Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
LayerManagerPlugins/IpcModules/TcpIpcModule/CMakeLists.txt
LayerManagerPlugins/IpcModules/TcpIpcModule/tests/LoopbackTest.cpp [deleted file]

index bd72f80..8eb3763 100644 (file)
@@ -25,7 +25,6 @@ project_type(CORE)
 include_directories(
     include
     ${CMAKE_SOURCE_DIR}/LayerManagerClient/ilmClient/include
-    ${CMAKE_SOURCE_DIR}/LayerManagerPlugins/IpcModules/IpcModuleLoader/include
     ${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
 )
 
@@ -45,10 +44,3 @@ target_link_libraries(${PROJECT_NAME} ${LIBS})
 install (TARGETS             ${PROJECT_NAME}
          LIBRARY DESTINATION lib/layermanager/ipcmodules
 )
-
-if (WITH_TESTS)
-    add_executable(${PROJECT_NAME}_Test tests/LoopbackTest.cpp)
-    target_link_libraries(${PROJECT_NAME}_Test ${LIBS} IpcModuleLoader gtest gmock pthread)
-    enable_testing()
-    add_test(${PROJECT_NAME} ${PROJECT_NAME}_Test)
-endif(WITH_TESTS) 
\ No newline at end of file
diff --git a/LayerManagerPlugins/IpcModules/TcpIpcModule/tests/LoopbackTest.cpp b/LayerManagerPlugins/IpcModules/TcpIpcModule/tests/LoopbackTest.cpp
deleted file mode 100644 (file)
index 308b3ec..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-/***************************************************************************
- *
- * Copyright 2012 BMW Car IT GmbH
- *
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *        http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- ****************************************************************************/
-#include "IpcModuleLoader.h"
-#include <gtest/gtest.h>
-
-#define PLATFORM_PTR_SIZE sizeof(unsigned int*)
-
-class Loopback : public ::testing::Test
-{
-public:
-    void SetUp()
-    {
-        loadAndCheckIpcModule(&mService);
-        //loadAndCheckIpcModule(&mClient);
-    }
-
-    void loadAndCheckIpcModule(IpcModule* ipcModule)
-    {
-        memset(ipcModule, 0, sizeof(*ipcModule));
-        ASSERT_EQ(ILM_TRUE, loadIpcModule(ipcModule));
-
-        int apiEntryCount = sizeof(*ipcModule) / PLATFORM_PTR_SIZE;
-        unsigned int* base = (unsigned int*)ipcModule;
-        for (int i = 0; i < apiEntryCount; ++i)
-        {
-            ASSERT_NE(0u, base[i]);
-        }
-    }
-
-    void TearDown()
-    {
-        //memset(&mClient, 0, sizeof(mClient));
-        memset(&mService, 0, sizeof(mService));
-    }
-
-protected:
-    IpcModule mService;
-    //IpcModule mClient;
-};
-
-TEST_F(Loopback, DISABLE_lifecycle)
-{
-    ASSERT_TRUE(mService.initClientMode());
-    //ASSERT_TRUE(mClient.init(ILM_TRUE));
-
-    //ASSERT_TRUE(mClient.destroy());
-    ASSERT_TRUE(mService.destroy());
-}