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

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

Issue 4235005: Push for ers:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « chrome/browser/browser_init.cc ('k') | chrome/browser/chromeos/cros/mock_network_library.h » ('j') | 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/browser.h" 10 #include "chrome/browser/browser.h"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 EXPECT_CALL(*mock_input_method_library_, StopInputMethodProcesses()) 266 EXPECT_CALL(*mock_input_method_library_, StopInputMethodProcesses())
267 .Times(AnyNumber()) 267 .Times(AnyNumber())
268 .RetiresOnSaturation(); 268 .RetiresOnSaturation();
269 } 269 }
270 270
271 void CrosMock::SetNetworkLibraryStatusAreaExpectations() { 271 void CrosMock::SetNetworkLibraryStatusAreaExpectations() {
272 EXPECT_CALL(*mock_network_library_, AddObserver(_)) 272 EXPECT_CALL(*mock_network_library_, AddObserver(_))
273 .Times(1) 273 .Times(1)
274 .RetiresOnSaturation(); 274 .RetiresOnSaturation();
275 275
276 // NetworkDropdownButton::NetworkChanged() calls: 276 // NetworkDropdownButton::OnNetworkManagerChanged() calls:
277 EXPECT_CALL(*mock_network_library_, ethernet_connected()) 277 EXPECT_CALL(*mock_network_library_, ethernet_connected())
278 .Times(1) 278 .Times(1)
279 .WillRepeatedly((Return(false))) 279 .WillRepeatedly((Return(false)))
280 .RetiresOnSaturation(); 280 .RetiresOnSaturation();
281 EXPECT_CALL(*mock_network_library_, wifi_connected()) 281 EXPECT_CALL(*mock_network_library_, wifi_connected())
282 .Times(1) 282 .Times(1)
283 .WillRepeatedly((Return(false))) 283 .WillRepeatedly((Return(false)))
284 .RetiresOnSaturation(); 284 .RetiresOnSaturation();
285 EXPECT_CALL(*mock_network_library_, wifi_connecting()) 285 EXPECT_CALL(*mock_network_library_, wifi_connecting())
286 .Times(1) 286 .Times(1)
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 test_api()->SetScreenLockLibrary(NULL, false); 432 test_api()->SetScreenLockLibrary(NULL, false);
433 if (mock_speech_synthesis_library_) 433 if (mock_speech_synthesis_library_)
434 test_api()->SetSpeechSynthesisLibrary(NULL, false); 434 test_api()->SetSpeechSynthesisLibrary(NULL, false);
435 if (mock_system_library_) 435 if (mock_system_library_)
436 test_api()->SetSystemLibrary(NULL, false); 436 test_api()->SetSystemLibrary(NULL, false);
437 if (mock_touchpad_library_) 437 if (mock_touchpad_library_)
438 test_api()->SetTouchpadLibrary(NULL, false); 438 test_api()->SetTouchpadLibrary(NULL, false);
439 } 439 }
440 440
441 } // namespace chromeos 441 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/browser_init.cc ('k') | chrome/browser/chromeos/cros/mock_network_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698