mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
kwiberg | 27f982b | 2016-03-01 11:52:33 -0800 | [diff] [blame] | 11 | #include <memory> |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 12 | #include <string> |
kwiberg | 27f982b | 2016-03-01 11:52:33 -0800 | [diff] [blame] | 13 | |
Stefan Holmer | a2f1533 | 2018-07-11 17:11:31 +0200 | [diff] [blame] | 14 | #include "call/payload_router.h" |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 15 | #include "modules/rtp_rtcp/include/rtp_rtcp.h" |
| 16 | #include "modules/rtp_rtcp/mocks/mock_rtp_rtcp.h" |
| 17 | #include "modules/video_coding/include/video_codec_interface.h" |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 18 | #include "test/field_trial.h" |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 19 | #include "test/gmock.h" |
| 20 | #include "test/gtest.h" |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 21 | |
| 22 | using ::testing::_; |
| 23 | using ::testing::AnyNumber; |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 24 | using ::testing::Invoke; |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 25 | using ::testing::NiceMock; |
| 26 | using ::testing::Return; |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 27 | using ::testing::Unused; |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 28 | |
| 29 | namespace webrtc { |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 30 | namespace { |
| 31 | const int8_t kPayloadType = 96; |
| 32 | const uint32_t kSsrc1 = 12345; |
| 33 | const uint32_t kSsrc2 = 23456; |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 34 | const int16_t kInitialPictureId1 = 222; |
| 35 | const int16_t kInitialPictureId2 = 44; |
Niels Möller | bb894ff | 2018-03-15 12:28:53 +0100 | [diff] [blame] | 36 | const int16_t kInitialTl0PicIdx1 = 99; |
| 37 | const int16_t kInitialTl0PicIdx2 = 199; |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 38 | } // namespace |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 39 | |
Per | 83d0910 | 2016-04-15 14:59:13 +0200 | [diff] [blame] | 40 | TEST(PayloadRouterTest, SendOnOneModule) { |
perkj | bc75d97 | 2016-05-02 06:31:25 -0700 | [diff] [blame] | 41 | NiceMock<MockRtpRtcp> rtp; |
Peter Boström | 404686a | 2016-02-11 23:37:26 +0100 | [diff] [blame] | 42 | std::vector<RtpRtcp*> modules(1, &rtp); |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 43 | |
kjellander | 02b3d27 | 2016-04-20 05:05:54 -0700 | [diff] [blame] | 44 | uint8_t payload = 'a'; |
kjellander | 02b3d27 | 2016-04-20 05:05:54 -0700 | [diff] [blame] | 45 | EncodedImage encoded_image; |
| 46 | encoded_image._timeStamp = 1; |
| 47 | encoded_image.capture_time_ms_ = 2; |
| 48 | encoded_image._frameType = kVideoFrameKey; |
| 49 | encoded_image._buffer = &payload; |
| 50 | encoded_image._length = 1; |
| 51 | |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 52 | PayloadRouter payload_router(modules, {kSsrc1}, kPayloadType, {}); |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 53 | |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 54 | EXPECT_CALL(rtp, SendOutgoingData(encoded_image._frameType, kPayloadType, |
kjellander | 02b3d27 | 2016-04-20 05:05:54 -0700 | [diff] [blame] | 55 | encoded_image._timeStamp, |
| 56 | encoded_image.capture_time_ms_, &payload, |
Sergey Ulanov | 525df3f | 2016-08-02 17:46:41 -0700 | [diff] [blame] | 57 | encoded_image._length, nullptr, _, _)) |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 58 | .Times(0); |
sergeyu | 2cb155a | 2016-11-04 11:39:29 -0700 | [diff] [blame] | 59 | EXPECT_NE( |
| 60 | EncodedImageCallback::Result::OK, |
| 61 | payload_router.OnEncodedImage(encoded_image, nullptr, nullptr).error); |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 62 | |
sprang | 1a646ee | 2016-12-01 06:34:11 -0800 | [diff] [blame] | 63 | payload_router.SetActive(true); |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 64 | EXPECT_CALL(rtp, SendOutgoingData(encoded_image._frameType, kPayloadType, |
kjellander | 02b3d27 | 2016-04-20 05:05:54 -0700 | [diff] [blame] | 65 | encoded_image._timeStamp, |
| 66 | encoded_image.capture_time_ms_, &payload, |
Sergey Ulanov | 525df3f | 2016-08-02 17:46:41 -0700 | [diff] [blame] | 67 | encoded_image._length, nullptr, _, _)) |
sergeyu | 7b9feee | 2016-11-17 16:16:14 -0800 | [diff] [blame] | 68 | .Times(1) |
| 69 | .WillOnce(Return(true)); |
Seth Hampson | cc7125f | 2018-02-02 08:46:16 -0800 | [diff] [blame] | 70 | EXPECT_CALL(rtp, Sending()).WillOnce(Return(true)); |
sergeyu | 2cb155a | 2016-11-04 11:39:29 -0700 | [diff] [blame] | 71 | EXPECT_EQ( |
| 72 | EncodedImageCallback::Result::OK, |
| 73 | payload_router.OnEncodedImage(encoded_image, nullptr, nullptr).error); |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 74 | |
sprang | 1a646ee | 2016-12-01 06:34:11 -0800 | [diff] [blame] | 75 | payload_router.SetActive(false); |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 76 | EXPECT_CALL(rtp, SendOutgoingData(encoded_image._frameType, kPayloadType, |
kjellander | 02b3d27 | 2016-04-20 05:05:54 -0700 | [diff] [blame] | 77 | encoded_image._timeStamp, |
| 78 | encoded_image.capture_time_ms_, &payload, |
Sergey Ulanov | 525df3f | 2016-08-02 17:46:41 -0700 | [diff] [blame] | 79 | encoded_image._length, nullptr, _, _)) |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 80 | .Times(0); |
sergeyu | 2cb155a | 2016-11-04 11:39:29 -0700 | [diff] [blame] | 81 | EXPECT_NE( |
| 82 | EncodedImageCallback::Result::OK, |
| 83 | payload_router.OnEncodedImage(encoded_image, nullptr, nullptr).error); |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 84 | |
sprang | 1a646ee | 2016-12-01 06:34:11 -0800 | [diff] [blame] | 85 | payload_router.SetActive(true); |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 86 | EXPECT_CALL(rtp, SendOutgoingData(encoded_image._frameType, kPayloadType, |
kjellander | 02b3d27 | 2016-04-20 05:05:54 -0700 | [diff] [blame] | 87 | encoded_image._timeStamp, |
| 88 | encoded_image.capture_time_ms_, &payload, |
Sergey Ulanov | 525df3f | 2016-08-02 17:46:41 -0700 | [diff] [blame] | 89 | encoded_image._length, nullptr, _, _)) |
sergeyu | 7b9feee | 2016-11-17 16:16:14 -0800 | [diff] [blame] | 90 | .Times(1) |
| 91 | .WillOnce(Return(true)); |
Seth Hampson | cc7125f | 2018-02-02 08:46:16 -0800 | [diff] [blame] | 92 | EXPECT_CALL(rtp, Sending()).WillOnce(Return(true)); |
sergeyu | 2cb155a | 2016-11-04 11:39:29 -0700 | [diff] [blame] | 93 | EXPECT_EQ( |
| 94 | EncodedImageCallback::Result::OK, |
| 95 | payload_router.OnEncodedImage(encoded_image, nullptr, nullptr).error); |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 96 | } |
| 97 | |
Seth Hampson | cc7125f | 2018-02-02 08:46:16 -0800 | [diff] [blame] | 98 | TEST(PayloadRouterTest, SendSimulcastSetActive) { |
perkj | bc75d97 | 2016-05-02 06:31:25 -0700 | [diff] [blame] | 99 | NiceMock<MockRtpRtcp> rtp_1; |
| 100 | NiceMock<MockRtpRtcp> rtp_2; |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 101 | std::vector<RtpRtcp*> modules = {&rtp_1, &rtp_2}; |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 102 | |
kjellander | 02b3d27 | 2016-04-20 05:05:54 -0700 | [diff] [blame] | 103 | uint8_t payload = 'a'; |
| 104 | EncodedImage encoded_image; |
| 105 | encoded_image._timeStamp = 1; |
| 106 | encoded_image.capture_time_ms_ = 2; |
| 107 | encoded_image._frameType = kVideoFrameKey; |
| 108 | encoded_image._buffer = &payload; |
| 109 | encoded_image._length = 1; |
| 110 | |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 111 | PayloadRouter payload_router(modules, {kSsrc1, kSsrc2}, kPayloadType, {}); |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 112 | |
kjellander | 02b3d27 | 2016-04-20 05:05:54 -0700 | [diff] [blame] | 113 | CodecSpecificInfo codec_info_1; |
| 114 | memset(&codec_info_1, 0, sizeof(CodecSpecificInfo)); |
| 115 | codec_info_1.codecType = kVideoCodecVP8; |
| 116 | codec_info_1.codecSpecific.VP8.simulcastIdx = 0; |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 117 | |
sprang | 1a646ee | 2016-12-01 06:34:11 -0800 | [diff] [blame] | 118 | payload_router.SetActive(true); |
Seth Hampson | cc7125f | 2018-02-02 08:46:16 -0800 | [diff] [blame] | 119 | EXPECT_CALL(rtp_1, Sending()).WillOnce(Return(true)); |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 120 | EXPECT_CALL(rtp_1, SendOutgoingData(encoded_image._frameType, kPayloadType, |
kjellander | 02b3d27 | 2016-04-20 05:05:54 -0700 | [diff] [blame] | 121 | encoded_image._timeStamp, |
| 122 | encoded_image.capture_time_ms_, &payload, |
Sergey Ulanov | 525df3f | 2016-08-02 17:46:41 -0700 | [diff] [blame] | 123 | encoded_image._length, nullptr, _, _)) |
sergeyu | 7b9feee | 2016-11-17 16:16:14 -0800 | [diff] [blame] | 124 | .Times(1) |
| 125 | .WillOnce(Return(true)); |
Sergey Ulanov | 525df3f | 2016-08-02 17:46:41 -0700 | [diff] [blame] | 126 | EXPECT_CALL(rtp_2, SendOutgoingData(_, _, _, _, _, _, _, _, _)).Times(0); |
sergeyu | 2cb155a | 2016-11-04 11:39:29 -0700 | [diff] [blame] | 127 | EXPECT_EQ(EncodedImageCallback::Result::OK, |
| 128 | payload_router.OnEncodedImage(encoded_image, &codec_info_1, nullptr) |
| 129 | .error); |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 130 | |
kjellander | 02b3d27 | 2016-04-20 05:05:54 -0700 | [diff] [blame] | 131 | CodecSpecificInfo codec_info_2; |
| 132 | memset(&codec_info_2, 0, sizeof(CodecSpecificInfo)); |
| 133 | codec_info_2.codecType = kVideoCodecVP8; |
| 134 | codec_info_2.codecSpecific.VP8.simulcastIdx = 1; |
| 135 | |
Seth Hampson | cc7125f | 2018-02-02 08:46:16 -0800 | [diff] [blame] | 136 | EXPECT_CALL(rtp_2, Sending()).WillOnce(Return(true)); |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 137 | EXPECT_CALL(rtp_2, SendOutgoingData(encoded_image._frameType, kPayloadType, |
kjellander | 02b3d27 | 2016-04-20 05:05:54 -0700 | [diff] [blame] | 138 | encoded_image._timeStamp, |
| 139 | encoded_image.capture_time_ms_, &payload, |
Sergey Ulanov | 525df3f | 2016-08-02 17:46:41 -0700 | [diff] [blame] | 140 | encoded_image._length, nullptr, _, _)) |
sergeyu | 7b9feee | 2016-11-17 16:16:14 -0800 | [diff] [blame] | 141 | .Times(1) |
| 142 | .WillOnce(Return(true)); |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 143 | EXPECT_CALL(rtp_1, SendOutgoingData(_, _, _, _, _, _, _, _, _)).Times(0); |
sergeyu | 2cb155a | 2016-11-04 11:39:29 -0700 | [diff] [blame] | 144 | EXPECT_EQ(EncodedImageCallback::Result::OK, |
| 145 | payload_router.OnEncodedImage(encoded_image, &codec_info_2, nullptr) |
| 146 | .error); |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 147 | |
mflodman@webrtc.org | 50e2816 | 2015-02-23 07:45:11 +0000 | [diff] [blame] | 148 | // Inactive. |
sprang | 1a646ee | 2016-12-01 06:34:11 -0800 | [diff] [blame] | 149 | payload_router.SetActive(false); |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 150 | EXPECT_CALL(rtp_1, SendOutgoingData(_, _, _, _, _, _, _, _, _)).Times(0); |
| 151 | EXPECT_CALL(rtp_2, SendOutgoingData(_, _, _, _, _, _, _, _, _)).Times(0); |
sergeyu | 2cb155a | 2016-11-04 11:39:29 -0700 | [diff] [blame] | 152 | EXPECT_NE(EncodedImageCallback::Result::OK, |
| 153 | payload_router.OnEncodedImage(encoded_image, &codec_info_1, nullptr) |
| 154 | .error); |
| 155 | EXPECT_NE(EncodedImageCallback::Result::OK, |
| 156 | payload_router.OnEncodedImage(encoded_image, &codec_info_2, nullptr) |
| 157 | .error); |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 158 | } |
| 159 | |
Seth Hampson | cc7125f | 2018-02-02 08:46:16 -0800 | [diff] [blame] | 160 | // Tests how setting individual rtp modules to active affects the overall |
| 161 | // behavior of the payload router. First sets one module to active and checks |
| 162 | // that outgoing data can be sent on this module, and checks that no data can be |
| 163 | // sent if both modules are inactive. |
| 164 | TEST(PayloadRouterTest, SendSimulcastSetActiveModules) { |
| 165 | NiceMock<MockRtpRtcp> rtp_1; |
| 166 | NiceMock<MockRtpRtcp> rtp_2; |
| 167 | std::vector<RtpRtcp*> modules = {&rtp_1, &rtp_2}; |
| 168 | |
| 169 | uint8_t payload = 'a'; |
| 170 | EncodedImage encoded_image; |
| 171 | encoded_image._timeStamp = 1; |
| 172 | encoded_image.capture_time_ms_ = 2; |
| 173 | encoded_image._frameType = kVideoFrameKey; |
| 174 | encoded_image._buffer = &payload; |
| 175 | encoded_image._length = 1; |
| 176 | PayloadRouter payload_router(modules, {kSsrc1, kSsrc2}, kPayloadType, {}); |
| 177 | CodecSpecificInfo codec_info_1; |
| 178 | memset(&codec_info_1, 0, sizeof(CodecSpecificInfo)); |
| 179 | codec_info_1.codecType = kVideoCodecVP8; |
| 180 | codec_info_1.codecSpecific.VP8.simulcastIdx = 0; |
| 181 | CodecSpecificInfo codec_info_2; |
| 182 | memset(&codec_info_2, 0, sizeof(CodecSpecificInfo)); |
| 183 | codec_info_2.codecType = kVideoCodecVP8; |
| 184 | codec_info_2.codecSpecific.VP8.simulcastIdx = 1; |
| 185 | |
| 186 | // Only setting one stream to active will still set the payload router to |
| 187 | // active and allow sending data on the active stream. |
| 188 | std::vector<bool> active_modules({true, false}); |
| 189 | payload_router.SetActiveModules(active_modules); |
| 190 | |
| 191 | EXPECT_CALL(rtp_1, Sending()).WillOnce(Return(true)); |
| 192 | EXPECT_CALL(rtp_1, SendOutgoingData(encoded_image._frameType, kPayloadType, |
| 193 | encoded_image._timeStamp, |
| 194 | encoded_image.capture_time_ms_, &payload, |
| 195 | encoded_image._length, nullptr, _, _)) |
| 196 | .Times(1) |
| 197 | .WillOnce(Return(true)); |
| 198 | EXPECT_EQ(EncodedImageCallback::Result::OK, |
| 199 | payload_router.OnEncodedImage(encoded_image, &codec_info_1, nullptr) |
| 200 | .error); |
| 201 | |
| 202 | // Setting both streams to inactive will turn the payload router to inactive. |
| 203 | active_modules = {false, false}; |
| 204 | payload_router.SetActiveModules(active_modules); |
| 205 | // An incoming encoded image will not ask the module to send outgoing data |
| 206 | // because the payload router is inactive. |
| 207 | EXPECT_CALL(rtp_1, SendOutgoingData(_, _, _, _, _, _, _, _, _)).Times(0); |
| 208 | EXPECT_CALL(rtp_1, Sending()).Times(0); |
| 209 | EXPECT_CALL(rtp_2, SendOutgoingData(_, _, _, _, _, _, _, _, _)).Times(0); |
| 210 | EXPECT_CALL(rtp_2, Sending()).Times(0); |
| 211 | EXPECT_NE(EncodedImageCallback::Result::OK, |
| 212 | payload_router.OnEncodedImage(encoded_image, &codec_info_1, nullptr) |
| 213 | .error); |
| 214 | EXPECT_NE(EncodedImageCallback::Result::OK, |
| 215 | payload_router.OnEncodedImage(encoded_image, &codec_info_2, nullptr) |
| 216 | .error); |
| 217 | } |
| 218 | |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 219 | TEST(PayloadRouterTest, CreateWithNoPreviousStates) { |
| 220 | NiceMock<MockRtpRtcp> rtp1; |
| 221 | NiceMock<MockRtpRtcp> rtp2; |
| 222 | std::vector<RtpRtcp*> modules = {&rtp1, &rtp2}; |
| 223 | PayloadRouter payload_router(modules, {kSsrc1, kSsrc2}, kPayloadType, {}); |
| 224 | payload_router.SetActive(true); |
| 225 | |
| 226 | std::map<uint32_t, RtpPayloadState> initial_states = |
| 227 | payload_router.GetRtpPayloadStates(); |
| 228 | EXPECT_EQ(2u, initial_states.size()); |
| 229 | EXPECT_NE(initial_states.find(kSsrc1), initial_states.end()); |
| 230 | EXPECT_NE(initial_states.find(kSsrc2), initial_states.end()); |
| 231 | } |
| 232 | |
| 233 | TEST(PayloadRouterTest, CreateWithPreviousStates) { |
| 234 | RtpPayloadState state1; |
| 235 | state1.picture_id = kInitialPictureId1; |
Niels Möller | bb894ff | 2018-03-15 12:28:53 +0100 | [diff] [blame] | 236 | state1.tl0_pic_idx = kInitialTl0PicIdx1; |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 237 | RtpPayloadState state2; |
| 238 | state2.picture_id = kInitialPictureId2; |
Niels Möller | bb894ff | 2018-03-15 12:28:53 +0100 | [diff] [blame] | 239 | state2.tl0_pic_idx = kInitialTl0PicIdx2; |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 240 | std::map<uint32_t, RtpPayloadState> states = {{kSsrc1, state1}, |
| 241 | {kSsrc2, state2}}; |
| 242 | |
| 243 | NiceMock<MockRtpRtcp> rtp1; |
| 244 | NiceMock<MockRtpRtcp> rtp2; |
| 245 | std::vector<RtpRtcp*> modules = {&rtp1, &rtp2}; |
| 246 | PayloadRouter payload_router(modules, {kSsrc1, kSsrc2}, kPayloadType, states); |
| 247 | payload_router.SetActive(true); |
| 248 | |
| 249 | std::map<uint32_t, RtpPayloadState> initial_states = |
| 250 | payload_router.GetRtpPayloadStates(); |
| 251 | EXPECT_EQ(2u, initial_states.size()); |
| 252 | EXPECT_EQ(kInitialPictureId1, initial_states[kSsrc1].picture_id); |
Niels Möller | bb894ff | 2018-03-15 12:28:53 +0100 | [diff] [blame] | 253 | EXPECT_EQ(kInitialTl0PicIdx1, initial_states[kSsrc1].tl0_pic_idx); |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 254 | EXPECT_EQ(kInitialPictureId2, initial_states[kSsrc2].picture_id); |
Niels Möller | bb894ff | 2018-03-15 12:28:53 +0100 | [diff] [blame] | 255 | EXPECT_EQ(kInitialTl0PicIdx2, initial_states[kSsrc2].tl0_pic_idx); |
Åsa Persson | 4bece9a | 2017-10-06 10:04:04 +0200 | [diff] [blame] | 256 | } |
mflodman@webrtc.org | 02270cd | 2015-02-06 13:10:19 +0000 | [diff] [blame] | 257 | } // namespace webrtc |