connection_endpoint_metadata_test_util.h 1.1 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_BASE_CONNECTION_ENDPOINT_METADATA_TEST_UTIL_H_
  5. #define NET_BASE_CONNECTION_ENDPOINT_METADATA_TEST_UTIL_H_
  6. #include <ostream>
  7. #include <string>
  8. #include <vector>
  9. #include "net/base/connection_endpoint_metadata.h"
  10. #include "testing/gmock/include/gmock/gmock.h"
  11. #include "testing/gtest/include/gtest/gtest.h"
  12. namespace net {
  13. testing::Matcher<const ConnectionEndpointMetadata&>
  14. ExpectConnectionEndpointMetadata(
  15. testing::Matcher<std::vector<std::string>>
  16. supported_protocol_alpns_matcher = testing::IsEmpty(),
  17. testing::Matcher<ConnectionEndpointMetadata::EchConfigList>
  18. ech_config_list_matcher = testing::IsEmpty(),
  19. testing::Matcher<std::string> target_name_matcher = testing::IsEmpty());
  20. std::ostream& operator<<(
  21. std::ostream& os,
  22. const ConnectionEndpointMetadata& connection_endpoint_metadata);
  23. } // namespace net
  24. #endif // NET_BASE_CONNECTION_ENDPOINT_METADATA_TEST_UTIL_H_