| 12 | namespace roo_display { |
| 13 | |
| 14 | TEST(Image, XBitmap) { |
| 15 | unsigned char test_bits[] = {0x00, 0x00, 0xfe, 0x03, 0xfe, 0x03, 0x1e, 0x00, |
| 16 | 0x3e, 0x00, 0x76, 0x00, 0x66, 0x00, 0x06, 0x00, |
| 17 | 0x06, 0x00, 0x06, 0x00, 0x00, 0x00}; |
| 18 | |
| 19 | XBitmap<ConstDramPtr> bmp(12, 11, test_bits, color::White, color::Black); |
| 20 | EXPECT_THAT(bmp, MatchesContent(WhiteOnBlack(), 12, 11, |
| 21 | " " |
| 22 | " ********* " |
| 23 | " ********* " |
| 24 | " **** " |
| 25 | " ***** " |
| 26 | " ** *** " |
| 27 | " ** ** " |
| 28 | " ** " |
| 29 | " ** " |
| 30 | " ** " |
| 31 | " ")); |
| 32 | } |
| 33 | |
| 34 | namespace internal { |
| 35 |
nothing calls this directly
no test coverage detected