| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 uint16_t test_sequence_number; | 155 uint16_t test_sequence_number; |
| 156 uint32_t test_CSRC[webrtc::kRtpCsrcSize]; | 156 uint32_t test_CSRC[webrtc::kRtpCsrcSize]; |
| 157 SimulatedClock fake_clock; | 157 SimulatedClock fake_clock; |
| 158 RateLimiter retransmission_rate_limiter_; | 158 RateLimiter retransmission_rate_limiter_; |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 TEST_F(RtpRtcpAudioTest, Basic) { | 161 TEST_F(RtpRtcpAudioTest, Basic) { |
| 162 module1->SetSSRC(test_ssrc); | 162 module1->SetSSRC(test_ssrc); |
| 163 module1->SetStartTimestamp(test_timestamp); | 163 module1->SetStartTimestamp(test_timestamp); |
| 164 | 164 |
| 165 // Test detection at the end of a DTMF tone. | |
| 166 // EXPECT_EQ(0, module2->SetTelephoneEventForwardToDecoder(true)); | |
| 167 | |
| 168 EXPECT_EQ(0, module1->SetSendingStatus(true)); | 165 EXPECT_EQ(0, module1->SetSendingStatus(true)); |
| 169 | 166 |
| 170 // Start basic RTP test. | 167 // Start basic RTP test. |
| 171 | 168 |
| 172 // Send an empty RTP packet. | 169 // Send an empty RTP packet. |
| 173 // Should fail since we have not registered the payload type. | 170 // Should fail since we have not registered the payload type. |
| 174 EXPECT_FALSE(module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96, 0, -1, | 171 EXPECT_FALSE(module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96, 0, -1, |
| 175 nullptr, 0, nullptr, nullptr, | 172 nullptr, 0, nullptr, nullptr, |
| 176 nullptr)); | 173 nullptr)); |
| 177 | 174 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 EXPECT_TRUE(module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96, | 271 EXPECT_TRUE(module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96, |
| 275 timeStamp, -1, test, 4, nullptr, | 272 timeStamp, -1, test, 4, nullptr, |
| 276 nullptr, nullptr)); | 273 nullptr, nullptr)); |
| 277 fake_clock.AdvanceTimeMilliseconds(20); | 274 fake_clock.AdvanceTimeMilliseconds(20); |
| 278 module1->Process(); | 275 module1->Process(); |
| 279 } | 276 } |
| 280 } | 277 } |
| 281 | 278 |
| 282 } // namespace | 279 } // namespace |
| 283 } // namespace webrtc | 280 } // namespace webrtc |
| OLD | NEW |