#include "third_party/blink/renderer/core/script/module_record_resolver_impl.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/core/script/js_module_script.h"
#include "third_party/blink/renderer/core/script/modulator.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/script_state.h"
#include "third_party/blink/renderer/platform/bindings/v8_throw_exception.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/testing_platform_support_with_mock_scheduler.h"
#include "v8/include/v8.h"
namespace blink {
namespace {
class ModuleRecordResolverImplTestModulator final : public DummyModulator { … };
void ModuleRecordResolverImplTestModulator::Trace(Visitor* visitor) const { … }
ModuleScript* ModuleRecordResolverImplTestModulator::GetFetchedModuleScript(
const KURL& url,
ModuleType module_type) { … }
ModuleScript* CreateReferrerModuleScript(Modulator* modulator,
V8TestingScope& scope) { … }
ModuleScript* CreateTargetModuleScript(Modulator* modulator,
V8TestingScope& scope,
bool has_parse_error = false) { … }
}
class ModuleRecordResolverImplTest : public testing::Test,
public ModuleTestBase { … };
void ModuleRecordResolverImplTest::SetUp() { … }
void ModuleRecordResolverImplTest::TearDown() { … }
TEST_F(ModuleRecordResolverImplTest, RegisterResolveSuccess) { … }
}