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

// Copyright 2024 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_compile_hints_for_streaming.h"

#include "base/test/metrics/histogram_tester.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/common/page/v8_compile_hints_histograms.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_local_compile_hints_consumer.h"
#include "third_party/blink/renderer/core/frame/frame_test_helpers.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/platform/loader/fetch/cached_metadata.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"

namespace blink::v8_compile_hints {

class CompileHintsForStreamingTest : public ::testing::Test {};

TEST_F(CompileHintsForStreamingTest, NoCrowdsourcedNoLocalNoMagicComment1) {}

TEST_F(CompileHintsForStreamingTest, NoCrowdsourcedNoLocalNoMagicComment2) {}

TEST_F(CompileHintsForStreamingTest, NoCrowdsourcedNoLocalButMagicComment) {}

TEST_F(CompileHintsForStreamingTest, ProduceLocalNoMagicComment) {}

TEST_F(CompileHintsForStreamingTest, ConsumeLocalNoMagicComment) {}

TEST_F(CompileHintsForStreamingTest, ConsumeLocalMagicComment) {}

TEST_F(CompileHintsForStreamingTest,
       FailedToConsumeLocalWrongSizeNoMagicComment) {}

TEST_F(CompileHintsForStreamingTest,
       FailedToConsumeLocalWrongSizeMagicComment) {}

TEST_F(CompileHintsForStreamingTest, ConsumeCrowdsourcedHintNoMagicComment) {}

TEST_F(CompileHintsForStreamingTest, PreferCrowdsourcedHints) {}

TEST_F(CompileHintsForStreamingTest, ProduceCrowdsourcedHintNoMagicComment) {}

TEST_F(CompileHintsForStreamingTest, ProduceCrowdsourcedHintMagicComment) {}

}  // namespace blink::v8_compile_hints