| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 voice_codec.plname, | 158 voice_codec.plname, |
| 159 voice_codec.pltype, | 159 voice_codec.pltype, |
| 160 voice_codec.plfreq, | 160 voice_codec.plfreq, |
| 161 voice_codec.channels, | 161 voice_codec.channels, |
| 162 (voice_codec.rate < 0) ? 0 : voice_codec.rate)); | 162 (voice_codec.rate < 0) ? 0 : voice_codec.rate)); |
| 163 | 163 |
| 164 // We need to send one RTP packet to get the RTCP packet to be accepted by | 164 // We need to send one RTP packet to get the RTCP packet to be accepted by |
| 165 // the receiving module. | 165 // the receiving module. |
| 166 // send RTP packet with the data "testtest" | 166 // send RTP packet with the data "testtest" |
| 167 const uint8_t test[9] = "testtest"; | 167 const uint8_t test[9] = "testtest"; |
| 168 EXPECT_EQ(true, | 168 EXPECT_EQ(0, module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96, |
| 169 module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96, 0, -1, | 169 0, -1, test, 8)); |
| 170 test, 8, nullptr, nullptr, nullptr)); | |
| 171 } | 170 } |
| 172 | 171 |
| 173 virtual void TearDown() { | 172 virtual void TearDown() { |
| 174 delete module1; | 173 delete module1; |
| 175 delete module2; | 174 delete module2; |
| 176 delete myRTCPFeedback1; | 175 delete myRTCPFeedback1; |
| 177 delete myRTCPFeedback2; | 176 delete myRTCPFeedback2; |
| 178 delete transport1; | 177 delete transport1; |
| 179 delete transport2; | 178 delete transport2; |
| 180 delete receiver; | 179 delete receiver; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC); | 267 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC); |
| 269 | 268 |
| 270 EXPECT_EQ(0u, report_blocks[0].cumulativeLost); | 269 EXPECT_EQ(0u, report_blocks[0].cumulativeLost); |
| 271 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR); | 270 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR); |
| 272 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum); | 271 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum); |
| 273 EXPECT_EQ(0u, report_blocks[0].fractionLost); | 272 EXPECT_EQ(0u, report_blocks[0].fractionLost); |
| 274 } | 273 } |
| 275 | 274 |
| 276 } // namespace | 275 } // namespace |
| 277 } // namespace webrtc | 276 } // namespace webrtc |
| OLD | NEW |