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

Side by Side Diff: ppapi/tests/test_host_resolver_private.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ppapi/tests/test_host_resolver_private.h" 5 #include "ppapi/tests/test_host_resolver_private.h"
6 6
7 #include "ppapi/c/private/ppb_net_address_private.h" 7 #include "ppapi/c/private/ppb_net_address_private.h"
8 #include "ppapi/cpp/module_impl.h" 8 #include "ppapi/cpp/module_impl.h"
9 #include "ppapi/cpp/private/host_resolver_private.h" 9 #include "ppapi/cpp/private/host_resolver_private.h"
10 #include "ppapi/cpp/private/tcp_socket_private.h" 10 #include "ppapi/cpp/private/tcp_socket_private.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 ASSERT_SUBTEST_SUCCESS(CheckHTTPResponse(&socket, 164 ASSERT_SUBTEST_SUCCESS(CheckHTTPResponse(&socket,
165 "GET / HTTP/1.0\r\n\r\n", 165 "GET / HTTP/1.0\r\n\r\n",
166 "HTTP")); 166 "HTTP"));
167 socket.Disconnect(); 167 socket.Disconnect();
168 168
169 PASS(); 169 PASS();
170 } 170 }
171 171
172 std::string TestHostResolverPrivate::TestResolve() { 172 std::string TestHostResolverPrivate::TestResolve() {
173 PP_HostResolver_Private_Hint hint; 173 PP_HostResolver_Private_Hint hint;
174 hint.family = PP_NETADDRESSFAMILY_UNSPECIFIED; 174 hint.family = PP_NETADDRESSFAMILY_PRIVATE_UNSPECIFIED;
175 hint.flags = PP_HOST_RESOLVER_FLAGS_CANONNAME; 175 hint.flags = PP_HOST_RESOLVER_PRIVATE_FLAGS_CANONNAME;
176 return ParametrizedTestResolve(hint); 176 return ParametrizedTestResolve(hint);
177 } 177 }
178 178
179 std::string TestHostResolverPrivate::TestResolveIPv4() { 179 std::string TestHostResolverPrivate::TestResolveIPv4() {
180 PP_HostResolver_Private_Hint hint; 180 PP_HostResolver_Private_Hint hint;
181 hint.family = PP_NETADDRESSFAMILY_IPV4; 181 hint.family = PP_NETADDRESSFAMILY_PRIVATE_IPV4;
182 hint.flags = PP_HOST_RESOLVER_FLAGS_CANONNAME; 182 hint.flags = PP_HOST_RESOLVER_PRIVATE_FLAGS_CANONNAME;
183 return ParametrizedTestResolve(hint); 183 return ParametrizedTestResolve(hint);
184 } 184 }
OLDNEW
« no previous file with comments | « ppapi/shared_impl/private/tcp_socket_private_impl.cc ('k') | ppapi/tests/test_host_resolver_private_disallowed.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698