summaryrefslogtreecommitdiffstats
path: root/ppapi/tests/test_host_resolver_private_disallowed.cc
diff options
context:
space:
mode:
authoryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-24 23:17:46 +0000
committeryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-24 23:17:46 +0000
commitddecdae52c53779b784bd0daec192ae0a3afe925 (patch)
tree595d2b6e2aaf41d8f0a76b54bf84a43ee90eb2e8 /ppapi/tests/test_host_resolver_private_disallowed.cc
parent3b4b2f071a372d1645ab6d121c37c18c29458705 (diff)
downloadchromium_src-ddecdae52c53779b784bd0daec192ae0a3afe925.zip
chromium_src-ddecdae52c53779b784bd0daec192ae0a3afe925.tar.gz
chromium_src-ddecdae52c53779b784bd0daec192ae0a3afe925.tar.bz2
Add "PRIVATE" to the enum names of some private Pepper networking APIs:
- ppb_net_address_private.idl - ppb_host_resolver_private.idl - ppb_tcp_socket_private.idl - ppb_udp_socket_private.idl Currently, we have very similar enum names in the private and public Pepper networking APIs (for example, PP_NETADDRESSFAMILY_IPV4 and PP_NETADDRESS_FAMILY_IPV4). The purpose of this CL is to make the distinction more clear. This CL doesn't break existing plugins compiled with old private networking enums (without "PRIVATE" in the names). They will still run on newer versions of Chrome. The only consequence is that they will get compile errors when they compile with new SDK (with new enum names). But the errors should be very straightforward to fix. BUG=253583 TEST=None R=bbudge@chromium.org, tsepez@chromium.org, wez@chromium.org Review URL: https://codereview.chromium.org/17615004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208291 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests/test_host_resolver_private_disallowed.cc')
-rw-r--r--ppapi/tests/test_host_resolver_private_disallowed.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ppapi/tests/test_host_resolver_private_disallowed.cc b/ppapi/tests/test_host_resolver_private_disallowed.cc
index 3c0e0d5..0e28dce 100644
--- a/ppapi/tests/test_host_resolver_private_disallowed.cc
+++ b/ppapi/tests/test_host_resolver_private_disallowed.cc
@@ -39,8 +39,8 @@ void TestHostResolverPrivateDisallowed::RunTests(const std::string& filter) {
std::string TestHostResolverPrivateDisallowed::TestResolve() {
pp::HostResolverPrivate host_resolver(instance_);
PP_HostResolver_Private_Hint hint;
- hint.family = PP_NETADDRESSFAMILY_UNSPECIFIED;
- hint.flags = PP_HOST_RESOLVER_FLAGS_CANONNAME;
+ hint.family = PP_NETADDRESSFAMILY_PRIVATE_UNSPECIFIED;
+ hint.flags = PP_HOST_RESOLVER_PRIVATE_FLAGS_CANONNAME;
TestCompletionCallback callback(instance_->pp_instance(), callback_type());
callback.WaitForResult(
host_resolver.Resolve(host_, port_, hint, callback.GetCallback()));