1BBitmap(BRect bounds, color_space colorSpace, bool acceptsViews, 2 bool needsContiguous) 3case 1: acceptsViews = false, needsContiguous = false, valid bounds, 4 different color spaces => 5 Bits() should be valid, BitsLength(), BytesPerRow() etc. should return 6 the correct values. 7TODO: ... 8 9void SetBits(const void *data, int32 length, int32 offset, 10 color_space colorSpace) 11case 1: overwrite complete bitmap data, offset = 0, different color spaces, 12 no row padding => 13 Bitmap should contain the correct data. 14case 2: overwrite complete bitmap data, offset = 0, different color spaces, 15 row padding => 16 Bitmap should contain the correct data. 17case 3: overwrite bitmap data partially, offset = 0, different color spaces, 18 no row padding => 19 Bitmap should contain the correct data. 20case 4: overwrite bitmap data partially, offset = 0, different color spaces, 21 row padding => 22 Bitmap should contain the correct data. 23 24status_t ImportBits(const BBitmap *bitmap) 25case 1: NULL bitmap => 26 Should return B_BAD_VALUE. 27case 2: bitmap with different Bounds() => 28 Should return B_BAD_VALUE. 29case 3: this and bitmap are properly initialized and have the same bounds, 30 different color spaces => 31 Should set the data and return B_OK. 32 33