#include "chrome/browser/storage_access_api/site_pair_cache.h"
#include <string_view>
#include "base/strings/strcat.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace {
constexpr char kHostA[] = …;
constexpr char kHostB[] = …;
constexpr char kHostC[] = …;
constexpr char kHostASubdomain[] = …;
constexpr char kHostBSubdomain[] = …;
constexpr char kIPv4Addr[] = …;
constexpr char kIPv6Addr[] = …;
constexpr char kLocalhost[] = …;
url::Origin OriginFromHost(std::string_view host) { … }
}
TEST(SitePairCacheTest, Insert) { … }
TEST(SitePairCacheTest, Insert_Subdomains) { … }
TEST(SitePairCacheTest, Insert_Ordering) { … }
TEST(SitePairCacheTest, Insert_Opaque) { … }
TEST(SitePairCacheTest, Insert_NoRegistrableDomain) { … }
TEST(SitePairCacheTest, Clear) { … }