| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 MOCK_CONST_METHOD1(RestoreTextureState, void(unsigned service_id)); | 76 MOCK_CONST_METHOD1(RestoreTextureState, void(unsigned service_id)); |
| 77 MOCK_CONST_METHOD1(RestoreTextureUnitBindings, void(unsigned unit)); | 77 MOCK_CONST_METHOD1(RestoreTextureUnitBindings, void(unsigned unit)); |
| 78 MOCK_CONST_METHOD0(ClearAllAttributes, void()); | 78 MOCK_CONST_METHOD0(ClearAllAttributes, void()); |
| 79 MOCK_CONST_METHOD0(RestoreAllAttributes, void()); | 79 MOCK_CONST_METHOD0(RestoreAllAttributes, void()); |
| 80 MOCK_METHOD0(GetQueryManager, gpu::gles2::QueryManager*()); | 80 MOCK_METHOD0(GetQueryManager, gpu::gles2::QueryManager*()); |
| 81 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*()); | 81 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*()); |
| 82 MOCK_METHOD0(GetImageManager, gpu::gles2::ImageManager*()); | 82 MOCK_METHOD0(GetImageManager, gpu::gles2::ImageManager*()); |
| 83 MOCK_METHOD0(GetValuebufferManager, gpu::gles2::ValuebufferManager*()); | 83 MOCK_METHOD0(GetValuebufferManager, gpu::gles2::ValuebufferManager*()); |
| 84 MOCK_METHOD1( | 84 MOCK_METHOD1( |
| 85 SetResizeCallback, void(const base::Callback<void(gfx::Size, float)>&)); | 85 SetResizeCallback, void(const base::Callback<void(gfx::Size, float)>&)); |
| 86 MOCK_METHOD0(GetAsyncPixelTransferDelegate, | |
| 87 AsyncPixelTransferDelegate*()); | |
| 88 MOCK_METHOD0(GetAsyncPixelTransferManager, | |
| 89 AsyncPixelTransferManager*()); | |
| 90 MOCK_METHOD0(ResetAsyncPixelTransferManagerForTest, void()); | |
| 91 MOCK_METHOD1(SetAsyncPixelTransferManagerForTest, | |
| 92 void(AsyncPixelTransferManager*)); | |
| 93 MOCK_METHOD1(SetIgnoreCachedStateForTest, void(bool ignore)); | 86 MOCK_METHOD1(SetIgnoreCachedStateForTest, void(bool ignore)); |
| 94 MOCK_METHOD1(SetAllowExit, void(bool allow)); | 87 MOCK_METHOD1(SetAllowExit, void(bool allow)); |
| 95 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, | 88 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, |
| 96 unsigned int arg_count, | 89 unsigned int arg_count, |
| 97 const void* cmd_data)); | 90 const void* cmd_data)); |
| 98 MOCK_METHOD4(DoCommands, | 91 MOCK_METHOD4(DoCommands, |
| 99 error::Error(unsigned int num_commands, | 92 error::Error(unsigned int num_commands, |
| 100 const void* buffer, | 93 const void* buffer, |
| 101 int num_entries, | 94 int num_entries, |
| 102 int* entries_processed)); | 95 int* entries_processed)); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 131 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); | 124 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); |
| 132 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); | 125 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); |
| 133 | 126 |
| 134 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 127 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
| 135 }; | 128 }; |
| 136 | 129 |
| 137 } // namespace gles2 | 130 } // namespace gles2 |
| 138 } // namespace gpu | 131 } // namespace gpu |
| 139 | 132 |
| 140 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 133 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| OLD | NEW |