Move mock directory 85/237885/1
authormk5004.lee <mk5004.lee@samsung.com>
Mon, 6 Jul 2020 08:46:35 +0000 (17:46 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Mon, 6 Jul 2020 08:46:35 +0000 (17:46 +0900)
Change-Id: I8a8e8e75112e12c92e83ebf7822a517c22446cad
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
mock/app_common.h [moved from unittest/mock/app_common.h with 100% similarity]
mock/fff.h [moved from unittest/mock/fff.h with 100% similarity]
mock/gio_mock.h [moved from unittest/mock/gio_mock.h with 100% similarity]
mock/mock.cc [moved from unittest/mock/mock.cc with 100% similarity]
mock/mock.h [moved from unittest/mock/mock.h with 100% similarity]
mock/security_manager_mock.h [moved from unittest/mock/security_manager_mock.h with 100% similarity]
mock/smack_mock.h [moved from unittest/mock/smack_mock.h with 100% similarity]
mock/tzplatform_config_mock.h [moved from unittest/mock/tzplatform_config_mock.h with 100% similarity]
unittest/CMakeLists.txt
unittest/src/test_group_item.cc [changed mode: 0644->0755]
unittest/src/test_shared_file.cc [changed mode: 0644->0755]

similarity index 100%
rename from unittest/mock/app_common.h
rename to mock/app_common.h
similarity index 100%
rename from unittest/mock/fff.h
rename to mock/fff.h
similarity index 100%
rename from unittest/mock/gio_mock.h
rename to mock/gio_mock.h
similarity index 100%
rename from unittest/mock/mock.cc
rename to mock/mock.cc
similarity index 100%
rename from unittest/mock/mock.h
rename to mock/mock.h
similarity index 100%
rename from unittest/mock/smack_mock.h
rename to mock/smack_mock.h
index ed8a807..93823e7 100644 (file)
@@ -2,7 +2,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
 PROJECT(notification-ex_unittests CXX)
 
 INCLUDE(FindPkgConfig)
-pkg_check_modules(notification-ex_unittests REQUIRED
+PKG_CHECK_MODULES(notification-ex_unittests REQUIRED
     dlog
     gmock
     capi-appfw-app-control
@@ -21,18 +21,20 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -std=c++11")
 SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
 SET(CMAKE_CXX_FLAGS_RELEASE "-O2")
 
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../notification-ex)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../notification-ex/api)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../unittest/mock)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../)
+INCLUDE_DIRECTORIES(
+    ${CMAKE_CURRENT_SOURCE_DIR}/../notification-ex
+    ${CMAKE_CURRENT_SOURCE_DIR}/../notification-ex/api
+    ${CMAKE_CURRENT_SOURCE_DIR}/../mock
+    ${CMAKE_CURRENT_SOURCE_DIR}/../
+)
 
-AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/mock UNIT_TEST_SOURCES)
-AUX_SOURCE_DIRECTORY(src SOURCES)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/src SOURCES)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../mock MOCK_SOURCES)
 AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../notification-ex NOTIFICATION_EX_SOURCES)
 ADD_EXECUTABLE(${PROJECT_NAME}
     ${SOURCES}
     ${NOTIFICATION_EX_SOURCES}
-    ${UNIT_TEST_SOURCES}
+    ${MOCK_SOURCES}
 )
 
 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${notification-ex_unittests_LDFLAGS}
old mode 100644 (file)
new mode 100755 (executable)
index 2c0b761..8cf8c79
@@ -20,7 +20,7 @@
 #include "notification-ex/button_item.h"
 #include "notification-ex/text_item.h"
 #include "notification-ex/item_inflator.h"
-#include "unittest/mock/app_common.h"
+#include "mock/app_common.h"
 
 using namespace tizen_base;
 using namespace notification;
old mode 100644 (file)
new mode 100755 (executable)
index 973986e..1a09b7d
 #include "notification-ex/image_item.h"
 #include "notification-ex/common.h"
 
-#include "unittest/mock/gio_mock.h"
-#include "unittest/mock/smack_mock.h"
-#include "unittest/mock/tzplatform_config_mock.h"
-#include "unittest/mock/security_manager_mock.h"
+#include "mock/gio_mock.h"
+#include "mock/smack_mock.h"
+#include "mock/tzplatform_config_mock.h"
+#include "mock/security_manager_mock.h"
 
 
 using namespace notification;