aboutsummaryrefslogtreecommitdiff
path: root/tests/accounts-service-mock.h
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-11-11 18:37:59 -0600
committerTed Gould <ted@gould.cx>2014-11-11 18:37:59 -0600
commitbb6126b670654941f717b0b12c5cf94a2ba1b56e (patch)
treef5c57a8a4896a9f43710bd7d326e8138f6a70450 /tests/accounts-service-mock.h
parentb70244a3e24cc666a640445dbc190db8a44f556c (diff)
downloadayatana-indicator-sound-bb6126b670654941f717b0b12c5cf94a2ba1b56e.tar.gz
ayatana-indicator-sound-bb6126b670654941f717b0b12c5cf94a2ba1b56e.tar.bz2
ayatana-indicator-sound-bb6126b670654941f717b0b12c5cf94a2ba1b56e.zip
Putting the accounts service mock onto the system bus
Diffstat (limited to 'tests/accounts-service-mock.h')
-rw-r--r--tests/accounts-service-mock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/accounts-service-mock.h b/tests/accounts-service-mock.h
index 9507c5f..7a6972d 100644
--- a/tests/accounts-service-mock.h
+++ b/tests/accounts-service-mock.h
@@ -30,6 +30,8 @@ class AccountsServiceMock
AccountsServiceMock () {
mock = dbus_test_dbus_mock_new("org.freedesktop.Accounts");
+ dbus_test_task_set_bus(DBUS_TEST_TASK(mock), DBUS_TEST_SERVICE_BUS_SYSTEM);
+
DbusTestDbusMockObject * baseobj = dbus_test_dbus_mock_get_object(mock, "/org/freedesktop/Accounts", "org.freedesktop.Accounts", NULL);
dbus_test_dbus_mock_object_add_method(mock, baseobj,