| 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 27 matching lines...) Expand all  Loading... | 
|  38 void NetEqExternalDecoderTest::InsertPacket( |  38 void NetEqExternalDecoderTest::InsertPacket( | 
|  39     WebRtcRTPHeader rtp_header, |  39     WebRtcRTPHeader rtp_header, | 
|  40     rtc::ArrayView<const uint8_t> payload, |  40     rtc::ArrayView<const uint8_t> payload, | 
|  41     uint32_t receive_timestamp) { |  41     uint32_t receive_timestamp) { | 
|  42   ASSERT_EQ(NetEq::kOK, |  42   ASSERT_EQ(NetEq::kOK, | 
|  43             neteq_->InsertPacket(rtp_header, payload, receive_timestamp)); |  43             neteq_->InsertPacket(rtp_header, payload, receive_timestamp)); | 
|  44 } |  44 } | 
|  45  |  45  | 
|  46 void NetEqExternalDecoderTest::GetOutputAudio(AudioFrame* output) { |  46 void NetEqExternalDecoderTest::GetOutputAudio(AudioFrame* output) { | 
|  47   // Get audio from regular instance. |  47   // Get audio from regular instance. | 
|  48   EXPECT_EQ(NetEq::kOK, neteq_->GetAudio(output)); |  48   bool muted; | 
 |  49   EXPECT_EQ(NetEq::kOK, neteq_->GetAudio(output, &muted)); | 
 |  50   ASSERT_FALSE(muted); | 
|  49   EXPECT_EQ(channels_, output->num_channels_); |  51   EXPECT_EQ(channels_, output->num_channels_); | 
|  50   EXPECT_EQ(static_cast<size_t>(kOutputLengthMs * sample_rate_hz_ / 1000), |  52   EXPECT_EQ(static_cast<size_t>(kOutputLengthMs * sample_rate_hz_ / 1000), | 
|  51             output->samples_per_channel_); |  53             output->samples_per_channel_); | 
|  52   EXPECT_EQ(sample_rate_hz_, neteq_->last_output_sample_rate_hz()); |  54   EXPECT_EQ(sample_rate_hz_, neteq_->last_output_sample_rate_hz()); | 
|  53 } |  55 } | 
|  54  |  56  | 
|  55 }  // namespace test |  57 }  // namespace test | 
|  56 }  // namespace webrtc |  58 }  // namespace webrtc | 
| OLD | NEW |