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

Unified Diff: ash/login/lock_screen_controller_unittest.cc

Issue 2923773003: Adding mojo calls for several lock screen related operations. (Closed)
Patch Set: clean up 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
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 a1c3debb5f67ab2b4d52b254cfe44653df3bcc42..cd2cfd3a8c825e0fc2169f8f3727381b80c8c86b 100644
--- a/ash/login/lock_screen_controller_unittest.cc
+++ b/ash/login/lock_screen_controller_unittest.cc
@@ -60,4 +60,21 @@ 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, FocusPod(id));
+ controller->FocusPod(id);
+ base::RunLoop().RunUntilIdle();
+
+ // Verify NoPodFocused mojo call is run.
+ EXPECT_CALL(*client, NoPodFocused());
+ controller->NoPodFocused();
+ base::RunLoop().RunUntilIdle();
+}
+
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698