Eric Orth | d39d067 | 2021-11-16 21:17:58 | [diff] [blame] | 1 | // Copyright 2021 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef NET_DNS_HOST_RESOLVER_RESULTS_TEST_UTIL_H_ |
| 6 | #define NET_DNS_HOST_RESOLVER_RESULTS_TEST_UTIL_H_ |
| 7 | |
| 8 | #include <ostream> |
Eric Orth | d39d067 | 2021-11-16 21:17:58 | [diff] [blame] | 9 | #include <vector> |
| 10 | |
| 11 | #include "net/base/connection_endpoint_metadata_test_util.h" |
| 12 | #include "net/base/ip_endpoint.h" |
| 13 | #include "testing/gmock/include/gmock/gmock.h" |
| 14 | #include "testing/gtest/include/gtest/gtest.h" |
| 15 | |
| 16 | namespace net { |
| 17 | |
| 18 | struct ConnectionEndpointMetadata; |
| 19 | struct HostResolverEndpointResult; |
| 20 | |
| 21 | testing::Matcher<const HostResolverEndpointResult&> ExpectEndpointResult( |
Eric Orth | 92c0771 | 2021-12-02 17:54:58 | [diff] [blame] | 22 | testing::Matcher<std::vector<IPEndPoint>> ip_endpoints_matcher = |
Eric Orth | d39d067 | 2021-11-16 21:17:58 | [diff] [blame] | 23 | testing::IsEmpty(), |
Eric Orth | d39d067 | 2021-11-16 21:17:58 | [diff] [blame] | 24 | testing::Matcher<const ConnectionEndpointMetadata&> metadata_matcher = |
| 25 | ExpectConnectionEndpointMetadata()); |
| 26 | |
| 27 | std::ostream& operator<<(std::ostream& os, |
| 28 | const HostResolverEndpointResult& endpoint_result); |
| 29 | |
| 30 | } // namespace net |
| 31 | |
| 32 | #endif // NET_DNS_HOST_RESOLVER_RESULTS_TEST_UTIL_H_ |