chromium/gpu/command_buffer/service/buffer_manager_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/351564777): Remove this and convert code to safer constructs.
#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 buffers get shadowed when they are supposed to be.
TEST_F(BufferManagerClientSideArraysTest, StreamBuffersAreShadowed) {}

TEST_F(BufferManagerTest, MaxValueCacheClearedCorrectly) {}

TEST_F(BufferManagerTest, BindBufferConflicts) {}

TEST_F(BufferManagerTest, DeleteBufferAfterContextLost) {}

}  // namespace gles2
}  // namespace gpu