Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Side by Side Diff: chrome/browser/chromeos/cros/cros_mock.cc

Issue 6385002: Add expectation for NetworkLibrary.IsLocked (fix for 6292008) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change expectation to AnyNumber() Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698