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

Side by Side Diff: chrome/browser/chromeos/login/screens/mock_device_disabled_screen_view.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_device_disabled_screen_acto r.h" 5 #include "chrome/browser/chromeos/login/screens/mock_device_disabled_screen_view .h"
6 6
7 using ::testing::AtLeast; 7 using ::testing::AtLeast;
8 using ::testing::AtMost; 8 using ::testing::AtMost;
9 using ::testing::NotNull; 9 using ::testing::NotNull;
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 MockDeviceDisabledScreenActor::MockDeviceDisabledScreenActor() 13 MockDeviceDisabledScreenView::MockDeviceDisabledScreenView()
14 : delegate_(nullptr) { 14 : delegate_(nullptr) {
15 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1)); 15 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1));
16 EXPECT_CALL(*this, MockSetDelegate(nullptr)).Times(AtMost(1)); 16 EXPECT_CALL(*this, MockSetDelegate(nullptr)).Times(AtMost(1));
17 } 17 }
18 18
19 MockDeviceDisabledScreenActor::~MockDeviceDisabledScreenActor() { 19 MockDeviceDisabledScreenView::~MockDeviceDisabledScreenView() {
20 if (delegate_) 20 if (delegate_)
21 delegate_->OnActorDestroyed(this); 21 delegate_->OnViewDestroyed(this);
22 } 22 }
23 23
24 void MockDeviceDisabledScreenActor::SetDelegate(Delegate* delegate) { 24 void MockDeviceDisabledScreenView::SetDelegate(Delegate* delegate) {
25 delegate_ = delegate; 25 delegate_ = delegate;
26 MockSetDelegate(delegate); 26 MockSetDelegate(delegate);
27 } 27 }
28 28
29 } // namespace chromeos 29 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698