#include "llvm/Support/Allocator.h"
#include "llvm/Support/BinaryByteStream.h"
#include "llvm/Support/BinaryItemStream.h"
#include "llvm/Support/BinaryStreamArray.h"
#include "llvm/Support/BinaryStreamReader.h"
#include "llvm/Support/BinaryStreamRef.h"
#include "llvm/Support/BinaryStreamWriter.h"
#include "llvm/Testing/Support/Error.h"
#include "gtest/gtest.h"
usingnamespacellvm;
usingnamespacellvm::support;
namespace {
class BrokenStream : public WritableBinaryStream { … };
constexpr llvm::endianness Endians[] = …;
constexpr uint32_t NumEndians = …;
constexpr uint32_t NumStreams = …;
class BinaryStreamTest : public testing::Test { … };
TEST_F(BinaryStreamTest, BinaryByteStreamBounds) { … }
TEST_F(BinaryStreamTest, StreamRefBounds) { … }
TEST_F(BinaryStreamTest, StreamRefDynamicSize) { … }
TEST_F(BinaryStreamTest, DropOperations) { … }
TEST_F(BinaryStreamTest, MutableBinaryByteStreamBounds) { … }
TEST_F(BinaryStreamTest, AppendingStream) { … }
TEST_F(BinaryStreamTest, FixedStreamArray) { … }
TEST_F(BinaryStreamTest, FixedStreamArrayIteratorArrow) { … }
TEST_F(BinaryStreamTest, VarStreamArray) { … }
TEST_F(BinaryStreamTest, StreamReaderBounds) { … }
TEST_F(BinaryStreamTest, StreamReaderIntegers) { … }
TEST_F(BinaryStreamTest, StreamReaderIntegerArray) { … }
TEST_F(BinaryStreamTest, StreamReaderEnum) { … }
TEST_F(BinaryStreamTest, StreamReaderULEB128) { … }
TEST_F(BinaryStreamTest, StreamReaderSLEB128) { … }
TEST_F(BinaryStreamTest, StreamReaderObject) { … }
TEST_F(BinaryStreamTest, StreamReaderStrings) { … }
TEST_F(BinaryStreamTest, StreamWriterBounds) { … }
TEST_F(BinaryStreamTest, StreamWriterIntegerArrays) { … }
TEST_F(BinaryStreamTest, StreamWriterStrings) { … }
TEST_F(BinaryStreamTest, StreamWriterPadToAlignment) { … }
TEST_F(BinaryStreamTest, StreamWriterAppend) { … }
}
namespace {
struct BinaryItemStreamObject { … };
}
namespace llvm {
template <> struct BinaryItemTraits<BinaryItemStreamObject> { … };
}
namespace {
TEST_F(BinaryStreamTest, BinaryItemStream) { … }
}