#include "gpu/command_buffer/service/gr_shader_cache.h"
#include <thread>
#include "base/base64.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gpu {
namespace raster {
namespace {
constexpr char kShaderKey[] = …;
constexpr char kShader[] = …;
constexpr size_t kCacheLimit = …;
}
class GrShaderCacheTest : public GrShaderCache::Client, public testing::Test { … };
TEST_F(GrShaderCacheTest, DoesNotCacheForIncognito) { … }
TEST_F(GrShaderCacheTest, LoadedFromDisk) { … }
TEST_F(GrShaderCacheTest, EnforcesLimits) { … }
TEST_F(GrShaderCacheTest, MemoryPressure) { … }
TEST_F(GrShaderCacheTest, StoringSameEntry) { … }
TEST_F(GrShaderCacheTest, PopulateFromDiskAfterStoring) { … }
TEST_F(GrShaderCacheTest, MultipleThreadsUsingSameCache) { … }
}
}