From: SukHyung, Kang Date: Wed, 13 Feb 2019 03:10:02 +0000 (+0900) Subject: Fix notification-ex unittest build error X-Git-Tag: submit/tizen/20190228.000028~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c471e8fd7ba6f14a437ff3c66d244b9cbfbcce7;p=platform%2Fcore%2Fapi%2Fnotification.git Fix notification-ex unittest build error Change-Id: I04d12087e44064d3b18c323bc82021a10cc17a2c Signed-off-by: SukHyung, Kang --- diff --git a/packaging/notification.spec b/packaging/notification.spec index cf8fc5ab..63764404 100644 --- a/packaging/notification.spec +++ b/packaging/notification.spec @@ -144,14 +144,14 @@ Header & package configuration files to support development of the notification. ################################################# -# notification_ex_unittests +# notification-ex_unittests ################################################# -%package -n notification_ex_unittests -Summary: GTest for notification_ex +%package -n notification-ex_unittests +Summary: GTest for notification-ex Group: Development/Libraries -%description -n notification_ex_unittests -GTest for notification_ex +%description -n notification-ex_unittests +GTest for notification-ex -%files -n notification_ex_unittests -%{_bindir}/notification_ex_unittests +%files -n notification-ex_unittests +%{_bindir}/notification-ex_unittests diff --git a/unittest/CMakeLists.txt b/unittest/CMakeLists.txt index 129c1ef1..6fdede0c 100644 --- a/unittest/CMakeLists.txt +++ b/unittest/CMakeLists.txt @@ -1,13 +1,14 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) -PROJECT(notification_ex_unittests CXX) +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 ) -FOREACH(flag ${notification_ex_unittests_CFLAGS}) +FOREACH(flag ${notification-ex_unittests_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") ENDFOREACH(flag) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden -Wall -Werror -Winline") @@ -16,12 +17,15 @@ 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}/../) + AUX_SOURCE_DIRECTORY(src SOURCES) ADD_EXECUTABLE(${PROJECT_NAME} ${SOURCES} ) -TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${watchface-complication_unittests_LDFLAGS} +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${notification-ex_unittests_LDFLAGS} ${pkgs_LDFLAGS} ${pkgs_LIBRARIES} gmock diff --git a/unittest/src/test_item.cc b/unittest/src/test_item.cc new file mode 100644 index 00000000..adb1c113 --- /dev/null +++ b/unittest/src/test_item.cc @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * + * 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 +#include + +#include "notification-ex/item.h" + +class ENTRY_ITEM : public ::testing::Test { + public: + virtual void SetUp() { + } + virtual void TearDown() { + } +}; \ No newline at end of file