OLD | NEW |
(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 CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_CORE_OOBE_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_CORE_OOBE_VIEW_H_ |
| 7 |
| 8 #include "chrome/browser/chromeos/login/screens/core_oobe_view.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 |
| 11 namespace chromeos { |
| 12 |
| 13 class MockCoreOobeView : public CoreOobeView { |
| 14 public: |
| 15 MockCoreOobeView(); |
| 16 ~MockCoreOobeView() override; |
| 17 |
| 18 MOCK_METHOD1(MockSetDelegate, void(Delegate* delegate)); |
| 19 void SetDelegate(CoreOobeView::Delegate* delegate) override; |
| 20 |
| 21 MOCK_METHOD1(Show, void(OobeScreen screen)); |
| 22 MOCK_METHOD1(Hide, void(OobeScreen screen)); |
| 23 MOCK_METHOD4(ShowSignInError, |
| 24 void(int login_attempts, |
| 25 const std::string& error_text, |
| 26 const std::string& help_link_text, |
| 27 HelpAppLauncher::HelpTopic help_topic_id)); |
| 28 MOCK_METHOD0(ShowTpmError, void()); |
| 29 MOCK_METHOD1(ShowSignInUI, void(const std::string& email)); |
| 30 MOCK_METHOD1(ResetSignInUI, void(bool force_online)); |
| 31 MOCK_METHOD0(ClearUserPodPassword, void()); |
| 32 MOCK_METHOD0(RefocusCurrentPod, void()); |
| 33 MOCK_METHOD2(ShowPasswordChangedScreen, |
| 34 void(bool show_password_error, const std::string& email)); |
| 35 MOCK_METHOD1(SetUsageStats, void(bool checked)); |
| 36 MOCK_METHOD1(SetOemEulaUrl, void(const std::string& oem_eula_url)); |
| 37 MOCK_METHOD1(SetTpmPassword, void(const std::string& tmp_password)); |
| 38 MOCK_METHOD0(ClearErrors, void()); |
| 39 MOCK_METHOD1(ReloadContent, void(const base::DictionaryValue& dictionary)); |
| 40 MOCK_METHOD1(ShowControlBar, void(bool show)); |
| 41 MOCK_METHOD1(ShowPinKeyboard, void(bool show)); |
| 42 MOCK_METHOD2(SetClientAreaSize, void(int width, int height)); |
| 43 MOCK_METHOD0(ShowDeviceResetScreen, void()); |
| 44 MOCK_METHOD0(ShowEnableDebuggingScreen, void()); |
| 45 MOCK_METHOD0(InitDemoModeDetection, void()); |
| 46 MOCK_METHOD0(StopDemoModeDetection, void()); |
| 47 MOCK_METHOD0(UpdateKeyboardState, void()); |
| 48 MOCK_METHOD1(ShowActiveDirectoryPasswordChangeScreen, |
| 49 void(const std::string& username)); |
| 50 |
| 51 private: |
| 52 Delegate* delegate_; |
| 53 }; |
| 54 |
| 55 } // namespace chromeos |
| 56 |
| 57 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_CORE_OOBE_VIEW_H_ |
OLD | NEW |