diff options
author | Ted Gould <ted@gould.cx> | 2015-02-05 17:19:33 +0000 |
---|---|---|
committer | CI Train Bot <ci-train-bot@canonical.com> | 2015-02-05 17:19:33 +0000 |
commit | 2c5d6305dea48e2181a9180cea9e7cae19e94ef0 (patch) | |
tree | 3af41afd37e01998d62631843ce707266f926c21 /tests/accounts-service-user.cc | |
parent | c9cb54483cc5966b3c542ec86dd4e6bf7b33d4ec (diff) | |
parent | ed66db9f090b5f98338e1a47103b0106cc02d980 (diff) | |
download | ayatana-indicator-sound-2c5d6305dea48e2181a9180cea9e7cae19e94ef0.tar.gz ayatana-indicator-sound-2c5d6305dea48e2181a9180cea9e7cae19e94ef0.tar.bz2 ayatana-indicator-sound-2c5d6305dea48e2181a9180cea9e7cae19e94ef0.zip |
Initial support for indicator service testing from the GMenu/GAction interfaces
Approved by: Jussi Pakkanen, PS Jenkins bot
Diffstat (limited to 'tests/accounts-service-user.cc')
-rw-r--r-- | tests/accounts-service-user.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/accounts-service-user.cc b/tests/accounts-service-user.cc index b39b546..7110fb3 100644 --- a/tests/accounts-service-user.cc +++ b/tests/accounts-service-user.cc @@ -42,14 +42,13 @@ class AccountsServiceUserTest : public ::testing::Test virtual void SetUp() { service = dbus_test_service_new(NULL); + dbus_test_service_set_bus(service, DBUS_TEST_SERVICE_BUS_BOTH); AccountsServiceMock service_mock; dbus_test_service_add_task(service, (DbusTestTask*)service_mock); dbus_test_service_start_tasks(service); - g_setenv("DBUS_SYSTEM_BUS_ADDRESS", g_getenv("DBUS_SESSION_BUS_ADDRESS"), TRUE); - session = g_bus_get_sync(G_BUS_TYPE_SESSION, NULL, NULL); ASSERT_NE(nullptr, session); g_dbus_connection_set_exit_on_close(session, FALSE); |