| Index: webrtc/video/video_send_stream_tests.cc
|
| diff --git a/webrtc/video/video_send_stream_tests.cc b/webrtc/video/video_send_stream_tests.cc
|
| index 2b5c6e690976d8a4472ec0c00819ba6f9444543d..9a21b8a83ede0ac888f6dca5ccea8c8a544486d7 100644
|
| --- a/webrtc/video/video_send_stream_tests.cc
|
| +++ b/webrtc/video/video_send_stream_tests.cc
|
| @@ -1970,6 +1970,7 @@ class VideoCodecConfigObserver : public test::SendTest,
|
| num_initializations_(0),
|
| stream_(nullptr) {
|
| memset(&encoder_settings_, 0, sizeof(encoder_settings_));
|
| + InitCodecSpecifics();
|
| }
|
|
|
| private:
|
| @@ -1993,6 +1994,8 @@ class VideoCodecConfigObserver : public test::SendTest,
|
| }
|
| };
|
|
|
| + void InitCodecSpecifics();
|
| +
|
| void ModifyVideoConfigs(
|
| VideoSendStream::Config* send_config,
|
| std::vector<VideoReceiveStream::Config>* receive_configs,
|
| @@ -2057,11 +2060,21 @@ class VideoCodecConfigObserver : public test::SendTest,
|
| VideoEncoderConfig encoder_config_;
|
| };
|
|
|
| +template <typename T>
|
| +void VideoCodecConfigObserver<T>::InitCodecSpecifics() {}
|
| +
|
| +template <>
|
| +void VideoCodecConfigObserver<VideoCodecH264>::InitCodecSpecifics() {
|
| + encoder_settings_.packetization_mode = kH264PacketizationMode1;
|
| +}
|
| template <>
|
| void VideoCodecConfigObserver<VideoCodecH264>::VerifyCodecSpecifics(
|
| const VideoCodec& config) const {
|
| EXPECT_EQ(
|
| 0, memcmp(&config.H264(), &encoder_settings_, sizeof(encoder_settings_)));
|
| + // Check that packetization mode has propagated.
|
| + EXPECT_EQ(kH264PacketizationMode1,
|
| + config.codecSpecific.H264.packetization_mode);
|
| }
|
|
|
| template <>
|
|
|