Chromium Code Reviews| 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)); |
|
kaanb
2013/08/15 18:31:29
nit: you don't need the parameter name, i.e. s/int
reveman
2013/08/16 01:34:57
prefer to keep parameter name as it's consistent w
|
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(MockClientGpuControl); |
| +}; |
| + |
| } // namespace gpu |
| #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ |