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

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

Issue 10796074: Move VideoRenderer out of Filter heirarchy. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: GetMediaTime Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « media/base/pipeline_unittest.cc ('k') | media/base/video_renderer.h » ('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 "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "media/base/buffers.h" 10 #include "media/base/buffers.h"
11 #include "media/base/mock_filters.h"
12 #include "media/base/yuv_convert.h" 11 #include "media/base/yuv_convert.h"
13 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
14 13
15 namespace media { 14 namespace media {
16 15
17 using base::MD5DigestToBase16; 16 using base::MD5DigestToBase16;
18 17
19 // Helper function that initializes a YV12 frame with white and black scan 18 // Helper function that initializes a YV12 frame with white and black scan
20 // lines based on the |white_to_black| parameter. If 0, then the entire 19 // lines based on the |white_to_black| parameter. If 0, then the entire
21 // frame will be black, if 1 then the entire frame will be white. 20 // frame will be black, if 1 then the entire frame will be white.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // ExpectFrameExtents). 202 // ExpectFrameExtents).
204 ExpectFrameExtents( 203 ExpectFrameExtents(
205 VideoFrame::RGB32, 1, 4, "de6d3d567e282f6a38d478f04fc81fb0"); 204 VideoFrame::RGB32, 1, 4, "de6d3d567e282f6a38d478f04fc81fb0");
206 ExpectFrameExtents( 205 ExpectFrameExtents(
207 VideoFrame::YV12, 3, 1, "71113bdfd4c0de6cf62f48fb74f7a0b1"); 206 VideoFrame::YV12, 3, 1, "71113bdfd4c0de6cf62f48fb74f7a0b1");
208 ExpectFrameExtents( 207 ExpectFrameExtents(
209 VideoFrame::YV16, 3, 1, "9bb99ac3ff350644ebff4d28dc01b461"); 208 VideoFrame::YV16, 3, 1, "9bb99ac3ff350644ebff4d28dc01b461");
210 } 209 }
211 210
212 } // namespace media 211 } // namespace media
OLDNEW
« no previous file with comments | « media/base/pipeline_unittest.cc ('k') | media/base/video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698