chromium/third_party/blink/renderer/platform/peerconnection/webrtc_decoding_info_handler_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.

#include "third_party/blink/renderer/platform/peerconnection/webrtc_decoding_info_handler.h"

#include <memory>
#include <utility>
#include <vector>

#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/web_string.h"
#include "third_party/webrtc/api/audio_codecs/audio_decoder_factory.h"
#include "third_party/webrtc/api/audio_codecs/audio_format.h"
#include "third_party/webrtc/api/video_codecs/sdp_video_format.h"
#include "third_party/webrtc/api/video_codecs/video_decoder.h"
#include "third_party/webrtc/api/video_codecs/video_decoder_factory.h"
#include "ui/gfx/geometry/size.h"

namespace blink {

namespace {
const webrtc::SdpVideoFormat kVideoFormatVp9{};
const webrtc::SdpVideoFormat kVideoFormatFoo{};

const webrtc::SdpAudioFormat kAudioFormatOpus{};
const webrtc::SdpAudioFormat kAudioFormatFoo{};

class MockVideoDecoderFactory : public webrtc::VideoDecoderFactory {};

class MediaCapabilitiesDecodingInfoCallback {};

}  // namespace

CodecSupport;

class WebrtcDecodingInfoHandlerTests : public ::testing::Test {};

TEST_F(WebrtcDecodingInfoHandlerTests, BasicAudio) {}

TEST_F(WebrtcDecodingInfoHandlerTests, UnsupportedAudio) {}

// These tests verify that the video MIME type is correctly parsed into
// SdpVideoFormat and that the return value from
// VideoDecoderFactory::QueryCodecSupport is correctly returned through the
// callback.
TEST_F(WebrtcDecodingInfoHandlerTests, BasicVideo) {}

TEST_F(WebrtcDecodingInfoHandlerTests, BasicVideoPowerEfficient) {}

TEST_F(WebrtcDecodingInfoHandlerTests, UnsupportedVideo) {}

TEST_F(WebrtcDecodingInfoHandlerTests, VideoWithReferenceScaling) {}

TEST_F(WebrtcDecodingInfoHandlerTests, SupportedAudioUnsupportedVideo) {}

TEST_F(WebrtcDecodingInfoHandlerTests, SupportedVideoUnsupportedAudio) {}

}  // namespace blink