| 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 EXPECT_EQ(kNumPlc, stats.decoded_plc); | 304 EXPECT_EQ(kNumPlc, stats.decoded_plc); |
| 305 EXPECT_EQ(kNumPlcCng, stats.decoded_plc_cng); | 305 EXPECT_EQ(kNumPlcCng, stats.decoded_plc_cng); |
| 306 } | 306 } |
| 307 | 307 |
| 308 TEST_F(AudioCodingModuleTestOldApi, VerifyOutputFrame) { | 308 TEST_F(AudioCodingModuleTestOldApi, VerifyOutputFrame) { |
| 309 AudioFrame audio_frame; | 309 AudioFrame audio_frame; |
| 310 const int kSampleRateHz = 32000; | 310 const int kSampleRateHz = 32000; |
| 311 EXPECT_EQ(0, acm_->PlayoutData10Ms(kSampleRateHz, &audio_frame)); | 311 EXPECT_EQ(0, acm_->PlayoutData10Ms(kSampleRateHz, &audio_frame)); |
| 312 EXPECT_EQ(id_, audio_frame.id_); | 312 EXPECT_EQ(id_, audio_frame.id_); |
| 313 EXPECT_EQ(0u, audio_frame.timestamp_); | 313 EXPECT_EQ(0u, audio_frame.timestamp_); |
| 314 EXPECT_GT(audio_frame.num_channels_, 0); | 314 EXPECT_GT(audio_frame.num_channels_, 0u); |
| 315 EXPECT_EQ(static_cast<size_t>(kSampleRateHz / 100), | 315 EXPECT_EQ(static_cast<size_t>(kSampleRateHz / 100), |
| 316 audio_frame.samples_per_channel_); | 316 audio_frame.samples_per_channel_); |
| 317 EXPECT_EQ(kSampleRateHz, audio_frame.sample_rate_hz_); | 317 EXPECT_EQ(kSampleRateHz, audio_frame.sample_rate_hz_); |
| 318 } | 318 } |
| 319 | 319 |
| 320 TEST_F(AudioCodingModuleTestOldApi, FailOnZeroDesiredFrequency) { | 320 TEST_F(AudioCodingModuleTestOldApi, FailOnZeroDesiredFrequency) { |
| 321 AudioFrame audio_frame; | 321 AudioFrame audio_frame; |
| 322 EXPECT_EQ(-1, acm_->PlayoutData10Ms(0, &audio_frame)); | 322 EXPECT_EQ(-1, acm_->PlayoutData10Ms(0, &audio_frame)); |
| 323 } | 323 } |
| 324 | 324 |
| (...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1685 Run(16000, 8000, 1000); | 1685 Run(16000, 8000, 1000); |
| 1686 } | 1686 } |
| 1687 | 1687 |
| 1688 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) { | 1688 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) { |
| 1689 Run(8000, 16000, 1000); | 1689 Run(8000, 16000, 1000); |
| 1690 } | 1690 } |
| 1691 | 1691 |
| 1692 #endif | 1692 #endif |
| 1693 | 1693 |
| 1694 } // namespace webrtc | 1694 } // namespace webrtc |
| OLD | NEW |