#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 { … };
}
CodecSupport;
class WebrtcDecodingInfoHandlerTests : public ::testing::Test { … };
TEST_F(WebrtcDecodingInfoHandlerTests, BasicAudio) { … }
TEST_F(WebrtcDecodingInfoHandlerTests, UnsupportedAudio) { … }
TEST_F(WebrtcDecodingInfoHandlerTests, BasicVideo) { … }
TEST_F(WebrtcDecodingInfoHandlerTests, BasicVideoPowerEfficient) { … }
TEST_F(WebrtcDecodingInfoHandlerTests, UnsupportedVideo) { … }
TEST_F(WebrtcDecodingInfoHandlerTests, VideoWithReferenceScaling) { … }
TEST_F(WebrtcDecodingInfoHandlerTests, SupportedAudioUnsupportedVideo) { … }
TEST_F(WebrtcDecodingInfoHandlerTests, SupportedVideoUnsupportedAudio) { … }
}