Add operator!= to QUIC TransportParameters I forgot to ask about this when reviewing cl/305724142, so I figured I'd add it instead. gfe-relnote: n/a, new unused functionality PiperOrigin-RevId: 305732997 Change-Id: I367e5bfb3aceaa898dff0582d8c1b75ae530be01
diff --git a/quic/core/crypto/transport_parameters.cc b/quic/core/crypto/transport_parameters.cc index 422be3d..62f3c9c 100644 --- a/quic/core/crypto/transport_parameters.cc +++ b/quic/core/crypto/transport_parameters.cc
@@ -320,6 +320,11 @@ stateless_reset_token == rhs.stateless_reset_token; } +bool TransportParameters::PreferredAddress::operator!=( + const PreferredAddress& rhs) const { + return !(*this == rhs); +} + std::ostream& operator<<( std::ostream& os, const TransportParameters::PreferredAddress& preferred_address) { @@ -507,6 +512,10 @@ return address && google_quic; } +bool TransportParameters::operator!=(const TransportParameters& rhs) const { + return !(*this == rhs); +} + bool TransportParameters::AreValid(std::string* error_details) const { DCHECK(perspective == Perspective::IS_CLIENT || perspective == Perspective::IS_SERVER);