Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index e9881e0796324cc4707d1c739d27b81b7df2464f..7624d3559af7110298088b32ffbb7c45a4b3c7b2 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -2342,6 +2342,11 @@ void Internals::setFocused(bool focused) |
frame()->page()->focusController().setFocused(focused); |
} |
+void Internals::setNetworkStateNotifierTestOnly(bool testOnly) |
+{ |
+ networkStateNotifier().setTestUpdatesOnly(testOnly); |
+} |
+ |
void Internals::setNetworkConnectionInfo(const String& type, ExceptionState& exceptionState) |
{ |
blink::WebConnectionType webtype; |
@@ -2361,7 +2366,7 @@ void Internals::setNetworkConnectionInfo(const String& type, ExceptionState& exc |
exceptionState.throwDOMException(NotFoundError, ExceptionMessages::failedToEnumerate("connection type", type)); |
return; |
} |
- networkStateNotifier().setWebConnectionType(webtype); |
+ networkStateNotifier().setWebConnectionTypeForTest(webtype); |
} |
} // namespace WebCore |