From 6d4a45cc820178e2bb78228ed622d56a43af78c0 Mon Sep 17 00:00:00 2001 From: awillia Date: Mon, 13 Jan 2025 07:43:44 -0800 Subject: [PATCH] Replace deprecated absl::HexStringToBytes call in QUIC test utils PiperOrigin-RevId: 714964274 --- quiche/quic/test_tools/crypto_test_utils.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/quiche/quic/test_tools/crypto_test_utils.cc b/quiche/quic/test_tools/crypto_test_utils.cc index 0beaa8e72..f062ef200 100644 --- a/quiche/quic/test_tools/crypto_test_utils.cc +++ b/quiche/quic/test_tools/crypto_test_utils.cc @@ -814,8 +814,10 @@ CryptoHandshakeMessage CreateCHLO( size_t value_len = value.length(); if (value_len > 0 && value[0] == '#') { // This is ascii encoded hex. - std::string hex_value = - absl::HexStringToBytes(absl::string_view(&value[1])); + std::string hex_value; + QUICHE_CHECK( + absl::HexStringToBytes(absl::string_view(&value[1]), &hex_value)); + msg.SetStringPiece(quic_tag, hex_value); continue; }