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

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

Issue 7806020: Add DeletePluginInDeallocate UI test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Correct Copyright header. Created 9 years, 3 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
diff --git a/chrome/test/ui/npapi_uitest.cc b/chrome/test/ui/npapi_uitest.cc
index 2ebf2b637f514b2baf02987dd1d662422146fa82..577ac59517cb6dd9a97791ade70cd156a44dcf48 100644
--- a/chrome/test/ui/npapi_uitest.cc
+++ b/chrome/test/ui/npapi_uitest.cc
@@ -29,14 +29,15 @@
#include "chrome/test/base/ui_test_utils.h"
#include "chrome/test/ui/npapi_test_helper.h"
#include "content/browser/net/url_request_mock_http_job.h"
+#include "content/common/content_switches.h"
using npapi_test::kTestCompleteCookie;
using npapi_test::kTestCompleteSuccess;
-static const FilePath::CharType* kTestDir = FILE_PATH_LITERAL("npapi");
-
namespace {
+const FilePath::CharType* kTestDir = FILE_PATH_LITERAL("npapi");
+
class NPAPIAutomationEnabledTest : public NPAPIVisiblePluginTester {
public:
NPAPIAutomationEnabledTest() {
@@ -159,6 +160,17 @@ TEST_F(NPAPIVisiblePluginTester, SelfDeletePluginInNewStream) {
TestTimeouts::action_max_timeout_ms());
}
+TEST_F(NPAPIVisiblePluginTester, DeletePluginInDeallocate) {
+ show_window_ = true;
+ const FilePath test_case(
+ FILE_PATH_LITERAL("plugin_delete_in_deallocate.html"));
+ GURL url = ui_test_utils::GetTestUrl(FilePath(kTestDir), test_case);
+ ASSERT_NO_FATAL_FAILURE(NavigateToURL(url));
+ WaitForFinish("delete_plugin_in_deallocate_test", "signaller", url,
+ kTestCompleteCookie, kTestCompleteSuccess,
+ TestTimeouts::action_max_timeout_ms());
+}
+
#if defined(OS_WIN)
// Tests if a plugin has a non zero window rect.
TEST_F(NPAPIVisiblePluginTester, VerifyPluginWindowRect) {
« no previous file with comments | « chrome/test/ui/npapi_test_helper.cc ('k') | webkit/plugins/npapi/test/plugin_delete_plugin_in_deallocate_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698