Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5394)

Unified Diff: chrome/test/ui/npapi_uitest.cc

Issue 332013: Add a regression test for the PluginChannel::CleanUp. My earlier speculative... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/ui/npapi_uitest.cc
===================================================================
--- chrome/test/ui/npapi_uitest.cc (revision 29926)
+++ chrome/test/ui/npapi_uitest.cc (working copy)
@@ -19,6 +19,8 @@
#include "base/keyboard_codes.h"
#include "chrome/browser/net/url_request_mock_http_job.h"
#include "chrome/common/chrome_paths.h"
+#include "chrome/common/url_constants.h"
+#include "chrome/test/automation/browser_proxy.h"
#include "chrome/test/automation/tab_proxy.h"
#include "chrome/test/automation/window_proxy.h"
#include "chrome/test/ui/npapi_test_helper.h"
@@ -363,3 +365,17 @@
}
#endif
+
+TEST_F(NPAPITester, NPObjectReleasedOnDestruction) {
+ if (UITest::in_process_renderer())
+ return;
+
+ GURL url = GetTestUrl(L"npapi", L"npobject_released_on_destruction.html");
+ NavigateToURL(url);
+
+ scoped_refptr<BrowserProxy> window_proxy(automation()->GetBrowserWindow(0));
+ window_proxy->AppendTab(GURL(chrome::kAboutBlankURL));
+
+ scoped_refptr<TabProxy> tab_proxy(window_proxy->GetTab(0));
+ tab_proxy->Close(true);
+}
« no previous file with comments | « chrome/test/data/npapi/npobject_released_on_destruction.html ('k') | webkit/tools/npapi_layout_test_plugin/TestObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698