Home | History | Annotate | Download | only in base

Lines Matching full:bitvector

25 TEST(BitVector, Test) {
28 BitVector bv(kBits, false, Allocator::GetMallocAllocator());
58 BitVector::IndexIterator iterator = bv.Indexes().begin();
68 TEST(BitVector, NoopAllocator) {
74 BitVector bv(false, Allocator::GetNoopAllocator(), kWords, bits);
125 TEST(BitVector, SetInitialBits) {
131 BitVector bv(false, Allocator::GetNoopAllocator(), kWords, bits);
144 TEST(BitVector, UnionIfNotIn) {
146 BitVector first(2, true, Allocator::GetMallocAllocator());
147 BitVector second(5, true, Allocator::GetMallocAllocator());
148 BitVector third(5, true, Allocator::GetMallocAllocator());
158 BitVector first(2, true, Allocator::GetMallocAllocator());
159 BitVector second(5, true, Allocator::GetMallocAllocator());
160 BitVector third(5, true, Allocator::GetMallocAllocator());
170 TEST(BitVector, Subset) {
172 BitVector first(2, true, Allocator::GetMallocAllocator());
173 BitVector second(5, true, Allocator::GetMallocAllocator());
181 BitVector first(5, true, Allocator::GetMallocAllocator());
182 BitVector second(5, true, Allocator::GetMallocAllocator());
191 BitVector first(5, true, Allocator::GetMallocAllocator());
192 BitVector second(5, true, Allocator::GetMallocAllocator());
214 TEST(BitVector, CopyTo) {
216 // Test copying an empty BitVector. Padding should fill `buf` with zeroes.
217 BitVector bv(0, true, Allocator::GetMallocAllocator());
227 BitVector bv(0, true, Allocator::GetMallocAllocator());
242 BitVector bv(0, true, Allocator::GetMallocAllocator());
259 BitVector bv(0, true, Allocator::GetMallocAllocator());