| 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 c57d6707bfa1870184299a6b8268be47eaebd4b7..2a14d177f02bb8ccbe9f123f5eb6e5465704771c 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
|
| @@ -10,7 +10,6 @@
|
| #include "net/quic/platform/api/quic_text_utils.h"
|
| #include "net/quic/test_tools/quic_test_utils.h"
|
|
|
| -using base::StringPiece;
|
| using std::string;
|
|
|
| namespace {
|
| @@ -200,11 +199,12 @@ namespace test {
|
| // DecryptWithNonce wraps the |Decrypt| method of |decrypter| to allow passing
|
| // in an nonce and also to allocate the buffer needed for the plaintext.
|
| QuicData* DecryptWithNonce(Aes128Gcm12Decrypter* decrypter,
|
| - StringPiece nonce,
|
| - StringPiece associated_data,
|
| - StringPiece ciphertext) {
|
| + QuicStringPiece nonce,
|
| + QuicStringPiece associated_data,
|
| + QuicStringPiece ciphertext) {
|
| QuicPacketNumber packet_number;
|
| - StringPiece nonce_prefix(nonce.data(), nonce.size() - sizeof(packet_number));
|
| + QuicStringPiece nonce_prefix(nonce.data(),
|
| + nonce.size() - sizeof(packet_number));
|
| decrypter->SetNoncePrefix(nonce_prefix);
|
| memcpy(&packet_number, nonce.data() + nonce_prefix.size(),
|
| sizeof(packet_number));
|
| @@ -265,7 +265,7 @@ TEST(Aes128Gcm12DecrypterTest, Decrypt) {
|
| // This deliberately tests that the decrypter can handle an AAD that
|
| // is set to nullptr, as opposed to a zero-length, non-nullptr
|
| // pointer.
|
| - aad.length() ? aad : StringPiece(), ciphertext));
|
| + aad.length() ? aad : QuicStringPiece(), ciphertext));
|
| if (!decrypted.get()) {
|
| EXPECT_FALSE(has_pt);
|
| continue;
|
|
|