Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index 34a34af9dd054a0d727e68bffc30aa274472b138..cdd2b781de8b1d8b8bc66bf6e925f597893361a9 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -2365,7 +2365,7 @@ void Internals::setNetworkStateNotifierTestOnly(bool testOnly) |
networkStateNotifier().setTestUpdatesOnly(testOnly); |
} |
-void Internals::setNetworkConnectionInfo(const String& type, ExceptionState& exceptionState) |
+void Internals::setNetworkConnectionInfo(const String& type, double downlinkMaxMbps, ExceptionState& exceptionState) |
{ |
WebConnectionType webtype; |
if (type == "cellular") { |
@@ -2376,6 +2376,8 @@ void Internals::setNetworkConnectionInfo(const String& type, ExceptionState& exc |
webtype = ConnectionTypeEthernet; |
} else if (type == "wifi") { |
webtype = ConnectionTypeWifi; |
+ } else if (type == "wimax") { |
+ webtype = ConnectionTypeWimax; |
} else if (type == "other") { |
webtype = ConnectionTypeOther; |
} else if (type == "none") { |
@@ -2386,7 +2388,7 @@ void Internals::setNetworkConnectionInfo(const String& type, ExceptionState& exc |
exceptionState.throwDOMException(NotFoundError, ExceptionMessages::failedToEnumerate("connection type", type)); |
return; |
} |
- networkStateNotifier().setWebConnectionTypeForTest(webtype); |
+ networkStateNotifier().setWebConnectionForTest(webtype, downlinkMaxMbps); |
} |
unsigned Internals::countHitRegions(CanvasRenderingContext* context) |