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

Unified Diff: net/android/network_change_notifier_android_unittest.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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: net/android/network_change_notifier_android_unittest.cc
diff --git a/net/android/network_change_notifier_android_unittest.cc b/net/android/network_change_notifier_android_unittest.cc
index 6aadb544ca4283772e5823cbddbe3f10328b5ec7..0818d5a73267a8028f1ef3eb7b4eef521cb64809 100644
--- a/net/android/network_change_notifier_android_unittest.cc
+++ b/net/android/network_change_notifier_android_unittest.cc
@@ -213,4 +213,17 @@ TEST_F(NetworkChangeNotifierAndroidTest,
other_connection_type_observer_.notifications_count());
}
+TEST_F(NetworkChangeNotifierAndroidTest, MaxBandwidth) {
+ SetOnline();
+ EXPECT_EQ(NetworkChangeNotifier::CONNECTION_UNKNOWN,
+ notifier_.GetConnectionType());
+ EXPECT_EQ(std::numeric_limits<double>::infinity(),
+ notifier_.GetMaxBandwidth());
+
+ SetOffline();
+ EXPECT_EQ(NetworkChangeNotifier::CONNECTION_NONE,
+ notifier_.GetConnectionType());
+ EXPECT_EQ(0.0, notifier_.GetMaxBandwidth());
+}
+
} // namespace net
« no previous file with comments | « net/android/network_change_notifier_android.cc ('k') | net/android/network_change_notifier_delegate_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698