#include "services/proxy_resolver/proxy_host_resolver_cache.h"
#include "base/test/task_environment.h"
#include "net/base/ip_address.h"
#include "net/base/network_anonymization_key.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace proxy_resolver {
namespace {
class ProxyHostResolverCacheTest : public testing::Test { … };
TEST_F(ProxyHostResolverCacheTest, SimpleNegativeLookup) { … }
TEST_F(ProxyHostResolverCacheTest, SimpleCachedLookup) { … }
TEST_F(ProxyHostResolverCacheTest, NoResultWithNonMatchingKeyFields) { … }
TEST_F(ProxyHostResolverCacheTest, NoResultForExpiredLookup) { … }
TEST_F(ProxyHostResolverCacheTest, EvictsOldestEntriesWhenFull) { … }
TEST_F(ProxyHostResolverCacheTest, UpdatesAlreadyExistingEntryWithSameKey) { … }
TEST_F(ProxyHostResolverCacheTest, EntryUpdateRefreshesExpiration) { … }
TEST_F(ProxyHostResolverCacheTest, EntryCanBeEvictedAfterUpdate) { … }
}
}