chromium/services/network/public/cpp/is_potentially_trustworthy_unittest.cc

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

#include "services/network/public/cpp/is_potentially_trustworthy_unittest.h"

#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"
#include "url/url_util.h"

namespace network::test {

bool IsOriginAllowlisted(const url::Origin& origin) {}

bool IsOriginAllowlisted(const char* str) {}

bool IsUrlPotentiallyTrustworthy(const char* str) {}

std::vector<std::string> CanonicalizeAllowlist(
    const std::vector<std::string>& allowlist,
    std::vector<std::string>* rejected_patterns) {}

class SecureOriginAllowlistTest : public testing::Test {};

TEST_F(SecureOriginAllowlistTest, UnsafelyTreatInsecureOriginAsSecure) {}

TEST_F(SecureOriginAllowlistTest, HostnamePatterns) {}

TEST_F(SecureOriginAllowlistTest, MixOfOriginAndHostnamePatterns) {}

TEST_F(SecureOriginAllowlistTest, Canonicalization) {}

class TrustworthinessTestTraits : public url::UrlOriginTestTraits {};

INSTANTIATE_TYPED_TEST_SUITE_P();

}  // namespace network::test