Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: ui/gl/gl_mock.h

Issue 11444028: Make more GL stuff auto-generated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_interface.h ('k') | ui/gl/gl_mock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_mock.h
diff --git a/ui/gl/gl_mock.h b/ui/gl/gl_mock.h
new file mode 100644
index 0000000000000000000000000000000000000000..39ccb5f184c9965cbc95369002732d7eda87bba9
--- /dev/null
+++ b/ui/gl/gl_mock.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file implements mock GL Interface for unit testing. It has to mock
+// Desktop GL, not GLES2 as it is used to test the service side code.
+
+#ifndef UI_GL_GL_MOCK_H_
+#define UI_GL_GL_MOCK_H_
+
+#include "testing/gmock/include/gmock/gmock.h"
+#include "ui/gl/gl_interface.h"
+
+namespace gfx {
+
+class MockGLInterface : public GLInterface {
+ public:
+ MockGLInterface();
+ virtual ~MockGLInterface();
+
+ // Include the auto-generated part of this class. We split this because
+ // it means we can easily edit the non-auto generated parts right here in
+ // this file instead of having to edit some template or the code generator.
+ #include "gl_mock_autogen_gl.h"
+};
+
+} // namespace gfx
+
+#endif // UI_GL_GL_MOCK_H_
« no previous file with comments | « ui/gl/gl_interface.h ('k') | ui/gl/gl_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698