//===- llvm/unittest/Support/MD5Test.cpp - MD5 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 MD5 functions. // //===----------------------------------------------------------------------===// #include "llvm/Support/MD5.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallString.h" #include "gtest/gtest.h" usingnamespacellvm; namespace { /// Tests an arbitrary set of bytes passed as \p Input. void TestMD5Sum(ArrayRef<uint8_t> Input, StringRef Final) { … } void TestMD5Sum(StringRef Input, StringRef Final) { … } TEST(MD5Test, MD5) { … } TEST(MD5HashTest, MD5) { … } TEST(MD5Test, FinalAndResultHelpers) { … } } // namespace