#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "gpu/command_buffer/service/memory_program_cache.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include "base/containers/heap_array.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "build/build_config.h"
#include "gpu/command_buffer/common/gles2_cmd_format.h"
#include "gpu/command_buffer/common/shm_count.h"
#include "gpu/command_buffer/service/gl_utils.h"
#include "gpu/command_buffer/service/gpu_service_test.h"
#include "gpu/command_buffer/service/shader_manager.h"
#include "gpu/command_buffer/service/shader_translator.h"
#include "gpu/command_buffer/service/test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_mock.h"
_;
Invoke;
SetArgPointee;
namespace gpu {
namespace gles2 {
class ProgramBinaryEmulator { … };
class MemoryProgramCacheTest : public GpuServiceTest, public DecoderClient { … };
TEST_F(MemoryProgramCacheTest, CacheSave) { … }
TEST_F(MemoryProgramCacheTest, LoadProgram) { … }
TEST_F(MemoryProgramCacheTest, CacheLoadMatchesSave) { … }
TEST_F(MemoryProgramCacheTest, LoadProgramMatchesSave) { … }
TEST_F(MemoryProgramCacheTest, LoadFailOnLinkFalse) { … }
TEST_F(MemoryProgramCacheTest, LoadFailOnDifferentSource) { … }
TEST_F(MemoryProgramCacheTest, LoadFailOnDifferentMap) { … }
TEST_F(MemoryProgramCacheTest, LoadFailOnDifferentTransformFeedbackVaryings) { … }
TEST_F(MemoryProgramCacheTest, LoadFailIfTransformFeedbackCachingDisabled) { … }
TEST_F(MemoryProgramCacheTest, MemoryProgramCacheEviction) { … }
TEST_F(MemoryProgramCacheTest, SaveCorrectProgram) { … }
TEST_F(MemoryProgramCacheTest, LoadCorrectProgram) { … }
TEST_F(MemoryProgramCacheTest, OverwriteOnNewSave) { … }
TEST_F(MemoryProgramCacheTest, MemoryProgramCacheTrim) { … }
}
}