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

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

Issue 539273002: Added UI to enable debugging features on CrOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
(Empty)
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.
4
5 #include "chrome/browser/chromeos/login/screens/mock_enable_debugging_screen.h"
6
7 using ::testing::AtLeast;
8 using ::testing::NotNull;
9
10 namespace chromeos {
11
12 MockEnableDebuggingScreen::MockEnableDebuggingScreen(
13 BaseScreenDelegate* base_screen_delegate,
14 EnableDebuggingScreenActor* actor)
15 : EnableDebuggingScreen(base_screen_delegate, actor) {
16 }
17
18 MockEnableDebuggingScreen::~MockEnableDebuggingScreen() {
19 }
20
21 MockEnableDebuggingScreenActor::MockEnableDebuggingScreenActor() {
22 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1));
23 }
24
25 MockEnableDebuggingScreenActor::~MockEnableDebuggingScreenActor() {
26 if (delegate_)
27 delegate_->OnActorDestroyed(this);
28 }
29
30 void MockEnableDebuggingScreenActor::SetDelegate(
31 EnableDebuggingScreenActor::Delegate* delegate) {
32 delegate_ = delegate;
33 MockSetDelegate(delegate);
34 }
35
36 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/mock_enable_debugging_screen.h ('k') | chrome/browser/chromeos/login/ui/login_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698