Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: app/gfx/gl/gl_mock.h

Issue 3146002: Fixed build problems on Mac OS X when using GLContext from Chromium's... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « app/gfx/gl/gl_interface.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 APP_GFX_GL_GL_MOCK_H_ 8 #ifndef APP_GFX_GL_GL_MOCK_H_
9 #define APP_GFX_GL_GL_MOCK_H_ 9 #define APP_GFX_GL_GL_MOCK_H_
10 #pragma once 10 #pragma once
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 MOCK_METHOD3(GetVertexAttribPointerv, void( 229 MOCK_METHOD3(GetVertexAttribPointerv, void(
230 GLuint index, GLenum pname, void** pointer)); 230 GLuint index, GLenum pname, void** pointer));
231 231
232 MOCK_METHOD2(Hint, void(GLenum target, GLenum mode)); 232 MOCK_METHOD2(Hint, void(GLenum target, GLenum mode));
233 233
234 MOCK_METHOD1(IsBuffer, GLboolean(GLuint buffer)); 234 MOCK_METHOD1(IsBuffer, GLboolean(GLuint buffer));
235 235
236 MOCK_METHOD1(IsEnabled, GLboolean(GLenum cap)); 236 MOCK_METHOD1(IsEnabled, GLboolean(GLenum cap));
237 237
238 MOCK_METHOD1(IsFramebuffer, GLboolean(GLuint framebuffer)); 238 MOCK_METHOD1(IsFramebufferEXT, GLboolean(GLuint framebuffer));
239 239
240 MOCK_METHOD1(IsProgram, GLboolean(GLuint program)); 240 MOCK_METHOD1(IsProgram, GLboolean(GLuint program));
241 241
242 MOCK_METHOD1(IsRenderbuffer, GLboolean(GLuint renderbuffer)); 242 MOCK_METHOD1(IsRenderbufferEXT, GLboolean(GLuint renderbuffer));
243 243
244 MOCK_METHOD1(IsShader, GLboolean(GLuint shader)); 244 MOCK_METHOD1(IsShader, GLboolean(GLuint shader));
245 245
246 MOCK_METHOD1(IsTexture, GLboolean(GLuint texture)); 246 MOCK_METHOD1(IsTexture, GLboolean(GLuint texture));
247 247
248 MOCK_METHOD1(LineWidth, void(GLfloat width)); 248 MOCK_METHOD1(LineWidth, void(GLfloat width));
249 249
250 MOCK_METHOD1(LinkProgram, void(GLuint program)); 250 MOCK_METHOD1(LinkProgram, void(GLuint program));
251 251
252 MOCK_METHOD2(PixelStorei, void(GLenum pname, GLint param)); 252 MOCK_METHOD2(PixelStorei, void(GLenum pname, GLint param));
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 MOCK_METHOD4(GetMaxValueInBuffer, GLuint( 394 MOCK_METHOD4(GetMaxValueInBuffer, GLuint(
395 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset)); 395 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset));
396 }; 396 };
397 397
398 } // namespace gfx 398 } // namespace gfx
399 399
400 #endif // APP_GFX_GL_GL_MOCK_H_ 400 #endif // APP_GFX_GL_GL_MOCK_H_
401 401
402 402
403 403
OLDNEW
« no previous file with comments | « app/gfx/gl/gl_interface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698