Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1649)

Unified Diff: chrome/browser/net/dns_probe_test_util.cc

Issue 19777002: Revert 211950 "Display DNS probe results." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1568/src/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/dns_probe_test_util.h ('k') | chrome/browser/net/net_error_tab_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/dns_probe_test_util.cc
===================================================================
--- chrome/browser/net/dns_probe_test_util.cc (revision 212348)
+++ chrome/browser/net/dns_probe_test_util.cc (working copy)
@@ -1,37 +0,0 @@
-// Copyright 2013 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 "chrome/browser/net/dns_probe_test_util.h"
-
-#include "chrome/browser/net/dns_probe_runner.h"
-#include "net/dns/dns_config_service.h"
-#include "net/dns/dns_protocol.h"
-
-using net::DnsClient;
-using net::DnsConfig;
-using net::IPAddressNumber;
-using net::IPEndPoint;
-using net::MockDnsClientRule;
-using net::MockDnsClientRuleList;
-using net::ParseIPLiteralToNumber;
-
-namespace chrome_browser_net {
-
-scoped_ptr<DnsClient> CreateMockDnsClientForProbes(
- MockDnsClientRule::Result result) {
- DnsConfig config;
- IPAddressNumber dns_ip;
- ParseIPLiteralToNumber("192.168.1.1", &dns_ip);
- const uint16 kDnsPort = net::dns_protocol::kDefaultPort;
- config.nameservers.push_back(IPEndPoint(dns_ip, kDnsPort));
-
- const uint16 kTypeA = net::dns_protocol::kTypeA;
- MockDnsClientRuleList rules;
- rules.push_back(
- MockDnsClientRule(DnsProbeRunner::kKnownGoodHostname, kTypeA, result));
-
- return CreateMockDnsClient(config, rules).Pass();
-}
-
-} // namespace chrome_browser_net
« no previous file with comments | « chrome/browser/net/dns_probe_test_util.h ('k') | chrome/browser/net/net_error_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698