1 // Copyright (c) 2013 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_error_screen.h"
7 using ::testing::AtLeast
;
12 MockErrorScreen::MockErrorScreen(BaseScreenDelegate
* base_screen_delegate
,
13 NetworkErrorView
* view
)
14 : ErrorScreen(base_screen_delegate
, view
) {
17 MockErrorScreen::~MockErrorScreen() {
20 void MockErrorScreen::FixCaptivePortal() {
21 ErrorScreen::FixCaptivePortal();
22 MockFixCaptivePortal();
25 void MockErrorScreen::SetUIState(NetworkError::UIState ui_state
) {
26 ErrorScreen::SetUIState(ui_state
);
27 MockSetUIState(ui_state
);
30 void MockErrorScreen::SetErrorState(NetworkError::ErrorState error_state
,
31 const std::string
& network
) {
32 ErrorScreen::SetErrorState(error_state
, network
);
33 MockSetErrorState(error_state
, network
);
36 MockNetworkErrorView::MockNetworkErrorView() : model_(nullptr) {
37 EXPECT_CALL(*this, MockBind(_
)).Times(AtLeast(1));
38 EXPECT_CALL(*this, MockUnbind()).Times(AtLeast(1));
41 MockNetworkErrorView::~MockNetworkErrorView() {
43 model_
->OnViewDestroyed(this);
46 void MockNetworkErrorView::Bind(NetworkErrorModel
& model
) {
51 void MockNetworkErrorView::Unbind() {
56 } // namespace chromeos