summaryrefslogtreecommitdiffstats
path: root/chrome_frame
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-07 22:55:47 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-07 22:55:47 +0000
commit1f1e7cb4c07acbec92de5c49a2cd4a206282b7c3 (patch)
treecec5652d6d3a1dbf3875a1b58cd09d602ec6f3af /chrome_frame
parenta4137af3ab19dc0fed8def4b3f66872aeaf5094b (diff)
downloadchromium_src-1f1e7cb4c07acbec92de5c49a2cd4a206282b7c3.zip
chromium_src-1f1e7cb4c07acbec92de5c49a2cd4a206282b7c3.tar.gz
chromium_src-1f1e7cb4c07acbec92de5c49a2cd4a206282b7c3.tar.bz2
scoped_ptr and new[] don't mix.
BUG=99261 TEST=none Review URL: http://codereview.chromium.org/8207004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r--chrome_frame/test/urlmon_moniker_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome_frame/test/urlmon_moniker_unittest.cc b/chrome_frame/test/urlmon_moniker_unittest.cc
index f7e0f04..1e1126b 100644
--- a/chrome_frame/test/urlmon_moniker_unittest.cc
+++ b/chrome_frame/test/urlmon_moniker_unittest.cc
@@ -173,7 +173,7 @@ TEST_F(MonikerPatchTest, SniffDataPlayback1) {
const DWORD data_size = small_html_meta_tag.size();
DWORD read_size1 = data_size * 2;
- scoped_ptr<char> read_buffer1(new char[read_size1]);
+ scoped_array<char> read_buffer1(new char[read_size1]);
ZeroMemory(read_buffer1.get(), read_size1);
char read_buffer2[10] = {0};
@@ -217,8 +217,8 @@ TEST_F(MonikerPatchTest, SniffDataPlayback2) {
DWORD read_size1 = data_size / 2; // First read is half the data.
DWORD read_size2 = data_size; // Second read, try to read past data.
- scoped_ptr<char> read_buffer1(new char[read_size1]);
- scoped_ptr<char> read_buffer2(new char[read_size2]);
+ scoped_array<char> read_buffer1(new char[read_size1]);
+ scoped_array<char> read_buffer2(new char[read_size2]);
ZeroMemory(read_buffer1.get(), read_size1);
ZeroMemory(read_buffer2.get(), read_size2);