| Index: webrtc/common_types.h
|
| diff --git a/webrtc/common_types.h b/webrtc/common_types.h
|
| index 43ae642375d8d0e9f22acabf9f1684a125f0b25f..3a454c7c7d464e878d452ce31260b2cdcf08a401 100644
|
| --- a/webrtc/common_types.h
|
| +++ b/webrtc/common_types.h
|
| @@ -927,7 +927,7 @@ enum NetworkState {
|
| kNetworkDown,
|
| };
|
|
|
| -struct RtpKeepAliveConfig {
|
| +struct RtpKeepAliveConfig final {
|
| // If no packet has been sent for |timeout_interval_ms|, send a keep-alive
|
| // packet. The keep-alive packet is an empty (no payload) RTP packet with a
|
| // payload type of 20 as long as the other end has not negotiated the use of
|
| @@ -936,6 +936,12 @@ struct RtpKeepAliveConfig {
|
| // in |payload_type|.
|
| int64_t timeout_interval_ms = -1;
|
| uint8_t payload_type = 20;
|
| +
|
| + bool operator==(const RtpKeepAliveConfig& o) const {
|
| + return timeout_interval_ms == o.timeout_interval_ms &&
|
| + payload_type == o.payload_type;
|
| + }
|
| + bool operator!=(const RtpKeepAliveConfig& o) const { return !(*this == o); }
|
| };
|
|
|
| } // namespace webrtc
|
|
|