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

Side by Side Diff: gpu/command_buffer/common/gl_mock.h

Issue 8052015: Revert 102978 - Change X11 error handler override to allow easy X11 error checking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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 | « gpu/DEPS ('k') | gpu/command_buffer/service/buffer_manager_unittest.cc » ('j') | 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) 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
11 11
12 // Include gtest.h out of order because <X11/X.h> #define's Bool & None, which
13 // gtest uses as struct names (inside a namespace). This means that
14 // #include'ing gtest after anything that pulls in X.h fails to compile.
15 // This is http://code.google.com/p/googletest/issues/detail?id=371
16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
18 #include "ui/gfx/gl/gl_interface.h" 13 #include "ui/gfx/gl/gl_interface.h"
19 14
20 namespace gfx { 15 namespace gfx {
21 16
22 class MockGLInterface : public GLInterface { 17 class MockGLInterface : public GLInterface {
23 public: 18 public:
24 MockGLInterface(); 19 MockGLInterface();
25 virtual ~MockGLInterface(); 20 virtual ~MockGLInterface();
26 21
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 MOCK_METHOD3(GetFenceivNV, void(GLuint fence, GLenum pname, GLint *params)); 443 MOCK_METHOD3(GetFenceivNV, void(GLuint fence, GLenum pname, GLint *params));
449 444
450 MOCK_METHOD1(SetSurfaceCHROMIUM, void(GLuint)); 445 MOCK_METHOD1(SetSurfaceCHROMIUM, void(GLuint));
451 446
452 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum()); 447 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum());
453 }; 448 };
454 449
455 } // namespace gfx 450 } // namespace gfx
456 451
457 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ 452 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_
453
OLDNEW
« no previous file with comments | « gpu/DEPS ('k') | gpu/command_buffer/service/buffer_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698