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

Unified Diff: Source/core/testing/Internals.cpp

Issue 302543006: Adds ability to prevent browser connection updates in layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Nits Created 6 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 | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698