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

Unified Diff: chromeos/network/network_connection_handler_impl_unittest.cc

Issue 2861883002: [CrOS Tether] Transform NetworkConnectionHandler to an interface. (Closed)
Patch Set: stevenjb@ comments. Created 3 years, 8 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: chromeos/network/network_connection_handler_impl_unittest.cc
diff --git a/chromeos/network/network_connection_handler_unittest.cc b/chromeos/network/network_connection_handler_impl_unittest.cc
similarity index 98%
rename from chromeos/network/network_connection_handler_unittest.cc
rename to chromeos/network/network_connection_handler_impl_unittest.cc
index 81bbd421c1c56c188b70ac159f9d9a7a9bda3f5b..6a1e951c857b7e859e705de1266df6e0d6147f4e 100644
--- a/chromeos/network/network_connection_handler_unittest.cc
+++ b/chromeos/network/network_connection_handler_impl_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chromeos/network/network_connection_handler.h"
+#include "chromeos/network/network_connection_handler_impl.h"
#include <map>
#include <memory>
@@ -152,7 +152,7 @@ class NetworkConnectionHandlerTest : public NetworkStateTest {
network_config_handler_.get(), nullptr /* network_device_handler */,
nullptr /* prohibited_tecnologies_handler */);
- network_connection_handler_.reset(new NetworkConnectionHandler);
+ network_connection_handler_.reset(new NetworkConnectionHandlerImpl());
network_connection_handler_->Init(network_state_handler(),
network_config_handler_.get(),
managed_config_handler_.get());
@@ -209,9 +209,7 @@ class NetworkConnectionHandlerTest : public NetworkStateTest {
base::RunLoop().RunUntilIdle();
}
- void SuccessCallback() {
- result_ = kSuccessResult;
- }
+ void SuccessCallback() { result_ = kSuccessResult; }
void ErrorCallback(const std::string& error_name,
std::unique_ptr<base::DictionaryValue> error_data) {
@@ -279,8 +277,7 @@ class NetworkConnectionHandlerTest : public NetworkStateTest {
} else {
managed_config_handler_->SetPolicy(::onc::ONC_SOURCE_DEVICE_POLICY,
std::string(), // no username hash
- *network_configs,
- global_config);
+ *network_configs, global_config);
}
base::RunLoop().RunUntilIdle();
}
« no previous file with comments | « chromeos/network/network_connection_handler_impl.cc ('k') | chromeos/network/network_connection_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698