Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / chromeos / login / screens / mock_enable_debugging_screen.cc
bloba6a5ad4dc4053e71feafe155f507900b68a8a442
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_enable_debugging_screen.h"
7 using ::testing::AtLeast;
8 using ::testing::NotNull;
10 namespace chromeos {
12 MockEnableDebuggingScreen::MockEnableDebuggingScreen(
13 BaseScreenDelegate* base_screen_delegate,
14 EnableDebuggingScreenActor* actor)
15 : EnableDebuggingScreen(base_screen_delegate, actor) {
18 MockEnableDebuggingScreen::~MockEnableDebuggingScreen() {
21 MockEnableDebuggingScreenActor::MockEnableDebuggingScreenActor() {
22 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1));
25 MockEnableDebuggingScreenActor::~MockEnableDebuggingScreenActor() {
26 if (delegate_)
27 delegate_->OnActorDestroyed(this);
30 void MockEnableDebuggingScreenActor::SetDelegate(
31 EnableDebuggingScreenActor::Delegate* delegate) {
32 delegate_ = delegate;
33 MockSetDelegate(delegate);
36 } // namespace chromeos