diff options
author | Ted Gould <ted@gould.cx> | 2014-11-11 18:37:59 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-11-11 18:37:59 -0600 |
commit | bb6126b670654941f717b0b12c5cf94a2ba1b56e (patch) | |
tree | f5c57a8a4896a9f43710bd7d326e8138f6a70450 /tests/accounts-service-mock.h | |
parent | b70244a3e24cc666a640445dbc190db8a44f556c (diff) | |
download | ayatana-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.h | 2 |
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, |