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

Side by Side Diff: modules/audio_coding/test/TestVADDTX.cc

Issue 3019543002: Remove various IDs (Closed)
Patch Set: rebase+build error Created 3 years, 2 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 void ActivityMonitor::ResetStatistics() { 56 void ActivityMonitor::ResetStatistics() {
57 memset(counter_, 0, sizeof(counter_)); 57 memset(counter_, 0, sizeof(counter_));
58 } 58 }
59 59
60 void ActivityMonitor::GetStatistics(uint32_t* counter) { 60 void ActivityMonitor::GetStatistics(uint32_t* counter) {
61 memcpy(counter, counter_, sizeof(counter_)); 61 memcpy(counter, counter_, sizeof(counter_));
62 } 62 }
63 63
64 TestVadDtx::TestVadDtx() 64 TestVadDtx::TestVadDtx()
65 : acm_send_(AudioCodingModule::Create(0)), 65 : acm_send_(AudioCodingModule::Create()),
66 acm_receive_(AudioCodingModule::Create(1)), 66 acm_receive_(AudioCodingModule::Create()),
67 channel_(new Channel), 67 channel_(new Channel),
68 monitor_(new ActivityMonitor) { 68 monitor_(new ActivityMonitor) {
69 EXPECT_EQ(0, acm_send_->RegisterTransportCallback(channel_.get())); 69 EXPECT_EQ(0, acm_send_->RegisterTransportCallback(channel_.get()));
70 channel_->RegisterReceiverACM(acm_receive_.get()); 70 channel_->RegisterReceiverACM(acm_receive_.get());
71 EXPECT_EQ(0, acm_send_->RegisterVADCallback(monitor_.get())); 71 EXPECT_EQ(0, acm_send_->RegisterVADCallback(monitor_.get()));
72 } 72 }
73 73
74 void TestVadDtx::RegisterCodec(CodecInst codec_param) { 74 void TestVadDtx::RegisterCodec(CodecInst codec_param) {
75 // Set the codec for sending and receiving. 75 // Set the codec for sending and receiving.
76 EXPECT_EQ(0, acm_send_->RegisterSendCodec(codec_param)); 76 EXPECT_EQ(0, acm_send_->RegisterSendCodec(codec_param));
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 EXPECT_EQ(0, acm_send_->EnableOpusDtx()); 271 EXPECT_EQ(0, acm_send_->EnableOpusDtx());
272 272
273 expects[kEmptyFrame] = 1; 273 expects[kEmptyFrame] = 1;
274 Run(webrtc::test::ResourcePath("audio_coding/teststereo32kHz", "pcm"), 274 Run(webrtc::test::ResourcePath("audio_coding/teststereo32kHz", "pcm"),
275 32000, 2, out_filename, true, expects); 275 32000, 2, out_filename, true, expects);
276 #endif 276 #endif
277 } 277 }
278 278
279 } // namespace webrtc 279 } // namespace webrtc
OLDNEW
« no previous file with comments | « modules/audio_coding/test/TestStereo.cc ('k') | modules/audio_coding/test/TwoWayCommunication.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698