chromium/content/browser/code_cache/generated_code_cache_browsertest.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/code_cache/generated_code_cache.h"

#include "base/run_loop.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/test_future.h"
#include "base/time/time.h"
#include "content/browser/code_cache/generated_code_cache_context.h"
#include "content/browser/renderer_host/code_cache_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/common/renderer.mojom.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/shell/browser/shell.h"
#include "content/test/content_browser_test_utils_internal.h"
#include "net/dns/mock_host_resolver.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/page/v8_compile_hints_histograms.h"

namespace content {

namespace {

bool SupportsSharedWorker() {}

}  // namespace

enum class CodeCacheTestCase {};

std::string CodeCacheTestCaseToString(CodeCacheTestCase param) {}

enum class BackgroundResourceFetchTestCase {};

std::string BackgroundResourceFetchTestCaseToString(
    BackgroundResourceFetchTestCase param) {}

class CodeCacheBrowserTest
    : public ContentBrowserTest,
      public testing::WithParamInterface<
          std::pair<CodeCacheTestCase, BackgroundResourceFetchTestCase>> {};

INSTANTIATE_TEST_SUITE_P();

IN_PROC_BROWSER_TEST_P(CodeCacheBrowserTest, CachingFromThirdPartyFrames) {}

IN_PROC_BROWSER_TEST_P(CodeCacheBrowserTest,
                       CachingFromThirdPartySharedWorkers) {}

class CodeCacheSizeChecker {};

IN_PROC_BROWSER_TEST_P(CodeCacheBrowserTest,
                       GeneratedCodeCacheSizeClassicScript) {}

IN_PROC_BROWSER_TEST_P(CodeCacheBrowserTest,
                       GeneratedCodeCacheSizeModuleScript) {}

class CompileHintsBrowserTest : public ContentBrowserTest {};

class LocalCompileHintsBrowserTest : public CompileHintsBrowserTest {};

class NoLocalCompileHintsBrowserTest : public CompileHintsBrowserTest {};

IN_PROC_BROWSER_TEST_F(NoLocalCompileHintsBrowserTest, NoCompileHints) {}

IN_PROC_BROWSER_TEST_F(LocalCompileHintsBrowserTest, LocalCompileHints) {}

}  // namespace content