#include "gpu/command_buffer/service/transfer_buffer_manager.h"
#include <stddef.h>
#include <memory>
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gpu {
const static size_t kBufferSize = …;
class TransferBufferManagerTest : public testing::Test { … };
TEST_F(TransferBufferManagerTest, ZeroHandleMapsToNull) { … }
TEST_F(TransferBufferManagerTest, NegativeHandleMapsToNull) { … }
TEST_F(TransferBufferManagerTest, OutOfRangeHandleMapsToNull) { … }
TEST_F(TransferBufferManagerTest, CanRegisterTransferBuffer) { … }
TEST_F(TransferBufferManagerTest, CanDestroyTransferBuffer) { … }
TEST_F(TransferBufferManagerTest, CannotRegregisterTransferBufferId) { … }
TEST_F(TransferBufferManagerTest, CanReuseTransferBufferIdAfterDestroying) { … }
TEST_F(TransferBufferManagerTest, DestroyUnusedTransferBufferIdDoesNotCrash) { … }
TEST_F(TransferBufferManagerTest, CannotRegisterNullTransferBuffer) { … }
TEST_F(TransferBufferManagerTest, CannotRegisterNegativeTransferBufferId) { … }
}