diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-05-30 09:19:52 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-05-30 09:19:52 +0200 |
commit | 7ce8811a028949e343933d9af74698955d1c637d (patch) | |
tree | e590760edaa561c4ef746a7f1b1ba097e37c89da /tests/backend-dbus/test-actions.cc | |
parent | 16008bb3a547389a8870692a5af6729420b32120 (diff) | |
download | ayatana-indicator-session-7ce8811a028949e343933d9af74698955d1c637d.tar.gz ayatana-indicator-session-7ce8811a028949e343933d9af74698955d1c637d.tar.bz2 ayatana-indicator-session-7ce8811a028949e343933d9af74698955d1c637d.zip |
Things are not that simple... Complete previous commit, now switch to org.ayatana.Desktop Dbus session bus name complete.
Diffstat (limited to 'tests/backend-dbus/test-actions.cc')
-rw-r--r-- | tests/backend-dbus/test-actions.cc | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/backend-dbus/test-actions.cc b/tests/backend-dbus/test-actions.cc index 76a0ab4..709273a 100644 --- a/tests/backend-dbus/test-actions.cc +++ b/tests/backend-dbus/test-actions.cc @@ -265,8 +265,8 @@ TEST_F (Actions, PowerOff) TEST_F (Actions, LogoutUnity) { - MockUnitySession unity_session(loop, conn); - ASSERT_EQ (MockUnitySession::None, unity_session.last_action()); + MockUnitySession desktop_session(loop, conn); + ASSERT_EQ (MockUnitySession::None, desktop_session.last_action()); wait_msec(); // confirm that user is prompted @@ -276,7 +276,7 @@ TEST_F (Actions, LogoutUnity) ASSERT_TRUE (end_session_dialog->is_open()); end_session_dialog->cancel(); wait_msec (50); - ASSERT_EQ (MockUnitySession::None, unity_session.last_action()); + ASSERT_EQ (MockUnitySession::None, desktop_session.last_action()); // confirm that user is prompted // and that logout is called when user confirms the logout dialog @@ -285,19 +285,19 @@ TEST_F (Actions, LogoutUnity) ASSERT_TRUE (end_session_dialog->is_open ()); end_session_dialog->confirm_logout (); wait_msec (100); - ASSERT_EQ (MockUnitySession::RequestLogout, unity_session.last_action()); + ASSERT_EQ (MockUnitySession::RequestLogout, desktop_session.last_action()); // confirm that we try to call SessionManager::LogoutQuet // when prompts are disabled login1_manager->clear_last_action (); - unity_session.clear_last_action (); + desktop_session.clear_last_action (); ASSERT_EQ ("", login1_manager->last_action()); - ASSERT_EQ (MockUnitySession::None, unity_session.last_action ()); + ASSERT_EQ (MockUnitySession::None, desktop_session.last_action ()); g_settings_set_boolean (indicator_settings, SUPPRESS_KEY, TRUE); wait_msec (50); indicator_session_actions_logout (actions); wait_msec (50); - ASSERT_EQ (MockUnitySession::RequestLogout, unity_session.last_action ()); + ASSERT_EQ (MockUnitySession::RequestLogout, desktop_session.last_action ()); g_settings_reset (indicator_settings, SUPPRESS_KEY); } @@ -356,29 +356,29 @@ TEST_F (Actions, Hibernate) TEST_F (Actions, SwitchToScreensaver) { - MockUnitySession unity_session(loop, conn); + MockUnitySession desktop_session(loop, conn); - ASSERT_EQ (MockUnitySession::None, unity_session.last_action()); + ASSERT_EQ (MockUnitySession::None, desktop_session.last_action()); indicator_session_actions_switch_to_screensaver (actions); wait_msec (50); - ASSERT_EQ (MockUnitySession::Lock, unity_session.last_action()); + ASSERT_EQ (MockUnitySession::Lock, desktop_session.last_action()); } TEST_F (Actions, SwitchToGreeter) { - MockUnitySession unity_session(loop, conn); + MockUnitySession desktop_session(loop, conn); ASSERT_NE (MockDisplayManagerSeat::GREETER, dm_seat->last_action()); - ASSERT_EQ (MockUnitySession::None, unity_session.last_action()); + ASSERT_EQ (MockUnitySession::None, desktop_session.last_action()); indicator_session_actions_switch_to_greeter (actions); wait_msec (50); - ASSERT_EQ (MockUnitySession::PromptLock, unity_session.last_action()); + ASSERT_EQ (MockUnitySession::PromptLock, desktop_session.last_action()); ASSERT_EQ (MockDisplayManagerSeat::GREETER, dm_seat->last_action()); } TEST_F (Actions, SwitchToGuest) { - MockUnitySession unity_session(loop, conn); + MockUnitySession desktop_session(loop, conn); // allow guests dm_seat->set_guest_allowed (true); @@ -394,12 +394,12 @@ TEST_F (Actions, SwitchToGuest) wait_for_signal (login1_seat->skeleton(), "notify::active-session"); ASSERT_EQ (guest_session_tag, login1_seat->active_session()); wait_msec (50); - ASSERT_EQ (MockUnitySession::PromptLock, unity_session.last_action()); + ASSERT_EQ (MockUnitySession::PromptLock, desktop_session.last_action()); } TEST_F (Actions, SwitchToUsername) { - MockUnitySession unity_session(loop, conn); + MockUnitySession desktop_session(loop, conn); const char * const dr1_username = "whartnell"; const char * const dr2_username = "ptroughton"; MockUser * dr1_user; @@ -417,7 +417,7 @@ TEST_F (Actions, SwitchToUsername) wait_for_signal (login1_seat->skeleton(), "notify::active-session"); ASSERT_EQ (dr1_session, login1_seat->active_session()); wait_msec (50); - ASSERT_EQ (MockUnitySession::PromptLock, unity_session.last_action()); + ASSERT_EQ (MockUnitySession::PromptLock, desktop_session.last_action()); indicator_session_actions_switch_to_username (actions, dr2_username); wait_for_signal (login1_seat->skeleton(), "notify::active-session"); |