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

Unified Diff: webrtc/modules/remote_bitrate_estimator/test/packet.h

Issue 1202253003: More Simulation Framework features (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressing trybot failures Created 5 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/remote_bitrate_estimator/test/packet.h
diff --git a/webrtc/modules/remote_bitrate_estimator/test/packet.h b/webrtc/modules/remote_bitrate_estimator/test/packet.h
index 647e357f9b9601dfff7689cdf5da8927d42cd950..6466510c9c3ada66eb980bddd5a60ce681b7d2cd 100644
--- a/webrtc/modules/remote_bitrate_estimator/test/packet.h
+++ b/webrtc/modules/remote_bitrate_estimator/test/packet.h
@@ -43,6 +43,14 @@ class Packet {
sender_timestamp_us_ = sender_timestamp_us;
}
int64_t sender_timestamp_us() const { return sender_timestamp_us_; }
+ void set_sending_estimate_kbps(uint32_t sending_estimate_kbps);
+ uint32_t get_sending_estimate_kbps() const { return sending_estimate_kbps_; }
+ void set_total_capacity_kbps(uint32_t total_capacity_kbps);
+ uint32_t get_total_capacity_kbps() const { return total_capacity_kbps_; }
+ void set_capacity_per_flow_kbps(uint32_t capacity_per_flow_kbps);
+ uint32_t get_capacity_per_flow_kbps() const {
+ return capacity_per_flow_kbps_;
+ }
protected:
int flow_id_;
@@ -50,6 +58,10 @@ class Packet {
int64_t send_time_us_; // Time the packet left last processor touching it.
int64_t sender_timestamp_us_; // Time the packet left the Sender.
size_t payload_size_; // Size of the (non-existent, simulated) payload.
+ uint32_t sending_estimate_kbps_; // Transmit bitrate estimate to receiver.
+ // Transmit available capacity to receiver.
+ uint32_t total_capacity_kbps_;
+ uint32_t capacity_per_flow_kbps_;
};
class MediaPacket : public Packet {
@@ -64,6 +76,7 @@ class MediaPacket : public Packet {
size_t payload_size,
const RTPHeader& header);
MediaPacket(int64_t send_time_us, uint32_t sequence_number);
+
virtual ~MediaPacket() {}
int64_t GetAbsSendTimeInMs() const {
@@ -99,7 +112,7 @@ class FeedbackPacket : public Packet {
int64_t latest_send_time_ms() const { return latest_send_time_ms_; }
private:
- int64_t latest_send_time_ms_; // Time stamp for the latest sent packet.
+ int64_t latest_send_time_ms_; // Time stamp for the latest sent FbPacket.
};
class RembFeedback : public FeedbackPacket {

Powered by Google App Engine
This is Rietveld 408576698