| 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
|
|
|