Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: ash/login/lock_screen_controller_unittest.cc

Issue 2923773003: Adding mojo calls for several lock screen related operations. (Closed)
Patch Set: comments and rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/login/lock_screen_controller.cc ('k') | ash/login/mock_lock_screen_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/login/lock_screen_controller_unittest.cc
diff --git a/ash/login/lock_screen_controller_unittest.cc b/ash/login/lock_screen_controller_unittest.cc
index 59837be1a88877c344f8d1b84724b6915fdf22d7..11cd15bf717df3af7dc50e225291216772639e6b 100644
--- a/ash/login/lock_screen_controller_unittest.cc
+++ b/ash/login/lock_screen_controller_unittest.cc
@@ -67,5 +67,22 @@ TEST_F(LockScreenControllerTest, RequestEasyUnlock) {
base::RunLoop().RunUntilIdle();
}
+TEST_F(LockScreenControllerTest, RequestUserPodFocus) {
+ LockScreenController* controller = Shell::Get()->lock_screen_controller();
+ std::unique_ptr<MockLockScreenClient> client = BindMockLockScreenClient();
+
+ AccountId id = AccountId::FromUserEmail("user1@test.com");
+
+ // Verify FocusPod mojo call is run with the same account id.
+ EXPECT_CALL(*client, OnFocusPod(id));
+ controller->OnFocusPod(id);
+ base::RunLoop().RunUntilIdle();
+
+ // Verify NoPodFocused mojo call is run.
+ EXPECT_CALL(*client, OnNoPodFocused());
+ controller->OnNoPodFocused();
+ base::RunLoop().RunUntilIdle();
+}
+
} // namespace
} // namespace ash
« no previous file with comments | « ash/login/lock_screen_controller.cc ('k') | ash/login/mock_lock_screen_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698