From 92c439fbcf4850b1ea8f90d80074e9150ab94f42 Mon Sep 17 00:00:00 2001 From: martijn Date: Fri, 25 Mar 2016 09:48:42 -0700 Subject: Migrate content/*/p2p/* code to net::IPAddress. BUG=496258 Review URL: https://codereview.chromium.org/1833523002 Cr-Commit-Position: refs/heads/master@{#383287} --- content/browser/renderer_host/p2p/socket_host_test_utils.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'content/browser/renderer_host/p2p/socket_host_test_utils.cc') diff --git a/content/browser/renderer_host/p2p/socket_host_test_utils.cc b/content/browser/renderer_host/p2p/socket_host_test_utils.cc index f1e20b6..81ca20d 100644 --- a/content/browser/renderer_host/p2p/socket_host_test_utils.cc +++ b/content/browser/renderer_host/p2p/socket_host_test_utils.cc @@ -11,6 +11,7 @@ #include "base/thread_task_runner_handle.h" #include "net/base/completion_callback.h" #include "net/base/io_buffer.h" +#include "net/base/ip_address.h" const int kStunHeaderSize = 20; const uint16_t kStunBindingRequest = 0x0001; @@ -213,7 +214,7 @@ void CreateStunError(std::vector* packet) { } net::IPEndPoint ParseAddress(const std::string& ip_str, uint16_t port) { - net::IPAddressNumber ip; - EXPECT_TRUE(net::ParseIPLiteralToNumber(ip_str, &ip)); + net::IPAddress ip; + EXPECT_TRUE(ip.AssignFromIPLiteral(ip_str)); return net::IPEndPoint(ip, port); } -- cgit v1.1