| 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..a108b387a2d01b8e476e6e85d824766e82d48ffb 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, FocusPod(id));
|
| + controller->FocusPod(id);
|
| + base::RunLoop().RunUntilIdle();
|
| +
|
| + // Verify NoPodFocused mojo call is run.
|
| + EXPECT_CALL(*client, NoPodFocused());
|
| + controller->NoPodFocused();
|
| + base::RunLoop().RunUntilIdle();
|
| +}
|
| +
|
| } // namespace
|
| } // namespace ash
|
|
|