chromium/services/network/cors/preflight_cache_unittest.cc

// Copyright 2018 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/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "services/network/cors/preflight_cache.h"

#include "base/test/simple_test_tick_clock.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "net/base/network_isolation_key.h"
#include "net/http/http_request_headers.h"
#include "net/log/net_log.h"
#include "net/log/net_log_event_type.h"
#include "net/log/net_log_source_type.h"
#include "net/log/net_log_with_source.h"
#include "net/log/test_net_log.h"
#include "net/log/test_net_log_util.h"
#include "services/network/public/mojom/clear_data_filter.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"

namespace network::cors {

namespace {

struct CacheTestEntry {};

constexpr CacheTestEntry kCacheEntries[] =;

class PreflightCacheTest : public testing::Test {};

TEST_F(PreflightCacheTest, CacheSize) {}

TEST_F(PreflightCacheTest, CacheTimeout) {}

TEST_F(PreflightCacheTest, RespectsNetworkIsolationKeys) {}

TEST_F(PreflightCacheTest, HandlesOpaqueOrigins) {}

TEST_F(PreflightCacheTest, PrivateNetworkAccess) {}

TEST_F(PreflightCacheTest, NetLogCheckCacheExist) {}

TEST_F(PreflightCacheTest, ClearCacheNoFilter) {}

TEST_F(PreflightCacheTest, ClearCacheWithEmptyDeleteFilter) {}

TEST_F(PreflightCacheTest, ClearCacheWithDeleteFilterOrigins) {}

TEST_F(PreflightCacheTest, ClearCacheWithDeleteFilterDomains) {}

TEST_F(PreflightCacheTest, ClearCacheWithDeleteFilterOriginsAndDomains) {}

TEST_F(PreflightCacheTest, ClearCacheWithEmptyKeepFilter) {}

TEST_F(PreflightCacheTest, ClearCacheWithKeepFilterOrigins) {}

TEST_F(PreflightCacheTest, ClearCacheWithKeepFilterDomains) {}

TEST_F(PreflightCacheTest, ClearCacheWithKeepFilterOriginsAndDomains) {}

}  // namespace

}  // namespace network::cors