Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / screens / mock_eula_screen.cc
blob4b28375b0b0b2732ee90eddcd4b5ba1ff43b35a5
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_eula_screen.h"
7 namespace chromeos {
9 using ::testing::AtLeast;
10 using ::testing::NotNull;
12 MockEulaScreen::MockEulaScreen(ScreenObserver* screen_observer,
13 EulaScreenActor* actor)
14 : EulaScreen(screen_observer, actor) {
17 MockEulaScreen::~MockEulaScreen() {
20 void MockEulaScreenActor::SetDelegate(Delegate* delegate) {
21 delegate_ = delegate;
22 MockSetDelegate(delegate);
25 MockEulaScreenActor::MockEulaScreenActor() {
26 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1));
29 MockEulaScreenActor::~MockEulaScreenActor() {
30 if (delegate_)
31 delegate_->OnActorDestroyed(this);
34 } // namespace chromeos