OLD | NEW |
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/interface/audio_coding_module.h" | 22 #include "webrtc/modules/audio_coding/main/include/audio_coding_module.h" |
23 #include "webrtc/modules/audio_coding/main/interface/audio_coding_module_typedef
s.h" | 23 #include "webrtc/modules/audio_coding/main/include/audio_coding_module_typedefs.
h" |
24 #include "webrtc/modules/audio_coding/main/acm2/acm_common_defs.h" | 24 #include "webrtc/modules/audio_coding/main/acm2/acm_common_defs.h" |
25 #include "webrtc/modules/audio_coding/main/test/Channel.h" | 25 #include "webrtc/modules/audio_coding/main/test/Channel.h" |
26 #include "webrtc/modules/audio_coding/main/test/PCMFile.h" | 26 #include "webrtc/modules/audio_coding/main/test/PCMFile.h" |
27 #include "webrtc/modules/audio_coding/main/test/utility.h" | 27 #include "webrtc/modules/audio_coding/main/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."); |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 test_setting.codec.num_channels = FLAGS_num_channels; | 261 test_setting.codec.num_channels = FLAGS_num_channels; |
262 test_setting.acm.dtx = FLAGS_dtx; | 262 test_setting.acm.dtx = FLAGS_dtx; |
263 test_setting.acm.fec = FLAGS_fec; | 263 test_setting.acm.fec = FLAGS_fec; |
264 test_setting.packet_loss = FLAGS_packet_loss; | 264 test_setting.packet_loss = FLAGS_packet_loss; |
265 | 265 |
266 webrtc::DelayTest delay_test; | 266 webrtc::DelayTest delay_test; |
267 delay_test.Initialize(); | 267 delay_test.Initialize(); |
268 delay_test.Perform(&test_setting, 1, 240, "delay_test"); | 268 delay_test.Perform(&test_setting, 1, 240, "delay_test"); |
269 return 0; | 269 return 0; |
270 } | 270 } |
OLD | NEW |