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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 .RetiresOnSaturation(); | 88 .RetiresOnSaturation(); |
89 EXPECT_CALL(*mock_network_library_, AddNetworkManagerObserver(_)) | 89 EXPECT_CALL(*mock_network_library_, AddNetworkManagerObserver(_)) |
90 .Times(1) | 90 .Times(1) |
91 .RetiresOnSaturation(); | 91 .RetiresOnSaturation(); |
92 EXPECT_CALL(*mock_network_library_, AddUserActionObserver(_)) | 92 EXPECT_CALL(*mock_network_library_, AddUserActionObserver(_)) |
93 .Times(AnyNumber()); | 93 .Times(AnyNumber()); |
94 EXPECT_CALL(*mock_network_library_, FindWifiDevice()) | 94 EXPECT_CALL(*mock_network_library_, FindWifiDevice()) |
95 .Times(AnyNumber()); | 95 .Times(AnyNumber()); |
96 EXPECT_CALL(*mock_network_library_, FindEthernetDevice()) | 96 EXPECT_CALL(*mock_network_library_, FindEthernetDevice()) |
97 .Times(AnyNumber()); | 97 .Times(AnyNumber()); |
98 EXPECT_CALL(*mock_network_library_, LoadOncNetworks(_, _, _, _)) | 98 EXPECT_CALL(*mock_network_library_, LoadOncNetworks(_, _)) |
99 .WillRepeatedly(Return(true)); | 99 .Times(AnyNumber()); |
100 EXPECT_CALL(*mock_network_library_, | 100 EXPECT_CALL(*mock_network_library_, |
101 FindNetworkByPath(kDefaultEthernetServicePath)) | 101 FindNetworkByPath(kDefaultEthernetServicePath)) |
102 .Times(AnyNumber()) | 102 .Times(AnyNumber()) |
103 .WillRepeatedly((Return(stub_ethernet_.get()))); | 103 .WillRepeatedly((Return(stub_ethernet_.get()))); |
104 EXPECT_CALL(*mock_network_library_, | 104 EXPECT_CALL(*mock_network_library_, |
105 FindNetworkByPath(kDefaultWifiServicePath)) | 105 FindNetworkByPath(kDefaultWifiServicePath)) |
106 .Times(AnyNumber()) | 106 .Times(AnyNumber()) |
107 .WillRepeatedly((Return(stub_wifi_.get()))); | 107 .WillRepeatedly((Return(stub_wifi_.get()))); |
108 | 108 |
109 // Setup network portal detector to return online state for both | 109 // Setup network portal detector to return online state for both |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 // Update screen will show message about proxy error because wifie | 379 // Update screen will show message about proxy error because wifie |
380 // network requires proxy authentication. | 380 // network requires proxy authentication. |
381 EXPECT_CALL(*mock_error_screen_actor_, | 381 EXPECT_CALL(*mock_error_screen_actor_, |
382 SetErrorState(ErrorScreen::ERROR_STATE_PROXY, std::string())) | 382 SetErrorState(ErrorScreen::ERROR_STATE_PROXY, std::string())) |
383 .Times(1); | 383 .Times(1); |
384 | 384 |
385 NotifyPortalDetectionCompleted(); | 385 NotifyPortalDetectionCompleted(); |
386 } | 386 } |
387 | 387 |
388 } // namespace chromeos | 388 } // namespace chromeos |
OLD | NEW |