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

// Copyright 2014 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/v8_script_runner.h"

#include "base/location.h"
#include "base/test/scoped_feature_list.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/platform/scheduler/test/renderer_scheduler_test_support.h"
#include "third_party/blink/renderer/bindings/core/v8/referrer_script_info.h"
#include "third_party/blink/renderer/bindings/core/v8/script_cache_consumer_client.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/bindings/core/v8/v8_code_cache.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/loader/resource/script_resource.h"
#include "third_party/blink/renderer/core/script/classic_script.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/loader/fetch/cached_metadata.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/testing/testing_platform_support_with_mock_scheduler.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/weborigin/scheme_registry.h"
#include "third_party/blink/renderer/platform/wtf/text/string_utf8_adaptor.h"
#include "third_party/blink/renderer/platform/wtf/text/text_encoding.h"
#include "v8/include/v8.h"

namespace blink {

namespace {

class V8ScriptRunnerTest : public testing::Test {};

int V8ScriptRunnerTest::counter_ =;

TEST_F(V8ScriptRunnerTest, resourcelessShouldPass) {}

TEST_F(V8ScriptRunnerTest, emptyResourceDoesNotHaveCacheHandler) {}

TEST_F(V8ScriptRunnerTest, codeOption) {}

TEST_F(V8ScriptRunnerTest, consumeCodeOption) {}

TEST_F(V8ScriptRunnerTest, produceAndConsumeCodeOption) {}

TEST_F(V8ScriptRunnerTest, cacheDataTypeMismatch) {}

TEST_F(V8ScriptRunnerTest, successfulCodeCacheWithHashing) {}

TEST_F(V8ScriptRunnerTest, codeCacheWithFailedHashCheck) {}

namespace {

class StubScriptCacheConsumerClient final
    : public GarbageCollected<StubScriptCacheConsumerClient>,
      public ScriptCacheConsumerClient {};

}  // namespace

TEST_F(V8ScriptRunnerTest, successfulOffThreadCodeCache) {}

TEST_F(V8ScriptRunnerTest, discardOffThreadCodeCacheWithDifferentSource) {}

TEST_F(V8ScriptRunnerTest, discardOffThreadCodeCacheWithBitCorruption) {}

}  // namespace

}  // namespace blink