Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / chromeos / login / enrollment / mock_auto_enrollment_check_screen.h
blobb6dd5e142b8d3ed3a600b78217057d2cb94f992d
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_ENROLLMENT_MOCK_AUTO_ENROLLMENT_CHECK_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_MOCK_AUTO_ENROLLMENT_CHECK_SCREEN_H_
8 #include "chrome/browser/chromeos/login/enrollment/auto_enrollment_check_screen.h"
9 #include "chrome/browser/chromeos/login/enrollment/auto_enrollment_check_screen_actor.h"
10 #include "testing/gmock/include/gmock/gmock.h"
12 namespace chromeos {
14 class MockAutoEnrollmentCheckScreen : public AutoEnrollmentCheckScreen {
15 public:
16 MockAutoEnrollmentCheckScreen(BaseScreenDelegate* base_screen_delegate,
17 AutoEnrollmentCheckScreenActor* actor);
18 ~MockAutoEnrollmentCheckScreen() override;
21 class MockAutoEnrollmentCheckScreenActor
22 : public AutoEnrollmentCheckScreenActor {
23 public:
24 MockAutoEnrollmentCheckScreenActor();
25 ~MockAutoEnrollmentCheckScreenActor() override;
27 void SetDelegate(Delegate* screen) override;
29 MOCK_METHOD1(MockSetDelegate, void(Delegate* screen));
30 MOCK_METHOD0(Show, void());
32 private:
33 Delegate* screen_;
36 } // namespace chromeos
38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_MOCK_AUTO_ENROLLMENT_CHECK_SCREEN_H_