| 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
|
|
|