Home
last modified time | relevance | path

Searched refs:CountedAllocatorTraits (Results 1 – 1 of 1) sorted by relevance

/system/utest/fbl/
A Dvector_tests.cpp194 struct CountedAllocatorTraits : public TestAllocatorTraits { struct
202 size_t CountedAllocatorTraits::allocation_count = 0;
212 CountedAllocatorTraits::allocation_count = 0; in VectorTestPushBackInCapacity()
216 fbl::Vector<ItemType, CountedAllocatorTraits> vector; in VectorTestPushBackInCapacity()
217 ASSERT_EQ(CountedAllocatorTraits::allocation_count, 0); in VectorTestPushBackInCapacity()
221 ASSERT_EQ(CountedAllocatorTraits::allocation_count, 1); in VectorTestPushBackInCapacity()
228 ASSERT_EQ(CountedAllocatorTraits::allocation_count, 1); in VectorTestPushBackInCapacity()
250 CountedAllocatorTraits::allocation_count = 0; in VectorTestPushBackByConstRefInCapacity()
254 fbl::Vector<ItemType, CountedAllocatorTraits> vector; in VectorTestPushBackByConstRefInCapacity()
255 ASSERT_EQ(CountedAllocatorTraits::allocation_count, 0); in VectorTestPushBackByConstRefInCapacity()
[all …]

Completed in 5 milliseconds