chromium/third_party/blink/renderer/bindings/core/v8/module_record_test.cc

// Copyright 2017 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/bindings/core/v8/module_record.h"

#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/boxed_v8_module.h"
#include "third_party/blink/renderer/bindings/core/v8/module_request.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_value.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/script/classic_script.h"
#include "third_party/blink/renderer/core/script/js_module_script.h"
#include "third_party/blink/renderer/core/script/module_record_resolver.h"
#include "third_party/blink/renderer/core/testing/dummy_modulator.h"
#include "third_party/blink/renderer/core/testing/module_test_base.h"
#include "third_party/blink/renderer/platform/bindings/v8_binding.h"
#include "third_party/blink/renderer/platform/bindings/v8_per_context_data.h"
#include "third_party/blink/renderer/platform/heap/collection_support/heap_deque.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "v8/include/v8.h"

namespace blink {

namespace {

class TestModuleRecordResolver final : public ModuleRecordResolver {};

class ModuleRecordTestModulator final : public DummyModulator {};

ModuleRecordTestModulator::ModuleRecordTestModulator(ScriptState* script_state)
    :{}

void ModuleRecordTestModulator::Trace(Visitor* visitor) const {}

class ModuleRecordTest : public ::testing::Test, public ModuleTestBase {};

TEST_F(ModuleRecordTest, compileSuccess) {}

TEST_F(ModuleRecordTest, compileFail) {}

TEST_F(ModuleRecordTest, moduleRequests) {}

TEST_F(ModuleRecordTest, moduleRequestsWithImportAssertions) {}

TEST_F(ModuleRecordTest, instantiateNoDeps) {}

TEST_F(ModuleRecordTest, instantiateWithDeps) {}

TEST_F(ModuleRecordTest, EvaluationErrorIsRemembered) {}

TEST_F(ModuleRecordTest, Evaluate) {}

TEST_F(ModuleRecordTest, EvaluateCaptureError) {}

}  // namespace

}  // namespace blink