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

Unified Diff: chromeos/network/network_connection_handler_unittest.cc

Issue 2850993002: [CrOS Tether] Add the HasConnectedToHost network field to NetworkStateHandler. (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_unittest.cc
diff --git a/chromeos/network/network_connection_handler_unittest.cc b/chromeos/network/network_connection_handler_unittest.cc
index 683d09d64f532fa7169d87bd7647b080388a27f4..81bbd421c1c56c188b70ac159f9d9a7a9bda3f5b 100644
--- a/chromeos/network/network_connection_handler_unittest.cc
+++ b/chromeos/network/network_connection_handler_unittest.cc
@@ -488,7 +488,7 @@ TEST_F(NetworkConnectionHandlerTest, ConnectToTetherNetwork_Success) {
NetworkStateHandler::TECHNOLOGY_ENABLED);
network_state_handler()->AddTetherNetworkState(
kTetherGuid, "TetherNetwork", "Carrier", 100 /* battery_percentage */,
- 100 /* signal_strength */);
+ 100 /* signal_strength */, true /* has_connected_to_host */);
network_connection_handler_->SetTetherDelegate(fake_tether_delegate_.get());
Connect(kTetherGuid /* service_path */);
@@ -506,7 +506,7 @@ TEST_F(NetworkConnectionHandlerTest, ConnectToTetherNetwork_Failure) {
NetworkStateHandler::TECHNOLOGY_ENABLED);
network_state_handler()->AddTetherNetworkState(
kTetherGuid, "TetherNetwork", "Carrier", 100 /* battery_percentage */,
- 100 /* signal_strength */);
+ 100 /* signal_strength */, true /* has_connected_to_host */);
network_connection_handler_->SetTetherDelegate(fake_tether_delegate_.get());
Connect(kTetherGuid /* service_path */);
@@ -525,7 +525,7 @@ TEST_F(NetworkConnectionHandlerTest, ConnectToTetherNetwork_NoTetherDelegate) {
NetworkStateHandler::TECHNOLOGY_ENABLED);
network_state_handler()->AddTetherNetworkState(
kTetherGuid, "TetherNetwork", "Carrier", 100 /* battery_percentage */,
- 100 /* signal_strength */);
+ 100 /* signal_strength */, true /* has_connected_to_host */);
// Do not set a tether delegate.
« no previous file with comments | « chromeos/network/network_configuration_handler_unittest.cc ('k') | chromeos/network/network_state_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698