You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
723 B
26 lines
723 B
// 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_
|