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

Unified Diff: ppapi/tests/test_graphics_3d.cc

Issue 7800003: Added an empty test suite for Graphics3D. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months 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 | « ppapi/tests/test_graphics_3d.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_graphics_3d.cc
===================================================================
--- ppapi/tests/test_graphics_3d.cc (revision 0)
+++ ppapi/tests/test_graphics_3d.cc (revision 0)
@@ -0,0 +1,23 @@
+// Copyright (c) 2011 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.
+
+#include "ppapi/tests/test_graphics_3d.h"
+
+#include "ppapi/c/dev/ppb_graphics_3d_dev.h"
+#include "ppapi/c/dev/ppb_opengles_dev.h"
+#include "ppapi/cpp/module.h"
+
+REGISTER_TEST_CASE(Graphics3D);
+
+bool TestGraphics3D::Init() {
+ graphics_3d_ = reinterpret_cast<const PPB_Graphics3D_Dev*>(
+ pp::Module::Get()->GetBrowserInterface(PPB_GRAPHICS_3D_DEV_INTERFACE));
+ opengl_es2_ = reinterpret_cast<const PPB_OpenGLES2_Dev*>(
+ pp::Module::Get()->GetBrowserInterface(PPB_OPENGLES2_DEV_INTERFACE));
+ return graphics_3d_ && opengl_es2_ && InitTestingInterface();
+}
+
+void TestGraphics3D::RunTest() {
+}
+
Property changes on: ppapi\tests\test_graphics_3d.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « ppapi/tests/test_graphics_3d.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698