From 66c5f4c5fbb86df290c2587dbbfe4f4d77b08f45 Mon Sep 17 00:00:00 2001 From: Timo Lotterbach Date: Mon, 11 Mar 2013 04:02:40 -0700 Subject: [PATCH] CMake: removed empty unit test file in TcpIpcModule Signed-off-by: Timo Lotterbach --- .../IpcModules/TcpIpcModule/CMakeLists.txt | 8 --- .../IpcModules/TcpIpcModule/tests/LoopbackTest.cpp | 64 ---------------------- 2 files changed, 72 deletions(-) delete mode 100644 LayerManagerPlugins/IpcModules/TcpIpcModule/tests/LoopbackTest.cpp diff --git a/LayerManagerPlugins/IpcModules/TcpIpcModule/CMakeLists.txt b/LayerManagerPlugins/IpcModules/TcpIpcModule/CMakeLists.txt index bd72f80..8eb3763 100644 --- a/LayerManagerPlugins/IpcModules/TcpIpcModule/CMakeLists.txt +++ b/LayerManagerPlugins/IpcModules/TcpIpcModule/CMakeLists.txt @@ -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 index 308b3ec..0000000 --- a/LayerManagerPlugins/IpcModules/TcpIpcModule/tests/LoopbackTest.cpp +++ /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 - -#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()); -} -- 2.7.4