| Index: webrtc/common_types.h
|
| diff --git a/webrtc/common_types.h b/webrtc/common_types.h
|
| index daaf1ff9732c9ce414eec621c0993795f2cea309..dc62b632a1c89782d9d51e684285f5ab41877703 100644
|
| --- a/webrtc/common_types.h
|
| +++ b/webrtc/common_types.h
|
| @@ -934,7 +934,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
|
| @@ -943,6 +943,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
|
|
|