| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Tests for the top plugins to catch regressions in our plugin host code, as | 5 // Tests for the top plugins to catch regressions in our plugin host code, as |
| 6 // well as in the out of process code. Currently this tests: | 6 // well as in the out of process code. Currently this tests: |
| 7 // Flash | 7 // Flash |
| 8 // Real | 8 // Real |
| 9 // QuickTime | 9 // QuickTime |
| 10 // Windows Media Player | 10 // Windows Media Player |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 GURL url = GetTestUrl("done", mock_http); | 117 GURL url = GetTestUrl("done", mock_http); |
| 118 scoped_refptr<TabProxy> tab(GetActiveTab()); | 118 scoped_refptr<TabProxy> tab(GetActiveTab()); |
| 119 | 119 |
| 120 const std::string result = | 120 const std::string result = |
| 121 WaitUntilCookieNonEmpty(tab, url, kTestCompleteCookie, wait_time); | 121 WaitUntilCookieNonEmpty(tab, url, kTestCompleteCookie, wait_time); |
| 122 ASSERT_EQ(kTestCompleteSuccess, result); | 122 ASSERT_EQ(kTestCompleteSuccess, result); |
| 123 } | 123 } |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 // http://crbug.com/68303 | 126 // http://crbug.com/68303 |
| 127 #if defined(OS_MACOSX) | 127 #if defined(OS_MACOSX) || defined(OS_LINUX) |
| 128 TEST_F(PluginTest, DISABLED_Flash) { | 128 TEST_F(PluginTest, DISABLED_Flash) { |
| 129 #else | 129 #else |
| 130 TEST_F(PluginTest, Flash) { | 130 TEST_F(PluginTest, Flash) { |
| 131 #endif | 131 #endif |
| 132 // Note: This does not work with the npwrapper on 64-bit Linux. Install the | 132 // Note: This does not work with the npwrapper on 64-bit Linux. Install the |
| 133 // native 64-bit Flash to run the test. | 133 // native 64-bit Flash to run the test. |
| 134 // TODO(thestig) Update this list if we decide to only test against internal | 134 // TODO(thestig) Update this list if we decide to only test against internal |
| 135 // Flash plugin in the future? | 135 // Flash plugin in the future? |
| 136 std::string kFlashQuery = | 136 std::string kFlashQuery = |
| 137 #if defined(OS_WIN) | 137 #if defined(OS_WIN) |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 TEST_F(PluginInstallerDownloadTest, PluginInstallerDownloadPathTest) { | 361 TEST_F(PluginInstallerDownloadTest, PluginInstallerDownloadPathTest) { |
| 362 MessageLoop loop(MessageLoop::TYPE_IO); | 362 MessageLoop loop(MessageLoop::TYPE_IO); |
| 363 Start(); | 363 Start(); |
| 364 loop.Run(); | 364 loop.Run(); |
| 365 | 365 |
| 366 EXPECT_TRUE(success()); | 366 EXPECT_TRUE(success()); |
| 367 EXPECT_TRUE(initial_download_path().BaseName().value() == | 367 EXPECT_TRUE(initial_download_path().BaseName().value() == |
| 368 final_download_path().BaseName().value()); | 368 final_download_path().BaseName().value()); |
| 369 } | 369 } |
| 370 #endif // defined(OS_WIN) | 370 #endif // defined(OS_WIN) |
| OLD | NEW |