OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "chrome/browser/chromeos/cros/mock_network_library.h" | 7 #include "chrome/browser/chromeos/cros/mock_network_library.h" |
8 #include "chrome/browser/chromeos/login/screens/mock_error_screen.h" | 8 #include "chrome/browser/chromeos/login/screens/mock_error_screen.h" |
9 #include "chrome/browser/chromeos/login/screens/mock_screen_observer.h" | 9 #include "chrome/browser/chromeos/login/screens/mock_screen_observer.h" |
10 #include "chrome/browser/chromeos/login/screens/update_screen.h" | 10 #include "chrome/browser/chromeos/login/screens/update_screen.h" |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 // Second portal detection also returns NULL network and undefined | 346 // Second portal detection also returns NULL network and undefined |
347 // results. In this case, offline message should be displayed. | 347 // results. In this case, offline message should be displayed. |
348 EXPECT_CALL(*mock_error_screen_actor_, | 348 EXPECT_CALL(*mock_error_screen_actor_, |
349 SetUIState(ErrorScreen::UI_STATE_UPDATE)) | 349 SetUIState(ErrorScreen::UI_STATE_UPDATE)) |
350 .Times(1); | 350 .Times(1); |
351 EXPECT_CALL(*mock_error_screen_actor_, | 351 EXPECT_CALL(*mock_error_screen_actor_, |
352 SetErrorState(ErrorScreen::ERROR_STATE_OFFLINE, std::string())) | 352 SetErrorState(ErrorScreen::ERROR_STATE_OFFLINE, std::string())) |
353 .Times(1); | 353 .Times(1); |
354 EXPECT_CALL(*mock_screen_observer_, ShowErrorScreen()) | 354 EXPECT_CALL(*mock_screen_observer_, ShowErrorScreen()) |
355 .Times(1); | 355 .Times(1); |
356 MessageLoop::current()->RunUntilIdle(); | 356 base::MessageLoop::current()->RunUntilIdle(); |
357 NotifyPortalDetectionCompleted(); | 357 NotifyPortalDetectionCompleted(); |
358 } | 358 } |
359 | 359 |
360 } // namespace chromeos | 360 } // namespace chromeos |
OLD | NEW |