chromium/net/base/network_isolation_key_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.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
#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) {}

// Make sure that the logic to extract the registerable domain from an origin
// does not affect the host when using a non-standard scheme.
TEST(NetworkIsolationKeyTest, NonStandardScheme) {}

TEST(NetworkIsolationKeyTest, CreateWithNewFrameSite) {}

TEST(NetworkIsolationKeyTest, CreateTransientForTesting) {}

}  // namespace

}  // namespace net