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

Unified Diff: chromeos/components/tether/tether_connector_unittest.cc

Issue 2819383002: [CrOS Tether] Update NetworkState to include tether properties and integrate into NetworkStateHandl… (Closed)
Patch Set: stevenjb@ comment. 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
« no previous file with comments | « chromeos/components/tether/initializer.cc ('k') | chromeos/network/network_connect_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/components/tether/tether_connector_unittest.cc
diff --git a/chromeos/components/tether/tether_connector_unittest.cc b/chromeos/components/tether/tether_connector_unittest.cc
index 7788183283f3c622372071b5507d2b3677e1924a..3384831cf8253c80f4c8c73489603b57fc8dab16 100644
--- a/chromeos/components/tether/tether_connector_unittest.cc
+++ b/chromeos/components/tether/tether_connector_unittest.cc
@@ -36,9 +36,6 @@ const char kPassword[] = "password";
const char kWifiNetworkGuid[] = "wifiNetworkGuid";
-const char kTetherNetwork1Name[] = "tetherNetwork1Name";
-const char kTetherNetwork2Name[] = "tetherNetwork2Name";
-
std::string CreateWifiConfigurationJsonString() {
std::stringstream ss;
ss << "{"
@@ -201,10 +198,12 @@ class TetherConnectorTest : public NetworkStateTest {
// its ConnectToNetwork() callback.
network_state_handler()->AddTetherNetworkState(
GetTetherNetworkGuid(test_devices_[0].GetDeviceId()),
- kTetherNetwork1Name);
+ "TetherNetworkName1", "TetherNetworkCarrier1",
+ 85 /* battery_percentage */, 75 /* signal_strength */);
network_state_handler()->AddTetherNetworkState(
GetTetherNetworkGuid(test_devices_[1].GetDeviceId()),
- kTetherNetwork2Name);
+ "TetherNetworkName2", "TetherNetworkCarrier2",
+ 90 /* battery_percentage */, 50 /* signal_strength */);
}
void SuccessfullyJoinWifiNetwork() {
@@ -476,4 +475,4 @@ TEST_F(TetherConnectorTest,
} // namespace tether
-} // namespace cryptauth
+} // namespace chromeos
« no previous file with comments | « chromeos/components/tether/initializer.cc ('k') | chromeos/network/network_connect_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698