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

Unified Diff: chrome/test/ui/pepper_uitest.cc

Issue 1073003: Added a test for pepper3d. It ensures that we can successfully load a pepper ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | « chrome/test/ui/npapi_uitest.cc ('k') | webkit/glue/plugins/test/npapi_test.rc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui/pepper_uitest.cc
===================================================================
--- chrome/test/ui/pepper_uitest.cc (revision 0)
+++ chrome/test/ui/pepper_uitest.cc (revision 0)
@@ -0,0 +1,42 @@
+// Copyright (c) 2010 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 "chrome/common/chrome_switches.h"
+#include "chrome/test/ui/npapi_test_helper.h"
+
+#if defined(OS_WIN)
+static const char kPepperTestPluginName[] = "pepper_test_plugin.dll";
+#elif defined(OS_MACOSX)
+static const char kPepperTestPluginName[] = "PepperTestPlugin.plugin";
+#elif defined(OS_LINUX)
+static const char kPepperTestPluginName[] = "libpepper_test_plugin.so";
+#endif
+
+using npapi_test::kTestCompleteCookie;
+using npapi_test::kTestCompleteSuccess;
+using npapi_test::kLongWaitTimeout;
+using npapi_test::kShortWaitTimeout;
+
+// Helper class pepper NPAPI tests.
+class PepperTester : public NPAPITesterBase {
+ protected:
+ PepperTester() : NPAPITesterBase(kPepperTestPluginName) {}
+
+ virtual void SetUp() {
+ launch_arguments_.AppendSwitch(switches::kInternalPepper);
+ launch_arguments_.AppendSwitch(switches::kEnableGPUPlugin);
+ NPAPITesterBase::SetUp();
+ }
+};
+
+// Test that a pepper 3d plugin loads and renders.
+// TODO(alokp): Enable the test after making sure it works on all platforms
+// and buildbots have OpenGL support.
+TEST_F(PepperTester, DISABLED_Pepper3D) {
+ GURL url = GetTestUrl(L"pepper", L"pepper_3d.html");
+ ASSERT_NO_FATAL_FAILURE(NavigateToURL(url));
+ WaitForFinish("pepper_3d", "1", url,
+ kTestCompleteCookie, kTestCompleteSuccess,
+ kLongWaitTimeout);
+}
Property changes on: chrome\test\ui\pepper_uitest.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/test/ui/npapi_uitest.cc ('k') | webkit/glue/plugins/test/npapi_test.rc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698