#include "third_party/blink/renderer/core/frame/csp/csp_directive_list.h"
#include <optional>
#include <string>
#include "base/memory/scoped_refptr.h"
#include "base/test/scoped_feature_list.h"
#include "services/network/public/cpp/features.h"
#include "services/network/public/mojom/content_security_policy.mojom-blink.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h"
#include "third_party/blink/renderer/core/frame/csp/content_security_policy.h"
#include "third_party/blink/renderer/core/frame/csp/test_util.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_request.h"
#include "third_party/blink/renderer/platform/loader/subresource_integrity.h"
#include "third_party/blink/renderer/platform/network/content_security_policy_parsers.h"
#include "third_party/blink/renderer/platform/weborigin/reporting_disposition.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"
#include "third_party/blink/renderer/platform/wtf/text/string_operators.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
namespace blink {
ContentSecurityPolicySource;
ContentSecurityPolicyType;
class CSPDirectiveListTest : public testing::Test { … };
TEST_F(CSPDirectiveListTest, Header) { … }
TEST_F(CSPDirectiveListTest, IsMatchingNoncePresent) { … }
TEST_F(CSPDirectiveListTest, AllowScriptFromSourceNoNonce) { … }
TEST_F(CSPDirectiveListTest, AllowFromSourceWithNonce) { … }
TEST_F(CSPDirectiveListTest, AllowScriptFromSourceWithHash) { … }
TEST_F(CSPDirectiveListTest, WorkerSrc) { … }
TEST_F(CSPDirectiveListTest, WorkerSrcChildSrcFallback) { … }
TEST_F(CSPDirectiveListTest, OperativeDirectiveGivenType) { … }
TEST_F(CSPDirectiveListTest, ReportEndpointsProperlyParsed) { … }
TEST_F(CSPDirectiveListTest, ReasonableObjectRestriction) { … }
TEST_F(CSPDirectiveListTest, ReasonableBaseRestriction) { … }
TEST_F(CSPDirectiveListTest, ReasonableScriptRestriction) { … }
TEST_F(CSPDirectiveListTest, ReportURIInMeta) { … }
MATCHER_P(HasSubstr, s, "") { … }
TEST_F(CSPDirectiveListTest, StrictDynamicIgnoresAllowlistWarning) { … }
}