aboutsummaryrefslogtreecommitdiff
path: root/tests/test-snap.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-31 16:25:26 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-07-31 16:25:26 -0500
commit43e0fb826aa3a5acfd8937438989231804b4c400 (patch)
treeeefd3db1fdf7ce9727e9d0481766126375f42ca7 /tests/test-snap.cpp
parente789710c2888b79e3abfbdcdda50d8334848ebc3 (diff)
downloadayatana-indicator-datetime-43e0fb826aa3a5acfd8937438989231804b4c400.tar.gz
ayatana-indicator-datetime-43e0fb826aa3a5acfd8937438989231804b4c400.tar.bz2
ayatana-indicator-datetime-43e0fb826aa3a5acfd8937438989231804b4c400.zip
in haptic.cpp, better support for vibration patterns
Diffstat (limited to 'tests/test-snap.cpp')
-rw-r--r--tests/test-snap.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-snap.cpp b/tests/test-snap.cpp
index 018d6f9..06e0a80 100644
--- a/tests/test-snap.cpp
+++ b/tests/test-snap.cpp
@@ -56,7 +56,7 @@ private:
protected:
- static constexpr char const * HAPTIC_METHOD_VIBRATE {"Vibrate"};
+ static constexpr char const * HAPTIC_METHOD_VIBRATE_PATTERN {"VibratePattern"};
static constexpr int SCREEN_COOKIE {8675309};
static constexpr char const * SCREEN_METHOD_KEEP_DISPLAY_ON {"keepDisplayOn"};
@@ -253,8 +253,8 @@ protected:
dbus_test_dbus_mock_object_add_method(haptic_mock,
haptic_obj,
- HAPTIC_METHOD_VIBRATE,
- G_VARIANT_TYPE("(u)"),
+ HAPTIC_METHOD_VIBRATE_PATTERN,
+ G_VARIANT_TYPE("(auu)"),
nullptr,
"",
&error);
@@ -419,7 +419,7 @@ TEST_F(SnapFixture, InhibitSleep)
// confirm that haptic feedback got called
EXPECT_TRUE (dbus_test_dbus_mock_object_check_method_call (haptic_mock,
haptic_obj,
- HAPTIC_METHOD_VIBRATE,
+ HAPTIC_METHOD_VIBRATE_PATTERN,
nullptr,
&error));