| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 class NetEqIlbcQualityTest : public NetEqQualityTest { | 44 class NetEqIlbcQualityTest : public NetEqQualityTest { |
| 45 protected: | 45 protected: |
| 46 NetEqIlbcQualityTest() | 46 NetEqIlbcQualityTest() |
| 47 : NetEqQualityTest(FLAGS_frame_size_ms, | 47 : NetEqQualityTest(FLAGS_frame_size_ms, |
| 48 kInputSampleRateKhz, | 48 kInputSampleRateKhz, |
| 49 kOutputSampleRateKhz, | 49 kOutputSampleRateKhz, |
| 50 NetEqDecoder::kDecoderILBC) {} | 50 NetEqDecoder::kDecoderILBC) {} |
| 51 | 51 |
| 52 void SetUp() override { | 52 void SetUp() override { |
| 53 ASSERT_EQ(1, channels_) << "iLBC supports only mono audio."; | 53 ASSERT_EQ(1u, channels_) << "iLBC supports only mono audio."; |
| 54 AudioEncoderIlbc::Config config; | 54 AudioEncoderIlbc::Config config; |
| 55 config.frame_size_ms = FLAGS_frame_size_ms; | 55 config.frame_size_ms = FLAGS_frame_size_ms; |
| 56 encoder_.reset(new AudioEncoderIlbc(config)); | 56 encoder_.reset(new AudioEncoderIlbc(config)); |
| 57 NetEqQualityTest::SetUp(); | 57 NetEqQualityTest::SetUp(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 int EncodeBlock(int16_t* in_data, | 60 int EncodeBlock(int16_t* in_data, |
| 61 size_t block_size_samples, | 61 size_t block_size_samples, |
| 62 uint8_t* payload, | 62 uint8_t* payload, |
| 63 size_t max_bytes) override { | 63 size_t max_bytes) override { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 78 private: | 78 private: |
| 79 rtc::scoped_ptr<AudioEncoderIlbc> encoder_; | 79 rtc::scoped_ptr<AudioEncoderIlbc> encoder_; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 TEST_F(NetEqIlbcQualityTest, Test) { | 82 TEST_F(NetEqIlbcQualityTest, Test) { |
| 83 Simulate(); | 83 Simulate(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 } // namespace test | 86 } // namespace test |
| 87 } // namespace webrtc | 87 } // namespace webrtc |
| OLD | NEW |