//===- llvm/unittest/Support/Base64Test.cpp - Base64 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 Base64 functions. // //===----------------------------------------------------------------------===// #include "llvm/Support/Base64.h" #include "llvm/ADT/StringRef.h" #include "llvm/Testing/Support/Error.h" #include "gtest/gtest.h" usingnamespacellvm; namespace { /// Tests an arbitrary set of bytes passed as \p Input. void TestBase64(StringRef Input, StringRef Final) { … } void TestBase64Decode(StringRef Input, StringRef Expected, StringRef ExpectedErrorMessage = { … } char NonPrintableVector[] = …; char LargeVector[] = …; } // namespace TEST(Base64Test, Base64) { … } TEST(Base64Test, DecodeBase64) { … }