| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SCREENS_MOCK_ENABLE_DEBUGGING_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_ENABLE_DEBUGGING_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_ENABLE_DEBUGGING_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_ENABLE_DEBUGGING_SCREEN_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/chromeos/login/screens/enable_debugging_screen.h" | 8 #include "chrome/browser/chromeos/login/screens/enable_debugging_screen.h" |
| 9 #include "chrome/browser/chromeos/login/screens/enable_debugging_screen_view.h" | 9 #include "chrome/browser/chromeos/login/screens/mock_core_oobe_view.h" |
| 10 #include "google_apis/gaia/google_service_auth_error.h" | 10 #include "google_apis/gaia/google_service_auth_error.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 | 14 |
| 15 class MockEnableDebuggingScreen : public EnableDebuggingScreen { | 15 class MockEnableDebuggingScreen : public EnableDebuggingScreen { |
| 16 public: | 16 public: |
| 17 MockEnableDebuggingScreen(BaseScreenDelegate* base_screen_delegate, | 17 MockEnableDebuggingScreen(BaseScreenDelegate* base_screen_delegate, |
| 18 EnableDebuggingScreenView* view); | 18 CoreOobeView* view); |
| 19 ~MockEnableDebuggingScreen() override; | 19 ~MockEnableDebuggingScreen() override; |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 class MockEnableDebuggingScreenView : public EnableDebuggingScreenView { | |
| 23 public: | |
| 24 MockEnableDebuggingScreenView(); | |
| 25 ~MockEnableDebuggingScreenView() override; | |
| 26 | |
| 27 MOCK_METHOD0(Show, void()); | |
| 28 MOCK_METHOD0(Hide, void()); | |
| 29 MOCK_METHOD1(MockSetDelegate, void(Delegate* delegate)); | |
| 30 | |
| 31 void SetDelegate(EnableDebuggingScreenView::Delegate* delegate) override; | |
| 32 | |
| 33 private: | |
| 34 Delegate* delegate_; | |
| 35 }; | |
| 36 | |
| 37 } // namespace chromeos | 22 } // namespace chromeos |
| 38 | 23 |
| 39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_ENABLE_DEBUGGING_SCREEN_H_ | 24 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_ENABLE_DEBUGGING_SCREEN_H_ |
| OLD | NEW |