| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file contains the mock GLES2Decoder class. | 5 // This file contains the mock GLES2Decoder class. |
| 6 | 6 |
| 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 GLES2Decoder* parent, | 37 GLES2Decoder* parent, |
| 38 uint32 parent_texture_id)); | 38 uint32 parent_texture_id)); |
| 39 MOCK_METHOD0(Destroy, void()); | 39 MOCK_METHOD0(Destroy, void()); |
| 40 MOCK_METHOD1(ResizeOffscreenFrameBuffer, void(const gfx::Size& size)); | 40 MOCK_METHOD1(ResizeOffscreenFrameBuffer, void(const gfx::Size& size)); |
| 41 MOCK_METHOD0(UpdateOffscreenFrameBufferSize, bool()); | 41 MOCK_METHOD0(UpdateOffscreenFrameBufferSize, bool()); |
| 42 MOCK_METHOD0(MakeCurrent, bool()); | 42 MOCK_METHOD0(MakeCurrent, bool()); |
| 43 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id)); | 43 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id)); |
| 44 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); | 44 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); |
| 45 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); | 45 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); |
| 46 MOCK_METHOD0(GetContextGroup, ContextGroup*()); | 46 MOCK_METHOD0(GetContextGroup, ContextGroup*()); |
| 47 MOCK_METHOD1(SetResizeCallback, void(Callback1<gfx::Size>::Type*)); |
| 47 MOCK_METHOD1(SetSwapBuffersCallback, void(Callback0::Type*)); | 48 MOCK_METHOD1(SetSwapBuffersCallback, void(Callback0::Type*)); |
| 48 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, | 49 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, |
| 49 unsigned int arg_count, | 50 unsigned int arg_count, |
| 50 const void* cmd_data)); | 51 const void* cmd_data)); |
| 51 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, | 52 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, |
| 52 uint32* service_texture_id)); | 53 uint32* service_texture_id)); |
| 53 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); | 54 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); |
| 54 | 55 |
| 55 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 56 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 } // namespace gles2 | 59 } // namespace gles2 |
| 59 } // namespace gpu | 60 } // namespace gpu |
| 60 | 61 |
| 61 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 62 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| OLD | NEW |