| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 EXPECT_EQ(kNumPlc, stats.decoded_plc); | 264 EXPECT_EQ(kNumPlc, stats.decoded_plc); |
| 265 EXPECT_EQ(kNumPlcCng, stats.decoded_plc_cng); | 265 EXPECT_EQ(kNumPlcCng, stats.decoded_plc_cng); |
| 266 } | 266 } |
| 267 | 267 |
| 268 TEST_F(AudioCodingModuleTest, VerifyOutputFrame) { | 268 TEST_F(AudioCodingModuleTest, VerifyOutputFrame) { |
| 269 CreateAcm(); | 269 CreateAcm(); |
| 270 AudioFrame audio_frame; | 270 AudioFrame audio_frame; |
| 271 const int kSampleRateHz = 32000; | 271 const int kSampleRateHz = 32000; |
| 272 EXPECT_TRUE(acm_->Get10MsAudio(&audio_frame)); | 272 EXPECT_TRUE(acm_->Get10MsAudio(&audio_frame)); |
| 273 EXPECT_EQ(0u, audio_frame.timestamp_); | 273 EXPECT_EQ(0u, audio_frame.timestamp_); |
| 274 EXPECT_GT(audio_frame.num_channels_, 0); | 274 EXPECT_GT(audio_frame.num_channels_, 0u); |
| 275 EXPECT_EQ(static_cast<size_t>(kSampleRateHz / 100), | 275 EXPECT_EQ(static_cast<size_t>(kSampleRateHz / 100), |
| 276 audio_frame.samples_per_channel_); | 276 audio_frame.samples_per_channel_); |
| 277 EXPECT_EQ(kSampleRateHz, audio_frame.sample_rate_hz_); | 277 EXPECT_EQ(kSampleRateHz, audio_frame.sample_rate_hz_); |
| 278 } | 278 } |
| 279 | 279 |
| 280 // A multi-threaded test for ACM. This base class is using the PCM16b 16 kHz | 280 // A multi-threaded test for ACM. This base class is using the PCM16b 16 kHz |
| 281 // codec, while the derive class AcmIsacMtTest is using iSAC. | 281 // codec, while the derive class AcmIsacMtTest is using iSAC. |
| 282 class AudioCodingModuleMtTest : public AudioCodingModuleTest { | 282 class AudioCodingModuleMtTest : public AudioCodingModuleTest { |
| 283 protected: | 283 protected: |
| 284 static const int kNumPackets = 500; | 284 static const int kNumPackets = 500; |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 "d781cce1ab986b618d0da87226cdde30", | 964 "d781cce1ab986b618d0da87226cdde30", |
| 965 "1a1fe04dd12e755949987c8d729fb3e0", | 965 "1a1fe04dd12e755949987c8d729fb3e0", |
| 966 "d781cce1ab986b618d0da87226cdde30"), | 966 "d781cce1ab986b618d0da87226cdde30"), |
| 967 50, | 967 50, |
| 968 test::AcmReceiveTest::kStereoOutput); | 968 test::AcmReceiveTest::kStereoOutput); |
| 969 } | 969 } |
| 970 | 970 |
| 971 #endif | 971 #endif |
| 972 | 972 |
| 973 } // namespace webrtc | 973 } // namespace webrtc |
| OLD | NEW |