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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 TEST(AudioCodingModuleTest, TwoWayCommunication) { | 89 TEST(AudioCodingModuleTest, TwoWayCommunication) { |
90 #endif | 90 #endif |
91 Trace::CreateTrace(); | 91 Trace::CreateTrace(); |
92 Trace::SetTraceFile((webrtc::test::OutputPath() + | 92 Trace::SetTraceFile((webrtc::test::OutputPath() + |
93 "acm_twowaycom_trace.txt").c_str()); | 93 "acm_twowaycom_trace.txt").c_str()); |
94 webrtc::TwoWayCommunication(ACM_TEST_MODE).Perform(); | 94 webrtc::TwoWayCommunication(ACM_TEST_MODE).Perform(); |
95 Trace::ReturnTrace(); | 95 Trace::ReturnTrace(); |
96 } | 96 } |
97 #endif | 97 #endif |
98 | 98 |
99 #if defined(WEBRTC_ANDROID) | 99 // Disabled on ios as flaky, see https://crbug.com/webrtc/7057 |
| 100 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS) |
100 TEST(AudioCodingModuleTest, DISABLED_TestStereo) { | 101 TEST(AudioCodingModuleTest, DISABLED_TestStereo) { |
101 #else | 102 #else |
102 TEST(AudioCodingModuleTest, TestStereo) { | 103 TEST(AudioCodingModuleTest, TestStereo) { |
103 #endif | 104 #endif |
104 Trace::CreateTrace(); | 105 Trace::CreateTrace(); |
105 Trace::SetTraceFile((webrtc::test::OutputPath() + | 106 Trace::SetTraceFile((webrtc::test::OutputPath() + |
106 "acm_stereo_trace.txt").c_str()); | 107 "acm_stereo_trace.txt").c_str()); |
107 webrtc::TestStereo(ACM_TEST_MODE).Perform(); | 108 webrtc::TestStereo(ACM_TEST_MODE).Perform(); |
108 Trace::ReturnTrace(); | 109 Trace::ReturnTrace(); |
109 } | 110 } |
110 | 111 |
111 #if defined(WEBRTC_ANDROID) | 112 // Disabled on ios as flaky, see https://crbug.com/webrtc/7057 |
| 113 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS) |
112 TEST(AudioCodingModuleTest, DISABLED_TestWebRtcVadDtx) { | 114 TEST(AudioCodingModuleTest, DISABLED_TestWebRtcVadDtx) { |
113 #else | 115 #else |
114 TEST(AudioCodingModuleTest, TestWebRtcVadDtx) { | 116 TEST(AudioCodingModuleTest, TestWebRtcVadDtx) { |
115 #endif | 117 #endif |
116 Trace::CreateTrace(); | 118 Trace::CreateTrace(); |
117 Trace::SetTraceFile((webrtc::test::OutputPath() + | 119 Trace::SetTraceFile((webrtc::test::OutputPath() + |
118 "acm_vaddtx_trace.txt").c_str()); | 120 "acm_vaddtx_trace.txt").c_str()); |
119 webrtc::TestWebRtcVadDtx().Perform(); | 121 webrtc::TestWebRtcVadDtx().Perform(); |
120 Trace::ReturnTrace(); | 122 Trace::ReturnTrace(); |
121 } | 123 } |
122 | 124 |
123 TEST(AudioCodingModuleTest, TestOpusDtx) { | 125 TEST(AudioCodingModuleTest, TestOpusDtx) { |
124 Trace::CreateTrace(); | 126 Trace::CreateTrace(); |
125 Trace::SetTraceFile((webrtc::test::OutputPath() + | 127 Trace::SetTraceFile((webrtc::test::OutputPath() + |
126 "acm_opusdtx_trace.txt").c_str()); | 128 "acm_opusdtx_trace.txt").c_str()); |
127 webrtc::TestOpusDtx().Perform(); | 129 webrtc::TestOpusDtx().Perform(); |
128 Trace::ReturnTrace(); | 130 Trace::ReturnTrace(); |
129 } | 131 } |
130 | 132 |
| 133 // Disabled on ios as flaky, see https://crbug.com/webrtc/7057 |
| 134 #if defined(WEBRTC_IOS) |
| 135 TEST(AudioCodingModuleTest, DISABLED_TestOpus) { |
| 136 #else |
131 TEST(AudioCodingModuleTest, TestOpus) { | 137 TEST(AudioCodingModuleTest, TestOpus) { |
| 138 #endif |
132 Trace::CreateTrace(); | 139 Trace::CreateTrace(); |
133 Trace::SetTraceFile((webrtc::test::OutputPath() + | 140 Trace::SetTraceFile((webrtc::test::OutputPath() + |
134 "acm_opus_trace.txt").c_str()); | 141 "acm_opus_trace.txt").c_str()); |
135 webrtc::OpusTest().Perform(); | 142 webrtc::OpusTest().Perform(); |
136 Trace::ReturnTrace(); | 143 Trace::ReturnTrace(); |
137 } | 144 } |
138 | 145 |
139 TEST(AudioCodingModuleTest, TestPacketLoss) { | 146 TEST(AudioCodingModuleTest, TestPacketLoss) { |
140 Trace::CreateTrace(); | 147 Trace::CreateTrace(); |
141 Trace::SetTraceFile((webrtc::test::OutputPath() + | 148 Trace::SetTraceFile((webrtc::test::OutputPath() + |
(...skipping 11 matching lines...) Expand all Loading... |
153 } | 160 } |
154 | 161 |
155 TEST(AudioCodingModuleTest, TestPacketLossStereo) { | 162 TEST(AudioCodingModuleTest, TestPacketLossStereo) { |
156 Trace::CreateTrace(); | 163 Trace::CreateTrace(); |
157 Trace::SetTraceFile((webrtc::test::OutputPath() + | 164 Trace::SetTraceFile((webrtc::test::OutputPath() + |
158 "acm_packetloss_trace.txt").c_str()); | 165 "acm_packetloss_trace.txt").c_str()); |
159 webrtc::PacketLossTest(2, 10, 10, 1).Perform(); | 166 webrtc::PacketLossTest(2, 10, 10, 1).Perform(); |
160 Trace::ReturnTrace(); | 167 Trace::ReturnTrace(); |
161 } | 168 } |
162 | 169 |
| 170 // Disabled on ios as flake, see https://crbug.com/webrtc/7057 |
| 171 #if defined(WEBRTC_IOS) |
| 172 TEST(AudioCodingModuleTest, DISABLED_TestPacketLossStereoBurst) { |
| 173 #else |
163 TEST(AudioCodingModuleTest, TestPacketLossStereoBurst) { | 174 TEST(AudioCodingModuleTest, TestPacketLossStereoBurst) { |
| 175 #endif |
164 Trace::CreateTrace(); | 176 Trace::CreateTrace(); |
165 Trace::SetTraceFile((webrtc::test::OutputPath() + | 177 Trace::SetTraceFile((webrtc::test::OutputPath() + |
166 "acm_packetloss_burst_trace.txt").c_str()); | 178 "acm_packetloss_burst_trace.txt").c_str()); |
167 webrtc::PacketLossTest(2, 10, 10, 2).Perform(); | 179 webrtc::PacketLossTest(2, 10, 10, 2).Perform(); |
168 Trace::ReturnTrace(); | 180 Trace::ReturnTrace(); |
169 } | 181 } |
170 | 182 |
171 // The full API test is too long to run automatically on bots, but can be used | 183 // The full API test is too long to run automatically on bots, but can be used |
172 // for offline testing. User interaction is needed. | 184 // for offline testing. User interaction is needed. |
173 #ifdef ACM_TEST_FULL_API | 185 #ifdef ACM_TEST_FULL_API |
174 TEST(AudioCodingModuleTest, TestAPI) { | 186 TEST(AudioCodingModuleTest, TestAPI) { |
175 Trace::CreateTrace(); | 187 Trace::CreateTrace(); |
176 Trace::SetTraceFile((webrtc::test::OutputPath() + | 188 Trace::SetTraceFile((webrtc::test::OutputPath() + |
177 "acm_apitest_trace.txt").c_str()); | 189 "acm_apitest_trace.txt").c_str()); |
178 webrtc::APITest().Perform(); | 190 webrtc::APITest().Perform(); |
179 Trace::ReturnTrace(); | 191 Trace::ReturnTrace(); |
180 } | 192 } |
181 #endif | 193 #endif |
OLD | NEW |