Elim cr-checkbox
[chromium-blink-merge.git] / chrome / browser / chromeos / login / enrollment / mock_enrollment_screen.h
blob5b01f81f9479941e84ad9dec0fd102759ec7f299
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 "chrome/browser/chromeos/policy/enrollment_config.h"
11 #include "chrome/browser/chromeos/policy/enrollment_status_chromeos.h"
12 #include "google_apis/gaia/google_service_auth_error.h"
13 #include "testing/gmock/include/gmock/gmock.h"
15 namespace chromeos {
17 class MockEnrollmentScreen : public EnrollmentScreen {
18 public:
19 MockEnrollmentScreen(BaseScreenDelegate* base_screen_delegate,
20 EnrollmentScreenActor* actor);
21 ~MockEnrollmentScreen() override;
24 class MockEnrollmentScreenActor
25 : public EnrollmentScreenActor {
26 public:
27 MockEnrollmentScreenActor();
28 virtual ~MockEnrollmentScreenActor();
30 MOCK_METHOD2(SetParameters,
31 void(Controller*, const policy::EnrollmentConfig& config));
32 MOCK_METHOD0(PrepareToShow, void());
33 MOCK_METHOD0(Show, void());
34 MOCK_METHOD0(Hide, void());
35 MOCK_METHOD0(ShowSigninScreen, void());
36 MOCK_METHOD2(ShowAttributePromptScreen,
37 void(const std::string& asset_id, const std::string& location));
38 MOCK_METHOD0(ShowEnrollmentSpinnerScreen, void());
39 MOCK_METHOD1(ShowAuthError, void(const GoogleServiceAuthError&));
40 MOCK_METHOD1(ShowOtherError, void(EnterpriseEnrollmentHelper::OtherError));
41 MOCK_METHOD1(ShowEnrollmentStatus, void(policy::EnrollmentStatus status));
44 } // namespace chromeos
46 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_MOCK_ENROLLMENT_SCREEN_H_