summaryrefslogtreecommitdiffstats
path: root/net/socket/ssl_server_socket_unittest.cc
diff options
context:
space:
mode:
authorzhaoqin@chromium.org <zhaoqin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-08 00:11:42 +0000
committerzhaoqin@chromium.org <zhaoqin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-08 00:11:42 +0000
commita352869a59d48c3bd3a4a453d73c3392255275ef (patch)
tree1375d4e5900d6df89efd8780d82c5874245bef2a /net/socket/ssl_server_socket_unittest.cc
parentdc67e1c39fc3d2373391db49465cc1011c23011d (diff)
downloadchromium_src-a352869a59d48c3bd3a4a453d73c3392255275ef.zip
chromium_src-a352869a59d48c3bd3a4a453d73c3392255275ef.tar.gz
chromium_src-a352869a59d48c3bd3a4a453d73c3392255275ef.tar.bz2
fixed issue 128383 - replace GetPeerAddress(AddressList* address) with GetPeerAddress(IPEndPoint* address)
R=szym@chromium.org BUG=128383 TEST=try bot Review URL: https://chromiumcodereview.appspot.com/10491007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141125 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/ssl_server_socket_unittest.cc')
-rw-r--r--net/socket/ssl_server_socket_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/socket/ssl_server_socket_unittest.cc b/net/socket/ssl_server_socket_unittest.cc
index 806a598..9cbbb42 100644
--- a/net/socket/ssl_server_socket_unittest.cc
+++ b/net/socket/ssl_server_socket_unittest.cc
@@ -201,9 +201,9 @@ class FakeSocket : public StreamSocket {
return true;
}
- virtual int GetPeerAddress(AddressList* address) const OVERRIDE {
- net::IPAddressNumber ip_address(4);
- *address = net::AddressList::CreateFromIPAddress(ip_address, 0 /*port*/);
+ virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE {
+ net::IPAddressNumber ip_address(net::kIPv4AddressSize);
+ *address = net::IPEndPoint(ip_address, 0 /*port*/);
return net::OK;
}