Add browser tests for DNS HTTPS record protocol upgrade behavior

The new tests are:
  + DohHttpsProtocolUpgradeBrowserTest.HttpsProtocolUpgrade
  + DohHttpsProtocolUpgradeBrowserTest.NoProtocolUpgrade

These new browser tests show that when name resolutions are performed
via DoH, the presence of an HTTPS record will automatically upgrade an
http:// navigation to https://.

The tests instantiate `net::TestDohServer` and pass the test server's
query template to the network service.

For reproducibility, the tests also override the system DNS config by
setting the config service to a `TestDnsConfigService`.

Change-Id: I0735e36d8670c80f0b3aa072c7f64faaeb299949
Bug: 1252155
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3255764
Reviewed-by: Eric Orth <[email protected]>
Reviewed-by: Nasko Oskov <[email protected]>
Commit-Queue: Dan McArdle <[email protected]>
Cr-Commit-Position: refs/heads/main@{#970216}
diff --git a/net/dns/BUILD.gn b/net/dns/BUILD.gn
index ecec89f..a69d9a51 100644
--- a/net/dns/BUILD.gn
+++ b/net/dns/BUILD.gn
@@ -81,6 +81,8 @@
     "serial_worker.h",
     "system_dns_config_change_notifier.cc",
     "system_dns_config_change_notifier.h",
+    "test_dns_config_service.cc",
+    "test_dns_config_service.h",
   ]
 
   if (is_win) {
@@ -454,14 +456,12 @@
     "dns_test_util.cc",
     "host_resolver_results_test_util.cc",
     "mock_host_resolver.cc",
-    "test_dns_config_service.cc",
   ]
   public = [
     "address_info_test_util.h",
     "dns_test_util.h",
     "host_resolver_results_test_util.h",
     "mock_host_resolver.h",
-    "test_dns_config_service.h",
   ]
 
   if (enable_mdns) {