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.
5 #include "chrome/browser/chromeos/login/screens/mock_update_screen.h"
9 using ::testing::AtLeast
;
10 using ::testing::NotNull
;
12 MockUpdateScreen::MockUpdateScreen(ScreenObserver
* screen_observer
,
13 UpdateScreenActor
* actor
)
14 : UpdateScreen(screen_observer
, actor
) {
17 MockUpdateScreen::~MockUpdateScreen() {
20 MockUpdateScreenActor::MockUpdateScreenActor()
22 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1));
25 MockUpdateScreenActor::~MockUpdateScreenActor() {
27 screen_
->OnActorDestroyed(this);
30 void MockUpdateScreenActor::SetDelegate(UpdateScreenActor::Delegate
* screen
) {
32 MockSetDelegate(screen
);
35 } // namespace chromeos