chromium/third_party/blink/renderer/core/testing/module_test_base.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/testing/module_test_base.h"
#include "third_party/blink/renderer/bindings/core/v8/module_record.h"
#include "third_party/blink/renderer/bindings/core/v8/script_function.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/bindings/core/v8/script_source_location_type.h"
#include "third_party/blink/renderer/bindings/core/v8/script_value.h"
#include "third_party/blink/renderer/core/loader/modulescript/module_script_creation_params.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/loader/fetch/script_fetch_options.h"

namespace blink {

v8::Local<v8::Module> ModuleTestBase::CompileModule(
    ScriptState* script_state,
    const char* source,
    const KURL& url,
    ExceptionState& exception_state) {}

v8::Local<v8::Module> ModuleTestBase::CompileModule(
    ScriptState* script_state,
    String source,
    const KURL& url,
    ExceptionState& exception_state) {}

class SaveResultFunction final : public ScriptFunction::Callable {};

class ExpectNotReached final : public ScriptFunction::Callable {};

v8::Local<v8::Value> ModuleTestBase::GetResult(ScriptState* script_state,
                                               ScriptEvaluationResult result) {}

v8::Local<v8::Value> ModuleTestBase::GetException(
    ScriptState* script_state,
    ScriptEvaluationResult result) {}

}  // namespace blink