summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/testing/v8/web_core_test_support.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/testing/v8/web_core_test_support.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/testing/v8/web_core_test_support.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/testing/v8/web_core_test_support.cc b/chromium/third_party/blink/renderer/core/testing/v8/web_core_test_support.cc
index 24f92480788..634b955495d 100644
--- a/chromium/third_party/blink/renderer/core/testing/v8/web_core_test_support.cc
+++ b/chromium/third_party/blink/renderer/core/testing/v8/web_core_test_support.cc
@@ -119,6 +119,12 @@ void InstallOriginTrialFeaturesForTesting(
script_state->GetIsolate(), script_state->World(),
v8::Local<v8::Object>(), prototype_object, interface_object);
}
+ if (RuntimeEnabledFeatures::OriginTrialsSampleAPIThirdPartyEnabled(
+ execution_context)) {
+ V8OriginTrialsTest::InstallOriginTrialsSampleAPIThirdParty(
+ script_state->GetIsolate(), script_state->World(),
+ v8::Local<v8::Object>(), prototype_object, interface_object);
+ }
}
}
@@ -192,6 +198,17 @@ void InstallPendingOriginTrialFeatureForTesting(
}
break;
}
+ case OriginTrialFeature::kOriginTrialsSampleAPIThirdParty: {
+ if (script_state->PerContextData()
+ ->GetExistingConstructorAndPrototypeForType(
+ V8OriginTrialsTest::GetWrapperTypeInfo(), &prototype_object,
+ &interface_object)) {
+ V8OriginTrialsTest::InstallOriginTrialsSampleAPIThirdParty(
+ script_state->GetIsolate(), script_state->World(),
+ v8::Local<v8::Object>(), prototype_object, interface_object);
+ }
+ break;
+ }
default:
break;
}