summaryrefslogtreecommitdiffstats
path: root/net/dns/dns_test_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/dns/dns_test_util.cc')
-rw-r--r--net/dns/dns_test_util.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/dns/dns_test_util.cc b/net/dns/dns_test_util.cc
index 8663370..237646b 100644
--- a/net/dns/dns_test_util.cc
+++ b/net/dns/dns_test_util.cc
@@ -126,6 +126,9 @@ class MockTransaction : public DnsTransaction,
case MockDnsClientRule::FAIL_ASYNC:
callback_.Run(this, ERR_NAME_NOT_RESOLVED, NULL);
break;
+ case MockDnsClientRule::TIMEOUT:
+ callback_.Run(this, ERR_DNS_TIMED_OUT, NULL);
+ break;
default:
NOTREACHED();
break;