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

Unified Diff: net/udp/udp_socket_unittest.cc

Issue 1565303002: Change IPEndpoint::address() to return a net::IPAddress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android Created 4 years, 11 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
Index: net/udp/udp_socket_unittest.cc
diff --git a/net/udp/udp_socket_unittest.cc b/net/udp/udp_socket_unittest.cc
index 4bd8a9ece0d54d653112fee14095f4930cd9018c..1b05ebeae111eeb5043ad61d81257d91f9065138 100644
--- a/net/udp/udp_socket_unittest.cc
+++ b/net/udp/udp_socket_unittest.cc
@@ -540,7 +540,8 @@ TEST_F(UDPSocketTest, ClientGetLocalPeerAddresses) {
// The port is dynamically generated by the udp stack.
// The IP is the real IP of the client, not necessarily
// loopback.
- //EXPECT_EQ(local_address.address(), fetched_local_address.address());
+ // EXPECT_EQ(local_address.address_number(),
+ // fetched_local_address.address_number());
IPEndPoint fetched_remote_address;
rv = client.GetPeerAddress(&fetched_remote_address);
@@ -563,7 +564,7 @@ TEST_F(UDPSocketTest, ServerGetLocalAddress) {
// Verify that port was allocated.
EXPECT_GT(local_address.port(), 0);
- EXPECT_EQ(local_address.address(), bind_address.address());
+ EXPECT_EQ(local_address.address_number(), bind_address.address_number());
}
TEST_F(UDPSocketTest, ServerGetPeerAddress) {

Powered by Google App Engine
This is Rietveld 408576698