DescriptionDnsProbeJob: Differentiate network and DNS errors
DnsTransaction uses net_error to return errors returned by the remote DNS
server as well as local errors encountered trying to talk to the server (like
timeouts). Make note of which net errors mean that we received a response
from the DNS server, and mark those as "failing" instead of "unreachable".
Also, add another behavior to mock DNS transactions so we can test cases where
the server is unreachable.
BUG=156415
TEST=updated DnsProbeJobTest with a new case
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172780
Patch Set 1 #
Total comments: 11
Patch Set 2 : Fix nits #Patch Set 3 : Rename IsDnsServerError to DidReceiveDnsResponse #
Messages
Total messages: 7 (0 generated)
|