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

Side by Side Diff: media/base/video_frame_unittest.cc

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: android Created 4 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 unified diff | Download patch
« no previous file with comments | « media/base/video_frame_pool_unittest.cc ('k') | media/base/video_util_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/base/video_frame.h" 5 #include "media/base/video_frame.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback_helpers.h" 11 #include "base/callback_helpers.h"
12 #include "base/format_macros.h" 12 #include "base/format_macros.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/aligned_memory.h" 14 #include "base/memory/aligned_memory.h"
15 #include "base/memory/scoped_ptr.h"
16 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
17 #include "gpu/command_buffer/common/mailbox_holder.h" 16 #include "gpu/command_buffer/common/mailbox_holder.h"
18 #include "media/base/yuv_convert.h" 17 #include "media/base/yuv_convert.h"
19 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
20 19
21 namespace media { 20 namespace media {
22 21
23 using base::MD5DigestToBase16; 22 using base::MD5DigestToBase16;
24 23
25 // Helper function that initializes a YV12 frame with white and black scan 24 // Helper function that initializes a YV12 frame with white and black scan
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 505
507 for (int i = 0; i < VideoFrameMetadata::NUM_KEYS; ++i) { 506 for (int i = 0; i < VideoFrameMetadata::NUM_KEYS; ++i) {
508 const VideoFrameMetadata::Key key = static_cast<VideoFrameMetadata::Key>(i); 507 const VideoFrameMetadata::Key key = static_cast<VideoFrameMetadata::Key>(i);
509 int value = -1; 508 int value = -1;
510 EXPECT_TRUE(result.GetInteger(key, &value)); 509 EXPECT_TRUE(result.GetInteger(key, &value));
511 EXPECT_EQ(i, value); 510 EXPECT_EQ(i, value);
512 } 511 }
513 } 512 }
514 513
515 } // namespace media 514 } // namespace media
OLDNEW
« no previous file with comments | « media/base/video_frame_pool_unittest.cc ('k') | media/base/video_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698