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

Unified Diff: ui/gfx/image/image_unittest.cc

Issue 10946031: Modifies GetPlatformImageColor() to check the color of a given point. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix compile. Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gfx/image/image_unittest_util.h » ('j') | ui/gfx/image/image_unittest_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_unittest.cc
diff --git a/ui/gfx/image/image_unittest.cc b/ui/gfx/image/image_unittest.cc
index 5c5dd23fc7f163aa49113ad60eb5663deb8bb17a..82eb7545985490a9bc8c78b53dd713ada6cb2324 100644
--- a/ui/gfx/image/image_unittest.cc
+++ b/ui/gfx/image/image_unittest.cc
@@ -180,7 +180,8 @@ TEST_F(ImageTest, PNGDecodeToSkiaFailure) {
TEST_F(ImageTest, PNGDecodeToPlatformFailure) {
std::vector<unsigned char> png(100, 0);
gfx::Image image(&png.front(), png.size());
- gt::CheckColor(gt::GetPlatformImageColor(gt::ToPlatformType(image)), true);
+ gt::CheckColor(gt::GetPlatformImageColor(gt::ToPlatformType(image), 10, 10),
+ true);
}
#endif
« no previous file with comments | « no previous file | ui/gfx/image/image_unittest_util.h » ('j') | ui/gfx/image/image_unittest_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698