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

Side by Side Diff: webrtc/modules/audio_coding/test/delay_test.cc

Issue 1481493004: audio_coding: remove "main" directory (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 5 years 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) 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
11 #include <assert.h> 11 #include <assert.h>
12 #include <math.h> 12 #include <math.h>
13 13
14 #include <iostream> 14 #include <iostream>
15 15
16 #include "gflags/gflags.h" 16 #include "gflags/gflags.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 #include "webrtc/base/scoped_ptr.h" 18 #include "webrtc/base/scoped_ptr.h"
19 #include "webrtc/common.h" 19 #include "webrtc/common.h"
20 #include "webrtc/common_types.h" 20 #include "webrtc/common_types.h"
21 #include "webrtc/engine_configurations.h" 21 #include "webrtc/engine_configurations.h"
22 #include "webrtc/modules/audio_coding/main/include/audio_coding_module.h" 22 #include "webrtc/modules/audio_coding/include/audio_coding_module.h"
23 #include "webrtc/modules/audio_coding/main/include/audio_coding_module_typedefs. h" 23 #include "webrtc/modules/audio_coding/include/audio_coding_module_typedefs.h"
24 #include "webrtc/modules/audio_coding/main/acm2/acm_common_defs.h" 24 #include "webrtc/modules/audio_coding/acm2/acm_common_defs.h"
25 #include "webrtc/modules/audio_coding/main/test/Channel.h" 25 #include "webrtc/modules/audio_coding/test/Channel.h"
26 #include "webrtc/modules/audio_coding/main/test/PCMFile.h" 26 #include "webrtc/modules/audio_coding/test/PCMFile.h"
27 #include "webrtc/modules/audio_coding/main/test/utility.h" 27 #include "webrtc/modules/audio_coding/test/utility.h"
28 #include "webrtc/system_wrappers/include/event_wrapper.h" 28 #include "webrtc/system_wrappers/include/event_wrapper.h"
29 #include "webrtc/test/testsupport/fileutils.h" 29 #include "webrtc/test/testsupport/fileutils.h"
30 30
31 DEFINE_string(codec, "isac", "Codec Name"); 31 DEFINE_string(codec, "isac", "Codec Name");
32 DEFINE_int32(sample_rate_hz, 16000, "Sampling rate in Hertz."); 32 DEFINE_int32(sample_rate_hz, 16000, "Sampling rate in Hertz.");
33 DEFINE_int32(num_channels, 1, "Number of Channels."); 33 DEFINE_int32(num_channels, 1, "Number of Channels.");
34 DEFINE_string(input_file, "", "Input file, PCM16 32 kHz, optional."); 34 DEFINE_string(input_file, "", "Input file, PCM16 32 kHz, optional.");
35 DEFINE_int32(delay, 0, "Delay in millisecond."); 35 DEFINE_int32(delay, 0, "Delay in millisecond.");
36 DEFINE_bool(dtx, false, "Enable DTX at the sender side."); 36 DEFINE_bool(dtx, false, "Enable DTX at the sender side.");
37 DEFINE_bool(packet_loss, false, "Apply packet loss, c.f. Channel{.cc, .h}."); 37 DEFINE_bool(packet_loss, false, "Apply packet loss, c.f. Channel{.cc, .h}.");
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 test_setting.codec.num_channels = FLAGS_num_channels; 256 test_setting.codec.num_channels = FLAGS_num_channels;
257 test_setting.acm.dtx = FLAGS_dtx; 257 test_setting.acm.dtx = FLAGS_dtx;
258 test_setting.acm.fec = FLAGS_fec; 258 test_setting.acm.fec = FLAGS_fec;
259 test_setting.packet_loss = FLAGS_packet_loss; 259 test_setting.packet_loss = FLAGS_packet_loss;
260 260
261 webrtc::DelayTest delay_test; 261 webrtc::DelayTest delay_test;
262 delay_test.Initialize(); 262 delay_test.Initialize();
263 delay_test.Perform(&test_setting, 1, 240, "delay_test"); 263 delay_test.Perform(&test_setting, 1, 240, "delay_test");
264 return 0; 264 return 0;
265 } 265 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/test/TwoWayCommunication.cc ('k') | webrtc/modules/audio_coding/test/iSACTest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698