| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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.h" | 5 #include "ppapi/tests/test_host_resolver.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "ppapi/cpp/host_resolver.h" | 9 #include "ppapi/cpp/host_resolver.h" |
| 8 #include "ppapi/cpp/net_address.h" | 10 #include "ppapi/cpp/net_address.h" |
| 9 #include "ppapi/cpp/tcp_socket.h" | 11 #include "ppapi/cpp/tcp_socket.h" |
| 10 #include "ppapi/cpp/var.h" | 12 #include "ppapi/cpp/var.h" |
| 11 #include "ppapi/tests/test_utils.h" | 13 #include "ppapi/tests/test_utils.h" |
| 12 #include "ppapi/tests/testing_instance.h" | 14 #include "ppapi/tests/testing_instance.h" |
| 13 | 15 |
| 14 REGISTER_TEST_CASE(HostResolver); | 16 REGISTER_TEST_CASE(HostResolver); |
| 15 | 17 |
| 16 TestHostResolver::TestHostResolver(TestingInstance* instance) | 18 TestHostResolver::TestHostResolver(TestingInstance* instance) |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 hint.flags = PP_HOSTRESOLVER_FLAG_CANONNAME; | 164 hint.flags = PP_HOSTRESOLVER_FLAG_CANONNAME; |
| 163 return ParameterizedTestResolve(hint); | 165 return ParameterizedTestResolve(hint); |
| 164 } | 166 } |
| 165 | 167 |
| 166 std::string TestHostResolver::TestResolveIPv4() { | 168 std::string TestHostResolver::TestResolveIPv4() { |
| 167 PP_HostResolver_Hint hint; | 169 PP_HostResolver_Hint hint; |
| 168 hint.family = PP_NETADDRESS_FAMILY_IPV4; | 170 hint.family = PP_NETADDRESS_FAMILY_IPV4; |
| 169 hint.flags = PP_HOSTRESOLVER_FLAG_CANONNAME; | 171 hint.flags = PP_HOSTRESOLVER_FLAG_CANONNAME; |
| 170 return ParameterizedTestResolve(hint); | 172 return ParameterizedTestResolve(hint); |
| 171 } | 173 } |
| OLD | NEW |