OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 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 #ifndef UI_GL_GL_CONTEXT_MOCK_VERSION_H_ |
| 6 #define UI_GL_GL_CONTEXT_MOCK_VERSION_H_ |
| 7 |
| 8 #include "ui/gl/gl_context_stub.h" |
| 9 |
| 10 namespace gfx { |
| 11 |
| 12 // A GLContext that only reports its version for unit tests. |
| 13 class GL_EXPORT GLContextMockVersion : public GLContextStub { |
| 14 public: |
| 15 explicit GLContextMockVersion(const char* version_str); |
| 16 |
| 17 protected: |
| 18 virtual std::string GetGLVersion() OVERRIDE; |
| 19 |
| 20 virtual ~GLContextMockVersion(); |
| 21 |
| 22 private: |
| 23 const char* version_str_; |
| 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(GLContextMockVersion); |
| 26 }; |
| 27 |
| 28 } // namespace gfx |
| 29 |
| 30 #endif // UI_GL_GL_CONTEXT_MOCK_VERSION_H_ |
OLD | NEW |