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

Unified Diff: crypto/aes_128_gcm_helpers_nss_unittest.cc

Issue 1223983002: Move WriteInto to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « crypto/aead_openssl.cc ('k') | crypto/encryptor_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/aes_128_gcm_helpers_nss_unittest.cc
diff --git a/crypto/aes_128_gcm_helpers_nss_unittest.cc b/crypto/aes_128_gcm_helpers_nss_unittest.cc
index 938e9090a41da4e76451a459c463e020f8dbf39d..d741b2fe54d07bc643e421dde90b27947ca931e0 100644
--- a/crypto/aes_128_gcm_helpers_nss_unittest.cc
+++ b/crypto/aes_128_gcm_helpers_nss_unittest.cc
@@ -425,7 +425,7 @@ class Aes128GcmHelpersTest : public ::testing::Test {
unsigned char* raw_input = const_cast<unsigned char*>(
reinterpret_cast<const unsigned char*>(input.data()));
unsigned char* raw_output = reinterpret_cast<unsigned char*>(
- WriteInto(output, maximum_output_length + 1 /* null */));
+ base::WriteInto(output, maximum_output_length + 1 /* null */));
PK11Helper_TransformFunction* transform_function =
mode == DECRYPT ? PK11DecryptHelper : PK11EncryptHelper;
@@ -468,8 +468,8 @@ TEST_F(Aes128GcmHelpersTest, RoundTrip) {
const size_t kNonceSize = 16;
std::string key, nonce;
- RandBytes(WriteInto(&key, kKeySize + 1), kKeySize);
- RandBytes(WriteInto(&nonce, kNonceSize + 1), kNonceSize);
+ RandBytes(base::WriteInto(&key, kKeySize + 1), kKeySize);
+ RandBytes(base::WriteInto(&nonce, kNonceSize + 1), kNonceSize);
// AEAD_AES_128_GCM is defined with a default authentication tag size of 16,
// but RFC 5282 extends this to authentication tag sizes of 8 and 12 as well.
« no previous file with comments | « crypto/aead_openssl.cc ('k') | crypto/encryptor_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698