Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: chrome/browser/chromeos/login/screens/mock_core_oobe_view.cc

Issue 2738973003: cros: WIP patch to remove EnableDebuggingScreenView
Patch Set: Initial upload Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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/screens/mock_enable_debugging_screen.h" 5 #include "chrome/browser/chromeos/login/screens/mock_enable_debugging_screen.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 MockEnableDebuggingScreen::MockEnableDebuggingScreen( 12 MockCoreOobeView::MockCoreOobeView() {
13 BaseScreenDelegate* base_screen_delegate,
14 EnableDebuggingScreenView* view)
15 : EnableDebuggingScreen(base_screen_delegate, view) {}
16
17 MockEnableDebuggingScreen::~MockEnableDebuggingScreen() {
18 }
19
20 MockEnableDebuggingScreenView::MockEnableDebuggingScreenView() {
21 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1)); 13 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1));
22 } 14 }
23 15
24 MockEnableDebuggingScreenView::~MockEnableDebuggingScreenView() { 16 MockCoreOobeView::~MockCoreOobeView() {
25 if (delegate_) 17 if (delegate_)
26 delegate_->OnViewDestroyed(this); 18 delegate_->OnViewDestroyed(this);
27 } 19 }
28 20
29 void MockEnableDebuggingScreenView::SetDelegate( 21 void MockCoreOobeView::SetDelegate(CoreOobeView::Delegate* delegate) {
30 EnableDebuggingScreenView::Delegate* delegate) {
31 delegate_ = delegate; 22 delegate_ = delegate;
32 MockSetDelegate(delegate); 23 MockSetDelegate(delegate);
33 } 24 }
34 25
35 } // namespace chromeos 26 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698