chromium/net/dns/host_resolver_results_test_util.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/dns/host_resolver_results_test_util.h"

#include <ostream>
#include <utility>
#include <vector>

#include "net/base/connection_endpoint_metadata.h"
#include "net/base/ip_endpoint.h"
#include "net/dns/public/host_resolver_results.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace net {

namespace {

class EndpointResultMatcher
    : public testing::MatcherInterface<const HostResolverEndpointResult&> {};

class ServiceEndpointMatcher
    : public testing::MatcherInterface<const ServiceEndpoint&> {};

}  // namespace

testing::Matcher<const HostResolverEndpointResult&> ExpectEndpointResult(
    testing::Matcher<std::vector<IPEndPoint>> ip_endpoints_matcher,
    testing::Matcher<const ConnectionEndpointMetadata&> metadata_matcher) {}

testing::Matcher<const ServiceEndpoint&> ExpectServiceEndpoint(
    testing::Matcher<std::vector<IPEndPoint>> ipv4_endpoints_matcher,
    testing::Matcher<std::vector<IPEndPoint>> ipv6_endpoints_matcher,
    testing::Matcher<const ConnectionEndpointMetadata&> metadata_matcher) {}

std::ostream& operator<<(std::ostream& os,
                         const HostResolverEndpointResult& endpoint_result) {}

std::ostream& operator<<(std::ostream& os, const ServiceEndpoint& endpoint) {}

}  // namespace net