| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 for (size_t i = 0; i < output_.samples_per_channel_; ++i) { | 203 for (size_t i = 0; i < output_.samples_per_channel_; ++i) { |
| 204 ASSERT_EQ(output_.data_[i], output_internal_.data_[i]) | 204 ASSERT_EQ(output_.data_[i], output_internal_.data_[i]) |
| 205 << "Diff in sample " << i << "."; | 205 << "Diff in sample " << i << "."; |
| 206 } | 206 } |
| 207 } | 207 } |
| 208 | 208 |
| 209 void InsertPacket(WebRtcRTPHeader rtp_header, | 209 void InsertPacket(WebRtcRTPHeader rtp_header, |
| 210 rtc::ArrayView<const uint8_t> payload, | 210 rtc::ArrayView<const uint8_t> payload, |
| 211 uint32_t receive_timestamp) override { | 211 uint32_t receive_timestamp) override { |
| 212 // Insert packet in internal decoder. | 212 // Insert packet in internal decoder. |
| 213 ASSERT_EQ(NetEq::kOK, neteq_internal_->InsertPacket( | 213 ASSERT_EQ(NetEq::kOK, neteq_internal_->InsertPacket(rtp_header, payload, |
| 214 rtp_header.header, payload, receive_timestamp)); | 214 receive_timestamp)); |
| 215 | 215 |
| 216 // Insert packet in external decoder instance. | 216 // Insert packet in external decoder instance. |
| 217 NetEqExternalDecoderUnitTest::InsertPacket(rtp_header, payload, | 217 NetEqExternalDecoderUnitTest::InsertPacket(rtp_header, payload, |
| 218 receive_timestamp); | 218 receive_timestamp); |
| 219 } | 219 } |
| 220 | 220 |
| 221 int NumExpectedDecodeCalls(int num_loops) override { return num_loops; } | 221 int NumExpectedDecodeCalls(int num_loops) override { return num_loops; } |
| 222 | 222 |
| 223 private: | 223 private: |
| 224 int sample_rate_hz_; | 224 int sample_rate_hz_; |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 kStartSeqeunceNumber, | 445 kStartSeqeunceNumber, |
| 446 kStartTimestamp, | 446 kStartTimestamp, |
| 447 kJumpFromTimestamp, | 447 kJumpFromTimestamp, |
| 448 kJumpToTimestamp)); | 448 kJumpToTimestamp)); |
| 449 | 449 |
| 450 RunTest(130); // Run 130 laps @ 10 ms each in the test loop. | 450 RunTest(130); // Run 130 laps @ 10 ms each in the test loop. |
| 451 EXPECT_EQ(kRecovered, test_state_); | 451 EXPECT_EQ(kRecovered, test_state_); |
| 452 } | 452 } |
| 453 | 453 |
| 454 } // namespace webrtc | 454 } // namespace webrtc |
| OLD | NEW |