#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/platform/image-decoders/fast_shared_buffer_reader.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/image-decoders/image_decoder_test_helpers.h"
#include "third_party/blink/renderer/platform/image-decoders/rw_buffer.h"
#include "third_party/blink/renderer/platform/image-decoders/segment_reader.h"
#include "third_party/skia/include/core/SkData.h"
namespace blink {
namespace {
scoped_refptr<SegmentReader> CopyToROBufferSegmentReader(
scoped_refptr<SegmentReader> input) { … }
scoped_refptr<SegmentReader> CopyToDataSegmentReader(
scoped_refptr<SegmentReader> input) { … }
struct SegmentReaders { … };
}
TEST(FastSharedBufferReaderTest, nonSequentialReads) { … }
TEST(FastSharedBufferReaderTest, readBackwards) { … }
TEST(FastSharedBufferReaderTest, byteByByte) { … }
TEST(FastSharedBufferReaderTest, readAllOverlappingLastSegmentBoundary) { … }
TEST(SegmentReaderTest, readPastEndThenRead) { … }
TEST(SegmentReaderTest, getAsSkData) { … }
TEST(SegmentReaderTest, variableSegments) { … }
}