Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: net/quic/crypto/channel_id_test.cc

Issue 1910593003: Cleanup: Migrate references from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@119645068
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/crypto/chacha20_poly1305_rfc7539_encrypter_test.cc ('k') | net/quic/crypto/crypto_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/channel_id_test.cc
diff --git a/net/quic/crypto/channel_id_test.cc b/net/quic/crypto/channel_id_test.cc
index 1453071b0957c7ae313ed7b8a1b928874a748524..3f5dc9daf7d711a878cc24f53bcf75046ba723cd 100644
--- a/net/quic/crypto/channel_id_test.cc
+++ b/net/quic/crypto/channel_id_test.cc
@@ -4,6 +4,8 @@
#include "net/quic/crypto/channel_id.h"
+#include <memory>
+
#include "net/quic/test_tools/crypto_test_utils.h"
#include "net/quic/test_tools/quic_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -258,7 +260,6 @@ TEST(ChannelIDTest, SignAndVerify) {
bad_key[1] ^= 0x80;
EXPECT_FALSE(ChannelIDVerifier::Verify(string(bad_key.get(), key.size()),
signed_data, signature));
-
std::unique_ptr<char[]> bad_signature(new char[signature.size()]);
memcpy(bad_signature.get(), signature.data(), signature.size());
bad_signature[1] ^= 0x80;
« no previous file with comments | « net/quic/crypto/chacha20_poly1305_rfc7539_encrypter_test.cc ('k') | net/quic/crypto/crypto_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698