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

Unified Diff: chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc

Issue 14729017: Add NetworkHandler to own network handlers in src/chromeos/network (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos_unittests Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc
diff --git a/chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc b/chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc
index 292ad2eca4b21a0a060764c206b3acbf087d3011..74807a7719f0461e93cd748dd0a95dd968bc58d2 100644
--- a/chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc
+++ b/chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc
@@ -47,7 +47,7 @@ class NetworkPortalDetectorImplTest
virtual void SetUp() {
DBusThreadManager::InitializeWithStub();
- SetupNetworkStateHandler();
+ SetupNetworkHandler();
profile_.reset(new TestingProfile());
network_portal_detector_.reset(
@@ -64,7 +64,7 @@ class NetworkPortalDetectorImplTest
virtual void TearDown() {
network_portal_detector_->Shutdown();
profile_.reset();
- NetworkStateHandler::Shutdown();
+ NetworkHandler::Shutdown();
DBusThreadManager::Shutdown();
}
@@ -72,7 +72,8 @@ class NetworkPortalDetectorImplTest
int response_code,
const std::string& network_service_path) {
const NetworkState* network =
- NetworkStateHandler::Get()->GetNetworkState(network_service_path);
+ NetworkHandler::Get()->network_state_handler()->GetNetworkState(
+ network_service_path);
NetworkPortalDetector::CaptivePortalState state =
network_portal_detector()->GetCaptivePortalState(network);
ASSERT_EQ(status, state.status);
@@ -170,7 +171,7 @@ class NetworkPortalDetectorImplTest
}
void SetNetworkDeviceEnabled(const std::string& type, bool enabled) {
- NetworkStateHandler::Get()->SetTechnologyEnabled(
+ NetworkHandler::Get()->network_state_handler()->SetTechnologyEnabled(
type, enabled, network_handler::ErrorCallback());
MessageLoop::current()->RunUntilIdle();
}
@@ -208,9 +209,9 @@ class NetworkPortalDetectorImplTest
add_to_watchlist);
}
- void SetupNetworkStateHandler() {
+ void SetupNetworkHandler() {
SetupDefaultShillState();
- NetworkStateHandler::Initialize();
+ NetworkHandler::Initialize();
}
MessageLoop message_loop_;
« no previous file with comments | « chrome/browser/chromeos/net/network_portal_detector_impl.cc ('k') | chrome/browser/chromeos/network_login_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698