diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-10-10 12:21:49 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-10-10 12:21:49 +0200 |
commit | a6635f03b72a81151f55c2fb9f6dbb0c8bb806aa (patch) | |
tree | 9216706d6b4233e0f72414aaaefd85c8b9da4bba /tests | |
parent | 0713c69189ead3be8b1946a004fcd99275834c47 (diff) | |
parent | 15d318fe93fb8419b1f03052f62c8feceb45356b (diff) | |
download | ayatana-indicator-display-a6635f03b72a81151f55c2fb9f6dbb0c8bb806aa.tar.gz ayatana-indicator-display-a6635f03b72a81151f55c2fb9f6dbb0c8bb806aa.tar.bz2 ayatana-indicator-display-a6635f03b72a81151f55c2fb9f6dbb0c8bb806aa.zip |
Merge branch 'tari01-pr/rename-to-display'
Attributes GH PR #78: https://github.com/AyatanaIndicators/ayatana-indicator-display/pull/78
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/unit/rotation-lock-test.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6b25955..5bd645f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -28,7 +28,7 @@ endif() add_compile_options(${CXX_WARNING_ARGS}) -add_test(cppcheck cppcheck --enable=all -USCHEMA_DIR --error-exitcode=2 --inline-suppr --library=qt -I${CMAKE_SOURCE_DIR} -i${CMAKE_SOURCE_DIR}/tests/utils/qmain.cpp -i${CMAKE_SOURCE_DIR}/tests/gmock ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/tests --suppress=missingIncludeSystem --suppress=uninitDerivedMemberVar --suppress=unmatchedSuppression --suppress=constParameter --suppress=unusedFunction) +add_test(cppcheck cppcheck --enable=all -USCHEMA_DIR --error-exitcode=2 --inline-suppr --library=qt -I${CMAKE_SOURCE_DIR} -i${CMAKE_SOURCE_DIR}/tests/utils/qmain.cpp -i${CMAKE_SOURCE_DIR}/tests/gmock ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/tests --suppress=missingIncludeSystem --suppress=uninitDerivedMemberVar --suppress=unmatchedSuppression --suppress=constParameter --suppress=unusedFunction --suppress=uselessOverride) if (ENABLE_LOMIRI_FEATURES) add_subdirectory (integration) diff --git a/tests/unit/rotation-lock-test.cpp b/tests/unit/rotation-lock-test.cpp index a4ce388..7bf2e45 100644 --- a/tests/unit/rotation-lock-test.cpp +++ b/tests/unit/rotation-lock-test.cpp @@ -19,7 +19,7 @@ #include <tests/utils/test-dbus-fixture.h> -#include <src/rotation-lock.h> +#include <src/service.h> class RotationLockFixture: public TestDBusFixture { @@ -45,9 +45,9 @@ protected: TEST_F(RotationLockFixture, CheckIndicator) { - RotationLockIndicator indicator; + DisplayIndicator indicator; - ASSERT_STREQ("rotation_lock", indicator.name()); + ASSERT_STREQ("display", indicator.name()); auto actions = indicator.action_group(); ASSERT_TRUE(actions != nullptr); ASSERT_TRUE(g_action_group_has_action(G_ACTION_GROUP(actions), "rotation-lock")); |