#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "gpu/command_buffer/service/buffer_manager.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include "base/containers/heap_array.h"
#include "gpu/command_buffer/service/error_state_mock.h"
#include "gpu/command_buffer/service/feature_info.h"
#include "gpu/command_buffer/service/gpu_service_test.h"
#include "gpu/command_buffer/service/mocks.h"
#include "gpu/command_buffer/service/test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_mock.h"
_;
Return;
StrictMock;
namespace gpu {
namespace gles2 {
class BufferManagerTestBase : public GpuServiceTest { … };
class BufferManagerTest : public BufferManagerTestBase { … };
class BufferManagerMemoryTrackerTest : public BufferManagerTestBase { … };
class BufferManagerClientSideArraysTest : public BufferManagerTestBase { … };
#define EXPECT_MEMORY_ALLOCATION_CHANGE(old_size, new_size) …
TEST_F(BufferManagerTest, Basic) { … }
TEST_F(BufferManagerMemoryTrackerTest, Basic) { … }
TEST_F(BufferManagerTest, Destroy) { … }
TEST_F(BufferManagerTest, DoBufferSubData) { … }
TEST_F(BufferManagerTest, GetRange) { … }
TEST_F(BufferManagerTest, GetMaxValueForRangeUint8) { … }
TEST_F(BufferManagerTest, GetMaxValueForRangeUint8PrimitiveRestart) { … }
TEST_F(BufferManagerTest, GetMaxValueForRangeUint16) { … }
TEST_F(BufferManagerTest, GetMaxValueForRangeUint16PrimitiveRestart) { … }
TEST_F(BufferManagerTest, GetMaxValueForRangeUint32) { … }
TEST_F(BufferManagerTest, GetMaxValueForRangeUint32PrimitiveRestart) { … }
TEST_F(BufferManagerTest, UseDeletedBuffer) { … }
TEST_F(BufferManagerClientSideArraysTest, StreamBuffersAreShadowed) { … }
TEST_F(BufferManagerTest, MaxValueCacheClearedCorrectly) { … }
TEST_F(BufferManagerTest, BindBufferConflicts) { … }
TEST_F(BufferManagerTest, DeleteBufferAfterContextLost) { … }
}
}