OLD | NEW |
(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 } |
OLD | NEW |