From 1933eb200c4bb16e4df535d779c98561f85c1e25 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Thu, 19 Feb 2009 18:23:25 +0000 Subject: Clean up dns prefetch code, and also port it. - remove slave threads and use HostResolver in asynchronous mode instead (while still limiting number of concurrent lookups) - make the implementation portable and make DnsMaster unit test compile and pass on Linux - add more tests to DnsMaster unit test to simulate various shutdown scenarios, concurrent lookups, and to verify that we don't exceed our limit of concurrent lookup requests) - remove some tests which relied on specifics of slaves' inner working - adjust initialization and shutdown of dns prefetching (now it relies on the IO message loop being present) Bonus: shutdown is almost instant now, no need to have a timeout. BUG=5687, 6683 Review URL: http://codereview.chromium.org/15076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10021 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/unit/unit_tests.scons | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/test') diff --git a/chrome/test/unit/unit_tests.scons b/chrome/test/unit/unit_tests.scons index 24ddc5d..3779aabf 100644 --- a/chrome/test/unit/unit_tests.scons +++ b/chrome/test/unit/unit_tests.scons @@ -322,6 +322,7 @@ if env.Bit('mac'): '$CHROME_DIR/browser/history/visit_tracker_unittest.cc', '$CHROME_DIR/browser/metrics/metrics_response_unittest.cc', '$CHROME_DIR/browser/net/dns_host_info_unittest.cc', + '$CHROME_DIR/browser/net/dns_master_unittest.cc', '$CHROME_DIR/browser/net/url_fetcher_unittest.cc', '$CHROME_DIR/browser/printing/page_range_unittest.cc', '$CHROME_DIR/browser/printing/page_setup_unittest.cc', @@ -401,7 +402,6 @@ if not env.Bit('windows'): '$CHROME_DIR/browser/login_prompt_unittest.cc', '$CHROME_DIR/browser/renderer_host/render_widget_host_unittests.cc', '$CHROME_DIR/browser/navigation_controller_unittest.cc', - '$CHROME_DIR/browser/net/dns_master_unittest.cc', '$CHROME_DIR/browser/net/resolve_proxy_msg_helper_unittest.cc', '$CHROME_DIR/browser/password_manager/encryptor_unittest.cc', '$CHROME_DIR/browser/password_manager/password_form_manager_unittest.cc', -- cgit v1.1