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

Unified Diff: ppapi/tests/test_utils.cc

Issue 17615004: Add "PRIVATE" to the enum names of some private Pepper networking APIs: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « ppapi/tests/test_udp_socket_private.cc ('k') | remoting/client/plugin/pepper_network_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_utils.cc
diff --git a/ppapi/tests/test_utils.cc b/ppapi/tests/test_utils.cc
index e9814eace19c1c42a7700d23b1c13e1a026eb7da..f9fd7b699fa1b7d407d48f1e88dd7db794070609 100644
--- a/ppapi/tests/test_utils.cc
+++ b/ppapi/tests/test_utils.cc
@@ -137,7 +137,8 @@ bool ResolveHost(PP_Instance instance,
// TODO(yzshen): Change to use the public host resolver once it is supported.
pp::InstanceHandle instance_handle(instance);
pp::HostResolverPrivate host_resolver(instance_handle);
- PP_HostResolver_Private_Hint hint = { PP_NETADDRESSFAMILY_UNSPECIFIED, 0 };
+ PP_HostResolver_Private_Hint hint =
+ { PP_NETADDRESSFAMILY_PRIVATE_UNSPECIFIED, 0 };
TestCompletionCallback callback(instance);
callback.WaitForResult(
@@ -150,7 +151,7 @@ bool ResolveHost(PP_Instance instance,
}
switch (pp::NetAddressPrivate::GetFamily(addr_private)) {
- case PP_NETADDRESSFAMILY_IPV4: {
+ case PP_NETADDRESSFAMILY_PRIVATE_IPV4: {
PP_NetAddress_IPv4 ipv4_addr;
ipv4_addr.port = ConvertToNetEndian16(
pp::NetAddressPrivate::GetPort(addr_private));
@@ -161,7 +162,7 @@ bool ResolveHost(PP_Instance instance,
*addr = pp::NetAddress(instance_handle, ipv4_addr);
return true;
}
- case PP_NETADDRESSFAMILY_IPV6: {
+ case PP_NETADDRESSFAMILY_PRIVATE_IPV6: {
PP_NetAddress_IPv6 ipv6_addr;
ipv6_addr.port = ConvertToNetEndian16(
pp::NetAddressPrivate::GetPort(addr_private));
« no previous file with comments | « ppapi/tests/test_udp_socket_private.cc ('k') | remoting/client/plugin/pepper_network_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698