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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 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 #include "chrome/common/chrome_switches.h"
6 #include "chrome/test/ui/npapi_test_helper.h"
7
8 #if defined(OS_WIN)
9 static const char kPepperTestPluginName[] = "pepper_test_plugin.dll";
10 #elif defined(OS_MACOSX)
11 static const char kPepperTestPluginName[] = "PepperTestPlugin.plugin";
12 #elif defined(OS_LINUX)
13 static const char kPepperTestPluginName[] = "libpepper_test_plugin.so";
14 #endif
15
16 using npapi_test::kTestCompleteCookie;
17 using npapi_test::kTestCompleteSuccess;
18 using npapi_test::kLongWaitTimeout;
19 using npapi_test::kShortWaitTimeout;
20
21 // Helper class pepper NPAPI tests.
22 class PepperTester : public NPAPITesterBase {
23 protected:
24 PepperTester() : NPAPITesterBase(kPepperTestPluginName) {}
25
26 virtual void SetUp() {
27 launch_arguments_.AppendSwitch(switches::kInternalPepper);
28 launch_arguments_.AppendSwitch(switches::kEnableGPUPlugin);
29 NPAPITesterBase::SetUp();
30 }
31 };
32
33 // Test that a pepper 3d plugin loads and renders.
34 // TODO(alokp): Enable the test after making sure it works on all platforms
35 // and buildbots have OpenGL support.
36 TEST_F(PepperTester, DISABLED_Pepper3D) {
37 GURL url = GetTestUrl(L"pepper", L"pepper_3d.html");
38 ASSERT_NO_FATAL_FAILURE(NavigateToURL(url));
39 WaitForFinish("pepper_3d", "1", url,
40 kTestCompleteCookie, kTestCompleteSuccess,
41 kLongWaitTimeout);
42 }
OLDNEW
« 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