| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/login/enrollment/mock_auto_enrollment_check_sc
reen.h" | 5 #include "chrome/browser/chromeos/login/enrollment/mock_auto_enrollment_check_sc
reen.h" |
| 6 | 6 |
| 7 using ::testing::AtLeast; | 7 using ::testing::AtLeast; |
| 8 using ::testing::NotNull; | 8 using ::testing::NotNull; |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| 11 | 11 |
| 12 MockAutoEnrollmentCheckScreen::MockAutoEnrollmentCheckScreen( | 12 MockAutoEnrollmentCheckScreen::MockAutoEnrollmentCheckScreen( |
| 13 ScreenObserver* screen_observer, | 13 BaseScreenDelegate* base_screen_delegate, |
| 14 AutoEnrollmentCheckScreenActor* actor) | 14 AutoEnrollmentCheckScreenActor* actor) |
| 15 : AutoEnrollmentCheckScreen(screen_observer, | 15 : AutoEnrollmentCheckScreen(base_screen_delegate, actor) { |
| 16 actor) { | |
| 17 } | 16 } |
| 18 | 17 |
| 19 MockAutoEnrollmentCheckScreen::~MockAutoEnrollmentCheckScreen() { } | 18 MockAutoEnrollmentCheckScreen::~MockAutoEnrollmentCheckScreen() { } |
| 20 | 19 |
| 21 MockAutoEnrollmentCheckScreenActor::MockAutoEnrollmentCheckScreenActor() | 20 MockAutoEnrollmentCheckScreenActor::MockAutoEnrollmentCheckScreenActor() |
| 22 : screen_(NULL) { | 21 : screen_(NULL) { |
| 23 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1)); | 22 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1)); |
| 24 } | 23 } |
| 25 | 24 |
| 26 | 25 |
| 27 MockAutoEnrollmentCheckScreenActor::~MockAutoEnrollmentCheckScreenActor() { | 26 MockAutoEnrollmentCheckScreenActor::~MockAutoEnrollmentCheckScreenActor() { |
| 28 if (screen_) | 27 if (screen_) |
| 29 screen_->OnActorDestroyed(this); | 28 screen_->OnActorDestroyed(this); |
| 30 } | 29 } |
| 31 | 30 |
| 32 void MockAutoEnrollmentCheckScreenActor::SetDelegate(Delegate* screen) { | 31 void MockAutoEnrollmentCheckScreenActor::SetDelegate(Delegate* screen) { |
| 33 screen_ = screen; | 32 screen_ = screen; |
| 34 MockSetDelegate(screen); | 33 MockSetDelegate(screen); |
| 35 } | 34 } |
| 36 | 35 |
| 37 } // namespace chromeos | 36 } // namespace chromeos |
| OLD | NEW |