//===- llvm/unittest/Support/raw_ostream_test.cpp - raw_ostream 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 // //===----------------------------------------------------------------------===// #include "llvm/Support/Format.h" #include "llvm/Support/raw_sha1_ostream.h" #include "gtest/gtest.h" #include <string> usingnamespacellvm; static std::string toHex(ArrayRef<uint8_t> Input) { … } TEST(raw_sha1_ostreamTest, Basic) { … } TEST(sha1_hash_test, Basic) { … } TEST(sha1_hash_test, Update) { … } // Check that getting the intermediate hash in the middle of the stream does // not invalidate the final result. TEST(raw_sha1_ostreamTest, Intermediate) { … } TEST(raw_sha1_ostreamTest, Reset) { … }