#include "net/first_party_sets/first_party_sets_validator.h"
#include <initializer_list>
#include <utility>
#include <vector>
#include "net/base/schemeful_site.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace net {
namespace {
const SchemefulSite kPrimary1(GURL("https://primary1.test"));
const SchemefulSite kPrimary1Cctld(GURL("https://primary1.ccltd"));
const SchemefulSite kPrimary2(GURL("https://primary2.test"));
const SchemefulSite kPrimary3(GURL("https://primary3.test"));
const SchemefulSite kAssociated1(GURL("https://associated1.test"));
const SchemefulSite kAssociated2(GURL("https://associated2.test"));
const SchemefulSite kAssociated3(GURL("https://associated3.test"));
const SchemefulSite kService1(GURL("https://service1.test"));
const SchemefulSite kService2(GURL("https://service2.test"));
struct SiteEntry { … };
FirstPartySetsValidator ValidateSets(std::initializer_list<SiteEntry> sites) { … }
}
TEST(FirstPartySetsValidator, Default) { … }
TEST(FirstPartySetsValidator, Valid) { … }
TEST(FirstPartySetsValidator, Invalid_Singleton) { … }
TEST(FirstPartySetsValidator, Invalid_Orphan) { … }
TEST(FirstPartySetsValidator, Invalid_Nondisjoint) { … }
}