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

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

Issue 10823012: Fix the errors of ui unittests caused by packing colors for Android (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Refine the patch with comments Created 8 years, 4 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
Index: ui/gfx/image/image_unittest.cc
diff --git a/ui/gfx/image/image_unittest.cc b/ui/gfx/image/image_unittest.cc
index c0ee6c96af13b1c9371c063777116263d6bf1d66..706352bdfaf8b45a52c16b279c2dbcc3d1d6c5f0 100644
--- a/ui/gfx/image/image_unittest.cc
+++ b/ui/gfx/image/image_unittest.cc
@@ -199,8 +199,8 @@ TEST_F(ImageTest, CheckSkiaColor) {
const SkBitmap* bitmap = image.ToSkBitmap();
SkAutoLockPixels auto_lock(*bitmap);
- uint32_t* pixel = bitmap->getAddr32(10, 10);
- EXPECT_EQ(SK_ColorRED, *pixel);
+ SkColor color = bitmap->getColor(10, 10);
+ EXPECT_EQ(SK_ColorRED, color);
}
TEST_F(ImageTest, SwapRepresentations) {

Powered by Google App Engine
This is Rietveld 408576698