#include "third_party/blink/renderer/platform/peerconnection/webrtc_encoding_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_encoder_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_encoder.h"
#include "third_party/webrtc/api/video_codecs/video_encoder_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 MockVideoEncoderFactory : public webrtc::VideoEncoderFactory { … };
class MediaCapabilitiesEncodingInfoCallback { … };
}
CodecSupport;
class WebrtcEncodingInfoHandlerTests : public ::testing::Test { … };
TEST_F(WebrtcEncodingInfoHandlerTests, BasicAudio) { … }
TEST_F(WebrtcEncodingInfoHandlerTests, UnsupportedAudio) { … }
TEST_F(WebrtcEncodingInfoHandlerTests, BasicVideo) { … }
TEST_F(WebrtcEncodingInfoHandlerTests, BasicVideoPowerEfficient) { … }
TEST_F(WebrtcEncodingInfoHandlerTests, UnsupportedVideo) { … }
TEST_F(WebrtcEncodingInfoHandlerTests, VideoWithScalabilityMode) { … }
TEST_F(WebrtcEncodingInfoHandlerTests, SupportedAudioUnsupportedVideo) { … }
TEST_F(WebrtcEncodingInfoHandlerTests, SupportedVideoUnsupportedAudio) { … }
}