| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 // send RTCP packet, triggered by timer | 228 // send RTCP packet, triggered by timer |
| 229 fake_clock.AdvanceTimeMilliseconds(7500); | 229 fake_clock.AdvanceTimeMilliseconds(7500); |
| 230 module1->Process(); | 230 module1->Process(); |
| 231 fake_clock.AdvanceTimeMilliseconds(100); | 231 fake_clock.AdvanceTimeMilliseconds(100); |
| 232 module2->Process(); | 232 module2->Process(); |
| 233 | 233 |
| 234 EXPECT_EQ(0, module1->RemoteRTCPStat(&report_blocks)); | 234 EXPECT_EQ(0, module1->RemoteRTCPStat(&report_blocks)); |
| 235 ASSERT_EQ(1u, report_blocks.size()); | 235 ASSERT_EQ(1u, report_blocks.size()); |
| 236 | 236 |
| 237 // |test_ssrc+1| is the SSRC of module2 that send the report. | 237 // |test_ssrc+1| is the SSRC of module2 that send the report. |
| 238 EXPECT_EQ(test_ssrc+1, report_blocks[0].remoteSSRC); | 238 EXPECT_EQ(test_ssrc + 1, report_blocks[0].sender_ssrc); |
| 239 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC); | 239 EXPECT_EQ(test_ssrc, report_blocks[0].source_ssrc); |
| 240 | 240 |
| 241 EXPECT_EQ(0u, report_blocks[0].cumulativeLost); | 241 EXPECT_EQ(0u, report_blocks[0].packets_lost); |
| 242 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR); | 242 EXPECT_LT(0u, report_blocks[0].delay_since_last_sender_report); |
| 243 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum); | 243 EXPECT_EQ(test_sequence_number, |
| 244 EXPECT_EQ(0u, report_blocks[0].fractionLost); | 244 report_blocks[0].extended_highest_sequence_number); |
| 245 EXPECT_EQ(0u, report_blocks[0].fraction_lost); |
| 245 } | 246 } |
| 246 | 247 |
| 247 } // namespace | 248 } // namespace |
| 248 } // namespace webrtc | 249 } // namespace webrtc |
| OLD | NEW |