#include "llvm/ProfileData/SampleProf.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Module.h"
#include "llvm/ProfileData/SampleProfReader.h"
#include "llvm/ProfileData/SampleProfWriter.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/VirtualFileSystem.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Testing/Support/SupportHelpers.h"
#include "gtest/gtest.h"
#include <string>
#include <vector>
usingnamespacellvm;
usingnamespacesampleprof;
TempFile;
static ::testing::AssertionResult NoError(std::error_code EC) { … }
namespace {
struct SampleProfTest : ::testing::Test { … };
TEST_F(SampleProfTest, roundtrip_text_profile) { … }
TEST_F(SampleProfTest, roundtrip_raw_binary_profile) { … }
TEST_F(SampleProfTest, roundtrip_ext_binary_profile) { … }
TEST_F(SampleProfTest, roundtrip_md5_ext_binary_profile) { … }
TEST_F(SampleProfTest, remap_text_profile) { … }
TEST_F(SampleProfTest, remap_raw_binary_profile) { … }
TEST_F(SampleProfTest, remap_ext_binary_profile) { … }
TEST_F(SampleProfTest, sample_overflow_saturation) { … }
TEST_F(SampleProfTest, default_suffix_elision_text) { … }
TEST_F(SampleProfTest, selected_suffix_elision_text) { … }
TEST_F(SampleProfTest, none_suffix_elision_text) { … }
}