PC test framework: cleanup deprecated API

Bug: webrtc:10138
Change-Id: I116bb318d3b736f1ec60651eaab53c6e78fb9d07
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/168521
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30529}
This commit is contained in:
Artem Titov 2020-02-12 16:28:14 +01:00 committed by Commit Bot
parent 7252457778
commit 80a82f1527
2 changed files with 3 additions and 20 deletions

View File

@ -356,30 +356,13 @@ class PeerConnectionE2EQualityTestFixture {
// it will be shut downed.
TimeDelta run_duration;
// Deprecated. Use |video_codecs| instead.
// Next two fields are used to specify concrete video codec, that should be
// used in the test. Video code will be negotiated in SDP during offer/
// answer exchange.
// Video codec name. You can find valid names in
// media/base/media_constants.h
std::string video_codec_name = cricket::kVp8CodecName;
// Deprecated. Use |video_codecs| instead.
// Map of parameters, that have to be specified on SDP codec. Each parameter
// is described by key and value. Codec parameters will match the specified
// map if and only if for each key from |video_codec_required_params| there
// will be a parameter with name equal to this key and parameter value will
// be equal to the value from |video_codec_required_params| for this key.
// If empty then only name will be used to match the codec.
std::map<std::string, std::string> video_codec_required_params;
// List of video codecs to use during the test. These codecs will be
// negotiated in SDP during offer/answer exchange. The order of these codecs
// during negotiation will be the same as in |video_codecs|. Codecs have
// to be available in codecs list provided by peer connection to be
// negotiated. If some of specified codecs won't be found, the test will
// crash.
// TODO(titovartem) replace with Vp8 will be used as default after cleanup.
// If list is empty |video_codec_name| and |video_codec_required_params|
// will be used.
// If list is empty Vp8 with no required_params will be used.
std::vector<VideoCodecConfig> video_codecs;
bool use_ulp_fec = false;
bool use_flex_fec = false;

View File

@ -494,8 +494,8 @@ void PeerConnectionE2EQualityTest::SetDefaultValuesForMissingParams(
}
if (run_params->video_codecs.empty()) {
run_params->video_codecs.push_back(VideoCodecConfig(
run_params->video_codec_name, run_params->video_codec_required_params));
run_params->video_codecs.push_back(
VideoCodecConfig(cricket::kVp8CodecName));
}
}