#include "llvm/Bitstream/BitstreamWriter.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Bitstream/BitCodeEnums.h"
#include "llvm/Bitstream/BitstreamReader.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Testing/Support/SupportHelpers.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
usingnamespacellvm;
namespace {
TEST(BitstreamWriterTest, emitBlob) { … }
TEST(BitstreamWriterTest, emitBlobWithSize) { … }
TEST(BitstreamWriterTest, emitBlobEmpty) { … }
TEST(BitstreamWriterTest, emitBlob4ByteAligned) { … }
class BitstreamWriterFlushTest : public ::testing::TestWithParam<int> { … };
TEST_P(BitstreamWriterFlushTest, simpleExample) { … }
TEST_P(BitstreamWriterFlushTest, subBlock) { … }
TEST_P(BitstreamWriterFlushTest, blobRawRead) { … }
INSTANTIATE_TEST_SUITE_P(…);
}