#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gpu {
namespace {
class FakeScopedTransferBufferPtr { … };
constexpr uint32_t MaxCopyCount(uint32_t buffer_size) { … }
}
class TransferBufferCmdCopyHelpersTest : public testing::Test { … };
TEST_F(TransferBufferCmdCopyHelpersTest, CheckedSizeOfTypes) { … }
TEST_F(TransferBufferCmdCopyHelpersTest, ComputeCombinedCopySizeAligned) { … }
TEST_F(TransferBufferCmdCopyHelpersTest, ComputeCombinedCopySizeUnaligned) { … }
TEST_F(TransferBufferCmdCopyHelpersTest, ComputeCombinedCopySizeOverflow) { … }
TEST_F(TransferBufferCmdCopyHelpersTest, ComputeMaxCopyCountAligned) { … }
TEST_F(TransferBufferCmdCopyHelpersTest, ComputeMaxCopyCountUnaligned) { … }
TEST_F(TransferBufferCmdCopyHelpersTest, ComputeMaxCopyCountZero) { … }
TEST_F(TransferBufferCmdCopyHelpersTest, ComputeMaxCopyCountOverflow) { … }
TEST_F(TransferBufferCmdCopyHelpersTest, TransferArraysAndExecute) { … }
TEST_F(TransferBufferCmdCopyHelpersTest, TransferArraysAndExecuteOverflow) { … }
}