| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*()); | 74 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*()); |
| 75 MOCK_METHOD1( | 75 MOCK_METHOD1( |
| 76 SetResizeCallback, void(const base::Callback<void(gfx::Size, float)>&)); | 76 SetResizeCallback, void(const base::Callback<void(gfx::Size, float)>&)); |
| 77 MOCK_METHOD0(GetAsyncPixelTransferDelegate, | 77 MOCK_METHOD0(GetAsyncPixelTransferDelegate, |
| 78 AsyncPixelTransferDelegate*()); | 78 AsyncPixelTransferDelegate*()); |
| 79 MOCK_METHOD0(GetAsyncPixelTransferManager, | 79 MOCK_METHOD0(GetAsyncPixelTransferManager, |
| 80 AsyncPixelTransferManager*()); | 80 AsyncPixelTransferManager*()); |
| 81 MOCK_METHOD0(ResetAsyncPixelTransferManagerForTest, void()); | 81 MOCK_METHOD0(ResetAsyncPixelTransferManagerForTest, void()); |
| 82 MOCK_METHOD1(SetAsyncPixelTransferManagerForTest, | 82 MOCK_METHOD1(SetAsyncPixelTransferManagerForTest, |
| 83 void(AsyncPixelTransferManager*)); | 83 void(AsyncPixelTransferManager*)); |
| 84 MOCK_METHOD1(SetIgnoreCachedStateForTest, void(bool ignore)); | |
| 85 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, | 84 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, |
| 86 unsigned int arg_count, | 85 unsigned int arg_count, |
| 87 const void* cmd_data)); | 86 const void* cmd_data)); |
| 88 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, | 87 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, |
| 89 uint32* service_texture_id)); | 88 uint32* service_texture_id)); |
| 90 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); | 89 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); |
| 91 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); | 90 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); |
| 92 MOCK_METHOD10(ClearLevel, bool( | 91 MOCK_METHOD10(ClearLevel, bool( |
| 93 unsigned service_id, | 92 unsigned service_id, |
| 94 unsigned bind_target, | 93 unsigned bind_target, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 117 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); | 116 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); |
| 118 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); | 117 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); |
| 119 | 118 |
| 120 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 119 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
| 121 }; | 120 }; |
| 122 | 121 |
| 123 } // namespace gles2 | 122 } // namespace gles2 |
| 124 } // namespace gpu | 123 } // namespace gpu |
| 125 | 124 |
| 126 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 125 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| OLD | NEW |