| OLD | NEW |
| 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 "chromeos/network/network_connection_handler.h" | 5 #include "chromeos/network/network_connection_handler.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 "profile_path", std::string() /* shared profile */); | 94 "profile_path", std::string() /* shared profile */); |
| 95 | 95 |
| 96 base::RunLoop().RunUntilIdle(); | 96 base::RunLoop().RunUntilIdle(); |
| 97 LoginState::Initialize(); | 97 LoginState::Initialize(); |
| 98 network_state_handler_.reset(NetworkStateHandler::InitializeForTest()); | 98 network_state_handler_.reset(NetworkStateHandler::InitializeForTest()); |
| 99 network_config_handler_.reset( | 99 network_config_handler_.reset( |
| 100 NetworkConfigurationHandler::InitializeForTest( | 100 NetworkConfigurationHandler::InitializeForTest( |
| 101 network_state_handler_.get())); | 101 network_state_handler_.get())); |
| 102 | 102 |
| 103 network_profile_handler_.reset(new NetworkProfileHandler()); | 103 network_profile_handler_.reset(new NetworkProfileHandler()); |
| 104 network_profile_handler_->Init(network_state_handler_.get()); | 104 network_profile_handler_->Init(); |
| 105 | 105 |
| 106 managed_config_handler_.reset(new ManagedNetworkConfigurationHandlerImpl()); | 106 managed_config_handler_.reset(new ManagedNetworkConfigurationHandlerImpl()); |
| 107 managed_config_handler_->Init(network_state_handler_.get(), | 107 managed_config_handler_->Init(network_state_handler_.get(), |
| 108 network_profile_handler_.get(), | 108 network_profile_handler_.get(), |
| 109 network_config_handler_.get(), | 109 network_config_handler_.get(), |
| 110 NULL /* network_device_handler */); | 110 NULL /* network_device_handler */); |
| 111 | 111 |
| 112 network_connection_handler_.reset(new NetworkConnectionHandler); | 112 network_connection_handler_.reset(new NetworkConnectionHandler); |
| 113 network_connection_handler_->Init(network_state_handler_.get(), | 113 network_connection_handler_->Init(network_state_handler_.get(), |
| 114 network_config_handler_.get(), | 114 network_config_handler_.get(), |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 GetServiceStringProperty("wifi1", shill::kStateProperty)); | 456 GetServiceStringProperty("wifi1", shill::kStateProperty)); |
| 457 | 457 |
| 458 SetupPolicy(); | 458 SetupPolicy(); |
| 459 EXPECT_EQ(shill::kStateIdle, | 459 EXPECT_EQ(shill::kStateIdle, |
| 460 GetServiceStringProperty("wifi0", shill::kStateProperty)); | 460 GetServiceStringProperty("wifi0", shill::kStateProperty)); |
| 461 EXPECT_EQ(shill::kStateOnline, | 461 EXPECT_EQ(shill::kStateOnline, |
| 462 GetServiceStringProperty("wifi1", shill::kStateProperty)); | 462 GetServiceStringProperty("wifi1", shill::kStateProperty)); |
| 463 } | 463 } |
| 464 | 464 |
| 465 } // namespace chromeos | 465 } // namespace chromeos |
| OLD | NEW |