| 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 <stdint.h> | 10 #include <stdint.h> |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 MOCK_CONST_METHOD0(RestoreGlobalState, void()); | 78 MOCK_CONST_METHOD0(RestoreGlobalState, void()); |
| 79 MOCK_CONST_METHOD0(RestoreProgramBindings, void()); | 79 MOCK_CONST_METHOD0(RestoreProgramBindings, void()); |
| 80 MOCK_METHOD0(RestoreRenderbufferBindings, void()); | 80 MOCK_METHOD0(RestoreRenderbufferBindings, void()); |
| 81 MOCK_CONST_METHOD1(RestoreTextureState, void(unsigned service_id)); | 81 MOCK_CONST_METHOD1(RestoreTextureState, void(unsigned service_id)); |
| 82 MOCK_CONST_METHOD1(RestoreTextureUnitBindings, void(unsigned unit)); | 82 MOCK_CONST_METHOD1(RestoreTextureUnitBindings, void(unsigned unit)); |
| 83 MOCK_CONST_METHOD0(ClearAllAttributes, void()); | 83 MOCK_CONST_METHOD0(ClearAllAttributes, void()); |
| 84 MOCK_CONST_METHOD0(RestoreAllAttributes, void()); | 84 MOCK_CONST_METHOD0(RestoreAllAttributes, void()); |
| 85 MOCK_METHOD0(GetQueryManager, gpu::gles2::QueryManager*()); | 85 MOCK_METHOD0(GetQueryManager, gpu::gles2::QueryManager*()); |
| 86 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*()); | 86 MOCK_METHOD0(GetVertexArrayManager, gpu::gles2::VertexArrayManager*()); |
| 87 MOCK_METHOD0(GetImageManager, gpu::gles2::ImageManager*()); | 87 MOCK_METHOD0(GetImageManager, gpu::gles2::ImageManager*()); |
| 88 MOCK_METHOD0(GetValuebufferManager, gpu::gles2::ValuebufferManager*()); | |
| 89 MOCK_METHOD1( | 88 MOCK_METHOD1( |
| 90 SetResizeCallback, void(const base::Callback<void(gfx::Size, float)>&)); | 89 SetResizeCallback, void(const base::Callback<void(gfx::Size, float)>&)); |
| 91 MOCK_METHOD1(SetIgnoreCachedStateForTest, void(bool ignore)); | 90 MOCK_METHOD1(SetIgnoreCachedStateForTest, void(bool ignore)); |
| 92 MOCK_METHOD1(SetForceShaderNameHashingForTest, void(bool force)); | 91 MOCK_METHOD1(SetForceShaderNameHashingForTest, void(bool force)); |
| 93 MOCK_METHOD1(SetAllowExit, void(bool allow)); | 92 MOCK_METHOD1(SetAllowExit, void(bool allow)); |
| 94 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, | 93 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, |
| 95 unsigned int arg_count, | 94 unsigned int arg_count, |
| 96 const void* cmd_data)); | 95 const void* cmd_data)); |
| 97 MOCK_METHOD4(DoCommands, | 96 MOCK_METHOD4(DoCommands, |
| 98 error::Error(unsigned int num_commands, | 97 error::Error(unsigned int num_commands, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); | 140 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); |
| 142 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); | 141 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); |
| 143 | 142 |
| 144 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 143 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
| 145 }; | 144 }; |
| 146 | 145 |
| 147 } // namespace gles2 | 146 } // namespace gles2 |
| 148 } // namespace gpu | 147 } // namespace gpu |
| 149 | 148 |
| 150 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 149 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| OLD | NEW |