OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 10 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 // Windows only test | 436 // Windows only test |
437 IN_PROC_BROWSER_TEST_F(PluginTest, DISABLED_FlashSecurity) { | 437 IN_PROC_BROWSER_TEST_F(PluginTest, DISABLED_FlashSecurity) { |
438 TestPlugin("flash.html"); | 438 TestPlugin("flash.html"); |
439 } | 439 } |
440 #endif // defined(OS_WIN) | 440 #endif // defined(OS_WIN) |
441 | 441 |
442 #if defined(OS_WIN) | 442 #if defined(OS_WIN) |
443 // TODO(port) Port the following tests to platforms that have the required | 443 // TODO(port) Port the following tests to platforms that have the required |
444 // plugins. | 444 // plugins. |
445 // Flaky: http://crbug.com/55915 | 445 // Flaky: http://crbug.com/55915 |
446 IN_PROC_BROWSER_TEST_F(PluginTest, MAYBE(Quicktime)) { | 446 IN_PROC_BROWSER_TEST_F(PluginTest, DISABLED_Quicktime) { |
447 TestPlugin("quicktime.html"); | 447 TestPlugin("quicktime.html"); |
448 } | 448 } |
449 | 449 |
450 // Disabled - http://crbug.com/44662 | 450 // Disabled - http://crbug.com/44662 |
451 IN_PROC_BROWSER_TEST_F(PluginTest, MAYBE(MediaPlayerNew)) { | 451 IN_PROC_BROWSER_TEST_F(PluginTest, MAYBE(MediaPlayerNew)) { |
452 TestPlugin("wmp_new.html"); | 452 TestPlugin("wmp_new.html"); |
453 } | 453 } |
454 | 454 |
455 // Disabled - http://crbug.com/44673 | 455 // Disabled - http://crbug.com/44673 |
456 IN_PROC_BROWSER_TEST_F(PluginTest, MAYBE(Real)) { | 456 IN_PROC_BROWSER_TEST_F(PluginTest, MAYBE(Real)) { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 ResourceDispatcherHostDelegate* old_delegate = | 554 ResourceDispatcherHostDelegate* old_delegate = |
555 ResourceDispatcherHostImpl::Get()->delegate(); | 555 ResourceDispatcherHostImpl::Get()->delegate(); |
556 ResourceDispatcherHostImpl::Get()->SetDelegate(&test_delegate); | 556 ResourceDispatcherHostImpl::Get()->SetDelegate(&test_delegate); |
557 LoadAndWait(url); | 557 LoadAndWait(url); |
558 test_delegate.WaitForPluginRequest(); | 558 test_delegate.WaitForPluginRequest(); |
559 ASSERT_TRUE(test_delegate.found_cookie()); | 559 ASSERT_TRUE(test_delegate.found_cookie()); |
560 ResourceDispatcherHostImpl::Get()->SetDelegate(old_delegate); | 560 ResourceDispatcherHostImpl::Get()->SetDelegate(old_delegate); |
561 } | 561 } |
562 | 562 |
563 } // namespace content | 563 } // namespace content |
OLD | NEW |