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

Side by Side Diff: chromeos/network/network_connection_handler_unittest.cc

Issue 289383004: Merge FavoriteState into NetworkState (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
« no previous file with comments | « chromeos/network/network_connection_handler.cc ('k') | chromeos/network/network_handler.cc » ('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) 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
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
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
OLDNEW
« no previous file with comments | « chromeos/network/network_connection_handler.cc ('k') | chromeos/network/network_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698