diff options
author | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 00:03:45 +0000 |
---|---|---|
committer | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 00:03:45 +0000 |
commit | 1e11b171293a31d64523402fe8fdf3a8074bc695 (patch) | |
tree | 3a9a41754dd93a2002f8d1b48324a1dff0cdb25b /sandbox/src/interception_unittest.cc | |
parent | a701e5ad76729b657a80d5f4c0c4395a00b94d23 (diff) | |
download | chromium_src-1e11b171293a31d64523402fe8fdf3a8074bc695.zip chromium_src-1e11b171293a31d64523402fe8fdf3a8074bc695.tar.gz chromium_src-1e11b171293a31d64523402fe8fdf3a8074bc695.tar.bz2 |
Use scoped_array (not scoped_ptr) with new[].
BUG=24266
TEST=No functional change so make sure nothing changes.
Review URL: http://codereview.chromium.org/307045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29843 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/src/interception_unittest.cc')
-rw-r--r-- | sandbox/src/interception_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sandbox/src/interception_unittest.cc b/sandbox/src/interception_unittest.cc index 92e72c1..1c6838e 100644 --- a/sandbox/src/interception_unittest.cc +++ b/sandbox/src/interception_unittest.cc @@ -127,7 +127,7 @@ TEST(InterceptionManagerTest, BufferLayout1) { ASSERT_EQ(18, interceptions.interceptions_.size()); size_t buffer_size = interceptions.GetBufferSize(); - scoped_ptr<BYTE> local_buffer(new BYTE[buffer_size]); + scoped_array<BYTE> local_buffer(new BYTE[buffer_size]); ASSERT_TRUE(interceptions.SetupConfigBuffer(local_buffer.get(), buffer_size)); @@ -179,7 +179,7 @@ TEST(InterceptionManagerTest, BufferLayout2) { ASSERT_EQ(5, interceptions.interceptions_.size()); size_t buffer_size = interceptions.GetBufferSize(); - scoped_ptr<BYTE> local_buffer(new BYTE[buffer_size]); + scoped_array<BYTE> local_buffer(new BYTE[buffer_size]); ASSERT_TRUE(interceptions.SetupConfigBuffer(local_buffer.get(), buffer_size)); |