blob: 73aa28954bdfe08b298f8eb84dcde4029b776047 [file] [log] [blame]
Eric Orthd39d0672021-11-16 21:17:581// 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 Orthd39d0672021-11-16 21:17:589#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
16namespace net {
17
18struct ConnectionEndpointMetadata;
19struct HostResolverEndpointResult;
20
21testing::Matcher<const HostResolverEndpointResult&> ExpectEndpointResult(
Eric Orth92c07712021-12-02 17:54:5822 testing::Matcher<std::vector<IPEndPoint>> ip_endpoints_matcher =
Eric Orthd39d0672021-11-16 21:17:5823 testing::IsEmpty(),
Eric Orthd39d0672021-11-16 21:17:5824 testing::Matcher<const ConnectionEndpointMetadata&> metadata_matcher =
25 ExpectConnectionEndpointMetadata());
26
27std::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_