| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 static const bool sub_packets_dummy = | 96 static const bool sub_packets_dummy = |
| 97 RegisterFlagValidator(&FLAGS_sub_packets, &ValidateSubPackets); | 97 RegisterFlagValidator(&FLAGS_sub_packets, &ValidateSubPackets); |
| 98 | 98 |
| 99 } // namepsace | 99 } // namepsace |
| 100 | 100 |
| 101 class NetEqOpusQualityTest : public NetEqQualityTest { | 101 class NetEqOpusQualityTest : public NetEqQualityTest { |
| 102 protected: | 102 protected: |
| 103 NetEqOpusQualityTest(); | 103 NetEqOpusQualityTest(); |
| 104 void SetUp() override; | 104 void SetUp() override; |
| 105 void TearDown() override; | 105 void TearDown() override; |
| 106 virtual int EncodeBlock(int16_t* in_data, size_t block_size_samples, | 106 int EncodeBlock(int16_t* in_data, size_t block_size_samples, |
| 107 rtc::Buffer* payload, size_t max_bytes); | 107 rtc::Buffer* payload, size_t max_bytes) override; |
| 108 private: | 108 private: |
| 109 WebRtcOpusEncInst* opus_encoder_; | 109 WebRtcOpusEncInst* opus_encoder_; |
| 110 OpusRepacketizer* repacketizer_; | 110 OpusRepacketizer* repacketizer_; |
| 111 size_t sub_block_size_samples_; | 111 size_t sub_block_size_samples_; |
| 112 int bit_rate_kbps_; | 112 int bit_rate_kbps_; |
| 113 bool fec_; | 113 bool fec_; |
| 114 bool dtx_; | 114 bool dtx_; |
| 115 int complexity_; | 115 int complexity_; |
| 116 int maxplaybackrate_; | 116 int maxplaybackrate_; |
| 117 int target_loss_rate_; | 117 int target_loss_rate_; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 EXPECT_GE(value, 0); | 206 EXPECT_GE(value, 0); |
| 207 return value; | 207 return value; |
| 208 } | 208 } |
| 209 | 209 |
| 210 TEST_F(NetEqOpusQualityTest, Test) { | 210 TEST_F(NetEqOpusQualityTest, Test) { |
| 211 Simulate(); | 211 Simulate(); |
| 212 } | 212 } |
| 213 | 213 |
| 214 } // namespace test | 214 } // namespace test |
| 215 } // namespace webrtc | 215 } // namespace webrtc |
| OLD | NEW |