Update GFE QUIC fuzzer with recent QuicRstStreamErrorCodes. This is a follow-up to cl/306264118, adding the new QuicRstStreamErrorCode members to ResetFrameProto. Also fix typo in QUIC_STREAM_UNKNOWN_APPLICATION_ERRROR_CODE. gfe-relnote: n/a, fuzzer change only PiperOrigin-RevId: 307399714 Change-Id: I132a3d78acf1fed5796fbf900eac48376400ef46
diff --git a/quic/core/quic_error_codes.cc b/quic/core/quic_error_codes.cc index 776ae8c..9916463 100644 --- a/quic/core/quic_error_codes.cc +++ b/quic/core/quic_error_codes.cc
@@ -50,7 +50,7 @@ RETURN_STRING_LITERAL(QUIC_STREAM_DECOMPRESSION_FAILED); RETURN_STRING_LITERAL(QUIC_STREAM_ENCODER_STREAM_ERROR); RETURN_STRING_LITERAL(QUIC_STREAM_DECODER_STREAM_ERROR); - RETURN_STRING_LITERAL(QUIC_STREAM_UNKNOWN_APPLICATION_ERRROR_CODE); + RETURN_STRING_LITERAL(QUIC_STREAM_UNKNOWN_APPLICATION_ERROR_CODE); RETURN_STRING_LITERAL(QUIC_STREAM_LAST_ERROR); } // Return a default value so that we return this when |error| doesn't match @@ -677,7 +677,7 @@ case QUIC_STREAM_DECODER_STREAM_ERROR: return static_cast<uint64_t>( QuicHttpQpackErrorCode::DECODER_STREAM_ERROR); - case QUIC_STREAM_UNKNOWN_APPLICATION_ERRROR_CODE: + case QUIC_STREAM_UNKNOWN_APPLICATION_ERROR_CODE: return static_cast<uint64_t>(QuicHttp3ErrorCode::INTERNAL_ERROR); case QUIC_STREAM_LAST_ERROR: return static_cast<uint64_t>(QuicHttp3ErrorCode::INTERNAL_ERROR); @@ -729,7 +729,7 @@ case static_cast<uint64_t>(QuicHttpQpackErrorCode::DECODER_STREAM_ERROR): return QUIC_STREAM_DECODER_STREAM_ERROR; } - return QUIC_STREAM_UNKNOWN_APPLICATION_ERRROR_CODE; + return QUIC_STREAM_UNKNOWN_APPLICATION_ERROR_CODE; } #undef RETURN_STRING_LITERAL // undef for jumbo builds
diff --git a/quic/core/quic_error_codes.h b/quic/core/quic_error_codes.h index 46e71b9..efdb5f3 100644 --- a/quic/core/quic_error_codes.h +++ b/quic/core/quic_error_codes.h
@@ -102,7 +102,7 @@ QUIC_STREAM_DECODER_STREAM_ERROR, // IETF RESET_FRAME application error code not matching any HTTP/3 or QPACK // error codes. - QUIC_STREAM_UNKNOWN_APPLICATION_ERRROR_CODE, + QUIC_STREAM_UNKNOWN_APPLICATION_ERROR_CODE, // No error. Used as bound while iterating. QUIC_STREAM_LAST_ERROR, };