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

Unified Diff: base/security_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/security_unittest.cc
diff --git a/base/security_unittest.cc b/base/security_unittest.cc
index 11e871b6b3218197c25083cebaae0030971c1c34..5db18fdfe457ad132092e7cdcb188c12d6ead3b0 100644
--- a/base/security_unittest.cc
+++ b/base/security_unittest.cc
@@ -95,7 +95,7 @@ TEST(SecurityTest, ALLOC_TEST(MemoryAllocationRestrictionsNew)) {
TEST(SecurityTest, ALLOC_TEST(MemoryAllocationRestrictionsNewArray)) {
if (!IsTcMallocBypassed()) {
- scoped_array<char> ptr(new (nothrow) char[kTooBigAllocSize]);
+ scoped_ptr<char[]> ptr(new (nothrow) char[kTooBigAllocSize]);
ASSERT_TRUE(ptr == NULL);
}
}

Powered by Google App Engine
This is Rietveld 408576698