Lines Matching refs:image
12 std::string data("not an image");
13 SkBitmap image;
14 EXPECT_FALSE(webkit_glue::DecodeImage(data, &image));
15 EXPECT_TRUE(image.isNull());
23 SkBitmap image;
24 EXPECT_TRUE(webkit_glue::DecodeImage(data, &image));
25 EXPECT_FALSE(image.isNull());
26 EXPECT_EQ(2, image.width());
27 EXPECT_EQ(2, image.height());
28 EXPECT_EQ(SkBitmap::kARGB_8888_Config, image.config());
29 image.lockPixels();
30 EXPECT_EQ(SK_ColorBLACK, *image.getAddr32(0, 0));
31 EXPECT_EQ(SK_ColorRED, *image.getAddr32(1, 0));
32 EXPECT_EQ(SK_ColorGREEN, *image.getAddr32(0, 1));
33 EXPECT_EQ(SK_ColorBLUE, *image.getAddr32(1, 1));
34 image.unlockPixels();