#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "net/base/network_isolation_key.h"
#include <optional>
#include "base/test/scoped_feature_list.h"
#include "base/unguessable_token.h"
#include "base/values.h"
#include "net/base/features.h"
#include "net/base/schemeful_site.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/url_util.h"
namespace net {
namespace {
const char kDataUrl[] = …;
TEST(NetworkIsolationKeyTest, EmptyKey) { … }
TEST(NetworkIsolationKeyTest, NonEmptySameSiteKey) { … }
TEST(NetworkIsolationKeyTest, NonEmptyCrossSiteKey) { … }
TEST(NetworkIsolationKeyTest, KeyWithNonce) { … }
TEST(NetworkIsolationKeyTest, OpaqueOriginKey) { … }
TEST(NetworkIsolationKeyTest, OpaqueOriginTopLevelSiteKey) { … }
TEST(NetworkIsolationKeyTest, OpaqueOriginIframeKey) { … }
TEST(NetworkIsolationKeyTest, Operators) { … }
TEST(NetworkIsolationKeyTest, UniqueOriginOperators) { … }
TEST(NetworkIsolationKeyTest, OpaqueSiteKeyBoth) { … }
TEST(NetworkIsolationKeyTest, NonStandardScheme) { … }
TEST(NetworkIsolationKeyTest, CreateWithNewFrameSite) { … }
TEST(NetworkIsolationKeyTest, CreateTransientForTesting) { … }
}
}