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

Unified Diff: base/process_util_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/process_util_unittest.cc
diff --git a/base/process_util_unittest.cc b/base/process_util_unittest.cc
index 4c1eff438c12554d440c70788b1a7cb9114f4d4b..fff2c688e4fdb17767b1212ce0674f15fdf28446 100644
--- a/base/process_util_unittest.cc
+++ b/base/process_util_unittest.cc
@@ -441,7 +441,7 @@ TEST_F(ProcessUtilTest, CalcFreeMemory) {
// Allocate 20M and check again. It should have gone down.
const int kAllocMB = 20;
- scoped_array<char> alloc(new char[kAllocMB * 1024 * 1024]);
+ scoped_ptr<char[]> alloc(new char[kAllocMB * 1024 * 1024]);
size_t expected_total = free_mem1.total - kAllocMB;
size_t expected_largest = free_mem1.largest;

Powered by Google App Engine
This is Rietveld 408576698