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 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 } | 43 } |
44 | 44 |
45 TEST(AudioCodingModuleTest, DISABLED_ON_ANDROID(TestEncodeDecode)) { | 45 TEST(AudioCodingModuleTest, DISABLED_ON_ANDROID(TestEncodeDecode)) { |
46 Trace::CreateTrace(); | 46 Trace::CreateTrace(); |
47 Trace::SetTraceFile((webrtc::test::OutputPath() + | 47 Trace::SetTraceFile((webrtc::test::OutputPath() + |
48 "acm_encodedecode_trace.txt").c_str()); | 48 "acm_encodedecode_trace.txt").c_str()); |
49 webrtc::EncodeDecodeTest(ACM_TEST_MODE).Perform(); | 49 webrtc::EncodeDecodeTest(ACM_TEST_MODE).Perform(); |
50 Trace::ReturnTrace(); | 50 Trace::ReturnTrace(); |
51 } | 51 } |
52 | 52 |
53 TEST(AudioCodingModuleTest, DISABLED_ON_ANDROID(TestRedFec)) { | 53 #ifdef WEBRTC_CODEC_RED |
| 54 #define IF_RED(x) x |
| 55 #else |
| 56 #define IF_RED(x) DISABLED_##x |
| 57 #endif |
| 58 |
| 59 TEST(AudioCodingModuleTest, DISABLED_ON_ANDROID(IF_RED(TestRedFec))) { |
54 Trace::CreateTrace(); | 60 Trace::CreateTrace(); |
55 Trace::SetTraceFile((webrtc::test::OutputPath() + | 61 Trace::SetTraceFile((webrtc::test::OutputPath() + |
56 "acm_fec_trace.txt").c_str()); | 62 "acm_fec_trace.txt").c_str()); |
57 webrtc::TestRedFec().Perform(); | 63 webrtc::TestRedFec().Perform(); |
58 Trace::ReturnTrace(); | 64 Trace::ReturnTrace(); |
59 } | 65 } |
60 | 66 |
61 TEST(AudioCodingModuleTest, DISABLED_ON_ANDROID(TestIsac)) { | 67 #if defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX) |
| 68 #define IF_ISAC(x) x |
| 69 #else |
| 70 #define IF_ISAC(x) DISABLED_##x |
| 71 #endif |
| 72 |
| 73 TEST(AudioCodingModuleTest, DISABLED_ON_ANDROID(IF_ISAC(TestIsac))) { |
62 Trace::CreateTrace(); | 74 Trace::CreateTrace(); |
63 Trace::SetTraceFile((webrtc::test::OutputPath() + | 75 Trace::SetTraceFile((webrtc::test::OutputPath() + |
64 "acm_isac_trace.txt").c_str()); | 76 "acm_isac_trace.txt").c_str()); |
65 webrtc::ISACTest(ACM_TEST_MODE).Perform(); | 77 webrtc::ISACTest(ACM_TEST_MODE).Perform(); |
66 Trace::ReturnTrace(); | 78 Trace::ReturnTrace(); |
67 } | 79 } |
68 | 80 |
69 TEST(AudioCodingModuleTest, DISABLED_ON_ANDROID(TwoWayCommunication)) { | 81 #if (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX)) && \ |
| 82 defined(WEBRTC_CODEC_ILBC) && defined(WEBRTC_CODEC_G722) |
| 83 #define IF_ALL_CODECS(x) x |
| 84 #else |
| 85 #define IF_ALL_CODECS(x) DISABLED_##x |
| 86 #endif |
| 87 |
| 88 TEST(AudioCodingModuleTest, |
| 89 DISABLED_ON_ANDROID(IF_ALL_CODECS(TwoWayCommunication))) { |
70 Trace::CreateTrace(); | 90 Trace::CreateTrace(); |
71 Trace::SetTraceFile((webrtc::test::OutputPath() + | 91 Trace::SetTraceFile((webrtc::test::OutputPath() + |
72 "acm_twowaycom_trace.txt").c_str()); | 92 "acm_twowaycom_trace.txt").c_str()); |
73 webrtc::TwoWayCommunication(ACM_TEST_MODE).Perform(); | 93 webrtc::TwoWayCommunication(ACM_TEST_MODE).Perform(); |
74 Trace::ReturnTrace(); | 94 Trace::ReturnTrace(); |
75 } | 95 } |
76 | 96 |
77 TEST(AudioCodingModuleTest, DISABLED_ON_ANDROID(TestStereo)) { | 97 TEST(AudioCodingModuleTest, DISABLED_ON_ANDROID(TestStereo)) { |
78 Trace::CreateTrace(); | 98 Trace::CreateTrace(); |
79 Trace::SetTraceFile((webrtc::test::OutputPath() + | 99 Trace::SetTraceFile((webrtc::test::OutputPath() + |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // for offline testing. User interaction is needed. | 162 // for offline testing. User interaction is needed. |
143 #ifdef ACM_TEST_FULL_API | 163 #ifdef ACM_TEST_FULL_API |
144 TEST(AudioCodingModuleTest, TestAPI) { | 164 TEST(AudioCodingModuleTest, TestAPI) { |
145 Trace::CreateTrace(); | 165 Trace::CreateTrace(); |
146 Trace::SetTraceFile((webrtc::test::OutputPath() + | 166 Trace::SetTraceFile((webrtc::test::OutputPath() + |
147 "acm_apitest_trace.txt").c_str()); | 167 "acm_apitest_trace.txt").c_str()); |
148 webrtc::APITest().Perform(); | 168 webrtc::APITest().Perform(); |
149 Trace::ReturnTrace(); | 169 Trace::ReturnTrace(); |
150 } | 170 } |
151 #endif | 171 #endif |
OLD | NEW |