Add source and cache support to DNS service API.
Added injectable TickClock to MockHostResolver to fix some timing
issues I ran into while debugging some of the new cache tests.
Note: HostResolverSource still has an ANY value for now, despite recent
conversations that it's not the clearest name. Still trying to decide
on the best name for that value, so not renamed yet.
Bug: 846423
Cq-Include-Trybots: luci.chromium.try:linux_mojo
Change-Id: I22431d47f76d831bbf67d0f4010c1753093a3f32
Reviewed-on: https://chromium-review.googlesource.com/1195550
Reviewed-by: Matt Menke <[email protected]>
Reviewed-by: Tom Sepez <[email protected]>
Commit-Queue: Eric Orth <[email protected]>
Cr-Commit-Position: refs/heads/master@{#588896}
diff --git a/net/dns/host_resolver_source.h b/net/dns/host_resolver_source.h
index 4985dfc..96af9b2 100644
--- a/net/dns/host_resolver_source.h
+++ b/net/dns/host_resolver_source.h
@@ -5,6 +5,8 @@
#ifndef NET_DNS_HOST_RESOLVER_SOURCE_H_
#define NET_DNS_HOST_RESOLVER_SOURCE_H_
+namespace net {
+
// Enumeration to specify the allowed results source for HostResolver
// requests.
enum class HostResolverSource {
@@ -22,4 +24,6 @@
// TODO(crbug.com/846423): Add MDNS support.
};
+} // namespace net
+
#endif // NET_DNS_HOST_RESOLVER_SOURCE_H_