host_resolver_results_test_util.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. #ifndef NET_DNS_HOST_RESOLVER_RESULTS_TEST_UTIL_H_
  5. #define NET_DNS_HOST_RESOLVER_RESULTS_TEST_UTIL_H_
  6. #include <ostream>
  7. #include <vector>
  8. #include "net/base/connection_endpoint_metadata_test_util.h"
  9. #include "net/base/ip_endpoint.h"
  10. #include "testing/gmock/include/gmock/gmock.h"
  11. #include "testing/gtest/include/gtest/gtest.h"
  12. namespace net {
  13. struct ConnectionEndpointMetadata;
  14. struct HostResolverEndpointResult;
  15. testing::Matcher<const HostResolverEndpointResult&> ExpectEndpointResult(
  16. testing::Matcher<std::vector<IPEndPoint>> ip_endpoints_matcher =
  17. testing::IsEmpty(),
  18. testing::Matcher<const ConnectionEndpointMetadata&> metadata_matcher =
  19. ExpectConnectionEndpointMetadata());
  20. std::ostream& operator<<(std::ostream& os,
  21. const HostResolverEndpointResult& endpoint_result);
  22. } // namespace net
  23. #endif // NET_DNS_HOST_RESOLVER_RESULTS_TEST_UTIL_H_