| 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 15 matching lines...) Expand all Loading... |
| 26 MOCK_METHOD2(BeginQuery, void(GLenum target, GLuint id)); | 26 MOCK_METHOD2(BeginQuery, void(GLenum target, GLuint id)); |
| 27 | 27 |
| 28 MOCK_METHOD3(BindAttribLocation, void( | 28 MOCK_METHOD3(BindAttribLocation, void( |
| 29 GLuint program, GLuint index, const char* name)); | 29 GLuint program, GLuint index, const char* name)); |
| 30 | 30 |
| 31 MOCK_METHOD2(BindBuffer, void(GLenum target, GLuint buffer)); | 31 MOCK_METHOD2(BindBuffer, void(GLenum target, GLuint buffer)); |
| 32 | 32 |
| 33 MOCK_METHOD3(BindFragDataLocation, void(GLuint program, GLuint colorNumber, | 33 MOCK_METHOD3(BindFragDataLocation, void(GLuint program, GLuint colorNumber, |
| 34 const char* name)); | 34 const char* name)); |
| 35 | 35 |
| 36 MOCK_METHOD4(BindFragDataLocationIndexedARB, void(GLuint program, | 36 MOCK_METHOD4(BindFragDataLocationIndexed, void(GLuint program, |
| 37 GLuint colorNumber, GLuint index, const char* name)); | 37 GLuint colorNumber, GLuint index, const char* name)); |
| 38 | 38 |
| 39 MOCK_METHOD2(BindFramebufferEXT, void(GLenum target, GLuint framebuffer)); | 39 MOCK_METHOD2(BindFramebufferEXT, void(GLenum target, GLuint framebuffer)); |
| 40 | 40 |
| 41 MOCK_METHOD2(BindRenderbufferEXT, void(GLenum target, GLuint renderbuffer)); | 41 MOCK_METHOD2(BindRenderbufferEXT, void(GLenum target, GLuint renderbuffer)); |
| 42 | 42 |
| 43 MOCK_METHOD2(BindTexture, void(GLenum target, GLuint texture)); | 43 MOCK_METHOD2(BindTexture, void(GLenum target, GLuint texture)); |
| 44 | 44 |
| 45 MOCK_METHOD4(BlendColor, void( | 45 MOCK_METHOD4(BlendColor, void( |
| 46 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)); | 46 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)); |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 MOCK_METHOD3(GetFenceivNV, void(GLuint fence, GLenum pname, GLint *params)); | 469 MOCK_METHOD3(GetFenceivNV, void(GLuint fence, GLenum pname, GLint *params)); |
| 470 | 470 |
| 471 MOCK_METHOD1(SetSurfaceCHROMIUM, void(GLuint)); | 471 MOCK_METHOD1(SetSurfaceCHROMIUM, void(GLuint)); |
| 472 | 472 |
| 473 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum()); | 473 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum()); |
| 474 }; | 474 }; |
| 475 | 475 |
| 476 } // namespace gfx | 476 } // namespace gfx |
| 477 | 477 |
| 478 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ | 478 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ |
| 479 | |
| OLD | NEW |