| 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 2663516b6bfe9074e9a69a7c0533a4cd8afad9c1..fb7e85a54582af80791bee7d777d9c5f3b2f0dc6 100644
|
| --- a/webrtc/video/video_send_stream_tests.cc
|
| +++ b/webrtc/video/video_send_stream_tests.cc
|
| @@ -1889,6 +1889,7 @@ class VideoCodecConfigObserver : public test::SendTest,
|
| num_initializations_(0),
|
| stream_(nullptr) {
|
| memset(&encoder_settings_, 0, sizeof(encoder_settings_));
|
| + InitCodecSpecifics();
|
| }
|
|
|
| private:
|
| @@ -1912,6 +1913,8 @@ class VideoCodecConfigObserver : public test::SendTest,
|
| }
|
| };
|
|
|
| + void InitCodecSpecifics();
|
| +
|
| void ModifyVideoConfigs(
|
| VideoSendStream::Config* send_config,
|
| std::vector<VideoReceiveStream::Config>* receive_configs,
|
| @@ -1976,11 +1979,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 <>
|
|
|