1 // Copyright 2014 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_UI_MOCK_LOGIN_DISPLAY_HOST_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_MOCK_LOGIN_DISPLAY_HOST_H_
8 #include "base/basictypes.h"
9 #include "chrome/browser/chromeos/login/ui/login_display_host.h"
10 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
11 #include "testing/gmock/include/gmock/gmock.h"
15 class MockLoginDisplayHost
: public LoginDisplayHost
{
17 MockLoginDisplayHost();
18 virtual ~MockLoginDisplayHost();
20 MOCK_METHOD1(CreateLoginDisplay
, LoginDisplay
*(LoginDisplay::Delegate
*));
21 MOCK_CONST_METHOD0(GetNativeWindow
, gfx::NativeWindow(void));
22 MOCK_CONST_METHOD0(GetWebUILoginView
, WebUILoginView
*(void));
23 MOCK_METHOD0(BeforeSessionStart
, void(void));
24 MOCK_METHOD0(Finalize
, void(void));
25 MOCK_METHOD0(OnCompleteLogin
, void(void));
26 MOCK_METHOD0(OpenProxySettings
, void(void));
27 MOCK_METHOD1(SetStatusAreaVisible
, void(bool));
28 MOCK_METHOD0(ShowBackground
, void(void));
29 MOCK_METHOD0(GetAutoEnrollmentController
, AutoEnrollmentController
*(void));
30 MOCK_METHOD1(StartWizard
, void(const std::string
&));
31 MOCK_METHOD0(GetWizardController
, WizardController
*(void));
32 MOCK_METHOD0(GetAppLaunchController
, AppLaunchController
*(void));
33 MOCK_METHOD1(StartUserAdding
, void(const base::Closure
&));
34 MOCK_METHOD1(StartSignInScreen
, void(const LoginScreenContext
&));
35 MOCK_METHOD0(ResumeSignInScreen
, void(void));
36 MOCK_METHOD0(OnPreferencesChanged
, void(void));
37 MOCK_METHOD0(PrewarmAuthentication
, void(void));
38 MOCK_METHOD3(StartAppLaunch
, void(const std::string
&, bool, bool));
39 MOCK_METHOD0(StartDemoAppLaunch
, void(void));
42 DISALLOW_COPY_AND_ASSIGN(MockLoginDisplayHost
);
45 } // namespace chromeos
47 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_MOCK_LOGIN_DISPLAY_HOST_H_