| Index: gpu/command_buffer/client/client_test_helper.h
|
| diff --git a/gpu/command_buffer/client/client_test_helper.h b/gpu/command_buffer/client/client_test_helper.h
|
| index 70107046660bff63af63515389c2ebdfe0df0b24..e9d6c365fae3375b6461cc8e6c4f538213fde308 100644
|
| --- a/gpu/command_buffer/client/client_test_helper.h
|
| +++ b/gpu/command_buffer/client/client_test_helper.h
|
| @@ -11,6 +11,7 @@
|
| #include "gpu/command_buffer/common/cmd_buffer_common.h"
|
| #include "gpu/command_buffer/common/command_buffer.h"
|
| #include "gpu/command_buffer/common/compiler_specific.h"
|
| +#include "gpu/command_buffer/common/gpu_control.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| @@ -81,6 +82,22 @@ class MockClientCommandBufferMockFlush : public MockClientCommandBuffer {
|
| void DelegateToFake();
|
| };
|
|
|
| +class MockClientGpuControl : public GpuControl {
|
| + public:
|
| + MockClientGpuControl();
|
| + virtual ~MockClientGpuControl();
|
| +
|
| + MOCK_METHOD4(CreateGpuMemoryBuffer,
|
| + gfx::GpuMemoryBuffer*(size_t width,
|
| + size_t height,
|
| + unsigned internalformat,
|
| + int32* id));
|
| + MOCK_METHOD1(DestroyGpuMemoryBuffer, void(int32 id));
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(MockClientGpuControl);
|
| +};
|
| +
|
| } // namespace gpu
|
|
|
| #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_
|
|
|