aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt9
-rw-r--r--tests/test-menus.cc2
2 files changed, 9 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index a908801..9bc1d75 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -84,6 +84,13 @@ add_test (${TEST_NAME} ${TEST_NAME})
add_dependencies (${TEST_NAME} libindicatordatetimeservice)
target_link_libraries (${TEST_NAME} indicatordatetimeservice gtest ${SERVICE_DEPS_LIBRARIES} ${GTEST_LIBS})
+# test-live-actions
+set (TEST_NAME test-live-actions)
+add_executable (${TEST_NAME} ${TEST_NAME}.cc)
+add_test (${TEST_NAME} ${TEST_NAME})
+add_dependencies (${TEST_NAME} libindicatordatetimeservice)
+target_link_libraries (${TEST_NAME} indicatordatetimeservice gtest ${SERVICE_DEPS_LIBRARIES} ${GTEST_LIBS})
+
# test-menus
set (TEST_NAME test-menus)
add_executable (${TEST_NAME} ${TEST_NAME}.cc)
@@ -98,7 +105,7 @@ add_test (${TEST_NAME} ${TEST_NAME})
add_dependencies (${TEST_NAME} libindicatordatetimeservice)
target_link_libraries (${TEST_NAME} indicatordatetimeservice gtest ${SERVICE_DEPS_LIBRARIES} ${GTEST_LIBS})
-# test-utils
+# test-settings
set (TEST_NAME test-settings)
add_executable (${TEST_NAME} ${TEST_NAME}.cc)
add_test (${TEST_NAME} ${TEST_NAME})
diff --git a/tests/test-menus.cc b/tests/test-menus.cc
index 0f86b0d..95ac5c2 100644
--- a/tests/test-menus.cc
+++ b/tests/test-menus.cc
@@ -148,7 +148,7 @@ protected:
auto gdt_tomorrow = g_date_time_add_days(now.get(), 1);
auto tomorrow = DateTime(gdt_tomorrow);
g_date_time_unref(gdt_tomorrow);
- m_clock->set_localtime(tomorrow);
+ m_mock_state->mock_clock->set_localtime(tomorrow);
wait_msec();
section = g_menu_model_get_item_link(submenu, Menu::Calendar, G_MENU_LINK_SECTION);