Commit 10859549 authored by danakj's avatar danakj Committed by Commit Bot

Put ForTest suffix on blink.h methods that are for tests.

R=pdr@chromium.org

Bug: 866140
Change-Id: Ibdc39aa65b7048916fb8a209e6abcfdba777bc19
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2201409Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#768815}
parent 2f085cd2
...@@ -779,8 +779,8 @@ bool TestRunnerBindings::IsCommandEnabled(const std::string& command) { ...@@ -779,8 +779,8 @@ bool TestRunnerBindings::IsCommandEnabled(const std::string& command) {
void TestRunnerBindings::SetDomainRelaxationForbiddenForURLScheme( void TestRunnerBindings::SetDomainRelaxationForbiddenForURLScheme(
bool forbidden, bool forbidden,
const std::string& scheme) { const std::string& scheme) {
blink::SetDomainRelaxationForbidden(forbidden, blink::SetDomainRelaxationForbiddenForTest(
blink::WebString::FromUTF8(scheme)); forbidden, blink::WebString::FromUTF8(scheme));
} }
void TestRunnerBindings::SetDumpConsoleMessages(bool enabled) { void TestRunnerBindings::SetDumpConsoleMessages(bool enabled) {
...@@ -1760,7 +1760,7 @@ void TestRunner::Reset() { ...@@ -1760,7 +1760,7 @@ void TestRunner::Reset() {
#if defined(OS_LINUX) || defined(OS_FUCHSIA) #if defined(OS_LINUX) || defined(OS_FUCHSIA)
blink::WebFontRenderStyle::SetSubpixelPositioning(false); blink::WebFontRenderStyle::SetSubpixelPositioning(false);
#endif #endif
blink::ResetDomainRelaxation(); blink::ResetDomainRelaxationForTest();
if (blink_test_runner_) { if (blink_test_runner_) {
// Reset the default quota for each origin. // Reset the default quota for each origin.
......
...@@ -91,10 +91,10 @@ BLINK_EXPORT void MemoryPressureNotificationToWorkerThreadIsolates( ...@@ -91,10 +91,10 @@ BLINK_EXPORT void MemoryPressureNotificationToWorkerThreadIsolates(
BLINK_EXPORT void LogRuntimeCallStats(); BLINK_EXPORT void LogRuntimeCallStats();
// Allows disabling domain relaxation. // Allows disabling domain relaxation.
BLINK_EXPORT void SetDomainRelaxationForbidden(bool forbidden, BLINK_EXPORT void SetDomainRelaxationForbiddenForTest(bool forbidden,
const WebString& scheme); const WebString& scheme);
// Undos all calls to SetDomainRelaxationForbidden(). // Undos all calls to SetDomainRelaxationForbiddenForTest().
BLINK_EXPORT void ResetDomainRelaxation(); BLINK_EXPORT void ResetDomainRelaxationForTest();
// Force the webgl context to fail so that webglcontextcreationerror // Force the webgl context to fail so that webglcontextcreationerror
// event gets generated/tested. // event gets generated/tested.
......
...@@ -38,13 +38,14 @@ ...@@ -38,13 +38,14 @@
namespace blink { namespace blink {
// Function defined in third_party/blink/public/web/blink.h. // Function defined in third_party/blink/public/web/blink.h.
void SetDomainRelaxationForbidden(bool forbidden, const WebString& scheme) { void SetDomainRelaxationForbiddenForTest(bool forbidden,
const WebString& scheme) {
SchemeRegistry::SetDomainRelaxationForbiddenForURLScheme(forbidden, SchemeRegistry::SetDomainRelaxationForbiddenForURLScheme(forbidden,
String(scheme)); String(scheme));
} }
// Function defined in third_party/blink/public/web/blink.h. // Function defined in third_party/blink/public/web/blink.h.
void ResetDomainRelaxation() { void ResetDomainRelaxationForTest() {
SchemeRegistry::ResetDomainRelaxation(); SchemeRegistry::ResetDomainRelaxation();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment