| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // windows headers | 5 // windows headers |
| 6 #include <windows.h> | 6 #include <windows.h> |
| 7 #include <shellapi.h> | 7 #include <shellapi.h> |
| 8 #include <shlobj.h> | 8 #include <shlobj.h> |
| 9 #include <comutil.h> | 9 #include <comutil.h> |
| 10 | 10 |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 | 386 |
| 387 GURL url = GetTestUrl(L"npapi", L"npobject_released_on_destruction.html"); | 387 GURL url = GetTestUrl(L"npapi", L"npobject_released_on_destruction.html"); |
| 388 NavigateToURL(url); | 388 NavigateToURL(url); |
| 389 | 389 |
| 390 scoped_refptr<BrowserProxy> window_proxy(automation()->GetBrowserWindow(0)); | 390 scoped_refptr<BrowserProxy> window_proxy(automation()->GetBrowserWindow(0)); |
| 391 window_proxy->AppendTab(GURL(chrome::kAboutBlankURL)); | 391 window_proxy->AppendTab(GURL(chrome::kAboutBlankURL)); |
| 392 | 392 |
| 393 scoped_refptr<TabProxy> tab_proxy(window_proxy->GetTab(0)); | 393 scoped_refptr<TabProxy> tab_proxy(window_proxy->GetTab(0)); |
| 394 tab_proxy->Close(true); | 394 tab_proxy->Close(true); |
| 395 } | 395 } |
| 396 |
| 397 // Test that a dialog is properly created when a plugin throws an |
| 398 // exception. Should be run for in and out of process plugins, but |
| 399 // the more interesting case is out of process, where we must route |
| 400 // the exception to the correct renderer. |
| 401 TEST_F(NPAPITester, NPObjectSetException) { |
| 402 GURL url = GetTestUrl(L"npapi", L"npobject_set_exception.html"); |
| 403 NavigateToURL(url); |
| 404 WaitForFinish("npobject_set_exception", "1", url, |
| 405 kTestCompleteCookie, kTestCompleteSuccess, |
| 406 kShortWaitTimeout); |
| 407 } |
| OLD | NEW |