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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 const void* cmd_data)); | 94 const void* cmd_data)); |
95 MOCK_METHOD4(DoCommands, | 95 MOCK_METHOD4(DoCommands, |
96 error::Error(unsigned int num_commands, | 96 error::Error(unsigned int num_commands, |
97 const void* buffer, | 97 const void* buffer, |
98 int num_entries, | 98 int num_entries, |
99 int* entries_processed)); | 99 int* entries_processed)); |
100 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, | 100 MOCK_METHOD2(GetServiceTextureId, bool(uint32 client_texture_id, |
101 uint32* service_texture_id)); | 101 uint32* service_texture_id)); |
102 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); | 102 MOCK_METHOD0(GetContextLostReason, error::ContextLostReason()); |
103 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); | 103 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); |
104 MOCK_METHOD10(ClearLevel, bool( | 104 MOCK_METHOD9(ClearLevel, bool( |
105 unsigned service_id, | 105 Texture* texture, |
106 unsigned bind_target, | |
107 unsigned target, | 106 unsigned target, |
108 int level, | 107 int level, |
109 unsigned internal_format, | 108 unsigned internal_format, |
110 unsigned format, | 109 unsigned format, |
111 unsigned type, | 110 unsigned type, |
112 int width, | 111 int width, |
113 int height, | 112 int height, |
114 bool is_texture_immutable)); | 113 bool is_texture_immutable)); |
115 MOCK_METHOD0(GetErrorState, ErrorState *()); | 114 MOCK_METHOD0(GetErrorState, ErrorState *()); |
116 | 115 |
(...skipping 12 matching lines...) Expand all Loading... |
129 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); | 128 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); |
130 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); | 129 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); |
131 | 130 |
132 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 131 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
133 }; | 132 }; |
134 | 133 |
135 } // namespace gles2 | 134 } // namespace gles2 |
136 } // namespace gpu | 135 } // namespace gpu |
137 | 136 |
138 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 137 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
OLD | NEW |