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

Side by Side Diff: ui/gfx/image/image_unittest_util.h

Issue 11722012: Add fuzziness to checking whether two SkBitmaps are equal for ImageTest.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « ui/gfx/image/image_unittest.cc ('k') | ui/gfx/image/image_unittest_util.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 // Because the unit tests for gfx::Image are spread across multiple 5 // Because the unit tests for gfx::Image are spread across multiple
6 // implementation files, this header contains the reusable components. 6 // implementation files, this header contains the reusable components.
7 7
8 #ifndef UI_GFX_IMAGE_IMAGE_UNITTEST_UTIL_H_ 8 #ifndef UI_GFX_IMAGE_IMAGE_UNITTEST_UTIL_H_
9 #define UI_GFX_IMAGE_IMAGE_UNITTEST_UTIL_H_ 9 #define UI_GFX_IMAGE_IMAGE_UNITTEST_UTIL_H_
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool IsEmpty(const gfx::Image& image); 65 bool IsEmpty(const gfx::Image& image);
66 66
67 PlatformImage CreatePlatformImage(); 67 PlatformImage CreatePlatformImage();
68 68
69 gfx::Image::RepresentationType GetPlatformRepresentationType(); 69 gfx::Image::RepresentationType GetPlatformRepresentationType();
70 70
71 PlatformImage ToPlatformType(const gfx::Image& image); 71 PlatformImage ToPlatformType(const gfx::Image& image);
72 PlatformImage CopyPlatformType(const gfx::Image& image); 72 PlatformImage CopyPlatformType(const gfx::Image& image);
73 73
74 SkColor GetPlatformImageColor(PlatformImage image, int x, int y); 74 SkColor GetPlatformImageColor(PlatformImage image, int x, int y);
75 void CheckColor(SkColor color, bool is_red); 75 void CheckColors(SkColor color1, SkColor color2);
76 void CheckIsTransparent(SkColor color); 76 void CheckIsTransparent(SkColor color);
77 77
78 bool IsPlatformImageValid(PlatformImage image); 78 bool IsPlatformImageValid(PlatformImage image);
79 79
80 bool PlatformImagesEqual(PlatformImage image1, PlatformImage image2); 80 bool PlatformImagesEqual(PlatformImage image1, PlatformImage image2);
81 81
82 } // namespace test 82 } // namespace test
83 } // namespace gfx 83 } // namespace gfx
84 84
85 #endif // UI_GFX_IMAGE_IMAGE_UNITTEST_UTIL_H_ 85 #endif // UI_GFX_IMAGE_IMAGE_UNITTEST_UTIL_H_
OLDNEW
« no previous file with comments | « ui/gfx/image/image_unittest.cc ('k') | ui/gfx/image/image_unittest_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698