//===-- VASprintfTest.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 "lldb/Utility/VASPrintf.h" #include "llvm/ADT/SmallString.h" #include "gtest/gtest.h" #include <locale.h> #if defined (_WIN32) #define TEST_ENCODING … #else #define TEST_ENCODING … #endif usingnamespacelldb_private; usingnamespacellvm; static bool Sprintf(llvm::SmallVectorImpl<char> &Buffer, const char *Fmt, ...) { … } TEST(VASprintfTest, NoBufferResize) { … } TEST(VASprintfTest, BufferResize) { … } TEST(VASprintfTest, EncodingError) { … }