| 23 | }; |
| 24 | |
| 25 | void expectBitmapIsRed(const Valdi::Ref<snap::drawing::TestBitmap>& bitmap) { |
| 26 | auto info = bitmap->getInfo(); |
| 27 | for (int y = 0; y < info.height; y++) { |
| 28 | for (int x = 0; x < info.width; x++) { |
| 29 | EXPECT_EQ(snap::drawing::Color::red(), bitmap->getPixel(x, y)) << "at (" << x << ", " << y << ")"; |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | } // namespace |
| 35 |