OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 implements mock GL Interface for unit testing. It has to mock | 5 // This file implements mock GL Interface for unit testing. It has to mock |
6 // Desktop GL, not GLES2 as it is used to test the service side code. | 6 // Desktop GL, not GLES2 as it is used to test the service side code. |
7 | 7 |
8 #ifndef GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ | 8 #ifndef GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ |
9 #define GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ | 9 #define GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ |
10 #pragma once | 10 #pragma once |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 MOCK_METHOD1(ActiveTexture, void(GLenum texture)); | 22 MOCK_METHOD1(ActiveTexture, void(GLenum texture)); |
23 | 23 |
24 MOCK_METHOD2(AttachShader, void(GLuint program, GLuint shader)); | 24 MOCK_METHOD2(AttachShader, void(GLuint program, GLuint shader)); |
25 | 25 |
26 MOCK_METHOD3(BindAttribLocation, void( | 26 MOCK_METHOD3(BindAttribLocation, void( |
27 GLuint program, GLuint index, const char* name)); | 27 GLuint program, GLuint index, const char* name)); |
28 | 28 |
29 MOCK_METHOD2(BindBuffer, void(GLenum target, GLuint buffer)); | 29 MOCK_METHOD2(BindBuffer, void(GLenum target, GLuint buffer)); |
30 | 30 |
| 31 MOCK_METHOD3(BindFragDataLocation, void(GLuint program, GLuint colorNumber, |
| 32 const char* name)); |
| 33 |
31 MOCK_METHOD4(BindFragDataLocationIndexedARB, void(GLuint program, | 34 MOCK_METHOD4(BindFragDataLocationIndexedARB, void(GLuint program, |
32 GLuint colorNumber, GLuint index, const char* name)); | 35 GLuint colorNumber, GLuint index, const char* name)); |
33 | 36 |
34 MOCK_METHOD2(BindFramebufferEXT, void(GLenum target, GLuint framebuffer)); | 37 MOCK_METHOD2(BindFramebufferEXT, void(GLenum target, GLuint framebuffer)); |
35 | 38 |
36 MOCK_METHOD2(BindRenderbufferEXT, void(GLenum target, GLuint renderbuffer)); | 39 MOCK_METHOD2(BindRenderbufferEXT, void(GLenum target, GLuint renderbuffer)); |
37 | 40 |
38 MOCK_METHOD2(BindTexture, void(GLenum target, GLuint texture)); | 41 MOCK_METHOD2(BindTexture, void(GLenum target, GLuint texture)); |
39 | 42 |
40 MOCK_METHOD4(BlendColor, void( | 43 MOCK_METHOD4(BlendColor, void( |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 | 444 |
442 MOCK_METHOD1(SetSurfaceCHROMIUM, void(GLuint)); | 445 MOCK_METHOD1(SetSurfaceCHROMIUM, void(GLuint)); |
443 | 446 |
444 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum()); | 447 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum()); |
445 }; | 448 }; |
446 | 449 |
447 } // namespace gfx | 450 } // namespace gfx |
448 | 451 |
449 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ | 452 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ |
450 | 453 |
OLD | NEW |