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

Side by Side Diff: modules/audio_coding/test/delay_test.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
« no previous file with comments | « modules/audio_coding/test/TwoWayCommunication.cc ('k') | modules/audio_coding/test/iSACTest.cc » ('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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 CodecSettings codec; 57 CodecSettings codec;
58 AcmSettings acm; 58 AcmSettings acm;
59 bool packet_loss; 59 bool packet_loss;
60 }; 60 };
61 61
62 } // namespace 62 } // namespace
63 63
64 class DelayTest { 64 class DelayTest {
65 public: 65 public:
66 DelayTest() 66 DelayTest()
67 : acm_a_(AudioCodingModule::Create(0)), 67 : acm_a_(AudioCodingModule::Create()),
68 acm_b_(AudioCodingModule::Create(1)), 68 acm_b_(AudioCodingModule::Create()),
69 channel_a2b_(new Channel), 69 channel_a2b_(new Channel),
70 test_cntr_(0), 70 test_cntr_(0),
71 encoding_sample_rate_hz_(8000) {} 71 encoding_sample_rate_hz_(8000) {}
72 72
73 ~DelayTest() { 73 ~DelayTest() {
74 if (channel_a2b_ != NULL) { 74 if (channel_a2b_ != NULL) {
75 delete channel_a2b_; 75 delete channel_a2b_;
76 channel_a2b_ = NULL; 76 channel_a2b_ = NULL;
77 } 77 }
78 in_file_a_.Close(); 78 in_file_a_.Close();
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 test_setting.codec.num_channels = FLAG_num_channels; 268 test_setting.codec.num_channels = FLAG_num_channels;
269 test_setting.acm.dtx = FLAG_dtx; 269 test_setting.acm.dtx = FLAG_dtx;
270 test_setting.acm.fec = FLAG_fec; 270 test_setting.acm.fec = FLAG_fec;
271 test_setting.packet_loss = FLAG_packet_loss; 271 test_setting.packet_loss = FLAG_packet_loss;
272 272
273 webrtc::DelayTest delay_test; 273 webrtc::DelayTest delay_test;
274 delay_test.Initialize(); 274 delay_test.Initialize();
275 delay_test.Perform(&test_setting, 1, 240, "delay_test"); 275 delay_test.Perform(&test_setting, 1, 240, "delay_test");
276 return 0; 276 return 0;
277 } 277 }
OLDNEW
« no previous file with comments | « modules/audio_coding/test/TwoWayCommunication.cc ('k') | modules/audio_coding/test/iSACTest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698