diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-11-18 14:43:06 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-11-18 14:43:06 +0100 |
commit | b3e4cbdde1444b134d8b2729f3abcee405ca1241 (patch) | |
tree | 3bc2775ba0106e6c39bc8a129d6789d00c3bf841 /tests/notification-fixture.h | |
parent | dc16358bcceeb687df7f0a37fdcd3593844dcc7e (diff) | |
parent | ea5f8163231a81e4f0769a518db819c8a1fc78f6 (diff) | |
download | ayatana-indicator-datetime-b3e4cbdde1444b134d8b2729f3abcee405ca1241.tar.gz ayatana-indicator-datetime-b3e4cbdde1444b134d8b2729f3abcee405ca1241.tar.bz2 ayatana-indicator-datetime-b3e4cbdde1444b134d8b2729f3abcee405ca1241.zip |
Merge branch 'tari01-pr/enable-hfd-service-haptic'
Attributes GH PR #78: https://github.com/AyatanaIndicators/ayatana-indicator-datetime/pull/78
Diffstat (limited to 'tests/notification-fixture.h')
-rw-r--r-- | tests/notification-fixture.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/notification-fixture.h b/tests/notification-fixture.h index acb3e63..2349bab 100644 --- a/tests/notification-fixture.h +++ b/tests/notification-fixture.h @@ -52,7 +52,7 @@ protected: static constexpr char const * NOTIFY_INTERFACE {"org.freedesktop.Notifications"}; static constexpr char const * NOTIFY_PATH {"/org/freedesktop/Notifications"}; - static constexpr char const * HAPTIC_METHOD_VIBRATE_PATTERN {"VibratePattern"}; + static constexpr char const * HAPTIC_METHOD_VIBRATE {"vibrate"}; static constexpr int SCREEN_COOKIE {8675309}; static constexpr char const * SCREEN_METHOD_KEEP_DISPLAY_ON {"keepDisplayOn"}; @@ -279,8 +279,6 @@ protected: g_assert_no_error (error); dbus_test_service_add_task(service, DBUS_TEST_TASK(screen_mock)); - //TODO: Reimplement using hfd-service - /* /// /// Add the haptic mock /// @@ -292,13 +290,13 @@ protected: &error); dbus_test_dbus_mock_object_add_method(haptic_mock, haptic_obj, - HAPTIC_METHOD_VIBRATE_PATTERN, - G_VARIANT_TYPE("(auu)"), + HAPTIC_METHOD_VIBRATE, + G_VARIANT_TYPE("i"), nullptr, "", &error); g_assert_no_error (error); - dbus_test_service_add_task(service, DBUS_TEST_TASK(haptic_mock));*/ + dbus_test_service_add_task(service, DBUS_TEST_TASK(haptic_mock)); startDbusMock(); } |