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/chromeos/cros/mock_cryptohome_library.h" | 10 #include "chrome/browser/chromeos/cros/mock_cryptohome_library.h" |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 EXPECT_CALL(*mock_network_library_, Connected()) | 314 EXPECT_CALL(*mock_network_library_, Connected()) |
315 .Times(AnyNumber()) | 315 .Times(AnyNumber()) |
316 .WillRepeatedly((Return(false))) | 316 .WillRepeatedly((Return(false))) |
317 .RetiresOnSaturation(); | 317 .RetiresOnSaturation(); |
318 EXPECT_CALL(*mock_network_library_, Connecting()) | 318 EXPECT_CALL(*mock_network_library_, Connecting()) |
319 .Times(AnyNumber()) | 319 .Times(AnyNumber()) |
320 .WillRepeatedly((Return(false))) | 320 .WillRepeatedly((Return(false))) |
321 .RetiresOnSaturation(); | 321 .RetiresOnSaturation(); |
322 | 322 |
323 // NetworkMenu::InitMenuItems() calls: | 323 // NetworkMenu::InitMenuItems() calls: |
| 324 EXPECT_CALL(*mock_network_library_, IsLocked()) |
| 325 .Times(AnyNumber()) |
| 326 .WillRepeatedly((Return(false))) |
| 327 .RetiresOnSaturation(); |
324 EXPECT_CALL(*mock_network_library_, ethernet_connected()) | 328 EXPECT_CALL(*mock_network_library_, ethernet_connected()) |
325 .Times(1) | 329 .Times(1) |
326 .WillRepeatedly((Return(false))) | 330 .WillRepeatedly((Return(false))) |
327 .RetiresOnSaturation(); | 331 .RetiresOnSaturation(); |
328 EXPECT_CALL(*mock_network_library_, ethernet_connecting()) | 332 EXPECT_CALL(*mock_network_library_, ethernet_connecting()) |
329 .Times(1) | 333 .Times(1) |
330 .WillRepeatedly((Return(false))) | 334 .WillRepeatedly((Return(false))) |
331 .RetiresOnSaturation(); | 335 .RetiresOnSaturation(); |
332 } | 336 } |
333 | 337 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 test_api()->SetScreenLockLibrary(NULL, false); | 440 test_api()->SetScreenLockLibrary(NULL, false); |
437 if (mock_speech_synthesis_library_) | 441 if (mock_speech_synthesis_library_) |
438 test_api()->SetSpeechSynthesisLibrary(NULL, false); | 442 test_api()->SetSpeechSynthesisLibrary(NULL, false); |
439 if (mock_system_library_) | 443 if (mock_system_library_) |
440 test_api()->SetSystemLibrary(NULL, false); | 444 test_api()->SetSystemLibrary(NULL, false); |
441 if (mock_touchpad_library_) | 445 if (mock_touchpad_library_) |
442 test_api()->SetTouchpadLibrary(NULL, false); | 446 test_api()->SetTouchpadLibrary(NULL, false); |
443 } | 447 } |
444 | 448 |
445 } // namespace chromeos | 449 } // namespace chromeos |
OLD | NEW |