| 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 |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 #include "webrtc/audio/audio_receive_stream.h" |
| 13 #include "webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitra
te_estimator.h" | 14 #include "webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitra
te_estimator.h" |
| 14 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 15 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
| 15 #include "webrtc/video/audio_receive_stream.h" | |
| 16 | 16 |
| 17 namespace webrtc { | 17 namespace webrtc { |
| 18 | 18 |
| 19 const size_t kAbsoluteSendTimeLength = 4; | 19 const size_t kAbsoluteSendTimeLength = 4; |
| 20 | 20 |
| 21 void BuildAbsoluteSendTimeExtension(uint8_t* buffer, | 21 void BuildAbsoluteSendTimeExtension(uint8_t* buffer, |
| 22 int id, | 22 int id, |
| 23 uint32_t abs_send_time) { | 23 uint32_t abs_send_time) { |
| 24 const size_t kRtpOneByteHeaderLength = 4; | 24 const size_t kRtpOneByteHeaderLength = 4; |
| 25 const uint16_t kRtpOneByteHeaderExtensionId = 0xBEDE; | 25 const uint16_t kRtpOneByteHeaderExtensionId = 0xBEDE; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 PacketTime packet_time(5678000, 0); | 68 PacketTime packet_time(5678000, 0); |
| 69 const size_t kExpectedHeaderLength = 20; | 69 const size_t kExpectedHeaderLength = 20; |
| 70 EXPECT_CALL(rbe, IncomingPacket(packet_time.timestamp / 1000, | 70 EXPECT_CALL(rbe, IncomingPacket(packet_time.timestamp / 1000, |
| 71 sizeof(rtp_packet) - kExpectedHeaderLength, | 71 sizeof(rtp_packet) - kExpectedHeaderLength, |
| 72 testing::_, false)) | 72 testing::_, false)) |
| 73 .Times(1); | 73 .Times(1); |
| 74 EXPECT_TRUE( | 74 EXPECT_TRUE( |
| 75 recv_stream.DeliverRtp(rtp_packet, sizeof(rtp_packet), packet_time)); | 75 recv_stream.DeliverRtp(rtp_packet, sizeof(rtp_packet), packet_time)); |
| 76 } | 76 } |
| 77 } // namespace webrtc | 77 } // namespace webrtc |
| OLD | NEW |