Rename ContextCloseCode::NO_ERROR to ContextCloseCode::CLOSE_NO_ERROR This unblocks Chrome merge because NO_ERROR is already defined in winerror.h so this enum doesn't compile on Windows. PiperOrigin-RevId: 399992063
diff --git a/quic/core/http/capsule.cc b/quic/core/http/capsule.cc index 8f72955..89c9105 100644 --- a/quic/core/http/capsule.cc +++ b/quic/core/http/capsule.cc
@@ -55,7 +55,7 @@ std::string ContextCloseCodeToString(ContextCloseCode context_close_code) { switch (context_close_code) { - case ContextCloseCode::NO_ERROR: + case ContextCloseCode::CLOSE_NO_ERROR: return "NO_ERROR"; case ContextCloseCode::UNKNOWN_FORMAT: return "UNKNOWN_FORMAT";
diff --git a/quic/core/http/capsule.h b/quic/core/http/capsule.h index 664633a..4117719 100644 --- a/quic/core/http/capsule.h +++ b/quic/core/http/capsule.h
@@ -43,7 +43,7 @@ enum class ContextCloseCode : uint64_t { // Casing in this enum matches the IETF specification. - NO_ERROR = 0xff78a0, + CLOSE_NO_ERROR = 0xff78a0, // NO_ERROR already exists in winerror.h. UNKNOWN_FORMAT = 0xff78a1, DENIED = 0xff78a2, RESOURCE_LIMIT = 0xff78a3, @@ -91,7 +91,7 @@ absl::string_view format_additional_data = absl::string_view()); static Capsule CloseDatagramContext( QuicDatagramContextId context_id, - ContextCloseCode close_code = ContextCloseCode::NO_ERROR, + ContextCloseCode close_code = ContextCloseCode::CLOSE_NO_ERROR, absl::string_view close_details = absl::string_view()); static Capsule Unknown( uint64_t capsule_type,