Home
last modified time | relevance | path

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

/system/utest/fbl/
A Dslab_allocator_tests.cpp242 const size_t MAX_ALLOCS = Traits::MaxAllocs(allocator.max_slabs()); in do_slab_test() local
257 EXPECT_EQ(fbl::min(i, MAX_ALLOCS), TestBase::allocated_obj_count()); in do_slab_test()
273 if (i < MAX_ALLOCS) { in do_slab_test()
280 EXPECT_EQ(fbl::min(i + 1, MAX_ALLOCS), TestBase::allocated_obj_count()); in do_slab_test()
296 EXPECT_EQ(fbl::min(test_allocs, MAX_ALLOCS) - i, TestBase::allocated_obj_count()); in do_slab_test()
331 EXPECT_EQ(fbl::min(test_allocs, MAX_ALLOCS), i); in do_slab_test()
464 const size_t MAX_ALLOCS = Traits::MaxAllocs(); in do_static_slab_test() local
476 EXPECT_EQ(fbl::min(i, MAX_ALLOCS), TestBase::allocated_obj_count()); in do_static_slab_test()
492 if (i < MAX_ALLOCS) { in do_static_slab_test()
499 EXPECT_EQ(fbl::min(i + 1, MAX_ALLOCS), TestBase::allocated_obj_count()); in do_static_slab_test()
[all …]

Completed in 4 milliseconds