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

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

Issue 2357583002: Remove unnecessary interface TelephoneEventHandler (Closed)
Patch Set: rebase 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
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
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
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