Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(954)

Side by Side Diff: chrome/browser/chromeos/login/enrollment/mock_auto_enrollment_check_screen.cc

Issue 289133002: Add a enterprise enrollment check screen to OOBE in ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adjusted tests and replaced webkit-box with flex. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/login/enrollment/mock_auto_enrollment_check_sc reen.h"
6
7 using ::testing::AtLeast;
8 using ::testing::NotNull;
9
10 namespace chromeos {
11
12 MockAutoEnrollmentCheckScreen::MockAutoEnrollmentCheckScreen(
13 ScreenObserver* screen_observer,
14 AutoEnrollmentCheckScreenActor* actor)
15 : AutoEnrollmentCheckScreen(screen_observer,
16 actor) {
17 }
18
19 MockAutoEnrollmentCheckScreen::~MockAutoEnrollmentCheckScreen() { }
20
21 MockAutoEnrollmentCheckScreenActor::MockAutoEnrollmentCheckScreenActor()
22 : screen_(NULL) {
23 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1));
24 }
25
26
27 MockAutoEnrollmentCheckScreenActor::~MockAutoEnrollmentCheckScreenActor() {
28 if (screen_)
29 screen_->OnActorDestroyed(this);
30 }
31
32 void MockAutoEnrollmentCheckScreenActor::SetDelegate(Delegate* screen) {
33 screen_ = screen;
34 MockSetDelegate(screen);
35 }
36
37 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698