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

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

Issue 10392068: ui: Move gl/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac_rel Created 8 years, 7 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
OLDNEW
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 #pragma once 10 #pragma once
11 11
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 #include "ui/gfx/gl/gl_interface.h" 13 #include "ui/gl/gl_interface.h"
14 14
15 namespace gfx { 15 namespace gfx {
16 16
17 class MockGLInterface : public GLInterface { 17 class MockGLInterface : public GLInterface {
18 public: 18 public:
19 MockGLInterface(); 19 MockGLInterface();
20 virtual ~MockGLInterface(); 20 virtual ~MockGLInterface();
21 21
22 MOCK_METHOD1(ActiveTexture, void(GLenum texture)); 22 MOCK_METHOD1(ActiveTexture, void(GLenum texture));
23 23
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 MOCK_METHOD5(DrawElementsInstancedANGLE, void( 508 MOCK_METHOD5(DrawElementsInstancedANGLE, void(
509 GLenum mode, GLsizei count, GLenum type, const void* indices, 509 GLenum mode, GLsizei count, GLenum type, const void* indices,
510 GLsizei primcount)); 510 GLsizei primcount));
511 511
512 MOCK_METHOD2(VertexAttribDivisorANGLE, void(GLuint index, GLuint divisor)); 512 MOCK_METHOD2(VertexAttribDivisorANGLE, void(GLuint index, GLuint divisor));
513 }; 513 };
514 514
515 } // namespace gfx 515 } // namespace gfx
516 516
517 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ 517 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/common/unittest_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698