| Index: net/quic/core/crypto/aes_128_gcm_12_decrypter_test.cc
|
| diff --git a/net/quic/core/crypto/aes_128_gcm_12_decrypter_test.cc b/net/quic/core/crypto/aes_128_gcm_12_decrypter_test.cc
|
| index 4a04d21af3d9659e2f0cabf5493de1b7ab244f32..c57d6707bfa1870184299a6b8268be47eaebd4b7 100644
|
| --- a/net/quic/core/crypto/aes_128_gcm_12_decrypter_test.cc
|
| +++ b/net/quic/core/crypto/aes_128_gcm_12_decrypter_test.cc
|
| @@ -203,19 +203,15 @@ QuicData* DecryptWithNonce(Aes128Gcm12Decrypter* 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;
|
|
|