diff options
Diffstat (limited to 'discovery/mdns/testing/hash_test_util_abseil.h')
-rw-r--r-- | discovery/mdns/testing/hash_test_util_abseil.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/discovery/mdns/testing/hash_test_util_abseil.h b/discovery/mdns/testing/hash_test_util_abseil.h new file mode 100644 index 00000000..dead96a9 --- /dev/null +++ b/discovery/mdns/testing/hash_test_util_abseil.h @@ -0,0 +1,25 @@ +// Copyright 2021 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef DISCOVERY_MDNS_TESTING_HASH_TEST_UTIL_ABSEIL_H_ +#define DISCOVERY_MDNS_TESTING_HASH_TEST_UTIL_ABSEIL_H_ + +#include <utility> + +#include "absl/hash/hash_testing.h" +#include "gtest/gtest.h" + +namespace openscreen { +namespace discovery { + +template <int&..., typename T> +testing::AssertionResult VerifyTypeImplementsAbslHashCorrectly( + std::initializer_list<T> values) { + absl::VerifyTypeImplementsAbslHashCorrectly(std::move(values)); +} + +} // namespace discovery +} // namespace openscreen + +#endif // DISCOVERY_MDNS_TESTING_HASH_TEST_UTIL_ABSEIL_H_ |