Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / mock_login_display_host.h
blob6f3c809a2f70c081d7e15cb872528c8bfcd282d1
1 // Copyright 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_MOCK_LOGIN_DISPLAY_HOST_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_DISPLAY_HOST_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/chromeos/login/login_display_host.h"
11 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
12 #include "testing/gmock/include/gmock/gmock.h"
14 namespace chromeos {
16 class MockLoginDisplayHost : public LoginDisplayHost {
17 public:
18 MockLoginDisplayHost();
19 virtual ~MockLoginDisplayHost();
21 MOCK_METHOD1(CreateLoginDisplay, LoginDisplay*(LoginDisplay::Delegate*));
22 MOCK_CONST_METHOD0(GetNativeWindow, gfx::NativeWindow(void));
23 MOCK_CONST_METHOD0(GetWebUILoginView, WebUILoginView*(void));
24 MOCK_METHOD0(BeforeSessionStart, void(void));
25 MOCK_METHOD0(Finalize, void(void));
26 MOCK_METHOD0(OnCompleteLogin, void(void));
27 MOCK_METHOD0(OpenProxySettings, void(void));
28 MOCK_METHOD1(SetStatusAreaVisible, void(bool));
29 MOCK_METHOD0(ShowBackground, void(void));
30 MOCK_METHOD0(CheckForAutoEnrollment, void(void));
31 MOCK_METHOD1(GetAutoEnrollmentCheckResult, void(
32 const GetAutoEnrollmentCheckResultCallback& callback));
33 // GMock currently doesn't support move-only arguments, so we have
34 // to use this hack here.
35 MOCK_METHOD2(StartWizardPtr, void(const std::string&,
36 base::DictionaryValue*));
37 virtual void StartWizard(const std::string& name,
38 scoped_ptr<base::DictionaryValue> value) OVERRIDE;
39 MOCK_METHOD0(GetWizardController, WizardController*(void));
40 MOCK_METHOD0(GetAppLaunchController, AppLaunchController*(void));
41 MOCK_METHOD1(StartUserAdding, void(const base::Closure&));
42 MOCK_METHOD1(StartSignInScreen, void(const LoginScreenContext&));
43 MOCK_METHOD0(ResumeSignInScreen, void(void));
44 MOCK_METHOD0(OnPreferencesChanged, void(void));
45 MOCK_METHOD0(PrewarmAuthentication, void(void));
46 MOCK_METHOD1(StartAppLaunch, void(const std::string&));
48 private:
49 DISALLOW_COPY_AND_ASSIGN(MockLoginDisplayHost);
52 } // namespace chromeos
54 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_DISPLAY_HOST_H_