diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 23:16:36 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 23:16:36 +0000 |
commit | 6289ffbc2945eda8893b5fcf899e87539214ddc9 (patch) | |
tree | 91885e4bf204ae4983cef9dfbbbff666abdf0d6b /chrome | |
parent | ed3fb97591a93db1cdc6c7bbb07604d01948d50e (diff) | |
download | chromium_src-6289ffbc2945eda8893b5fcf899e87539214ddc9.zip chromium_src-6289ffbc2945eda8893b5fcf899e87539214ddc9.tar.gz chromium_src-6289ffbc2945eda8893b5fcf899e87539214ddc9.tar.bz2 |
Move in-process-webkit unit tests to content unit tests target
BUG=90443
TEST=nothing breaks
Review URL: http://codereview.chromium.org/8208008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105955 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/chrome_tests.gypi | 2 | ||||
-rw-r--r-- | chrome/test/base/run_all_unittests.cc | 45 |
2 files changed, 2 insertions, 45 deletions
diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi index ab922b7..4426d5c 100644 --- a/chrome/chrome_tests.gypi +++ b/chrome/chrome_tests.gypi @@ -1905,8 +1905,6 @@ 'test/base/v8_unit_test.h', 'test/data/resource.rc', 'tools/convert_dict/convert_dict_unittest.cc', - '../content/browser/in_process_webkit/dom_storage_unittest.cc', - '../content/browser/in_process_webkit/indexed_db_quota_client_unittest.cc', '../content/browser/renderer_host/render_widget_host_unittest.cc', '../content/browser/renderer_host/text_input_client_mac_unittest.mm', '../content/browser/tab_contents/navigation_controller_unittest.cc', diff --git a/chrome/test/base/run_all_unittests.cc b/chrome/test/base/run_all_unittests.cc index a1b8746..42d284a 100644 --- a/chrome/test/base/run_all_unittests.cc +++ b/chrome/test/base/run_all_unittests.cc @@ -3,49 +3,8 @@ // found in the LICENSE file. #include "chrome/test/base/chrome_test_suite.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/WebKitPlatformSupport.h" - -namespace { - -// A stubbed out webkit client impl. -class UnitTestWebKitPlatformSupport : public WebKit::WebKitPlatformSupport { - public: - UnitTestWebKitPlatformSupport() { - } - - virtual void cryptographicallyRandomValues( - unsigned char* buffer, size_t length) { - memset(buffer, 0, length); - } -}; - -// A special test suite that also initializes webkit once for all unittests. -// This is useful for two reasons: -// 1. It allows the use of some primitive webkit data types like WebString. -// 2. Individual unittests should not be initting webkit on their own, initting -// it here ensures attempts to do so within an individual test will fail. -class UnitTestTestSuite : public ChromeTestSuite { - public: - UnitTestTestSuite(int argc, char** argv) - : ChromeTestSuite(argc, argv) { - } - - protected: - virtual void Initialize() { - WebKit::initialize(&webkit_platform_support_); - ChromeTestSuite::Initialize(); - } - virtual void Shutdown() { - ChromeTestSuite::Shutdown(); - WebKit::shutdown(); - } - - UnitTestWebKitPlatformSupport webkit_platform_support_; -}; - -} // namespace +#include "content/test/unittest_test_suite.h" int main(int argc, char **argv) { - return UnitTestTestSuite(argc, argv).Run(); + return UnitTestTestSuite(new ChromeTestSuite(argc, argv)).Run(); } |