diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-18 02:38:32 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-18 02:38:32 +0000 |
commit | 000648e9b9a0be51801901c56e30e58a9efc35d7 (patch) | |
tree | c18bed9bafbb6866a90d9a030fa6137f2b8d76c2 /ppapi/tests | |
parent | f3855ee19e1260ed81a2743abdd60d317760c66f (diff) | |
download | chromium_src-000648e9b9a0be51801901c56e30e58a9efc35d7.zip chromium_src-000648e9b9a0be51801901c56e30e58a9efc35d7.tar.gz chromium_src-000648e9b9a0be51801901c56e30e58a9efc35d7.tar.bz2 |
Change pp::NetAddress_Dev to use bool instead of PP_Bool.
BUG=247225
TEST=None
Review URL: https://chromiumcodereview.appspot.com/17332003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206885 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests')
-rw-r--r-- | ppapi/tests/test_net_address.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ppapi/tests/test_net_address.cc b/ppapi/tests/test_net_address.cc index 3a31c0d..b6dff7b 100644 --- a/ppapi/tests/test_net_address.cc +++ b/ppapi/tests/test_net_address.cc @@ -102,14 +102,14 @@ std::string TestNetAddress::TestDescribeAsString() { PP_NetAddress_IPv4_Dev ipv4_addr1 = { ConvertToNetEndian16(1234), { 127, 0, 0, 1 } }; NetAddress_Dev addr1(instance_, ipv4_addr1); - ASSERT_EQ("127.0.0.1", addr1.DescribeAsString(PP_FALSE).AsString()); - ASSERT_EQ("127.0.0.1:1234", addr1.DescribeAsString(PP_TRUE).AsString()); + ASSERT_EQ("127.0.0.1", addr1.DescribeAsString(false).AsString()); + ASSERT_EQ("127.0.0.1:1234", addr1.DescribeAsString(true).AsString()); PP_NetAddress_IPv4_Dev ipv4_addr2 = { ConvertToNetEndian16(80), { 192, 168, 0, 2 } }; NetAddress_Dev addr2(instance_, ipv4_addr2); - ASSERT_EQ("192.168.0.2", addr2.DescribeAsString(PP_FALSE).AsString()); - ASSERT_EQ("192.168.0.2:80", addr2.DescribeAsString(PP_TRUE).AsString()); + ASSERT_EQ("192.168.0.2", addr2.DescribeAsString(false).AsString()); + ASSERT_EQ("192.168.0.2:80", addr2.DescribeAsString(true).AsString()); } { // Test describing IPv6 addresses. @@ -164,9 +164,9 @@ std::string TestNetAddress::TestDescribeAsString() { instance_, ipv6_test_cases[i].host_order_addr, ipv6_test_cases[i].host_order_port); ASSERT_EQ(ipv6_test_cases[i].expected_without_port, - addr.DescribeAsString(PP_FALSE).AsString()); + addr.DescribeAsString(false).AsString()); ASSERT_EQ(ipv6_test_cases[i].expected_with_port, - addr.DescribeAsString(PP_TRUE).AsString()); + addr.DescribeAsString(true).AsString()); } } |