#include "third_party/blink/renderer/core/script/module_script.h"
#include "base/test/scoped_feature_list.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/renderer/bindings/core/v8/script_evaluation_result.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.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/loader/modulescript/module_script_creation_params.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/value_wrapper_synthetic_module_script.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/core/testing/page_test_base.h"
#include "third_party/blink/renderer/platform/loader/fetch/cached_metadata.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource.h"
#include "third_party/blink/renderer/platform/loader/fetch/script_cached_metadata_handler.h"
#include "third_party/blink/renderer/platform/loader/fetch/url_loader/cached_metadata_handler.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
_;
namespace blink {
namespace {
class ModuleScriptTestModulator final : public DummyModulator { … };
class MockCachedMetadataSender : public CachedMetadataSender { … };
ClassicScript* CreateClassicScript(const String& source_text,
CachedMetadataHandler* cache_handler) { … }
static const int kScriptRepeatLength = …;
}
class ModuleScriptTest : public ::testing::Test, public ModuleTestBase { … };
TEST_F(ModuleScriptTest, V8CodeCache) { … }
TEST_F(ModuleScriptTest, ValueWrapperSyntheticModuleScript) { … }
TEST_F(ModuleScriptTest, V8CodeCacheWithHashChecking) { … }
}