Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / screens / mock_network_screen.h
blob08d8dd7c1f7823b9d30812b47d9c905eb77eecd5
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_NETWORK_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_NETWORK_SCREEN_H_
8 #include "chrome/browser/chromeos/login/screens/network_screen.h"
9 #include "chrome/browser/chromeos/login/screens/network_screen_actor.h"
10 #include "chrome/browser/chromeos/login/screens/screen_observer.h"
11 #include "testing/gmock/include/gmock/gmock.h"
13 namespace chromeos {
15 class MockNetworkScreen : public NetworkScreen {
16 public:
17 MockNetworkScreen(ScreenObserver* observer, NetworkScreenActor* actor);
18 virtual ~MockNetworkScreen();
21 class MockNetworkScreenActor : public NetworkScreenActor {
22 public:
23 MockNetworkScreenActor();
24 virtual ~MockNetworkScreenActor();
26 virtual void SetDelegate(Delegate* delegate);
28 MOCK_METHOD1(MockSetDelegate, void(Delegate* delegate));
29 MOCK_METHOD0(PrepareToShow, void());
30 MOCK_METHOD0(Show, void());
31 MOCK_METHOD0(Hide, void());
32 MOCK_METHOD1(ShowError, void(const base::string16& message));
33 MOCK_METHOD0(ClearErrors, void());
34 MOCK_METHOD2(ShowConnectingStatus,
35 void(bool connecting, const base::string16& network_id));
36 MOCK_METHOD1(EnableContinue, void(bool enabled));
37 MOCK_CONST_METHOD0(IsContinueEnabled, bool());
38 MOCK_CONST_METHOD0(IsConnecting, bool());
40 private:
41 Delegate* delegate_;
45 } // namespace chromeos
47 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_NETWORK_SCREEN_H_