chromium/gpu/command_buffer/service/memory_program_cache_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#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) {}

}  // namespace gles2
}  // namespace gpu