Update broken references to image assets
[chromium-blink-merge.git] / chrome / browser / chromeos / login / screens / mock_error_screen.cc
blob9bb300e0ff0f10d972e136fed88cd47a8f940fe6
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;
8 using ::testing::_;
10 namespace chromeos {
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() {
42 if (model_)
43 model_->OnViewDestroyed(this);
46 void MockNetworkErrorView::Bind(NetworkErrorModel& model) {
47 model_ = &model;
48 MockBind(model);
51 void MockNetworkErrorView::Unbind() {
52 model_ = nullptr;
53 MockUnbind();
56 } // namespace chromeos