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

Unified Diff: chrome/browser/net/dns_probe_job_unittest.cc

Issue 11530018: DnsProbeJob: Differentiate network and DNS errors (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rename IsDnsServerError to DidReceiveDnsResponse Created 8 years 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
« no previous file with comments | « chrome/browser/net/dns_probe_job.cc ('k') | net/dns/dns_test_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/dns_probe_job_unittest.cc
diff --git a/chrome/browser/net/dns_probe_job_unittest.cc b/chrome/browser/net/dns_probe_job_unittest.cc
index ce2bf8563a4e2d59020ab390eeb8299e4d652656..06d6965527ca725967fe1fad8247e7540145a319 100644
--- a/chrome/browser/net/dns_probe_job_unittest.cc
+++ b/chrome/browser/net/dns_probe_job_unittest.cc
@@ -106,9 +106,12 @@ TEST_F(DnsProbeJobTest, Test) {
// (Need to add another mock behavior to MockDnsClient.)
{ MockDnsClientRule::FAIL_ASYNC,
MockDnsClientRule::FAIL_ASYNC,
- DnsProbeJob::SERVERS_UNREACHABLE },
+ DnsProbeJob::SERVERS_FAILING },
{ MockDnsClientRule::FAIL_SYNC,
MockDnsClientRule::FAIL_SYNC,
+ DnsProbeJob::SERVERS_FAILING },
+ { MockDnsClientRule::TIMEOUT,
+ MockDnsClientRule::TIMEOUT,
DnsProbeJob::SERVERS_UNREACHABLE },
};
for (size_t i = 0; i < arraysize(kTestCases); i++) {
« no previous file with comments | « chrome/browser/net/dns_probe_job.cc ('k') | net/dns/dns_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698