| 217 | } |
| 218 | |
| 219 | static UnpackedBitmapType generate_unpacked_bitmap(PackedBitmapType bitmap) { |
| 220 | // Use a BitmapReader (tested earlier) to populate the expected |
| 221 | // unpacked bitmap. |
| 222 | UnpackedBitmapType result; |
| 223 | internal::BitmapReader reader(bitmap.data(), 0, 8 * kBitmapSizeInBytes); |
| 224 | for (int64_t index = 0; index < 8 * kBitmapSizeInBytes; ++index) { |
| 225 | result[index] = reader.IsSet(); |
| 226 | reader.Next(); |
| 227 | } |
| 228 | return result; |
| 229 | } |
| 230 | |
| 231 | // A pre-defined packed bitmap for use in test cases. |
| 232 | const PackedBitmapType packed_bitmap_; |