#include "llvm/ProfileData/SampleProfReader.h"
#include "llvm/ProfileData/SampleProfWriter.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/VirtualFileSystem.h"
#include "llvm/Testing/Support/Error.h"
#include "gtest/gtest.h"
usingnamespacellvm;
TempFile;
std::string Input1 = …;
const char EmptyProfile[18] = …;
template <typename T> class ExpectedErrorOr : public Expected<T> { … };
#define DEF_VAR_RETURN_IF_ERROR(Var, Value) …
#define VAR_RETURN_IF_ERROR(Var, Value) …
#define RETURN_IF_ERROR(Value) …
static ExpectedErrorOr<void *> RunTest(StringRef Input, size_t SizeLimit,
SampleProfileFormat Format,
bool Compress = false) { … }
TEST(TestOutputSizeLimit, TestOutputSizeLimitExtBinary) { … }
TEST(TestOutputSizeLimit, TestOutputSizeLimitBinary) { … }
TEST(TestOutputSizeLimit, TestOutputSizeLimitText) { … }
#if LLVM_ENABLE_ZLIB
TEST(TestOutputSizeLimit, TestOutputSizeLimitExtBinaryCompressed) { … }
#endif