OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/chromeos/cros/cros_mock.h" | 5 #include "chrome/browser/chromeos/cros/cros_mock.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "chrome/browser/browser.h" | 10 #include "chrome/browser/browser.h" |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 .WillRepeatedly((Return(false))) | 308 .WillRepeatedly((Return(false))) |
309 .RetiresOnSaturation(); | 309 .RetiresOnSaturation(); |
310 EXPECT_CALL(*mock_network_library_, wifi_networks()) | 310 EXPECT_CALL(*mock_network_library_, wifi_networks()) |
311 .Times(1) | 311 .Times(1) |
312 .WillRepeatedly((ReturnRef(wifi_networks_))) | 312 .WillRepeatedly((ReturnRef(wifi_networks_))) |
313 .RetiresOnSaturation(); | 313 .RetiresOnSaturation(); |
314 EXPECT_CALL(*mock_network_library_, wifi_available()) | 314 EXPECT_CALL(*mock_network_library_, wifi_available()) |
315 .Times(1) | 315 .Times(1) |
316 .WillRepeatedly((Return(false))) | 316 .WillRepeatedly((Return(false))) |
317 .RetiresOnSaturation(); | 317 .RetiresOnSaturation(); |
318 EXPECT_CALL(*mock_network_library_, wifi_name()) | 318 EXPECT_CALL(*mock_network_library_, wifi_network()) |
319 .Times(1) | 319 .Times(1) |
320 .WillRepeatedly((ReturnRef(empty_string_))) | 320 .WillRepeatedly((ReturnRef(wifi_network_))) |
321 .RetiresOnSaturation(); | 321 .RetiresOnSaturation(); |
322 EXPECT_CALL(*mock_network_library_, cellular_networks()) | 322 EXPECT_CALL(*mock_network_library_, cellular_networks()) |
323 .Times(1) | 323 .Times(1) |
324 .WillRepeatedly((ReturnRef(cellular_networks_))) | 324 .WillRepeatedly((ReturnRef(cellular_networks_))) |
325 .RetiresOnSaturation(); | 325 .RetiresOnSaturation(); |
326 EXPECT_CALL(*mock_network_library_, cellular_name()) | 326 EXPECT_CALL(*mock_network_library_, cellular_network()) |
327 .Times(1) | 327 .Times(1) |
328 .WillRepeatedly((ReturnRef(empty_string_))) | 328 .WillRepeatedly((ReturnRef(cellular_network_))) |
329 .RetiresOnSaturation(); | 329 .RetiresOnSaturation(); |
330 EXPECT_CALL(*mock_network_library_, cellular_available()) | 330 EXPECT_CALL(*mock_network_library_, cellular_available()) |
331 .Times(1) | 331 .Times(1) |
332 .WillRepeatedly((Return(false))) | 332 .WillRepeatedly((Return(false))) |
333 .RetiresOnSaturation(); | 333 .RetiresOnSaturation(); |
334 | 334 |
335 EXPECT_CALL(*mock_network_library_, RemoveObserver(_)) | 335 EXPECT_CALL(*mock_network_library_, RemoveObserver(_)) |
336 .Times(1) | 336 .Times(1) |
337 .RetiresOnSaturation(); | 337 .RetiresOnSaturation(); |
338 } | 338 } |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 test_api()->SetScreenLockLibrary(NULL, false); | 436 test_api()->SetScreenLockLibrary(NULL, false); |
437 if (mock_speech_synthesis_library_) | 437 if (mock_speech_synthesis_library_) |
438 test_api()->SetSpeechSynthesisLibrary(NULL, false); | 438 test_api()->SetSpeechSynthesisLibrary(NULL, false); |
439 if (mock_system_library_) | 439 if (mock_system_library_) |
440 test_api()->SetSystemLibrary(NULL, false); | 440 test_api()->SetSystemLibrary(NULL, false); |
441 if (mock_touchpad_library_) | 441 if (mock_touchpad_library_) |
442 test_api()->SetTouchpadLibrary(NULL, false); | 442 test_api()->SetTouchpadLibrary(NULL, false); |
443 } | 443 } |
444 | 444 |
445 } // namespace chromeos | 445 } // namespace chromeos |
OLD | NEW |