OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_MOCK_LOGIN_DISPLAY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_MOCK_LOGIN_DISPLAY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_MOCK_LOGIN_DISPLAY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_MOCK_LOGIN_DISPLAY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/browser/chromeos/login/ui/login_display.h" | 9 #include "chrome/browser/chromeos/login/ui/login_display.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 | 11 |
| 12 class AccountId; |
| 13 |
12 namespace chromeos { | 14 namespace chromeos { |
13 | 15 |
14 class MockLoginDisplay : public LoginDisplay { | 16 class MockLoginDisplay : public LoginDisplay { |
15 public: | 17 public: |
16 MockLoginDisplay(); | 18 MockLoginDisplay(); |
17 ~MockLoginDisplay(); | 19 ~MockLoginDisplay(); |
18 | 20 |
19 MOCK_METHOD0(ClearAndEnablePassword, void(void)); | 21 MOCK_METHOD0(ClearAndEnablePassword, void(void)); |
20 MOCK_METHOD4(Init, void(const user_manager::UserList&, bool, bool, bool)); | 22 MOCK_METHOD4(Init, void(const user_manager::UserList&, bool, bool, bool)); |
21 MOCK_METHOD0(OnPreferencesChanged, void(void)); | 23 MOCK_METHOD0(OnPreferencesChanged, void(void)); |
22 MOCK_METHOD1(OnUserImageChanged, void(const user_manager::User&)); | 24 MOCK_METHOD1(OnUserImageChanged, void(const user_manager::User&)); |
23 MOCK_METHOD1(SetUIEnabled, void(bool)); | 25 MOCK_METHOD1(SetUIEnabled, void(bool)); |
24 MOCK_METHOD3(ShowError, void(int, int, HelpAppLauncher::HelpTopic)); | 26 MOCK_METHOD3(ShowError, void(int, int, HelpAppLauncher::HelpTopic)); |
25 MOCK_METHOD1(ShowErrorScreen, void(LoginDisplay::SigninError)); | 27 MOCK_METHOD1(ShowErrorScreen, void(LoginDisplay::SigninError)); |
26 MOCK_METHOD2(ShowPasswordChangedDialog, void(bool, const std::string&)); | 28 MOCK_METHOD2(ShowPasswordChangedDialog, void(bool, const std::string&)); |
27 MOCK_METHOD1(ShowSigninUI, void(const std::string&)); | 29 MOCK_METHOD1(ShowSigninUI, void(const std::string&)); |
28 MOCK_METHOD0(ShowWhitelistCheckFailedError, void(void)); | 30 MOCK_METHOD0(ShowWhitelistCheckFailedError, void(void)); |
29 MOCK_METHOD1(OnBeforeUserRemoved, void(const std::string&)); | 31 MOCK_METHOD1(OnBeforeUserRemoved, void(const AccountId&)); |
30 MOCK_METHOD1(OnUserRemoved, void(const std::string&)); | 32 MOCK_METHOD1(OnUserRemoved, void(const AccountId&)); |
31 | 33 |
32 private: | 34 private: |
33 DISALLOW_COPY_AND_ASSIGN(MockLoginDisplay); | 35 DISALLOW_COPY_AND_ASSIGN(MockLoginDisplay); |
34 }; | 36 }; |
35 | 37 |
36 } // namespace chromeos | 38 } // namespace chromeos |
37 | 39 |
38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_MOCK_LOGIN_DISPLAY_H_ | 40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_MOCK_LOGIN_DISPLAY_H_ |
OLD | NEW |