OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |