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
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/login/screens/mock_wrong_hwid_screen.h"
7 using testing::AtLeast
;
8 using testing::NotNull
;
12 MockWrongHWIDScreen::MockWrongHWIDScreen(
13 BaseScreenDelegate
* base_screen_delegate
,
14 WrongHWIDScreenActor
* actor
)
15 : WrongHWIDScreen(base_screen_delegate
, actor
) {
18 MockWrongHWIDScreen::~MockWrongHWIDScreen() {
21 MockWrongHWIDScreenActor::MockWrongHWIDScreenActor() : delegate_(nullptr) {
22 EXPECT_CALL(*this, MockSetDelegate(NotNull())).Times(AtLeast(1));
25 MockWrongHWIDScreenActor::~MockWrongHWIDScreenActor() {
27 delegate_
->OnActorDestroyed(this);
30 void MockWrongHWIDScreenActor::SetDelegate(Delegate
* delegate
) {
32 MockSetDelegate(delegate
);
35 } // namespace chromeos