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

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

Issue 2700303002: cros: Unify oobe View/Actor naming to just View. (Closed)
Patch Set: Rebase Created 3 years, 10 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 MockEnableDebuggingScreen::MockEnableDebuggingScreen(
13 BaseScreenDelegate* base_screen_delegate, 13 BaseScreenDelegate* base_screen_delegate,
14 EnableDebuggingScreenActor* actor) 14 EnableDebuggingScreenView* view)
15 : EnableDebuggingScreen(base_screen_delegate, actor) { 15 : EnableDebuggingScreen(base_screen_delegate, view) {}
16 }
17 16
18 MockEnableDebuggingScreen::~MockEnableDebuggingScreen() { 17 MockEnableDebuggingScreen::~MockEnableDebuggingScreen() {
19 } 18 }
20 19
21 MockEnableDebuggingScreenActor::MockEnableDebuggingScreenActor() { 20 MockEnableDebuggingScreenView::MockEnableDebuggingScreenView() {
22 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1)); 21 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1));
23 } 22 }
24 23
25 MockEnableDebuggingScreenActor::~MockEnableDebuggingScreenActor() { 24 MockEnableDebuggingScreenView::~MockEnableDebuggingScreenView() {
26 if (delegate_) 25 if (delegate_)
27 delegate_->OnActorDestroyed(this); 26 delegate_->OnViewDestroyed(this);
28 } 27 }
29 28
30 void MockEnableDebuggingScreenActor::SetDelegate( 29 void MockEnableDebuggingScreenView::SetDelegate(
31 EnableDebuggingScreenActor::Delegate* delegate) { 30 EnableDebuggingScreenView::Delegate* delegate) {
32 delegate_ = delegate; 31 delegate_ = delegate;
33 MockSetDelegate(delegate); 32 MockSetDelegate(delegate);
34 } 33 }
35 34
36 } // namespace chromeos 35 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698