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

Unified Diff: crypto/secure_hash_unittest.cc

Issue 9447084: Refactor Pickle Read methods to use higher performance PickleIterator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile (racing with incoming CLs) Created 8 years, 9 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/secure_hash_openssl.cc ('k') | gpu/ipc/gpu_command_buffer_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/secure_hash_unittest.cc
diff --git a/crypto/secure_hash_unittest.cc b/crypto/secure_hash_unittest.cc
index 2adddfb98ebcabaf52c927b5b9654279e6801ae7..42b9ade3593397d6159bf5db0f4c2a2bdef456d3 100644
--- a/crypto/secure_hash_unittest.cc
+++ b/crypto/secure_hash_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -62,8 +62,8 @@ TEST(SecureHashTest, TestSerialization) {
ctx1->Finish(output1, sizeof(output1));
- void* data_iterator = NULL;
- EXPECT_TRUE(ctx2->Deserialize(&data_iterator, &pickle));
+ PickleIterator data_iterator(pickle);
+ EXPECT_TRUE(ctx2->Deserialize(&data_iterator));
ctx2->Update(input4.data(), input4.size());
ctx2->Update(input5.data(), input5.size());
« no previous file with comments | « crypto/secure_hash_openssl.cc ('k') | gpu/ipc/gpu_command_buffer_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698