Lines Matching +full:endpoints +full:- +full:tests
2 // Use of this source code is governed by a BSD-style license that can be
46 if (address->sa_family == AF_INET) { in GetPortFieldFromSockaddr()
50 return &sockaddr->sin_port; in GetPortFieldFromSockaddr()
51 } else if (address->sa_family == AF_INET6) { in GetPortFieldFromSockaddr()
55 return &sockaddr->sin6_port; in GetPortFieldFromSockaddr()
66 return -1; in GetPortFromSockaddr()
75 } tests[] = { variable
86 for (auto& test : tests) { in SetUp()
98 for (const auto& test : tests) { in TEST_F()
107 for (const auto& test : tests) { in TEST_F()
118 for (const auto& test : tests) { in TEST_F()
129 for (const auto& test : tests) { in TEST_F()
152 for (const auto& test : tests) { in TEST_F()
167 EXPECT_FALSE(ip_endpoint.FromSockAddr(sockaddr, sizeof(addr) - 1)); in TEST_F()
206 // Test that IPv4/IPv6-only methods crash. in TEST_F()
221 // Compare `bt_endpoint` with non-Bluetooth endpoints. in TEST_F()
222 for (const auto& test : tests) { in TEST_F()
247 // Comparison functions should agree that the endpoints are equal. in TEST_F()
251 // Test that IPv4/IPv6-only methods crash. in TEST_F()
282 // Test that IPv4/IPv6-only methods crash. in TEST_F()
312 // Test that IPv4/IPv6-only methods crash. in TEST_F()
324 for (const auto& test : tests) { in TEST_F()
333 IPEndPoint ip_endpoint1(tests[0].ip_address, 100); in TEST_F()
334 IPEndPoint ip_endpoint2(tests[0].ip_address, 1000); in TEST_F()
339 ip_endpoint1 = IPEndPoint(tests[0].ip_address, 81); in TEST_F()
340 ip_endpoint2 = IPEndPoint(tests[2].ip_address, 80); in TEST_F()
345 ip_endpoint1 = IPEndPoint(tests[0].ip_address, 81); in TEST_F()
346 ip_endpoint2 = IPEndPoint(tests[1].ip_address, 80); in TEST_F()
351 ip_endpoint1 = IPEndPoint(tests[2].ip_address, 81); in TEST_F()
352 ip_endpoint2 = IPEndPoint(tests[3].ip_address, 80); in TEST_F()
356 // Compare equivalent endpoints. in TEST_F()
357 ip_endpoint1 = IPEndPoint(tests[0].ip_address, 80); in TEST_F()
358 ip_endpoint2 = IPEndPoint(tests[0].ip_address, 80); in TEST_F()
370 for (const auto& test : tests) { in TEST_F()
385 for (const auto& test : tests) { in TEST_F()
399 for (const auto& test : tests) { in TEST_F()
416 *negative_port.GetDict().Find("port") = base::Value(-1); in TEST_F()