diff options
author | Ted Gould <ted@gould.cx> | 2015-03-06 17:18:22 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2015-03-06 17:18:22 -0600 |
commit | df3f745d94c5bd0c5c0c2eaf85ed63a438981e3d (patch) | |
tree | 46643ac6f0dc4e11c030733c7f3d5017b7ddf945 /tests | |
parent | 4bef5575c83bd34e467c4aa043e9bec221354feb (diff) | |
download | ayatana-indicator-messages-df3f745d94c5bd0c5c0c2eaf85ed63a438981e3d.tar.gz ayatana-indicator-messages-df3f745d94c5bd0c5c0c2eaf85ed63a438981e3d.tar.bz2 ayatana-indicator-messages-df3f745d94c5bd0c5c0c2eaf85ed63a438981e3d.zip |
Adding some messaging menu properties to the AS mock
Diffstat (limited to 'tests')
-rw-r--r-- | tests/accounts-service-mock.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/accounts-service-mock.h b/tests/accounts-service-mock.h index 1d0c1fe..301fcd4 100644 --- a/tests/accounts-service-mock.h +++ b/tests/accounts-service-mock.h @@ -26,6 +26,7 @@ class AccountsServiceMock DbusTestDbusMockObject * soundobj = nullptr; DbusTestDbusMockObject * userobj = nullptr; DbusTestDbusMockObject * syssoundobj = nullptr; + DbusTestDbusMockObject * privacyobj = nullptr; public: AccountsServiceMock () { @@ -55,6 +56,9 @@ class AccountsServiceMock dbus_test_dbus_mock_object_add_property(mock, userobj, "UserName", G_VARIANT_TYPE_STRING, g_variant_new_string(g_get_user_name()), NULL); + dbus_test_dbus_mock_object_add_method(mock, baseobj, + "SetXHasMessages", G_VARIANT_TYPE_BOOLEAN, nullptr, + "", NULL); soundobj = dbus_test_dbus_mock_get_object(mock, "/user", "com.canonical.indicator.sound.AccountsService", NULL); dbus_test_dbus_mock_object_add_property(mock, soundobj, @@ -89,6 +93,14 @@ class AccountsServiceMock dbus_test_dbus_mock_object_add_property(mock, syssoundobj, "SilentMode", G_VARIANT_TYPE_BOOLEAN, g_variant_new_boolean(FALSE), NULL); + + privacyobj = dbus_test_dbus_mock_get_object(mock, "/user", "com.ubuntu.touch.AccountsService.SecurityPrivacy", NULL); + dbus_test_dbus_mock_object_add_property(mock, privacyobj, + "MessagesWelcomeScreen", G_VARIANT_TYPE_BOOLEAN, + g_variant_new_boolean(true), NULL); + dbus_test_dbus_mock_object_add_property(mock, privacyobj, + "StatsWelcomeScreen", G_VARIANT_TYPE_BOOLEAN, + g_variant_new_boolean(true), NULL); } ~AccountsServiceMock () { |