Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / enrollment / mock_enrollment_screen.h
blob56873311258220094e6b286c9bba1aa890b7e819
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_ENROLLMENT_MOCK_ENROLLMENT_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_MOCK_ENROLLMENT_SCREEN_H_
8 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen.h"
9 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen_actor.h"
10 #include "google_apis/gaia/google_service_auth_error.h"
11 #include "testing/gmock/include/gmock/gmock.h"
13 namespace chromeos {
15 class MockEnrollmentScreen : public EnrollmentScreen {
16 public:
17 MockEnrollmentScreen(ScreenObserver* screen_observer,
18 EnrollmentScreenActor* actor);
19 virtual ~MockEnrollmentScreen();
22 class MockEnrollmentScreenActor
23 : public EnrollmentScreenActor {
24 public:
25 MockEnrollmentScreenActor();
26 virtual ~MockEnrollmentScreenActor();
28 MOCK_METHOD4(SetParameters, void(Controller*, bool, bool,
29 const std::string&));
30 MOCK_METHOD0(PrepareToShow, void());
31 MOCK_METHOD0(Show, void());
32 MOCK_METHOD0(Hide, void());
33 MOCK_METHOD0(FetchOAuthToken, void());
34 MOCK_METHOD1(ResetAuth, void(const base::Closure&));
35 MOCK_METHOD0(ShowSigninScreen, void());
36 MOCK_METHOD0(ShowEnrollmentSpinnerScreen, void());
37 MOCK_METHOD0(ShowLoginSpinnerScreen, void());
38 MOCK_METHOD1(ShowAuthError, void(const GoogleServiceAuthError&));
39 MOCK_METHOD1(ShowUIError, void(UIError));
40 MOCK_METHOD1(ShowEnrollmentStatus, void(policy::EnrollmentStatus status));
43 } // namespace chromeos
45 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_MOCK_ENROLLMENT_SCREEN_H_