blob: 84c6b3d19f5616221b6ef9591d56275947556ab3 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/testing/OriginTrialsTest.h"
#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
#include "core/origin_trials/origin_trials.h"
namespace blink {
bool OriginTrialsTest::throwingAttribute(ScriptState* script_state,
ExceptionState& exception_state) {
String error_message;
if (!OriginTrials::originTrialsSampleAPIEnabled(
ExecutionContext::From(script_state))) {
"The Origin Trials Sample API has not been enabled in this context");
return false;
return unconditionalAttribute();
} // namespace blink