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

Unified Diff: remoting/codec/codec_test.cc

Issue 13642007: Rewrite scoped_array<T> to scoped_ptr<T[]> in remoting/, Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Manually rewrite Win files. Created 7 years, 8 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
« no previous file with comments | « remoting/codec/audio_encoder_speex.h ('k') | remoting/codec/video_decoder_verbatim.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/codec_test.cc
diff --git a/remoting/codec/codec_test.cc b/remoting/codec/codec_test.cc
index 7c87307b2c9de5c790d45d6764bbbd60288dd1a9..af8b11bb362fcf09ad31dbe77e0e341e393c31e1 100644
--- a/remoting/codec/codec_test.cc
+++ b/remoting/codec/codec_test.cc
@@ -271,7 +271,7 @@ class VideoDecoderTester {
SkRegion expected_region_;
SkRegion update_region_;
VideoDecoder* decoder_;
- scoped_array<uint8> image_data_;
+ scoped_ptr<uint8[]> image_data_;
scoped_refptr<media::ScreenCaptureData> capture_data_;
DISALLOW_COPY_AND_ASSIGN(VideoDecoderTester);
@@ -319,7 +319,7 @@ class VideoEncoderTester {
scoped_refptr<media::ScreenCaptureData> PrepareEncodeData(
const SkISize& size,
- scoped_array<uint8>* memory) {
+ scoped_ptr<uint8[]>* memory) {
int memory_size = size.width() * size.height() * kBytesPerPixel;
memory->reset(new uint8[memory_size]);
@@ -356,7 +356,7 @@ void TestVideoEncoder(VideoEncoder* encoder, bool strict) {
VideoEncoderTester tester(&message_tester);
- scoped_array<uint8> memory;
+ scoped_ptr<uint8[]> memory;
for (size_t xi = 0; xi < arraysize(kSizes); ++xi) {
for (size_t yi = 0; yi < arraysize(kSizes); ++yi) {
@@ -413,7 +413,7 @@ void TestVideoEncoderDecoder(
VideoEncoderTester encoder_tester(&message_tester);
- scoped_array<uint8> memory;
+ scoped_ptr<uint8[]> memory;
scoped_refptr<media::ScreenCaptureData> data =
PrepareEncodeData(kSize, &memory);
@@ -451,12 +451,12 @@ void TestVideoEncoderDecoderGradient(VideoEncoder* encoder,
double max_error_limit,
double mean_error_limit) {
SkIRect screen_rect = SkIRect::MakeSize(screen_size);
- scoped_array<uint8> screen_data(new uint8[
+ scoped_ptr<uint8[]> screen_data(new uint8[
screen_size.width() * screen_size.height() * kBytesPerPixel]);
FillWithGradient(screen_data.get(), screen_size, screen_rect);
SkIRect view_rect = SkIRect::MakeSize(view_size);
- scoped_array<uint8> expected_view_data(new uint8[
+ scoped_ptr<uint8[]> expected_view_data(new uint8[
view_size.width() * view_size.height() * kBytesPerPixel]);
FillWithGradient(expected_view_data.get(), view_size, view_rect);
« no previous file with comments | « remoting/codec/audio_encoder_speex.h ('k') | remoting/codec/video_decoder_verbatim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698