Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: webrtc/modules/rtp_rtcp/test/testAPI/test_api.h

Issue 1335353005: Remove channel ids from various interfaces. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 17 matching lines...) Expand all
28 : count_(0), 28 : count_(0),
29 packet_loss_(0), 29 packet_loss_(0),
30 rtp_payload_registry_(NULL), 30 rtp_payload_registry_(NULL),
31 rtp_receiver_(NULL), 31 rtp_receiver_(NULL),
32 rtp_rtcp_module_(NULL) {} 32 rtp_rtcp_module_(NULL) {}
33 void SetSendModule(RtpRtcp* rtp_rtcp_module, 33 void SetSendModule(RtpRtcp* rtp_rtcp_module,
34 RTPPayloadRegistry* payload_registry, 34 RTPPayloadRegistry* payload_registry,
35 RtpReceiver* receiver, 35 RtpReceiver* receiver,
36 ReceiveStatistics* receive_statistics); 36 ReceiveStatistics* receive_statistics);
37 void DropEveryNthPacket(int n); 37 void DropEveryNthPacket(int n);
38 int SendPacket(int channel, const void* data, size_t len) override; 38 int SendPacket(const void* data, size_t len) override;
39 int SendRTCPPacket(int channel, const void* data, size_t len) override; 39 int SendRTCPPacket(const void* data, size_t len) override;
40 40
41 private: 41 private:
42 int count_; 42 int count_;
43 int packet_loss_; 43 int packet_loss_;
44 ReceiveStatistics* receive_statistics_; 44 ReceiveStatistics* receive_statistics_;
45 RTPPayloadRegistry* rtp_payload_registry_; 45 RTPPayloadRegistry* rtp_payload_registry_;
46 RtpReceiver* rtp_receiver_; 46 RtpReceiver* rtp_receiver_;
47 RtpRtcp* rtp_rtcp_module_; 47 RtpRtcp* rtp_rtcp_module_;
48 }; 48 };
49 49
50 class TestRtpReceiver : public NullRtpData { 50 class TestRtpReceiver : public NullRtpData {
51 public: 51 public:
52 int32_t OnReceivedPayloadData( 52 int32_t OnReceivedPayloadData(
53 const uint8_t* payload_data, 53 const uint8_t* payload_data,
54 const size_t payload_size, 54 const size_t payload_size,
55 const webrtc::WebRtcRTPHeader* rtp_header) override; 55 const webrtc::WebRtcRTPHeader* rtp_header) override;
56 56
57 const uint8_t* payload_data() const { return payload_data_; } 57 const uint8_t* payload_data() const { return payload_data_; }
58 size_t payload_size() const { return payload_size_; } 58 size_t payload_size() const { return payload_size_; }
59 webrtc::WebRtcRTPHeader rtp_header() const { return rtp_header_; } 59 webrtc::WebRtcRTPHeader rtp_header() const { return rtp_header_; }
60 60
61 private: 61 private:
62 uint8_t payload_data_[1500]; 62 uint8_t payload_data_[1500];
63 size_t payload_size_; 63 size_t payload_size_;
64 webrtc::WebRtcRTPHeader rtp_header_; 64 webrtc::WebRtcRTPHeader rtp_header_;
65 }; 65 };
66 66
67 } // namespace webrtc 67 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc ('k') | webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698