OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MOCK_LOGIN_DISPLAY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_DISPLAY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_DISPLAY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_DISPLAY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/browser/chromeos/login/login_display.h" | 9 #include "chrome/browser/chromeos/login/login_display.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 MOCK_METHOD0(OnPreferencesChanged, void(void)); | 21 MOCK_METHOD0(OnPreferencesChanged, void(void)); |
22 MOCK_METHOD1(OnUserImageChanged, void(const User&)); | 22 MOCK_METHOD1(OnUserImageChanged, void(const User&)); |
23 MOCK_METHOD0(OnFadeOut, void(void)); | 23 MOCK_METHOD0(OnFadeOut, void(void)); |
24 MOCK_METHOD1(OnLoginSuccess, void(const std::string&)); | 24 MOCK_METHOD1(OnLoginSuccess, void(const std::string&)); |
25 MOCK_METHOD1(SetUIEnabled, void(bool)); | 25 MOCK_METHOD1(SetUIEnabled, void(bool)); |
26 MOCK_METHOD1(SelectPod, void(int)); | 26 MOCK_METHOD1(SelectPod, void(int)); |
27 MOCK_METHOD1(ShowBannerMessage, void(const std::string&)); | 27 MOCK_METHOD1(ShowBannerMessage, void(const std::string&)); |
28 MOCK_METHOD3(ShowUserPodButton, void(const std::string&, | 28 MOCK_METHOD3(ShowUserPodButton, void(const std::string&, |
29 const std::string&, | 29 const std::string&, |
30 const base::Closure&)); | 30 const base::Closure&)); |
| 31 MOCK_METHOD1(HideUserPodButton, void(const std::string&)); |
| 32 MOCK_METHOD3(SetAuthType, |
| 33 void(const std::string&, |
| 34 LoginDisplay::AuthType, |
| 35 const std::string&)); |
| 36 MOCK_CONST_METHOD1(GetAuthType, AuthType(const std::string&)); |
31 MOCK_METHOD3(ShowError, void(int, int, HelpAppLauncher::HelpTopic)); | 37 MOCK_METHOD3(ShowError, void(int, int, HelpAppLauncher::HelpTopic)); |
32 MOCK_METHOD1(ShowErrorScreen, void(LoginDisplay::SigninError)); | 38 MOCK_METHOD1(ShowErrorScreen, void(LoginDisplay::SigninError)); |
33 MOCK_METHOD1(ShowGaiaPasswordChanged, void(const std::string&)); | 39 MOCK_METHOD1(ShowGaiaPasswordChanged, void(const std::string&)); |
34 MOCK_METHOD1(ShowPasswordChangedDialog, void(bool)); | 40 MOCK_METHOD1(ShowPasswordChangedDialog, void(bool)); |
35 MOCK_METHOD1(ShowSigninUI, void(const std::string&)); | 41 MOCK_METHOD1(ShowSigninUI, void(const std::string&)); |
36 MOCK_METHOD1(OnBeforeUserRemoved, void(const std::string&)); | 42 MOCK_METHOD1(OnBeforeUserRemoved, void(const std::string&)); |
37 MOCK_METHOD1(OnUserRemoved, void(const std::string&)); | 43 MOCK_METHOD1(OnUserRemoved, void(const std::string&)); |
38 | 44 |
39 private: | 45 private: |
40 DISALLOW_COPY_AND_ASSIGN(MockLoginDisplay); | 46 DISALLOW_COPY_AND_ASSIGN(MockLoginDisplay); |
41 }; | 47 }; |
42 | 48 |
43 } // namespace chromeos | 49 } // namespace chromeos |
44 | 50 |
45 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_DISPLAY_H_ | 51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_DISPLAY_H_ |
OLD | NEW |