#################################################
-# 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
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")
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
--- /dev/null
+/*
+ * 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 <gtest/gtest.h>
+#include <gmock/gmock.h>
+
+#include "notification-ex/item.h"
+
+class ENTRY_ITEM : public ::testing::Test {
+ public:
+ virtual void SetUp() {
+ }
+ virtual void TearDown() {
+ }
+};
\ No newline at end of file