chromium/chrome/browser/extensions/content_security_policy_apitest.cc

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

#include "base/strings/stringprintf.h"
#include "chrome/browser/extensions/chrome_test_extension_loader.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "extensions/common/extension.h"
#include "extensions/test/result_catcher.h"
#include "extensions/test/test_extension_dir.h"
#include "net/dns/mock_host_resolver.h"

namespace extensions {

ExtensionCspApiTest;

IN_PROC_BROWSER_TEST_F(ExtensionCspApiTest, ContentSecurityPolicy) {}

IN_PROC_BROWSER_TEST_F(ExtensionCspApiTest, DefaultContentSecurityPolicy) {}

// Tests that the Manifest V3 extension CSP allows localhost sources to be
// embedded in extension pages.
IN_PROC_BROWSER_TEST_F(ExtensionCspApiTest,
                       ManifestV3AllowsLocalhostInPagesForUnpackedExtensions) {}

// Tests that the Manifest V3 extension CSP allows for localhost sources being
// imported from service workers.
IN_PROC_BROWSER_TEST_F(
    ExtensionCspApiTest,
    ManifestV3AllowsLocalhostInServiceWorkersForUnpackedExtensions) {}

// Tests that MV3 disallows localhost in packed extensions.
IN_PROC_BROWSER_TEST_F(ExtensionCspApiTest,
                       ManifestV3DisallowsLocalhostForPackedExtensions) {}

}  // namespace extensions