chromium/net/cookies/site_for_cookies_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 "net/cookies/site_for_cookies.h"

#include <string>
#include <vector>

#include "base/strings/strcat.h"
#include "base/test/scoped_feature_list.h"
#include "net/base/features.h"
#include "net/base/url_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"
#include "url/url_util.h"

namespace net {
namespace {

class SchemelessSiteForCookiesTest : public ::testing::Test {};

std::string NormalizedScheme(const GURL& url) {}

// Tests that all URLs from |equivalent| produce SiteForCookies that match
// URLs in the set and are equivalent to each other, and are distinct and
// don't match |distinct|.
void TestEquivalentAndDistinct(const std::vector<GURL>& equivalent,
                               const std::vector<GURL>& distinct,
                               const std::string& expect_host) {}

TEST(SiteForCookiesTest, Default) {}

TEST_F(SchemelessSiteForCookiesTest, Basic) {}

// Similar to SchemelessSiteForCookiesTest_Basic with a focus on testing secure
// SFCs.
TEST(SiteForCookiesTest, BasicSecure) {}

// Similar to SchemelessSiteForCookiesTest_Basic with a focus on testing
// insecure SFCs.
TEST(SiteForCookiesTest, BasicInsecure) {}

TEST(SiteForCookiesTest, File) {}

TEST_F(SchemelessSiteForCookiesTest, Extension) {}

// Similar to SchemelessSiteForCookiesTest_Extension with a focus on ensuring
// that http(s) schemes are distinct.
TEST(SiteForCookiesTest, Extension) {}

TEST(SiteForCookiesTest, NonStandard) {}

TEST_F(SchemelessSiteForCookiesTest, Blob) {}

// Similar to SchemelessSiteForCookiesTest_Blob with a focus on a secure blob.
TEST(SiteForCookiesTest, SecureBlob) {}

// Similar to SchemelessSiteForCookiesTest_Blob with a focus on an insecure
// blob.
TEST(SiteForCookiesTest, InsecureBlob) {}

TEST_F(SchemelessSiteForCookiesTest, Wire) {}

// Similar to SchemelessSiteForCookiesTest_Wire except that schemefully_same has
// an effect (makes IsNull() return true if schemefully_same is false).
TEST(SiteForCookiesTest, Wire) {}

TEST(SiteForCookiesTest, SchemefulSite) {}

TEST(SiteForCookiesTest, CompareWithFrameTreeSiteAndRevise) {}

TEST(SiteForCookiesTest, CompareWithFrameTreeSiteAndReviseOpaque) {}

TEST(SiteForCookiesTest, NotSchemefullySameEquivalent) {}

}  // namespace

TEST(SiteForCookiesTest, SameScheme) {}

TEST(SiteForCookiesTest, SameSchemeOpaque) {}

// Quick correctness check that the less-than operator works as expected.
TEST(SiteForCookiesTest, LessThan) {}

}  // namespace net