| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 MOCK_METHOD1( | 82 MOCK_METHOD1( |
| 83 SetResizeCallback, void(const base::Callback<void(gfx::Size, float)>&)); | 83 SetResizeCallback, void(const base::Callback<void(gfx::Size, float)>&)); |
| 84 MOCK_METHOD0(GetAsyncPixelTransferDelegate, | 84 MOCK_METHOD0(GetAsyncPixelTransferDelegate, |
| 85 AsyncPixelTransferDelegate*()); | 85 AsyncPixelTransferDelegate*()); |
| 86 MOCK_METHOD0(GetAsyncPixelTransferManager, | 86 MOCK_METHOD0(GetAsyncPixelTransferManager, |
| 87 AsyncPixelTransferManager*()); | 87 AsyncPixelTransferManager*()); |
| 88 MOCK_METHOD0(ResetAsyncPixelTransferManagerForTest, void()); | 88 MOCK_METHOD0(ResetAsyncPixelTransferManagerForTest, void()); |
| 89 MOCK_METHOD1(SetAsyncPixelTransferManagerForTest, | 89 MOCK_METHOD1(SetAsyncPixelTransferManagerForTest, |
| 90 void(AsyncPixelTransferManager*)); | 90 void(AsyncPixelTransferManager*)); |
| 91 MOCK_METHOD1(SetIgnoreCachedStateForTest, void(bool ignore)); | 91 MOCK_METHOD1(SetIgnoreCachedStateForTest, void(bool ignore)); |
| 92 MOCK_METHOD1(SetAllowExit, void(bool allow)); |
| 92 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, | 93 MOCK_METHOD3(DoCommand, error::Error(unsigned int command, |
| 93 unsigned int arg_count, | 94 unsigned int arg_count, |
| 94 const void* cmd_data)); | 95 const void* cmd_data)); |
| 95 MOCK_METHOD4(DoCommands, | 96 MOCK_METHOD4(DoCommands, |
| 96 error::Error(unsigned int num_commands, | 97 error::Error(unsigned int num_commands, |
| 97 const void* buffer, | 98 const void* buffer, |
| 98 int num_entries, | 99 int num_entries, |
| 99 int* entries_processed)); | 100 int* entries_processed)); |
| 100 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, | 101 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, |
| 101 uint32* service_texture_id)); | 102 uint32* service_texture_id)); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 128 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); | 129 MOCK_CONST_METHOD0(WasContextLostByRobustnessExtension, bool()); |
| 129 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); | 130 MOCK_METHOD1(MarkContextLost, void(gpu::error::ContextLostReason reason)); |
| 130 | 131 |
| 131 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 132 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 } // namespace gles2 | 135 } // namespace gles2 |
| 135 } // namespace gpu | 136 } // namespace gpu |
| 136 | 137 |
| 137 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 138 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| OLD | NEW |