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

Unified Diff: chromeos/network/network_connection_handler_unittest.cc

Issue 2478573003: NetworkStateHandler::InitializeForTest() should return a std::unique_ptr. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/network/network_connection_handler_unittest.cc
diff --git a/chromeos/network/network_connection_handler_unittest.cc b/chromeos/network/network_connection_handler_unittest.cc
index 729ec1eafcb62b0a5ae0d2f4a7042faeaeb21d92..0a00870fbc454e6f786e4a1e28a9a5a4f25444e2 100644
--- a/chromeos/network/network_connection_handler_unittest.cc
+++ b/chromeos/network/network_connection_handler_unittest.cc
@@ -134,7 +134,7 @@ class NetworkConnectionHandlerTest : public testing::Test {
base::RunLoop().RunUntilIdle();
LoginState::Initialize();
- network_state_handler_.reset(NetworkStateHandler::InitializeForTest());
+ network_state_handler_ = NetworkStateHandler::InitializeForTest();
network_config_handler_.reset(
NetworkConfigurationHandler::InitializeForTest(
network_state_handler_.get(),

Powered by Google App Engine
This is Rietveld 408576698