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

Unified Diff: base/shared_memory_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/shared_memory_unittest.cc
diff --git a/base/shared_memory_unittest.cc b/base/shared_memory_unittest.cc
index f02e2753130fafc3f1bde74351b099482f0b2b8c..3f832486c1fb0c81f44a4b4d704a6908265638a8 100644
--- a/base/shared_memory_unittest.cc
+++ b/base/shared_memory_unittest.cc
@@ -249,8 +249,8 @@ TEST(SharedMemoryTest, MultipleThreads) {
int threadcounts[] = { 1, kNumThreads };
for (size_t i = 0; i < arraysize(threadcounts); i++) {
int numthreads = threadcounts[i];
- scoped_array<PlatformThreadHandle> thread_handles;
- scoped_array<MultipleThreadMain*> thread_delegates;
+ scoped_ptr<PlatformThreadHandle[]> thread_handles;
+ scoped_ptr<MultipleThreadMain*[]> thread_delegates;
thread_handles.reset(new PlatformThreadHandle[numthreads]);
thread_delegates.reset(new MultipleThreadMain*[numthreads]);
@@ -309,8 +309,8 @@ TEST(SharedMemoryTest, AnonymousPrivate) {
bool rv;
const uint32 kDataSize = 8192;
- scoped_array<SharedMemory> memories(new SharedMemory[count]);
- scoped_array<int*> pointers(new int*[count]);
+ scoped_ptr<SharedMemory[]> memories(new SharedMemory[count]);
+ scoped_ptr<int*[]> pointers(new int*[count]);
ASSERT_TRUE(memories.get());
ASSERT_TRUE(pointers.get());

Powered by Google App Engine
This is Rietveld 408576698