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

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

Issue 1807663002: Migrate chrome/browser/net/* to net::IPAddress. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments eroman Created 4 years, 9 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_service.cc ('k') | no next file » | 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
diff --git a/chrome/browser/net/dns_probe_test_util.cc b/chrome/browser/net/dns_probe_test_util.cc
index 5d51a3224f87b5d5356ee27b119a5c8a21119cc9..60aa78ce1fcfe950368149ded7d853ad075da738 100644
--- a/chrome/browser/net/dns_probe_test_util.cc
+++ b/chrome/browser/net/dns_probe_test_util.cc
@@ -7,23 +7,21 @@
#include <stdint.h>
#include "chrome/browser/net/dns_probe_runner.h"
+#include "net/base/ip_address.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::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);
+ net::IPAddress dns_ip(192, 168, 1, 1);
const uint16_t kDnsPort = net::dns_protocol::kDefaultPort;
config.nameservers.push_back(net::IPEndPoint(dns_ip, kDnsPort));
« no previous file with comments | « chrome/browser/net/dns_probe_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698