Chromium Code Reviews| 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 GLContextMockVersion(const char* version_str); | |
| 16 | |
| 17 protected: | |
| 18 virtual std::string GetGLVersion() OVERRIDE; | |
| 19 | |
| 20 virtual ~GLContextMockVersion(); | |
|
piman
2013/12/04 22:45:12
nit: blank line before 'private:'
oetuaho
2013/12/05 09:47:14
Done.
| |
| 21 private: | |
| 22 const char* version_str_; | |
| 23 | |
| 24 DISALLOW_COPY_AND_ASSIGN(GLContextMockVersion); | |
| 25 }; | |
| 26 | |
| 27 } // namespace gfx | |
| 28 | |
| 29 #endif // UI_GL_GL_CONTEXT_MOCK_VERSION_H_ | |
| OLD | NEW |