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 "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "webrtc/base/scoped_ptr.h" | 12 #include "webrtc/base/scoped_ptr.h" |
13 #include "webrtc/common_types.h" | 13 #include "webrtc/common_types.h" |
14 #include "webrtc/modules/audio_coding/codecs/pcm16b/pcm16b.h" | 14 #include "webrtc/modules/audio_coding/codecs/pcm16b/pcm16b.h" |
15 #include "webrtc/modules/audio_coding/include/audio_coding_module.h" | 15 #include "webrtc/modules/audio_coding/include/audio_coding_module.h" |
16 #include "webrtc/modules/audio_coding/test/utility.h" | 16 #include "webrtc/modules/audio_coding/test/utility.h" |
17 #include "webrtc/modules/include/module_common_types.h" | 17 #include "webrtc/modules/include/module_common_types.h" |
18 #include "webrtc/system_wrappers/include/sleep.h" | 18 #include "webrtc/system_wrappers/include/sleep.h" |
19 #include "webrtc/test/testsupport/fileutils.h" | 19 #include "webrtc/test/testsupport/fileutils.h" |
20 #include "webrtc/test/testsupport/gtest_disable.h" | |
21 | 20 |
22 namespace webrtc { | 21 namespace webrtc { |
23 | 22 |
24 class TargetDelayTest : public ::testing::Test { | 23 class TargetDelayTest : public ::testing::Test { |
25 protected: | 24 protected: |
26 TargetDelayTest() : acm_(AudioCodingModule::Create(0)) {} | 25 TargetDelayTest() : acm_(AudioCodingModule::Create(0)) {} |
27 | 26 |
28 ~TargetDelayTest() {} | 27 ~TargetDelayTest() {} |
29 | 28 |
30 void SetUp() { | 29 void SetUp() { |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 191 |
193 int RequiredDelay() { | 192 int RequiredDelay() { |
194 return acm_->LeastRequiredDelayMs(); | 193 return acm_->LeastRequiredDelayMs(); |
195 } | 194 } |
196 | 195 |
197 rtc::scoped_ptr<AudioCodingModule> acm_; | 196 rtc::scoped_ptr<AudioCodingModule> acm_; |
198 WebRtcRTPHeader rtp_info_; | 197 WebRtcRTPHeader rtp_info_; |
199 uint8_t payload_[kPayloadLenBytes]; | 198 uint8_t payload_[kPayloadLenBytes]; |
200 }; | 199 }; |
201 | 200 |
202 TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(OutOfRangeInput)) { | 201 #if defined(WEBRTC_ANDROID) |
| 202 TEST_F(TargetDelayTest, DISABLED_OutOfRangeInput) { |
| 203 #else |
| 204 TEST_F(TargetDelayTest, OutOfRangeInput) { |
| 205 #endif |
203 OutOfRangeInput(); | 206 OutOfRangeInput(); |
204 } | 207 } |
205 | 208 |
206 TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(NoTargetDelayBufferSizeChanges)) { | 209 #if defined(WEBRTC_ANDROID) |
| 210 TEST_F(TargetDelayTest, DISABLED_NoTargetDelayBufferSizeChanges) { |
| 211 #else |
| 212 TEST_F(TargetDelayTest, NoTargetDelayBufferSizeChanges) { |
| 213 #endif |
207 NoTargetDelayBufferSizeChanges(); | 214 NoTargetDelayBufferSizeChanges(); |
208 } | 215 } |
209 | 216 |
210 TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(WithTargetDelayBufferNotChanging)) { | 217 #if defined(WEBRTC_ANDROID) |
| 218 TEST_F(TargetDelayTest, DISABLED_WithTargetDelayBufferNotChanging) { |
| 219 #else |
| 220 TEST_F(TargetDelayTest, WithTargetDelayBufferNotChanging) { |
| 221 #endif |
211 WithTargetDelayBufferNotChanging(); | 222 WithTargetDelayBufferNotChanging(); |
212 } | 223 } |
213 | 224 |
214 TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(RequiredDelayAtCorrectRange)) { | 225 #if defined(WEBRTC_ANDROID) |
| 226 TEST_F(TargetDelayTest, DISABLED_RequiredDelayAtCorrectRange) { |
| 227 #else |
| 228 TEST_F(TargetDelayTest, RequiredDelayAtCorrectRange) { |
| 229 #endif |
215 RequiredDelayAtCorrectRange(); | 230 RequiredDelayAtCorrectRange(); |
216 } | 231 } |
217 | 232 |
218 TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(TargetDelayBufferMinMax)) { | 233 #if defined(WEBRTC_ANDROID) |
| 234 TEST_F(TargetDelayTest, DISABLED_TargetDelayBufferMinMax) { |
| 235 #else |
| 236 TEST_F(TargetDelayTest, TargetDelayBufferMinMax) { |
| 237 #endif |
219 TargetDelayBufferMinMax(); | 238 TargetDelayBufferMinMax(); |
220 } | 239 } |
221 | 240 |
222 } // namespace webrtc | 241 } // namespace webrtc |
223 | 242 |
OLD | NEW |