Chromium Code Reviews| Index: ash/login/mock_lock_screen_client.h |
| diff --git a/ash/login/mock_lock_screen_client.h b/ash/login/mock_lock_screen_client.h |
| index 52874b3530e3c4feff543d5ac897d8c0ee41b644..5700d5205cbe20d1ce206ae9a854f4f8e45c5706 100644 |
| --- a/ash/login/mock_lock_screen_client.h |
| +++ b/ash/login/mock_lock_screen_client.h |
| @@ -18,11 +18,19 @@ class MockLockScreenClient : public mojom::LockScreenClient { |
| mojom::LockScreenClientPtr CreateInterfacePtrAndBind(); |
| + // Result that should be passed to |callback| in |AuthenticateUser|. |
| + bool authenticate_user_callback_result = true; |
|
xiyuan
2017/06/06 22:37:51
move this to private and add a setter instead.
jdufault
2017/06/07 18:58:35
Done.
|
| + |
| // mojom::LockScreenClient: |
| - MOCK_METHOD3(AuthenticateUser, |
| + void AuthenticateUser(const AccountId& account_id, |
| + const std::string& password, |
| + bool authenticated_by_pin, |
| + AuthenticateUserCallback callback) override; |
| + MOCK_METHOD4(AuthenticateUser_, |
| void(const AccountId& account_id, |
| const std::string& password, |
| - bool authenticated_by_pin)); |
| + bool authenticated_by_pin, |
| + AuthenticateUserCallback& callback)); |
| private: |
| mojo::Binding<ash::mojom::LockScreenClient> binding_; |