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

Unified Diff: base/md5_unittest.cc

Issue 11961021: base: Convert scoped_arrays to the new scoped_ptr style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert callback changes Created 7 years, 11 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
Index: base/md5_unittest.cc
diff --git a/base/md5_unittest.cc b/base/md5_unittest.cc
index a20d819351c60c25553f85d903e63d8eac6ffdb5..1112c4b4258d21eb13bc4a55a0fc5a6d06ef8526 100644
--- a/base/md5_unittest.cc
+++ b/base/md5_unittest.cc
@@ -67,7 +67,7 @@ TEST(MD5, MD5SumOneByteData) {
TEST(MD5, MD5SumLongData) {
const int length = 10 * 1024 * 1024 + 1;
- scoped_array<char> data(new char[length]);
+ scoped_ptr<char[]> data(new char[length]);
for (int i = 0; i < length; ++i)
data[i] = i & 0xFF;
@@ -109,7 +109,7 @@ TEST(MD5, ContextWithLongData) {
MD5Init(&ctx);
const int length = 10 * 1024 * 1024 + 1;
- scoped_array<char> data(new char[length]);
+ scoped_ptr<char[]> data(new char[length]);
for (int i = 0; i < length; ++i)
data[i] = i & 0xFF;
« no previous file with comments | « base/linux_util.cc ('k') | base/nix/mime_util_xdg.cc » ('j') | base/nix/mime_util_xdg.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698