#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "gpu/command_buffer/common/command_buffer_shared.h"
#include <stdint.h>
#include <memory>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gpu {
class CommandBufferSharedTest : public testing::Test { … };
TEST_F(CommandBufferSharedTest, TestBasic) { … }
static const int kSize = …;
void WriteToState(int32_t* buffer, CommandBufferSharedState* shared_state) { … }
TEST_F(CommandBufferSharedTest, TestConsistency) { … }
}