| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 29 matching lines...) Expand all Loading... |
| 40 RegisterFlagValidator(&FLAGS_frame_size_ms, &ValidateFrameSize); | 40 RegisterFlagValidator(&FLAGS_frame_size_ms, &ValidateFrameSize); |
| 41 | 41 |
| 42 } // namespace | 42 } // namespace |
| 43 | 43 |
| 44 class NetEqPcmuQualityTest : public NetEqQualityTest { | 44 class NetEqPcmuQualityTest : public NetEqQualityTest { |
| 45 protected: | 45 protected: |
| 46 NetEqPcmuQualityTest() | 46 NetEqPcmuQualityTest() |
| 47 : NetEqQualityTest(FLAGS_frame_size_ms, | 47 : NetEqQualityTest(FLAGS_frame_size_ms, |
| 48 kInputSampleRateKhz, | 48 kInputSampleRateKhz, |
| 49 kOutputSampleRateKhz, | 49 kOutputSampleRateKhz, |
| 50 kDecoderPCMu) { | 50 NetEqDecoder::kDecoderPCMu) {} |
| 51 } | |
| 52 | 51 |
| 53 void SetUp() override { | 52 void SetUp() override { |
| 54 ASSERT_EQ(1, channels_) << "PCMu supports only mono audio."; | 53 ASSERT_EQ(1, channels_) << "PCMu supports only mono audio."; |
| 55 AudioEncoderPcmU::Config config; | 54 AudioEncoderPcmU::Config config; |
| 56 config.frame_size_ms = FLAGS_frame_size_ms; | 55 config.frame_size_ms = FLAGS_frame_size_ms; |
| 57 encoder_.reset(new AudioEncoderPcmU(config)); | 56 encoder_.reset(new AudioEncoderPcmU(config)); |
| 58 NetEqQualityTest::SetUp(); | 57 NetEqQualityTest::SetUp(); |
| 59 } | 58 } |
| 60 | 59 |
| 61 int EncodeBlock(int16_t* in_data, | 60 int EncodeBlock(int16_t* in_data, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 77 private: | 76 private: |
| 78 rtc::scoped_ptr<AudioEncoderPcmU> encoder_; | 77 rtc::scoped_ptr<AudioEncoderPcmU> encoder_; |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 TEST_F(NetEqPcmuQualityTest, Test) { | 80 TEST_F(NetEqPcmuQualityTest, Test) { |
| 82 Simulate(); | 81 Simulate(); |
| 83 } | 82 } |
| 84 | 83 |
| 85 } // namespace test | 84 } // namespace test |
| 86 } // namespace webrtc | 85 } // namespace webrtc |
| OLD | NEW |