//===- llvm/unittest/Support/SHA256Test.cpp - SHA256 tests //----------------------===// // // 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 // //===----------------------------------------------------------------------===// // // This file implements unit tests for the SHA256 functions. // //===----------------------------------------------------------------------===// #include "llvm/Support/SHA256.h" #include "llvm/ADT/ArrayRef.h" #include "gtest/gtest.h" usingnamespacellvm; namespace { static std::string toHex(ArrayRef<uint8_t> Input) { … } /// Tests an arbitrary set of bytes passed as \p Input. void TestSHA256Sum(ArrayRef<uint8_t> Input, StringRef Final) { … } KV; TEST(SHA256Test, SHA256) { … } } // namespace