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) {
void TestRunnerBindings::SetDomainRelaxationForbiddenForURLScheme(
bool forbidden,
const std::string& scheme) {
blink::SetDomainRelaxationForbidden(forbidden,
blink::WebString::FromUTF8(scheme));
blink::SetDomainRelaxationForbiddenForTest(
forbidden, blink::WebString::FromUTF8(scheme));
}
void TestRunnerBindings::SetDumpConsoleMessages(bool enabled) {
......@@ -1760,7 +1760,7 @@ void TestRunner::Reset() {
#if defined(OS_LINUX) || defined(OS_FUCHSIA)
blink::WebFontRenderStyle::SetSubpixelPositioning(false);
#endif
blink::ResetDomainRelaxation();
blink::ResetDomainRelaxationForTest();
if (blink_test_runner_) {
// Reset the default quota for each origin.
......
......@@ -91,10 +91,10 @@ BLINK_EXPORT void MemoryPressureNotificationToWorkerThreadIsolates(
BLINK_EXPORT void LogRuntimeCallStats();
// Allows disabling domain relaxation.
BLINK_EXPORT void SetDomainRelaxationForbidden(bool forbidden,
BLINK_EXPORT void SetDomainRelaxationForbiddenForTest(bool forbidden,
const WebString& scheme);
// Undos all calls to SetDomainRelaxationForbidden().
BLINK_EXPORT void ResetDomainRelaxation();
// Undos all calls to SetDomainRelaxationForbiddenForTest().
BLINK_EXPORT void ResetDomainRelaxationForTest();
// Force the webgl context to fail so that webglcontextcreationerror
// event gets generated/tested.
......
......@@ -38,13 +38,14 @@
namespace blink {
// 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,
String(scheme));
}
// Function defined in third_party/blink/public/web/blink.h.
void ResetDomainRelaxation() {
void ResetDomainRelaxationForTest() {
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