OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |