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/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 243 |
244 #if defined(OS_WIN) || defined(OS_MACOSX) | 244 #if defined(OS_WIN) || defined(OS_MACOSX) |
245 // Tests if a plugin executing a self deleting script in the context of | 245 // Tests if a plugin executing a self deleting script in the context of |
246 // a synchronous paint event works correctly | 246 // a synchronous paint event works correctly |
247 // http://crbug.com/44960 | 247 // http://crbug.com/44960 |
248 IN_PROC_BROWSER_TEST_F(PluginTest, SelfDeletePluginInvokeInSynchronousPaint) { | 248 IN_PROC_BROWSER_TEST_F(PluginTest, SelfDeletePluginInvokeInSynchronousPaint) { |
249 LoadAndWait(GetURL("execute_script_delete_in_paint.html")); | 249 LoadAndWait(GetURL("execute_script_delete_in_paint.html")); |
250 } | 250 } |
251 #endif | 251 #endif |
252 | 252 |
| 253 // Tests that if a plugin executes a self resizing script in the context of a |
| 254 // synchronous paint, the plugin doesn't use deallocated memory. |
| 255 // http://crbug.com/139462 |
| 256 IN_PROC_BROWSER_TEST_F(PluginTest, ResizeDuringPaint) { |
| 257 LoadAndWait(GetURL("resize_during_paint.html")); |
| 258 } |
| 259 |
253 IN_PROC_BROWSER_TEST_F(PluginTest, SelfDeletePluginInNewStream) { | 260 IN_PROC_BROWSER_TEST_F(PluginTest, SelfDeletePluginInNewStream) { |
254 LoadAndWait(GetURL("self_delete_plugin_stream.html")); | 261 LoadAndWait(GetURL("self_delete_plugin_stream.html")); |
255 } | 262 } |
256 | 263 |
257 // This test asserts on Mac in plugin_host in the NPNVWindowNPObject case. | 264 // This test asserts on Mac in plugin_host in the NPNVWindowNPObject case. |
258 #if !(defined(OS_MACOSX) && !defined(NDEBUG)) | 265 #if !(defined(OS_MACOSX) && !defined(NDEBUG)) |
259 // If this test flakes use http://crbug.com/95558. | 266 // If this test flakes use http://crbug.com/95558. |
260 IN_PROC_BROWSER_TEST_F(PluginTest, DeletePluginInDeallocate) { | 267 IN_PROC_BROWSER_TEST_F(PluginTest, DeletePluginInDeallocate) { |
261 LoadAndWait(GetURL("plugin_delete_in_deallocate.html")); | 268 LoadAndWait(GetURL("plugin_delete_in_deallocate.html")); |
262 } | 269 } |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 IN_PROC_BROWSER_TEST_F(PluginTest, DISABLED_Java) { | 455 IN_PROC_BROWSER_TEST_F(PluginTest, DISABLED_Java) { |
449 TestPlugin("Java.html"); | 456 TestPlugin("Java.html"); |
450 } | 457 } |
451 | 458 |
452 IN_PROC_BROWSER_TEST_F(PluginTest, Silverlight) { | 459 IN_PROC_BROWSER_TEST_F(PluginTest, Silverlight) { |
453 TestPlugin("silverlight.html"); | 460 TestPlugin("silverlight.html"); |
454 } | 461 } |
455 #endif // defined(OS_WIN) | 462 #endif // defined(OS_WIN) |
456 | 463 |
457 } // namespace content | 464 } // namespace content |
OLD | NEW |