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

Unified Diff: net/base/network_change_notifier_unittest.cc

Issue 1306653003: Add connection type to NCN::MaxBandwidthChanged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra space in comment Created 5 years, 3 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 | « net/base/network_change_notifier_mac.cc ('k') | net/base/network_change_notifier_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier_unittest.cc
diff --git a/net/base/network_change_notifier_unittest.cc b/net/base/network_change_notifier_unittest.cc
index 7bc2ba66fa121e00427fda8771ddcedec4938bd4..674260789a6986e1fae1627389a56b08d75feb2c 100644
--- a/net/base/network_change_notifier_unittest.cc
+++ b/net/base/network_change_notifier_unittest.cc
@@ -14,8 +14,10 @@ namespace net {
// alter the ranges of these tests.
TEST(NetworkChangeNotifierTest, NetMaxBandwidthRange) {
NetworkChangeNotifier::ConnectionType connection_type =
- NetworkChangeNotifier::GetConnectionType();
- double max_bandwidth = NetworkChangeNotifier::GetMaxBandwidth();
+ NetworkChangeNotifier::CONNECTION_NONE;
+ double max_bandwidth = 0.0;
+ NetworkChangeNotifier::GetMaxBandwidthAndConnectionType(&max_bandwidth,
+ &connection_type);
// Always accept infinity as it's the default value if the bandwidth is
// unknown.
« no previous file with comments | « net/base/network_change_notifier_mac.cc ('k') | net/base/network_change_notifier_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698