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. 4 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_MOCK_ENROLLMENT_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_MOCK_ENROLLMENT_SCREEN_H_ 7 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" 12 13 namespace chromeos { 14 15 class MockEnrollmentScreen : public EnrollmentScreen { 16 public: 17 MockEnrollmentScreen(ScreenObserver* screen_observer, 18 EnrollmentScreenActor* actor); 19 virtual ~MockEnrollmentScreen(); 20 }; 21 22 class MockEnrollmentScreenActor 23 : public EnrollmentScreenActor { 24 public: 25 MockEnrollmentScreenActor(); 26 virtual ~MockEnrollmentScreenActor(); 27 28 MOCK_METHOD3(SetParameters, 29 void(Controller*, 30 EnrollmentScreenActor::EnrollmentMode, 31 const std::string&)); 32 MOCK_METHOD0(PrepareToShow, void()); 33 MOCK_METHOD0(Show, void()); 34 MOCK_METHOD0(Hide, void()); 35 MOCK_METHOD0(FetchOAuthToken, void()); 36 MOCK_METHOD1(ResetAuth, void(const base::Closure&)); 37 MOCK_METHOD0(ShowSigninScreen, void()); 38 MOCK_METHOD0(ShowEnrollmentSpinnerScreen, void()); 39 MOCK_METHOD0(ShowLoginSpinnerScreen, void()); 40 MOCK_METHOD1(ShowAuthError, void(const GoogleServiceAuthError&)); 41 MOCK_METHOD1(ShowUIError, void(UIError)); 42 MOCK_METHOD1(ShowEnrollmentStatus, void(policy::EnrollmentStatus status)); 43 }; 44 45 } // namespace chromeos 46 47 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_MOCK_ENROLLMENT_SCREEN_H_ 48