Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / screens / mock_network_screen.cc
blob908a3106b8fce176acda8aa305d4de39facb332d
1 // Copyright (c) 2012 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_network_screen.h"
7 namespace chromeos {
9 using ::testing::AtLeast;
10 using ::testing::NotNull;
12 MockNetworkScreen::MockNetworkScreen(ScreenObserver* observer,
13 NetworkScreenActor* actor)
14 : NetworkScreen(observer, actor) {
17 MockNetworkScreen::~MockNetworkScreen() {
21 MockNetworkScreenActor::MockNetworkScreenActor() {
22 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1));
25 MockNetworkScreenActor::~MockNetworkScreenActor() {
26 if (delegate_)
27 delegate_->OnActorDestroyed(this);
30 void MockNetworkScreenActor::SetDelegate(Delegate* delegate) {
31 delegate_ = delegate;
32 MockSetDelegate(delegate);
35 } // namespace chromeos