summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/dns_host_info_unittest.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 19:03:29 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 19:03:29 +0000
commitb2b8b8313cf35d02e038f48f03cb0dd2a56ace0b (patch)
tree4641fae4757e349cb50097423e85a589ae95a234 /chrome/browser/net/dns_host_info_unittest.cc
parentff4db3653c00cd23104ab773db6d97533e786105 (diff)
downloadchromium_src-b2b8b8313cf35d02e038f48f03cb0dd2a56ace0b.zip
chromium_src-b2b8b8313cf35d02e038f48f03cb0dd2a56ace0b.tar.gz
chromium_src-b2b8b8313cf35d02e038f48f03cb0dd2a56ace0b.tar.bz2
Revert "Clean up dns prefetch code, and also port it."
This reverts commit r9312. Revert "Fix HostResolver crash when MessageLoop is destroyed during" This reverts commit r9317. BUG=5687,6683 TBR=ph Review URL: http://codereview.chromium.org/21133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9325 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/dns_host_info_unittest.cc')
-rw-r--r--chrome/browser/net/dns_host_info_unittest.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/net/dns_host_info_unittest.cc b/chrome/browser/net/dns_host_info_unittest.cc
index a079716..c279804 100644
--- a/chrome/browser/net/dns_host_info_unittest.cc
+++ b/chrome/browser/net/dns_host_info_unittest.cc
@@ -41,7 +41,8 @@ TEST(DnsHostInfoTest, StateChangeTest) {
EXPECT_FALSE(info.NeedsDnsUpdate(hostname1))
<< "update needed after being queued";
info.SetAssignedState();
- EXPECT_FALSE(info.NeedsDnsUpdate(hostname1));
+ EXPECT_FALSE(info.NeedsDnsUpdate(hostname1))
+ << "update needed while assigned to slave";
info.SetFoundState();
EXPECT_FALSE(info.NeedsDnsUpdate(hostname1))
<< "default expiration time is TOOOOO short";
@@ -63,7 +64,8 @@ TEST(DnsHostInfoTest, StateChangeTest) {
// be found. We'll sleep for a while, and then come back with not-found.
info.SetQueuedState(DnsHostInfo::UNIT_TEST_MOTIVATED);
info.SetAssignedState();
- EXPECT_FALSE(info.NeedsDnsUpdate(hostname1));
+ EXPECT_FALSE(info.NeedsDnsUpdate(hostname1))
+ << "update needed while assigned to slave";
// Greater than minimal expected network latency on DNS lookup.
PlatformThread::Sleep(25);
info.SetNoSuchNameState();