Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: webrtc/modules/rtp_rtcp/test/testAPI/test_api_audio.cc

Issue 2362673002: Revert of Remove unnecessary interface TelephoneEventHandler (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h ('k') | webrtc/voice_engine/channel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
165 EXPECT_EQ(0, module1->SetSendingStatus(true)); 168 EXPECT_EQ(0, module1->SetSendingStatus(true));
166 169
167 // Start basic RTP test. 170 // Start basic RTP test.
168 171
169 // Send an empty RTP packet. 172 // Send an empty RTP packet.
170 // Should fail since we have not registered the payload type. 173 // Should fail since we have not registered the payload type.
171 EXPECT_FALSE(module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96, 0, -1, 174 EXPECT_FALSE(module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96, 0, -1,
172 nullptr, 0, nullptr, nullptr, 175 nullptr, 0, nullptr, nullptr,
173 nullptr)); 176 nullptr));
174 177
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 EXPECT_TRUE(module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96, 274 EXPECT_TRUE(module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96,
272 timeStamp, -1, test, 4, nullptr, 275 timeStamp, -1, test, 4, nullptr,
273 nullptr, nullptr)); 276 nullptr, nullptr));
274 fake_clock.AdvanceTimeMilliseconds(20); 277 fake_clock.AdvanceTimeMilliseconds(20);
275 module1->Process(); 278 module1->Process();
276 } 279 }
277 } 280 }
278 281
279 } // namespace 282 } // namespace
280 } // namespace webrtc 283 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h ('k') | webrtc/voice_engine/channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698