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

Side by Side Diff: chrome/browser/chromeos/login/wizard_controller_browsertest.cc

Issue 299403012: Clean up shill fake implementations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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
OLDNEW
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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/prefs/pref_registry_simple.h" 9 #include "base/prefs/pref_registry_simple.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 net::URLFetcherImpl::set_factory(NULL); 420 net::URLFetcherImpl::set_factory(NULL);
421 fetcher_factory_.reset( 421 fetcher_factory_.reset(
422 new net::FakeURLFetcherFactory(fallback_fetcher_factory_.get())); 422 new net::FakeURLFetcherFactory(fallback_fetcher_factory_.get()));
423 423
424 network_portal_detector_ = new NetworkPortalDetectorTestImpl(); 424 network_portal_detector_ = new NetworkPortalDetectorTestImpl();
425 NetworkPortalDetector::InitializeForTesting(network_portal_detector_); 425 NetworkPortalDetector::InitializeForTesting(network_portal_detector_);
426 426
427 NetworkPortalDetector::CaptivePortalState online_state; 427 NetworkPortalDetector::CaptivePortalState online_state;
428 online_state.status = NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_ONLINE; 428 online_state.status = NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_ONLINE;
429 online_state.response_code = 204; 429 online_state.response_code = 204;
430 // Default detworks happens to be usually "eth1" in tests.
431 network_portal_detector_->SetDefaultNetworkPathForTesting( 430 network_portal_detector_->SetDefaultNetworkPathForTesting(
432 NetworkHandler::Get() 431 NetworkHandler::Get()
433 ->network_state_handler() 432 ->network_state_handler()
434 ->DefaultNetwork() 433 ->DefaultNetwork()
435 ->path()); 434 ->path());
436 network_portal_detector_->SetDetectionResultsForTesting( 435 network_portal_detector_->SetDetectionResultsForTesting(
437 NetworkHandler::Get() 436 NetworkHandler::Get()
438 ->network_state_handler() 437 ->network_state_handler()
439 ->DefaultNetwork() 438 ->DefaultNetwork()
440 ->path(), 439 ->path(),
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 1090
1092 // TODO(nkostylev): Add test for WebUI accelerators http://crosbug.com/22571 1091 // TODO(nkostylev): Add test for WebUI accelerators http://crosbug.com/22571
1093 1092
1094 // TODO(merkulova): Add tests for bluetooth HID detection screen variations when 1093 // TODO(merkulova): Add tests for bluetooth HID detection screen variations when
1095 // UI and logic is ready. http://crbug.com/127016 1094 // UI and logic is ready. http://crbug.com/127016
1096 1095
1097 COMPILE_ASSERT(ScreenObserver::EXIT_CODES_COUNT == 21, 1096 COMPILE_ASSERT(ScreenObserver::EXIT_CODES_COUNT == 21,
1098 add_tests_for_new_control_flow_you_just_introduced); 1097 add_tests_for_new_control_flow_you_just_introduced);
1099 1098
1100 } // namespace chromeos 1099 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698