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.
4
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.
7
8#ifndef UI_GL_GL_MOCK_H_
9#define UI_GL_GL_MOCK_H_
10
11#include "testing/gmock/include/gmock/gmock.h"
12#include "ui/gl/gl_interface.h"
13
14namespace gfx {
15
16class MockGLInterface : public GLInterface {
17 public:
18  MockGLInterface();
19  virtual ~MockGLInterface();
20
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"
25};
26
27}  // namespace gfx
28
29#endif  // UI_GL_GL_MOCK_H_
30