diff options
author | jcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-04 00:43:15 +0000 |
---|---|---|
committer | jcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-04 00:43:15 +0000 |
commit | 0b537a44c49a3ce217d7e21befd84224d089d588 (patch) | |
tree | d674da2bfd5189f1b23fe359dd760e9188ba7299 /chrome/test | |
parent | bb837f9287259862c94155cc59cfc9e1bdfe1258 (diff) | |
download | chromium_src-0b537a44c49a3ce217d7e21befd84224d089d588.zip chromium_src-0b537a44c49a3ce217d7e21befd84224d089d588.tar.gz chromium_src-0b537a44c49a3ce217d7e21befd84224d089d588.tar.bz2 |
Revert 76840 - Removed GPU plugin.
Pepper 3D v2 does not use the GPU plugin. It is integrated with the accelerated compositor.
TEST=PPAPI 3D v2 still works, trybots
BUG=none
Review URL: http://codereview.chromium.org/6588090
TBR=apatrick@chromium.org
Review URL: http://codereview.chromium.org/6614030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/ui/pepper_uitest.cc | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/chrome/test/ui/pepper_uitest.cc b/chrome/test/ui/pepper_uitest.cc new file mode 100644 index 0000000..f34346d --- /dev/null +++ b/chrome/test/ui/pepper_uitest.cc @@ -0,0 +1,47 @@ +// 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 "base/file_path.h" + +#include "app/app_switches.h" +#include "base/test/test_timeouts.h" +#include "chrome/common/chrome_switches.h" +#include "chrome/test/ui/npapi_test_helper.h" +#include "chrome/test/ui_test_utils.h" + +using npapi_test::kTestCompleteCookie; +using npapi_test::kTestCompleteSuccess; + +// Helper class pepper NPAPI tests. +class PepperTester : public NPAPITesterBase { + protected: + PepperTester() : NPAPITesterBase() {} + + virtual void SetUp() { + // TODO(alokp): Remove no-sandbox flag once gpu plugin can run in sandbox. + launch_arguments_.AppendSwitch(switches::kNoSandbox); + launch_arguments_.AppendSwitch(switches::kInternalPepper); + launch_arguments_.AppendSwitch(switches::kEnableGPUPlugin); + // Use Mesa software renderer so it can run on testbots without any + // graphics hardware. + launch_arguments_.AppendSwitchASCII(switches::kUseGL, "osmesa"); + 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. +#if defined(OS_WIN) +// Marked as FAILS (46662): failing on buildbots but passes on trybots. +TEST_F(PepperTester, FAILS_Pepper3D) { + const FilePath dir(FILE_PATH_LITERAL("pepper")); + const FilePath file(FILE_PATH_LITERAL("pepper_3d.html")); + GURL url = ui_test_utils::GetTestUrl(dir, file); + ASSERT_NO_FATAL_FAILURE(NavigateToURL(url)); + WaitForFinish("pepper_3d", "1", url, + kTestCompleteCookie, kTestCompleteSuccess, + TestTimeouts::action_max_timeout_ms()); +} +#endif |