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 5 #ifndef DISCOVERY_MDNS_TESTING_HASH_TEST_UTIL_ABSEIL_H_ 6 #define DISCOVERY_MDNS_TESTING_HASH_TEST_UTIL_ABSEIL_H_ 7 8 #include <utility> 9 10 #include "absl/hash/hash_testing.h" 11 #include "gtest/gtest.h" 12 13 namespace openscreen { 14 namespace discovery { 15 16 template <int&..., typename T> VerifyTypeImplementsAbslHashCorrectly(std::initializer_list<T> values)17testing::AssertionResult VerifyTypeImplementsAbslHashCorrectly( 18 std::initializer_list<T> values) { 19 absl::VerifyTypeImplementsAbslHashCorrectly(std::move(values)); 20 } 21 22 } // namespace discovery 23 } // namespace openscreen 24 25 #endif // DISCOVERY_MDNS_TESTING_HASH_TEST_UTIL_ABSEIL_H_ 26