Index: net/quic/crypto/quic_crypto_server_config_test.cc |
diff --git a/net/quic/crypto/quic_crypto_server_config_test.cc b/net/quic/crypto/quic_crypto_server_config_test.cc |
index b07f46d47a8040bd8afad793539a3c049e05c1d2..f3f9de74f3f06e583eb3c1d77ce0393d4b3632e0 100644 |
--- a/net/quic/crypto/quic_crypto_server_config_test.cc |
+++ b/net/quic/crypto/quic_crypto_server_config_test.cc |
@@ -462,7 +462,7 @@ TEST(QuicCryptoServerConfigTest, ValidateServerNonce) { |
memset(key.get(), 0x11, key_size); |
CryptoSecretBoxer boxer; |
- boxer.SetKey(StringPiece(reinterpret_cast<char*>(key.get()), key_size)); |
+ boxer.SetKeys({string(reinterpret_cast<char*>(key.get()), key_size)}); |
const string box = boxer.Box(rand, message); |
MockClock clock; |
QuicWallTime now = clock.WallNow(); |