Commit 190d41fb authored by alokp@chromium.org's avatar alokp@chromium.org

Added an empty test suite for Graphics3D.

Review URL: http://codereview.chromium.org/7800003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98817 0039d316-1c4b-4281-b951-d872f2087c98
parent 108a6d0d
......@@ -94,6 +94,8 @@
'tests/test_file_system.h',
'tests/test_graphics_2d.cc',
'tests/test_graphics_2d.h',
'tests/test_graphics_3d.cc',
'tests/test_graphics_3d.h',
'tests/test_image_data.cc',
'tests/test_image_data.h',
'tests/test_memory.cc',
......@@ -129,6 +131,15 @@
'dependencies': [
'ppapi.gyp:ppapi_cpp'
],
'run_as': {
'action': [
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)',
'--enable-pepper-testing',
'--enable-accelerated-plugins',
'--register-pepper-plugins=$(TargetPath);application/x-ppapi-tests',
'file://$(ProjectDir)/tests/test_case.html?testcase=',
],
},
'conditions': [
['OS=="win"', {
'defines': [
......
// 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() {
}
// 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.
#ifndef PAPPI_TESTS_TEST_GRAPHICS_3D_H_
#define PAPPI_TESTS_TEST_GRAPHICS_3D_H_
#include "ppapi/tests/test_case.h"
struct PPB_Graphics3D_Dev;
struct PPB_OpenGLES2_Dev;
class TestGraphics3D : public TestCase {
public:
TestGraphics3D(TestingInstance* instance) : TestCase(instance) {}
// TestCase implementation.
virtual bool Init();
virtual void RunTest();
private:
// Used by the tests that access the C API directly.
const PPB_Graphics3D_Dev* graphics_3d_;
const PPB_OpenGLES2_Dev* opengl_es2_;
};
#endif // PAPPI_TESTS_TEST_GRAPHICS_3D_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment