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
3 // found in the LICENSE file.
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.
8 #ifndef UI_GL_GL_MOCK_H_
9 #define UI_GL_GL_MOCK_H_
11 #include "testing/gmock/include/gmock/gmock.h"
12 #include "ui/gl/gl_interface.h"
16 class MockGLInterface
: public GLInterface
{
19 virtual ~MockGLInterface();
21 // Include the auto-generated part of this class. We split this because
22 // it means we can easily edit the non-auto generated parts right here in
23 // this file instead of having to edit some template or the code generator.
24 #include "gl_mock_autogen_gl.h"
29 #endif // UI_GL_GL_MOCK_H_