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 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 | 10 |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 | 507 |
508 MOCK_METHOD3(GetQueryivARB, void(GLenum target, GLenum pname, GLint* params)); | 508 MOCK_METHOD3(GetQueryivARB, void(GLenum target, GLenum pname, GLint* params)); |
509 | 509 |
510 MOCK_METHOD3(GetQueryObjectuivARB, void( | 510 MOCK_METHOD3(GetQueryObjectuivARB, void( |
511 GLuint id, GLenum pname, GLuint* params)); | 511 GLuint id, GLenum pname, GLuint* params)); |
512 | 512 |
513 MOCK_METHOD1(SetSurfaceCHROMIUM, void(GLuint)); | 513 MOCK_METHOD1(SetSurfaceCHROMIUM, void(GLuint)); |
514 | 514 |
515 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum()); | 515 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum()); |
516 | 516 |
| 517 MOCK_METHOD0(GetGraphicsResetStatusEXT, GLenum()); |
| 518 |
517 MOCK_METHOD4(DrawArraysInstancedANGLE, void( | 519 MOCK_METHOD4(DrawArraysInstancedANGLE, void( |
518 GLenum mode, GLint first, GLsizei count, GLsizei primcount)); | 520 GLenum mode, GLint first, GLsizei count, GLsizei primcount)); |
519 | 521 |
520 MOCK_METHOD5(DrawElementsInstancedANGLE, void( | 522 MOCK_METHOD5(DrawElementsInstancedANGLE, void( |
521 GLenum mode, GLsizei count, GLenum type, const void* indices, | 523 GLenum mode, GLsizei count, GLenum type, const void* indices, |
522 GLsizei primcount)); | 524 GLsizei primcount)); |
523 | 525 |
524 MOCK_METHOD2(VertexAttribDivisorANGLE, void(GLuint index, GLuint divisor)); | 526 MOCK_METHOD2(VertexAttribDivisorANGLE, void(GLuint index, GLuint divisor)); |
525 }; | 527 }; |
526 | 528 |
527 } // namespace gfx | 529 } // namespace gfx |
528 | 530 |
529 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ | 531 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ |
OLD | NEW |