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

Side by Side Diff: ash/login/mock_lock_screen_client.h

Issue 2894193002: cros: Pull TestLockScreenClient into a separate MockLockScreenClient file. (Closed)
Patch Set: Rebase (remove parent dep) 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_LOGIN_MOCK_LOCK_SCREEN_CLIENT_H_
6 #define ASH_LOGIN_MOCK_LOCK_SCREEN_CLIENT_H_
7
8 #include "ash/public/interfaces/lock_screen.mojom.h"
9 #include "mojo/public/cpp/bindings/binding_set.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11
12 namespace ash {
13
14 class MockLockScreenClient : public mojom::LockScreenClient {
15 public:
16 MockLockScreenClient();
17 ~MockLockScreenClient() override;
18
19 mojom::LockScreenClientPtr CreateInterfacePtrAndBind();
20
21 // mojom::LockScreenClient:
22 MOCK_METHOD3(AuthenticateUser,
23 void(const AccountId& account_id,
24 const std::string& password,
25 bool authenticated_by_pin));
26
27 private:
28 mojo::Binding<ash::mojom::LockScreenClient> binding_;
29
30 DISALLOW_COPY_AND_ASSIGN(MockLockScreenClient);
31 };
32
33 // Helper method to bind a lock screen client so it receives all mojo calls.
34 std::unique_ptr<MockLockScreenClient> BindMockLockScreenClient();
35
36 } // namespace ash
37
38 #endif // ASH_LOGIN_MOCK_LOCK_SCREEN_CLIENT_H_
OLDNEW
« 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