summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-17 22:44:31 +0000
committerbryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-17 22:44:31 +0000
commitc3227412419ae17a358e54cdf36def3288880538 (patch)
tree216e25d9e58736e891b4872b6d5d365f54e6e794
parentc8a2efe7cea1c1b1f10afdb9a835e7f24ff4da84 (diff)
downloadchromium_src-c3227412419ae17a358e54cdf36def3288880538.zip
chromium_src-c3227412419ae17a358e54cdf36def3288880538.tar.gz
chromium_src-c3227412419ae17a358e54cdf36def3288880538.tar.bz2
Make dom_feature_extractor_unittest into a browser test.
WebKit doesn't work correctly if it is shut down and re-initialized. browser_tests runs each test in its own process, which avoids this problem. TEST=passes BUG=none Review URL: http://codereview.chromium.org/3184002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56436 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/chrome_tests.gypi2
-rw-r--r--chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc (renamed from chrome/renderer/safe_browsing/phishing_dom_feature_extractor_unittest.cc)5
2 files changed, 6 insertions, 1 deletions
diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi
index d7f5e26..28ac169 100644
--- a/chrome/chrome_tests.gypi
+++ b/chrome/chrome_tests.gypi
@@ -1230,7 +1230,6 @@
'renderer/renderer_about_handler_unittest.cc',
'renderer/renderer_main_unittest.cc',
'renderer/safe_browsing/features_unittest.cc',
- 'renderer/safe_browsing/phishing_dom_feature_extractor_unittest.cc',
'renderer/safe_browsing/phishing_url_feature_extractor_unittest.cc',
'renderer/spellchecker/spellcheck_unittest.cc',
'renderer/spellchecker/spellcheck_worditerator_unittest.cc',
@@ -1644,6 +1643,7 @@
'browser/task_manager_browsertest.cc',
'browser/views/browser_actions_container_browsertest.cc',
'renderer/form_autocomplete_browsertest.cc',
+ 'renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc',
'test/automation/dom_automation_browsertest.cc',
'test/in_process_browser_test.cc',
'test/in_process_browser_test.h',
diff --git a/chrome/renderer/safe_browsing/phishing_dom_feature_extractor_unittest.cc b/chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc
index c90af60..965d1b5 100644
--- a/chrome/renderer/safe_browsing/phishing_dom_feature_extractor_unittest.cc
+++ b/chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc
@@ -1,6 +1,11 @@
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+//
+// Note that although this is not a "browser" test, it runs as part of
+// browser_tests. This is because WebKit does not work properly if it is
+// shutdown and re-initialized. Since browser_tests runs each test in a
+// new process, this avoids the problem.
#include "chrome/renderer/safe_browsing/phishing_dom_feature_extractor.h"