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

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

Issue 43082: NO CODE CHANGE (Closed)
Patch Set: Created 11 years, 9 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/yuv_convert.cc ('k') | printing/units_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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "base/base_paths.h" 5 #include "base/base_paths.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "media/base/yuv_convert.h" 7 #include "media/base/yuv_convert.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 // Size of raw image. 10 // Size of raw image.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 kWidth, kHeight, // Dimensions 54 kWidth, kHeight, // Dimensions
55 kWidth, // YStride 55 kWidth, // YStride
56 kWidth / 2, // UvStride 56 kWidth / 2, // UvStride
57 kWidth * kBpp); // RgbStride 57 kWidth * kBpp); // RgbStride
58 58
59 // Compare converted YUV to reference conversion file. 59 // Compare converted YUV to reference conversion file.
60 int rgb_diff = memcmp(rgb_converted_bytes, rgb_bytes, size_of_rgb); 60 int rgb_diff = memcmp(rgb_converted_bytes, rgb_bytes, size_of_rgb);
61 61
62 EXPECT_EQ(rgb_diff, 0); 62 EXPECT_EQ(rgb_diff, 0);
63 } 63 }
64
OLDNEW
« no previous file with comments | « media/base/yuv_convert.cc ('k') | printing/units_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698