aboutsummaryrefslogtreecommitdiff
path: root/tests/backend-dbus/mock-display-manager-seat.cc
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-06-24 17:13:07 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-06-24 17:13:07 -0500
commit9cfc9e9da79cabacf1f81e96511d10895992c47d (patch)
tree8551498d439ff243912c244250aa1cfc88cdc54b /tests/backend-dbus/mock-display-manager-seat.cc
parent889f876ae7263bde2fb54b69930d1d31cbad8423 (diff)
downloadayatana-indicator-session-9cfc9e9da79cabacf1f81e96511d10895992c47d.tar.gz
ayatana-indicator-session-9cfc9e9da79cabacf1f81e96511d10895992c47d.tar.bz2
ayatana-indicator-session-9cfc9e9da79cabacf1f81e96511d10895992c47d.zip
get all the tests in test-actions passing again.
Diffstat (limited to 'tests/backend-dbus/mock-display-manager-seat.cc')
-rw-r--r--tests/backend-dbus/mock-display-manager-seat.cc17
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/backend-dbus/mock-display-manager-seat.cc b/tests/backend-dbus/mock-display-manager-seat.cc
index 9f30ae1..c8a4857 100644
--- a/tests/backend-dbus/mock-display-manager-seat.cc
+++ b/tests/backend-dbus/mock-display-manager-seat.cc
@@ -18,7 +18,7 @@
*/
#include "mock-display-manager-seat.h"
-#include "mock-consolekit-seat.h"
+#include "mock-login1-seat.h"
namespace
{
@@ -79,10 +79,10 @@ MockDisplayManagerSeat :: handle_switch_to_guest (DisplayManagerSeat * o,
void
MockDisplayManagerSeat :: switch_to_guest ()
{
- g_assert (my_ck_seat != 0);
+ g_assert (my_login1_seat != 0);
my_last_action = GUEST;
- my_ck_seat->switch_to_guest ();
+ my_login1_seat->switch_to_guest ();
}
gboolean
@@ -100,16 +100,16 @@ MockDisplayManagerSeat :: handle_switch_to_user (DisplayManagerSeat * o,
void
MockDisplayManagerSeat :: switch_to_user (const char * username)
{
- g_assert (my_ck_seat != 0);
+ g_assert (my_login1_seat != 0);
my_last_action = USER;
- my_ck_seat->switch_to_user (username);
+ my_login1_seat->switch_to_user (username);
}
void
-MockDisplayManagerSeat :: set_consolekit_seat (MockConsoleKitSeat * seat)
+MockDisplayManagerSeat :: set_login1_seat (MockLogin1Seat * seat)
{
- my_ck_seat = seat;
+ my_login1_seat = seat;
}
/***
@@ -120,7 +120,6 @@ MockDisplayManagerSeat :: MockDisplayManagerSeat (GMainLoop * loop,
GDBusConnection * connection):
MockObject (loop, connection, DISPLAY_MANAGER_NAME, next_unique_path()),
my_skeleton (display_manager_seat_skeleton_new ()),
- my_ck_seat (0),
my_last_action (NONE)
{
g_signal_connect (my_skeleton, "handle-switch-to-guest",
@@ -135,6 +134,6 @@ MockDisplayManagerSeat :: MockDisplayManagerSeat (GMainLoop * loop,
MockDisplayManagerSeat :: ~MockDisplayManagerSeat ()
{
- g_signal_handlers_disconnect_by_data (my_skeleton, this);
+ //g_signal_handlers_disconnect_by_data (my_skeleton, this);
g_clear_object (&my_skeleton);
}