Skip to content

Commit

Permalink
Replace deprecated absl::HexStringToBytes call in QUIC test utils
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 714964274
  • Loading branch information
recvfrom authored and copybara-github committed Jan 13, 2025
1 parent c14c499 commit 6d4a45c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions quiche/quic/test_tools/crypto_test_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6d4a45c

Please sign in to comment.