#include "content/browser/code_cache/simple_lru_cache.h"
#include "base/containers/to_vector.h"
#include "base/feature_list.h"
#include "base/test/scoped_feature_list.h"
#include "content/common/features.h"
#include "net/base/schemeful_site.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
namespace {
constexpr auto kEmptyEntrySize = …;
class SimpleLruCacheTest : public testing::TestWithParam<bool> { … };
TEST_P(SimpleLruCacheTest, Empty) { … }
TEST_P(SimpleLruCacheTest, PutAndGet) { … }
TEST_P(SimpleLruCacheTest, PutAndEvict) { … }
TEST_P(SimpleLruCacheTest, LRU) { … }
TEST_P(SimpleLruCacheTest, LRUAndGet) { … }
TEST_P(SimpleLruCacheTest, Delete) { … }
TEST_P(SimpleLruCacheTest, Clear) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}