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

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

Issue 2885823002: Delete class NullRtpData and function NullObjectRtpData (Closed)
Patch Set: Undo added includes, no longer needed after rebase. Created 3 years, 6 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 #ifndef WEBRTC_MODULES_RTP_RTCP_TEST_TESTAPI_TEST_API_H_ 10 #ifndef WEBRTC_MODULES_RTP_RTCP_TEST_TESTAPI_TEST_API_H_
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 private: 45 private:
46 int count_; 46 int count_;
47 int packet_loss_; 47 int packet_loss_;
48 ReceiveStatistics* receive_statistics_; 48 ReceiveStatistics* receive_statistics_;
49 RTPPayloadRegistry* rtp_payload_registry_; 49 RTPPayloadRegistry* rtp_payload_registry_;
50 RtpReceiver* rtp_receiver_; 50 RtpReceiver* rtp_receiver_;
51 RtpRtcp* rtp_rtcp_module_; 51 RtpRtcp* rtp_rtcp_module_;
52 }; 52 };
53 53
54 class TestRtpReceiver : public NullRtpData { 54 class TestRtpReceiver : public RtpData {
55 public: 55 public:
56 int32_t OnReceivedPayloadData( 56 int32_t OnReceivedPayloadData(
57 const uint8_t* payload_data, 57 const uint8_t* payload_data,
58 size_t payload_size, 58 size_t payload_size,
59 const webrtc::WebRtcRTPHeader* rtp_header) override; 59 const webrtc::WebRtcRTPHeader* rtp_header) override;
60 60
61 const uint8_t* payload_data() const { return payload_data_; } 61 const uint8_t* payload_data() const { return payload_data_; }
62 size_t payload_size() const { return payload_size_; } 62 size_t payload_size() const { return payload_size_; }
63 webrtc::WebRtcRTPHeader rtp_header() const { return rtp_header_; } 63 webrtc::WebRtcRTPHeader rtp_header() const { return rtp_header_; }
64 64
65 private: 65 private:
66 uint8_t payload_data_[1500]; 66 uint8_t payload_data_[1500];
67 size_t payload_size_; 67 size_t payload_size_;
68 webrtc::WebRtcRTPHeader rtp_header_; 68 webrtc::WebRtcRTPHeader rtp_header_;
69 }; 69 };
70 70
71 } // namespace webrtc 71 } // namespace webrtc
72 #endif // WEBRTC_MODULES_RTP_RTCP_TEST_TESTAPI_TEST_API_H_ 72 #endif // WEBRTC_MODULES_RTP_RTCP_TEST_TESTAPI_TEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698