OLD | NEW |
(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 |
OLD | NEW |