Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / chromeos / login / screens / mock_network_screen.h
blob9ccae6bd855aed8d12cd69ab398b4a6438dd16d7
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/base_screen_delegate.h"
9 #include "chrome/browser/chromeos/login/screens/network_screen.h"
10 #include "chrome/browser/chromeos/login/screens/network_view.h"
11 #include "testing/gmock/include/gmock/gmock.h"
13 namespace chromeos {
15 class MockNetworkScreen : public NetworkScreen {
16 public:
17 MockNetworkScreen(BaseScreenDelegate* base_screen_delegate,
18 Delegate* delegate,
19 NetworkView* view);
20 ~MockNetworkScreen() override;
22 MOCK_METHOD0(Show, void());
23 MOCK_METHOD0(Hide, void());
26 class MockNetworkView : public NetworkView {
27 public:
28 MockNetworkView();
29 ~MockNetworkView() override;
31 void Bind(NetworkModel& model) override;
32 void Unbind() override;
34 MOCK_METHOD1(MockBind, void(NetworkModel& model));
35 MOCK_METHOD0(MockUnbind, void());
36 MOCK_METHOD0(PrepareToShow, void());
37 MOCK_METHOD0(Show, void());
38 MOCK_METHOD0(Hide, void());
39 MOCK_METHOD1(ShowError, void(const base::string16& message));
40 MOCK_METHOD0(ClearErrors, void());
41 MOCK_METHOD0(StopDemoModeDetection, void());
42 MOCK_METHOD2(ShowConnectingStatus,
43 void(bool connecting, const base::string16& network_id));
44 MOCK_METHOD1(EnableContinue, void(bool enabled));
45 MOCK_METHOD0(ReloadLocalizedContent, void());
47 private:
48 NetworkModel* model_;
51 } // namespace chromeos
53 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MOCK_NETWORK_SCREEN_H_