#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 {
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_F(InterestGroupPermissionsCacheTest, CacheEntryExpiry) { … }
TEST_F(InterestGroupPermissionsCacheTest, DeleteExpired) { … }
TEST_F(InterestGroupPermissionsCacheTest, DeleteExpiredPreservesUnexpired) { … }
TEST_F(InterestGroupPermissionsCacheTest, LRU) { … }
}
}