chromium/third_party/blink/renderer/core/frame/csp/source_list_directive_test.cc

// Copyright 2015 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/core/frame/csp/source_list_directive.h"

#include "services/network/public/mojom/content_security_policy.mojom-blink.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/frame/csp/content_security_policy.h"
#include "third_party/blink/renderer/core/frame/csp/csp_source.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_request.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"

namespace blink {

namespace {

network::mojom::blink::CSPSourceListPtr ParseSourceList(
    const String& directive_name,
    const String& directive_value) {}

}  // namespace

class SourceListDirectiveTest : public testing::Test {};

TEST_F(SourceListDirectiveTest, BasicMatchingNone) {}

TEST_F(SourceListDirectiveTest, BasicMatchingStrictDynamic) {}

TEST_F(SourceListDirectiveTest, BasicMatchingUnsafeHashes) {}

TEST_F(SourceListDirectiveTest, BasicMatchingStar) {}

TEST_F(SourceListDirectiveTest, BasicMatchingStarPlusExplicitFtpWs) {}

TEST_F(SourceListDirectiveTest, StarallowsSelf) {}

TEST_F(SourceListDirectiveTest, BasicMatchingSelf) {}

TEST_F(SourceListDirectiveTest, BlobMatchingBlob) {}

TEST_F(SourceListDirectiveTest, BasicMatching) {}

TEST_F(SourceListDirectiveTest, WildcardMatching) {}

TEST_F(SourceListDirectiveTest, RedirectMatching) {}

TEST_F(SourceListDirectiveTest, AllowAllInline) {}

TEST_F(SourceListDirectiveTest, IsNone) {}

TEST_F(SourceListDirectiveTest, IsSelf) {}

TEST_F(SourceListDirectiveTest, AllowsURLBasedMatching) {}

TEST_F(SourceListDirectiveTest, ParseSourceListHost) {}

TEST_F(SourceListDirectiveTest, ParsePort) {}

TEST_F(SourceListDirectiveTest, AllowHostWildcard) {}

TEST_F(SourceListDirectiveTest, AllowHostMixedCase) {}

TEST_F(SourceListDirectiveTest, AllowNonce) {}

}  // namespace blink