OLD | NEW |
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 |
11 #include <stdio.h> | 11 #include <stdio.h> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "webrtc/test/gtest.h" | |
16 #include "webrtc/modules/audio_coding/include/audio_coding_module.h" | 15 #include "webrtc/modules/audio_coding/include/audio_coding_module.h" |
17 #include "webrtc/modules/audio_coding/test/APITest.h" | 16 #include "webrtc/modules/audio_coding/test/APITest.h" |
18 #include "webrtc/modules/audio_coding/test/EncodeDecodeTest.h" | 17 #include "webrtc/modules/audio_coding/test/EncodeDecodeTest.h" |
19 #include "webrtc/modules/audio_coding/test/iSACTest.h" | |
20 #include "webrtc/modules/audio_coding/test/opus_test.h" | |
21 #include "webrtc/modules/audio_coding/test/PacketLossTest.h" | 18 #include "webrtc/modules/audio_coding/test/PacketLossTest.h" |
22 #include "webrtc/modules/audio_coding/test/TestAllCodecs.h" | 19 #include "webrtc/modules/audio_coding/test/TestAllCodecs.h" |
23 #include "webrtc/modules/audio_coding/test/TestRedFec.h" | 20 #include "webrtc/modules/audio_coding/test/TestRedFec.h" |
24 #include "webrtc/modules/audio_coding/test/TestStereo.h" | 21 #include "webrtc/modules/audio_coding/test/TestStereo.h" |
25 #include "webrtc/modules/audio_coding/test/TestVADDTX.h" | 22 #include "webrtc/modules/audio_coding/test/TestVADDTX.h" |
26 #include "webrtc/modules/audio_coding/test/TwoWayCommunication.h" | 23 #include "webrtc/modules/audio_coding/test/TwoWayCommunication.h" |
| 24 #include "webrtc/modules/audio_coding/test/iSACTest.h" |
| 25 #include "webrtc/modules/audio_coding/test/opus_test.h" |
27 #include "webrtc/system_wrappers/include/trace.h" | 26 #include "webrtc/system_wrappers/include/trace.h" |
| 27 #include "webrtc/test/gtest.h" |
28 #include "webrtc/test/testsupport/fileutils.h" | 28 #include "webrtc/test/testsupport/fileutils.h" |
29 | 29 |
30 using webrtc::Trace; | 30 using webrtc::Trace; |
31 | 31 |
32 // This parameter is used to describe how to run the tests. It is normally | 32 // This parameter is used to describe how to run the tests. It is normally |
33 // set to 0, and all tests are run in quite mode. | 33 // set to 0, and all tests are run in quite mode. |
34 #define ACM_TEST_MODE 0 | 34 #define ACM_TEST_MODE 0 |
35 | 35 |
36 TEST(AudioCodingModuleTest, TestAllCodecs) { | 36 TEST(AudioCodingModuleTest, TestAllCodecs) { |
37 Trace::CreateTrace(); | 37 Trace::CreateTrace(); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // for offline testing. User interaction is needed. | 172 // for offline testing. User interaction is needed. |
173 #ifdef ACM_TEST_FULL_API | 173 #ifdef ACM_TEST_FULL_API |
174 TEST(AudioCodingModuleTest, TestAPI) { | 174 TEST(AudioCodingModuleTest, TestAPI) { |
175 Trace::CreateTrace(); | 175 Trace::CreateTrace(); |
176 Trace::SetTraceFile((webrtc::test::OutputPath() + | 176 Trace::SetTraceFile((webrtc::test::OutputPath() + |
177 "acm_apitest_trace.txt").c_str()); | 177 "acm_apitest_trace.txt").c_str()); |
178 webrtc::APITest().Perform(); | 178 webrtc::APITest().Perform(); |
179 Trace::ReturnTrace(); | 179 Trace::ReturnTrace(); |
180 } | 180 } |
181 #endif | 181 #endif |
OLD | NEW |