| Index: net/quic/core/crypto/chacha20_poly1305_decrypter_test.cc
|
| diff --git a/net/quic/core/crypto/chacha20_poly1305_decrypter_test.cc b/net/quic/core/crypto/chacha20_poly1305_decrypter_test.cc
|
| index 6caa52fc40c49ed531dbc53205185dab0c7f16ee..aa766dbb21468533b3f6fd1c179a4a1235452232 100644
|
| --- a/net/quic/core/crypto/chacha20_poly1305_decrypter_test.cc
|
| +++ b/net/quic/core/crypto/chacha20_poly1305_decrypter_test.cc
|
| @@ -117,19 +117,15 @@ QuicData* DecryptWithNonce(ChaCha20Poly1305Decrypter* decrypter,
|
| StringPiece nonce,
|
| StringPiece associated_data,
|
| StringPiece ciphertext) {
|
| - QuicPathId path_id = kDefaultPathId;
|
| QuicPacketNumber packet_number;
|
| StringPiece nonce_prefix(nonce.data(), nonce.size() - sizeof(packet_number));
|
| decrypter->SetNoncePrefix(nonce_prefix);
|
| memcpy(&packet_number, nonce.data() + nonce_prefix.size(),
|
| sizeof(packet_number));
|
| - path_id = static_cast<QuicPathId>(
|
| - packet_number >> 8 * (sizeof(packet_number) - sizeof(path_id)));
|
| - packet_number &= UINT64_C(0x00FFFFFFFFFFFFFF);
|
| std::unique_ptr<char[]> output(new char[ciphertext.length()]);
|
| size_t output_length = 0;
|
| const bool success = decrypter->DecryptPacket(
|
| - QuicVersionMax(), path_id, packet_number, associated_data, ciphertext,
|
| + QuicVersionMax(), packet_number, associated_data, ciphertext,
|
| output.get(), &output_length, ciphertext.length());
|
| if (!success) {
|
| return nullptr;
|
|
|