chromium/third_party/blink/renderer/modules/webcodecs/image_decoder_external_test.cc

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

#include "third_party/blink/renderer/modules/webcodecs/image_decoder_external.h"

#include "media/media_buildflags.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/native_value_traits_impl.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_tester.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_arraybufferallowshared_arraybufferviewallowshared_readablestream.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_image_decode_options.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_image_decode_result.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_image_decoder_init.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_image_track.h"
#include "third_party/blink/renderer/core/imagebitmap/image_bitmap.h"
#include "third_party/blink/renderer/core/streams/readable_stream.h"
#include "third_party/blink/renderer/core/streams/test_underlying_source.h"
#include "third_party/blink/renderer/core/typed_arrays/dom_array_buffer.h"
#include "third_party/blink/renderer/modules/webcodecs/image_track.h"
#include "third_party/blink/renderer/modules/webcodecs/image_track_list.h"
#include "third_party/blink/renderer/modules/webcodecs/video_frame.h"
#include "third_party/blink/renderer/platform/heap/persistent.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"

namespace blink {

namespace {

class ImageDecoderTest : public testing::Test {};

TEST_F(ImageDecoderTest, IsTypeSupported) {}

TEST_F(ImageDecoderTest, DecodeEmpty) {}

TEST_F(ImageDecoderTest, DecodeNeuteredAtConstruction) {}

TEST_F(ImageDecoderTest, DecodeNeuteredAtDecodeTime) {}

TEST_F(ImageDecoderTest, DecodeUnsupported) {}

TEST_F(ImageDecoderTest, DecoderCreationMixedCaseMimeType) {}

TEST_F(ImageDecoderTest, DecodeGifZeroDuration) {}

TEST_F(ImageDecoderTest, DecodeGif) {}

TEST_F(ImageDecoderTest, DecodeCompleted) {}

TEST_F(ImageDecoderTest, DecodeAborted) {}

TEST_F(ImageDecoderTest, DecoderReset) {}

TEST_F(ImageDecoderTest, DecoderClose) {}

TEST_F(ImageDecoderTest, DecoderContextDestroyed) {}

TEST_F(ImageDecoderTest, DecoderContextDestroyedBeforeCreation) {}

TEST_F(ImageDecoderTest, DecoderReadableStream) {}

TEST_F(ImageDecoderTest, DecoderReadableStreamAvif) {}

TEST_F(ImageDecoderTest, ReadableStreamAvifStillYuvDecoding) {}

TEST_F(ImageDecoderTest, DecodePartialImage) {}

TEST_F(ImageDecoderTest, DecodeClosedDuringReadableStream) {}

TEST_F(ImageDecoderTest, DecodeInvalidFileViaReadableStream) {}

TEST_F(ImageDecoderTest, DecodeYuv) {}

TEST_F(ImageDecoderTest, TransferBuffer) {}

}  // namespace

}  // namespace blink