Index: webrtc/modules/include/module_common_types.h |
diff --git a/webrtc/modules/include/module_common_types.h b/webrtc/modules/include/module_common_types.h |
index 1826610437bc89a063815eadf50dcca1c4cdf3f4..98f7a38af204fe32a17e7c5f84b9d205c203dc2a 100644 |
--- a/webrtc/modules/include/module_common_types.h |
+++ b/webrtc/modules/include/module_common_types.h |
@@ -538,6 +538,13 @@ struct PacedPacketInfo { |
probe_cluster_min_probes(probe_cluster_min_probes), |
probe_cluster_min_bytes(probe_cluster_min_bytes) {} |
+ bool operator==(const PacedPacketInfo& rhs) const { |
nisse-webrtc
2017/02/22 12:37:47
Is this for tests only?
philipel
2017/02/22 13:11:26
Yes, I implemented it for convenience sake to make
|
+ return send_bitrate_bps == rhs.send_bitrate_bps && |
+ probe_cluster_id == rhs.probe_cluster_id && |
+ probe_cluster_min_probes == rhs.probe_cluster_min_probes && |
+ probe_cluster_min_bytes == rhs.probe_cluster_min_bytes; |
+ } |
+ |
static constexpr int kNotAProbe = -1; |
int send_bitrate_bps = -1; |
int probe_cluster_id = kNotAProbe; |