Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / screens / mock_error_screen.h
blob39851363afdeb3c55c385cf0c598002aca1e5d3e
1 // Copyright (c) 2013 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.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_ERROR_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_ERROR_SCREEN_H_
8 #include "chrome/browser/chromeos/login/screens/error_screen.h"
9 #include "chrome/browser/chromeos/login/screens/error_screen_actor.h"
10 #include "testing/gmock/include/gmock/gmock.h"
12 namespace chromeos {
14 class MockErrorScreen : public ErrorScreen {
15 public:
16 MockErrorScreen(ScreenObserver* screen_observer, ErrorScreenActor* actor);
17 virtual ~MockErrorScreen();
20 class MockErrorScreenActor : public ErrorScreenActor {
21 public:
22 MockErrorScreenActor();
23 virtual ~MockErrorScreenActor();
25 MOCK_METHOD2(Show, void(OobeDisplay::Screen parent_screen,
26 base::DictionaryValue* params));
27 MOCK_METHOD0(Hide, void(void));
28 MOCK_METHOD0(FixCaptivePortal, void(void));
29 MOCK_METHOD0(ShowCaptivePortal, void(void));
30 MOCK_METHOD0(HideCaptivePortal, void(void));
31 MOCK_METHOD1(SetUIState, void(ErrorScreen::UIState ui_state));
32 MOCK_METHOD2(SetErrorState, void(ErrorScreen::ErrorState error_state,
33 const std::string& network));
34 MOCK_METHOD1(AllowGuestSignin, void(bool allowed));
35 MOCK_METHOD1(AllowOfflineLogin, void(bool allowed));
38 } // namespace chromeos
40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_ERROR_SCREEN_H_