//===- llvm/unittest/Support/xxhashTest.cpp -------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "llvm/Support/xxhash.h" #include "gtest/gtest.h" usingnamespacellvm; /* use #define to make them constant, required for initialization */ #define PRIME32 … #define PRIME64 … /* * Fills a test buffer with pseudorandom data. * * This is used in the sanity check - its values must not be changed. */ static void fillTestBuffer(uint8_t *buffer, size_t len) { … } TEST(xxhashTest, Basic) { … } TEST(xxhashTest, xxh3) { … } TEST(xxhashTest, xxh3_128bits) { … }