chromium/content/browser/interest_group/interest_group_permissions_cache_unittest.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/interest_group/interest_group_permissions_cache.h"

#include <string>
#include <vector>

#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "net/base/network_isolation_key.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"

namespace content {
namespace {

// Very short time used by some tests that want to wait until just after a
// timer triggers.
constexpr base::TimeDelta kTinyTime =;

Permissions;

class InterestGroupPermissionsCacheTest : public testing::Test {};

TEST_F(InterestGroupPermissionsCacheTest, PermissionsEquality) {}

TEST_F(InterestGroupPermissionsCacheTest, Basic) {}

TEST_F(InterestGroupPermissionsCacheTest, Overwrite) {}

TEST_F(InterestGroupPermissionsCacheTest, MultipleEntries) {}

TEST_F(InterestGroupPermissionsCacheTest, Clear) {}

TEST_F(InterestGroupPermissionsCacheTest, Expiry) {}

// Test the case where a CacheEntry expires without the cache shard also
// expiring.
TEST_F(InterestGroupPermissionsCacheTest, CacheEntryExpiry) {}

TEST_F(InterestGroupPermissionsCacheTest, DeleteExpired) {}

TEST_F(InterestGroupPermissionsCacheTest, DeleteExpiredPreservesUnexpired) {}

TEST_F(InterestGroupPermissionsCacheTest, LRU) {}

}  // namespace
}  // namespace content