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

Unified Diff: net/dns/dns_test_util.h

Issue 11530018: DnsProbeJob: Differentiate network and DNS errors (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
Index: net/dns/dns_test_util.h
diff --git a/net/dns/dns_test_util.h b/net/dns/dns_test_util.h
index 5c5019a99afa20f84433c0f2f13c6ea9964b0929..f52a405f9380e637cc99bac66ceeb3835623194a 100644
--- a/net/dns/dns_test_util.h
+++ b/net/dns/dns_test_util.h
@@ -174,6 +174,7 @@ struct MockDnsClientRule {
enum Result {
FAIL_SYNC, // Fail synchronously with ERR_NAME_NOT_RESOLVED.
FAIL_ASYNC, // Fail asynchronously with ERR_NAME_NOT_RESOLVED.
+ TIMEOUT, // Fail asynchronously with ERR_DNS_TIMEOUT.
EMPTY, // Return an empty response.
OK, // Return a response with loopback address.
};

Powered by Google App Engine
This is Rietveld 408576698