chromium/third_party/blink/renderer/platform/graphics/parkable_image_segment_reader_test.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/platform/graphics/parkable_image.h"

#include "base/test/task_environment.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/segment_reader.h"

namespace blink {
namespace {
const char g_abc[] =;
const char g_123[] =;
}  // namespace

class ParkableImageSegmentReaderTest : public testing::Test {};

// There are also tests for SharedBufferSegmentReader located in
// ./fast_shared_buffer_reader_test.cc

TEST_F(ParkableImageSegmentReaderTest, Empty) {}

TEST_F(ParkableImageSegmentReaderTest, NonEmpty) {}

// Checks that |size()| returns the correct size, even after modyfying the
// underlying ParkableImage.
TEST_F(ParkableImageSegmentReaderTest, Append) {}

TEST_F(ParkableImageSegmentReaderTest, GetSomeData) {}

TEST_F(ParkableImageSegmentReaderTest, GetAsSkData) {}

TEST_F(ParkableImageSegmentReaderTest, GetAsSkDataLongLived) {}

}  // namespace blink