Revert "Remove the DCHECK from ParsedQuicVersion constructor." This reverts commit e5e25bc2ec5cab450bd4161cfa17381cf8f74170.
diff --git a/quic/core/quic_versions.h b/quic/core/quic_versions.h index cb35d6d..6d6456f 100644 --- a/quic/core/quic_versions.h +++ b/quic/core/quic_versions.h
@@ -154,7 +154,11 @@ constexpr ParsedQuicVersion(HandshakeProtocol handshake_protocol, QuicTransportVersion transport_version) : handshake_protocol(handshake_protocol), - transport_version(transport_version) {} + transport_version(transport_version) { + DCHECK(ParsedQuicVersionIsValid(handshake_protocol, transport_version)) + << QuicVersionToString(transport_version) << " " + << HandshakeProtocolToString(handshake_protocol); + } constexpr ParsedQuicVersion(const ParsedQuicVersion& other) : ParsedQuicVersion(other.handshake_protocol, other.transport_version) {}