aboutsummaryrefslogtreecommitdiff
path: root/tests/backend-dbus/gtest-mock-dbus-fixture.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-04-11 13:53:20 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-04-11 13:53:20 -0500
commita1ea3fece0ded0f1a17198d47855f26b1841ee2e (patch)
tree2a10b446035c6888e0a0ac5326bff673eb1b7f43 /tests/backend-dbus/gtest-mock-dbus-fixture.h
parent12758f537f4e7b6e04b94126cbd3cf94b90cf5e7 (diff)
downloadayatana-indicator-session-a1ea3fece0ded0f1a17198d47855f26b1841ee2e.tar.gz
ayatana-indicator-session-a1ea3fece0ded0f1a17198d47855f26b1841ee2e.tar.bz2
ayatana-indicator-session-a1ea3fece0ded0f1a17198d47855f26b1841ee2e.zip
try to log out with com.canonical.Unity.Session's RequestLogout. If that fails, fall back to org.gnome.SessionManager's Logout.
Diffstat (limited to 'tests/backend-dbus/gtest-mock-dbus-fixture.h')
-rw-r--r--tests/backend-dbus/gtest-mock-dbus-fixture.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/backend-dbus/gtest-mock-dbus-fixture.h b/tests/backend-dbus/gtest-mock-dbus-fixture.h
index d4f598c..16b4648 100644
--- a/tests/backend-dbus/gtest-mock-dbus-fixture.h
+++ b/tests/backend-dbus/gtest-mock-dbus-fixture.h
@@ -43,8 +43,6 @@ class GTestMockDBusFixture: public GTestDBusFixture
protected:
MockScreenSaver * screen_saver;
- MockUnitySession * unity_session;
- MockSessionManager * session_manager;
MockDisplayManagerSeat * dm_seat;
MockAccounts * accounts;
MockLogin1Manager * login1_manager;
@@ -60,9 +58,7 @@ class GTestMockDBusFixture: public GTestDBusFixture
webcredentials = new MockWebcredentials (loop, conn);
end_session_dialog = new MockEndSessionDialog (loop, conn);
- session_manager = new MockSessionManager (loop, conn);
screen_saver = new MockScreenSaver (loop, conn);
- unity_session = new MockUnitySession (loop, conn);
dm_seat = new MockDisplayManagerSeat (loop, conn);
g_setenv ("XDG_SEAT_PATH", dm_seat->path(), TRUE);
dm_seat->set_guest_allowed (false);
@@ -86,8 +82,6 @@ class GTestMockDBusFixture: public GTestDBusFixture
delete login1_manager;
delete dm_seat;
delete screen_saver;
- delete unity_session;
- delete session_manager;
delete end_session_dialog;
delete webcredentials;