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

Unified Diff: ash/login/mock_lock_screen_client.h

Issue 2896093003: cros: Make sure views-based lock screen is destroyed after it is dismissed. (Closed)
Patch Set: Add new mojo calls 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/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_;

Powered by Google App Engine
This is Rietveld 408576698