#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/zucchini/buffer_source.h"
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <iterator>
#include <string>
#include <tuple>
#include <vector>
#include "components/zucchini/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace zucchini {
vec;
class BufferSourceTest : public testing::Test { … };
TEST_F(BufferSourceTest, CtorWithOffset) { … }
TEST_F(BufferSourceTest, Skip) { … }
TEST_F(BufferSourceTest, SkipAcrossEnd) { … }
TEST_F(BufferSourceTest, CheckNextBytes) { … }
TEST_F(BufferSourceTest, ConsumeBytes) { … }
TEST_F(BufferSourceTest, CheckNextValue) { … }
#pragma pack(push, 1)
struct UnalignedUint32T { … };
struct ValueType { … };
#pragma pack(pop)
TEST_F(BufferSourceTest, GetValueIntegral) { … }
TEST_F(BufferSourceTest, GetValueAggregate) { … }
TEST_F(BufferSourceTest, GetValueUnaligned) { … }
TEST_F(BufferSourceTest, GetRegion) { … }
TEST_F(BufferSourceTest, GetPointerIntegral) { … }
TEST_F(BufferSourceTest, GetPointerIntegralMisaligned) { … }
TEST_F(BufferSourceTest, GetPointerAggregate) { … }
TEST_F(BufferSourceTest, GetArrayIntegral) { … }
TEST_F(BufferSourceTest, GetArrayIntegralMisaligned) { … }
TEST_F(BufferSourceTest, GetArrayAggregate) { … }
TEST_F(BufferSourceTest, GetUleb128) { … }
TEST_F(BufferSourceTest, GetSleb128) { … }
TEST_F(BufferSourceTest, SkipLeb128) { … }
}