Lines Matching defs:images
67 // Web app should initially have no images.
68 std::vector<SkBitmap> images;
69 ASSERT_TRUE(db.GetWebAppsTable()->GetWebAppImages(url, &images));
70 ASSERT_EQ(0U, images.size());
80 ASSERT_TRUE(db.GetWebAppsTable()->GetWebAppImages(url, &images));
81 ASSERT_EQ(1U, images.size());
82 ASSERT_EQ(16, images[0].width());
83 ASSERT_EQ(16, images[0].height());
91 // transparent images because of pre-multiplication rounding errors.
100 images.clear();
101 ASSERT_TRUE(db.GetWebAppsTable()->GetWebAppImages(url, &images));
102 ASSERT_EQ(1U, images.size());
103 ASSERT_EQ(16, images[0].width());
104 ASSERT_EQ(16, images[0].height());
105 images[0].lockPixels();
106 ASSERT_TRUE(images[0].getPixels() != NULL);
107 ASSERT_EQ(test_pixel_1, images[0].getAddr32(0, 1)[0]);
108 ASSERT_EQ(test_pixel_2, images[0].getAddr32(0, 1)[1]);
109 ASSERT_EQ(test_pixel_3, images[0].getAddr32(0, 1)[2]);
110 images[0].unlockPixels();
118 // Make sure we get both images back.
119 images.clear();
120 ASSERT_TRUE(db.GetWebAppsTable()->GetWebAppImages(url, &images));
121 ASSERT_EQ(2U, images.size());
122 if (images[0].width() == 16) {
123 ASSERT_EQ(16, images[0].width());
124 ASSERT_EQ(16, images[0].height());
125 ASSERT_EQ(32, images[1].width());
126 ASSERT_EQ(32, images[1].height());
128 ASSERT_EQ(32, images[0].width());
129 ASSERT_EQ(32, images[0].height());
130 ASSERT_EQ(16, images[1].width());
131 ASSERT_EQ(16, images[1].height());