OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 #include "webrtc/base/scoped_ptr.h" | 12 #include "webrtc/base/scoped_ptr.h" |
13 #include "webrtc/common_types.h" | 13 #include "webrtc/common_types.h" |
14 #include "webrtc/modules/rtp_rtcp/interface/receive_statistics.h" | 14 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" |
15 #include "webrtc/modules/rtp_rtcp/interface/rtp_header_parser.h" | 15 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
16 #include "webrtc/modules/rtp_rtcp/interface/rtp_payload_registry.h" | 16 #include "webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h" |
17 #include "webrtc/modules/rtp_rtcp/interface/rtp_receiver.h" | 17 #include "webrtc/modules/rtp_rtcp/include/rtp_receiver.h" |
18 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h" | 18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
19 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h" | 19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
20 #include "webrtc/transport.h" | 20 #include "webrtc/transport.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 // This class sends all its packet straight to the provided RtpRtcp module. | 24 // This class sends all its packet straight to the provided RtpRtcp module. |
25 // with optional packet loss. | 25 // with optional packet loss. |
26 class LoopBackTransport : public Transport { | 26 class LoopBackTransport : public Transport { |
27 public: | 27 public: |
28 LoopBackTransport() | 28 LoopBackTransport() |
29 : count_(0), | 29 : count_(0), |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 size_t payload_size() const { return payload_size_; } | 61 size_t payload_size() const { return payload_size_; } |
62 webrtc::WebRtcRTPHeader rtp_header() const { return rtp_header_; } | 62 webrtc::WebRtcRTPHeader rtp_header() const { return rtp_header_; } |
63 | 63 |
64 private: | 64 private: |
65 uint8_t payload_data_[1500]; | 65 uint8_t payload_data_[1500]; |
66 size_t payload_size_; | 66 size_t payload_size_; |
67 webrtc::WebRtcRTPHeader rtp_header_; | 67 webrtc::WebRtcRTPHeader rtp_header_; |
68 }; | 68 }; |
69 | 69 |
70 } // namespace webrtc | 70 } // namespace webrtc |
OLD | NEW |