| OLD | NEW |
| 1 // Copyright (c) 2010 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 "app/gfx/gl/gl_interface.h" | |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
| 13 #include "ui/gfx/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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 425 |
| 426 MOCK_METHOD1(IsFenceNV, GLboolean(GLuint fence)); | 426 MOCK_METHOD1(IsFenceNV, GLboolean(GLuint fence)); |
| 427 | 427 |
| 428 MOCK_METHOD3(GetFenceivNV, void(GLuint fence, GLenum pname, GLint *params)); | 428 MOCK_METHOD3(GetFenceivNV, void(GLuint fence, GLenum pname, GLint *params)); |
| 429 }; | 429 }; |
| 430 | 430 |
| 431 } // namespace gfx | 431 } // namespace gfx |
| 432 | 432 |
| 433 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ | 433 #endif // GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_ |
| 434 | 434 |
| OLD | NEW |