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

Unified Diff: third_party/WebKit/Source/platform/network/NetworkStateNotifierTest.cpp

Issue 2908233002: NetInfo default values (Closed)
Patch Set: ps Created 3 years, 7 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 | « third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/network/NetworkStateNotifierTest.cpp
diff --git a/third_party/WebKit/Source/platform/network/NetworkStateNotifierTest.cpp b/third_party/WebKit/Source/platform/network/NetworkStateNotifierTest.cpp
index 756603cd8ef0f70dfc629cacc3da33c75535af37..61569ff1964ef6c77653f755922580b17579ff68 100644
--- a/third_party/WebKit/Source/platform/network/NetworkStateNotifierTest.cpp
+++ b/third_party/WebKit/Source/platform/network/NetworkStateNotifierTest.cpp
@@ -533,8 +533,8 @@ TEST_F(NetworkStateNotifierTest, SetOverride) {
RunPendingTasks();
EXPECT_TRUE(VerifyObservations(
observer, kWebConnectionTypeEthernet, kEthernetMaxBandwidthMbps,
- WebEffectiveConnectionType::kTypeUnknown, kUnknownRtt, kUnknownRtt,
- kUnknownThroughputMbps));
+ WebEffectiveConnectionType::kTypeUnknown, base::TimeDelta::FromSeconds(1),
+ base::TimeDelta::FromSeconds(1), 1));
EXPECT_TRUE(notifier_.OnLine());
EXPECT_EQ(kWebConnectionTypeEthernet, notifier_.ConnectionType());
EXPECT_EQ(kEthernetMaxBandwidthMbps, notifier_.MaxBandwidth());
@@ -548,8 +548,8 @@ TEST_F(NetworkStateNotifierTest, SetOverride) {
RunPendingTasks();
EXPECT_TRUE(VerifyObservations(
observer, kWebConnectionTypeEthernet, kEthernetMaxBandwidthMbps,
- WebEffectiveConnectionType::kTypeUnknown, kUnknownRtt, kUnknownRtt,
- kUnknownThroughputMbps));
+ WebEffectiveConnectionType::kTypeUnknown, base::TimeDelta::FromSeconds(1),
+ base::TimeDelta::FromSeconds(1), 1));
EXPECT_TRUE(notifier_.OnLine());
EXPECT_EQ(kWebConnectionTypeEthernet, notifier_.ConnectionType());
EXPECT_EQ(kEthernetMaxBandwidthMbps, notifier_.MaxBandwidth());
« no previous file with comments | « third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698