Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / screens / mock_update_screen.cc
blob80f12f84a0671430074c68ebe0e798d8a3d3327e
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"
7 namespace chromeos {
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()
21 : screen_(NULL) {
22 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1));
25 MockUpdateScreenActor::~MockUpdateScreenActor() {
26 if (screen_)
27 screen_->OnActorDestroyed(this);
30 void MockUpdateScreenActor::SetDelegate(UpdateScreenActor::Delegate* screen) {
31 screen_ = screen;
32 MockSetDelegate(screen);
35 } // namespace chromeos