[Fuchsia] Add DnsConfigServiceFuchsia stub

Previously DnsConfigServicePosix was compiled on Fuchsia, but none of
that code works there. Added a stub implementation of
DnsConfigService for Fuchsia that returns an emtpy config. This change
unblocks work on DnsConfigServicePosix unittests. DNS resolver falls
back to the system provided resolver when it gets an empty DNS config.

Bug: 950717
Change-Id: I0059b3e336cfc787211d31352fd11165e1754bc3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1559237
Commit-Queue: Sergey Ulanov <[email protected]>
Auto-Submit: Sergey Ulanov <[email protected]>
Reviewed-by: Paul Jensen <[email protected]>
Cr-Commit-Position: refs/heads/master@{#648962}
diff --git a/net/dns/dns_config_service_fuchsia.cc b/net/dns/dns_config_service_fuchsia.cc
new file mode 100644
index 0000000..d4fca47
--- /dev/null
+++ b/net/dns/dns_config_service_fuchsia.cc
@@ -0,0 +1,36 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/dns/dns_config_service_fuchsia.h"
+
+#include <memory>
+
+#include "net/dns/dns_config.h"
+#include "net/dns/dns_hosts.h"
+
+namespace net {
+namespace internal {
+
+DnsConfigServiceFuchsia::DnsConfigServiceFuchsia() = default;
+DnsConfigServiceFuchsia::~DnsConfigServiceFuchsia() = default;
+
+void DnsConfigServiceFuchsia::ReadNow() {
+  // TODO(crbug.com/950717): Implement this method.
+  OnConfigRead(DnsConfig());
+  OnHostsRead(DnsHosts());
+}
+
+bool DnsConfigServiceFuchsia::StartWatching() {
+  // TODO(crbug.com/950717): Implement this method.
+  return false;
+}
+
+}  // namespace internal
+
+// static
+std::unique_ptr<DnsConfigService> DnsConfigService::CreateSystemService() {
+  return std::make_unique<internal::DnsConfigServiceFuchsia>();
+}
+
+}  // namespace net
\ No newline at end of file