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

Unified Diff: ppapi/tests/test_net_address_private.cc

Issue 9398003: Change PPB_NetAddress_Private.GetFamily to return a PP_AddressFamily_Private value instead of uint1… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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: ppapi/tests/test_net_address_private.cc
diff --git a/ppapi/tests/test_net_address_private.cc b/ppapi/tests/test_net_address_private.cc
index ecb9bc95d08e4e9aabeee9e3d42719aa70c1830b..a491c88b49387b2de66236f2a51bb5978d31a248 100644
--- a/ppapi/tests/test_net_address_private.cc
+++ b/ppapi/tests/test_net_address_private.cc
@@ -252,13 +252,13 @@ std::string TestNetAddressPrivate::TestDescribeIPv6() {
std::string TestNetAddressPrivate::TestGetFamily() {
PP_NetAddress_Private ipv4 = MakeIPv4NetAddress("127.0.0.1", 80);
- ASSERT_EQ(NetAddressPrivate::GetFamily(ipv4), AF_INET);
+ ASSERT_EQ(NetAddressPrivate::GetFamily(ipv4), PP_ADDRESSFAMILY_IPV4);
uint16_t ipv6_address[8] = { 0x1234, 0xabcd, 0, 0, 0xff, 0, 0, 0xcdef };
PP_NetAddress_Private ipv6 = MakeIPv6NetAddress(ipv6_address,
123,
0);
- ASSERT_EQ(NetAddressPrivate::GetFamily(ipv6), AF_INET6);
+ ASSERT_EQ(NetAddressPrivate::GetFamily(ipv6), PP_ADDRESSFAMILY_IPV6);
PASS();
}

Powered by Google App Engine
This is Rietveld 408576698