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 <memory> | 11 #include <memory> |
12 | 12 |
13 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 13 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
14 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 14 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
15 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" | 15 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" |
16 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 16 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
17 #include "webrtc/rtc_base/checks.h" | 17 #include "webrtc/rtc_base/checks.h" |
18 #include "webrtc/test/layer_filtering_transport.h" | 18 #include "webrtc/test/layer_filtering_transport.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 namespace test { | 21 namespace test { |
22 | 22 |
23 LayerFilteringTransport::LayerFilteringTransport( | 23 LayerFilteringTransport::LayerFilteringTransport( |
| 24 SingleThreadedTaskQueueForTesting* task_queue, |
24 const FakeNetworkPipe::Config& config, | 25 const FakeNetworkPipe::Config& config, |
25 Call* send_call, | 26 Call* send_call, |
26 uint8_t vp8_video_payload_type, | 27 uint8_t vp8_video_payload_type, |
27 uint8_t vp9_video_payload_type, | 28 uint8_t vp9_video_payload_type, |
28 int selected_tl, | 29 int selected_tl, |
29 int selected_sl, | 30 int selected_sl, |
30 const std::map<uint8_t, MediaType>& payload_type_map) | 31 const std::map<uint8_t, MediaType>& payload_type_map) |
31 : test::DirectTransport(config, send_call, payload_type_map), | 32 : DirectTransport(task_queue, config, send_call, payload_type_map), |
32 vp8_video_payload_type_(vp8_video_payload_type), | 33 vp8_video_payload_type_(vp8_video_payload_type), |
33 vp9_video_payload_type_(vp9_video_payload_type), | 34 vp9_video_payload_type_(vp9_video_payload_type), |
34 selected_tl_(selected_tl), | 35 selected_tl_(selected_tl), |
35 selected_sl_(selected_sl), | 36 selected_sl_(selected_sl), |
36 discarded_last_packet_(false) {} | 37 discarded_last_packet_(false) {} |
37 | 38 |
38 bool LayerFilteringTransport::DiscardedLastPacket() const { | 39 bool LayerFilteringTransport::DiscardedLastPacket() const { |
39 return discarded_last_packet_; | 40 return discarded_last_packet_; |
40 } | 41 } |
41 | 42 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // make sure the marker bit is set properly, and that sequence numbers are | 100 // make sure the marker bit is set properly, and that sequence numbers are |
100 // continuous. | 101 // continuous. |
101 if (set_marker_bit) | 102 if (set_marker_bit) |
102 temp_buffer[1] |= kRtpMarkerBitMask; | 103 temp_buffer[1] |= kRtpMarkerBitMask; |
103 | 104 |
104 return test::DirectTransport::SendRtp(temp_buffer, length, options); | 105 return test::DirectTransport::SendRtp(temp_buffer, length, options); |
105 } | 106 } |
106 | 107 |
107 } // namespace test | 108 } // namespace test |
108 } // namespace webrtc | 109 } // namespace webrtc |
OLD | NEW |