xref: /aosp_15_r20/external/cronet/net/base/connection_endpoint_metadata_test_util.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2021 The Chromium Authors
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_BASE_CONNECTION_ENDPOINT_METADATA_TEST_UTIL_H_
6 #define NET_BASE_CONNECTION_ENDPOINT_METADATA_TEST_UTIL_H_
7 
8 #include <ostream>
9 #include <string>
10 #include <vector>
11 
12 #include "net/base/connection_endpoint_metadata.h"
13 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h"
15 
16 namespace net {
17 
18 testing::Matcher<const ConnectionEndpointMetadata&>
19 ExpectConnectionEndpointMetadata(
20     testing::Matcher<std::vector<std::string>>
21         supported_protocol_alpns_matcher = testing::IsEmpty(),
22     testing::Matcher<ConnectionEndpointMetadata::EchConfigList>
23         ech_config_list_matcher = testing::IsEmpty(),
24     testing::Matcher<std::string> target_name_matcher = testing::IsEmpty());
25 
26 std::ostream& operator<<(
27     std::ostream& os,
28     const ConnectionEndpointMetadata& connection_endpoint_metadata);
29 
30 }  // namespace net
31 
32 #endif  // NET_BASE_CONNECTION_ENDPOINT_METADATA_TEST_UTIL_H_
33