| Index: net/quic/crypto/null_encrypter_test.cc
|
| diff --git a/net/quic/crypto/null_encrypter_test.cc b/net/quic/crypto/null_encrypter_test.cc
|
| index 4f4dae754a71714ac7a7160f180ac8cc66a94cf2..e9ae773e97a81004040158390950dc1dfab5a4b6 100644
|
| --- a/net/quic/crypto/null_encrypter_test.cc
|
| +++ b/net/quic/crypto/null_encrypter_test.cc
|
| @@ -24,13 +24,13 @@ TEST_F(NullEncrypterTest, Encrypt) {
|
| 'b', 'y', 'e', '!',
|
| };
|
| NullEncrypter encrypter;
|
| - scoped_ptr<QuicData> encrypted(
|
| - encrypter.EncryptPacket(0, "hello world!", "goodbye!"));
|
| - ASSERT_TRUE(encrypted.get());
|
| + char encrypted[256];
|
| + size_t encrypted_len = 0;
|
| + ASSERT_TRUE(encrypter.EncryptPacket(0, "hello world!", "goodbye!", encrypted,
|
| + &encrypted_len, 256));
|
| test::CompareCharArraysWithHexError(
|
| - "encrypted data", encrypted->data(), encrypted->length(),
|
| - reinterpret_cast<const char*>(expected),
|
| - arraysize(expected));
|
| + "encrypted data", encrypted, encrypted_len,
|
| + reinterpret_cast<const char*>(expected), arraysize(expected));
|
| }
|
|
|
| TEST_F(NullEncrypterTest, GetMaxPlaintextSize) {
|
|
|