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

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: Address comments 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
« no previous file with comments | « ash/login/lock_screen_controller_unittest.cc ('k') | ash/login/mock_lock_screen_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a831d339ec5a97c1ec73a8b7586491ff13c9f163 100644
--- a/ash/login/mock_lock_screen_client.h
+++ b/ash/login/mock_lock_screen_client.h
@@ -18,13 +18,25 @@ class MockLockScreenClient : public mojom::LockScreenClient {
mojom::LockScreenClientPtr CreateInterfacePtrAndBind();
+ // Result that should be passed to |callback| in |AuthenticateUser|.
+ void set_authenticate_user_callback_result(bool value) {
+ authenticate_user_callback_result_ = value;
+ }
xiyuan 2017/06/07 19:02:28 nit: move this the last of all methods. Prevailing
jdufault 2017/06/07 22:53:21 I've done some reordering. Does the accessor go af
xiyuan 2017/06/07 23:03:21 I personally prefer to put accessors to the very l
jdufault 2017/06/08 17:36:06 I'd prefer to leave as is - I can reorder if you f
xiyuan 2017/06/08 17:49:06 Acknowledged.
+
// 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:
+ bool authenticate_user_callback_result_ = true;
+
mojo::Binding<ash::mojom::LockScreenClient> binding_;
DISALLOW_COPY_AND_ASSIGN(MockLockScreenClient);
« no previous file with comments | « ash/login/lock_screen_controller_unittest.cc ('k') | ash/login/mock_lock_screen_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698