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

Unified Diff: net/base/address_list_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: rebase for ChromeOS 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
« no previous file with comments | « mojo/services/network/net_address_type_converters.cc ('k') | net/base/ip_address.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/address_list_unittest.cc
diff --git a/net/base/address_list_unittest.cc b/net/base/address_list_unittest.cc
index 44955a9673640e30ef51b8d4bbc64e8a911e5d19..da1480a7b565e18430709c0d6b0cffbff762db5b 100644
--- a/net/base/address_list_unittest.cc
+++ b/net/base/address_list_unittest.cc
@@ -70,7 +70,7 @@ TEST(AddressListTest, CreateFromAddrinfo) {
for (size_t i = 0; i < list.size(); ++i) {
EXPECT_EQ(ADDRESS_FAMILY_IPV4, list[i].GetFamily());
// Only check the first byte of the address.
- EXPECT_EQ(i, list[i].address()[0]);
+ EXPECT_EQ(i, list[i].address().bytes()[0]);
EXPECT_EQ(static_cast<int>(i << 2), list[i].port());
}
@@ -82,7 +82,7 @@ TEST(AddressListTest, CreateFromAddrinfo) {
// Check if copy is independent.
copy[1] = IPEndPoint(copy[2].address(), 0xBEEF);
// Original should be unchanged.
- EXPECT_EQ(1u, list[1].address()[0]);
+ EXPECT_EQ(1u, list[1].address().bytes()[0]);
EXPECT_EQ(1 << 2, list[1].port());
}
« no previous file with comments | « mojo/services/network/net_address_type_converters.cc ('k') | net/base/ip_address.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698