Lines Matching refs:ASSERT_EQ

41 	ASSERT_EQ(rgn->size, size);  in alloc_top_down_simple_check()
42 ASSERT_EQ(rgn->base, expected_start); in alloc_top_down_simple_check()
44 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_top_down_simple_check()
45 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_top_down_simple_check()
99 ASSERT_EQ(rgn1->size, r1.size); in alloc_top_down_disjoint_check()
100 ASSERT_EQ(rgn1->base, r1.base); in alloc_top_down_disjoint_check()
102 ASSERT_EQ(rgn2->size, r2_size); in alloc_top_down_disjoint_check()
103 ASSERT_EQ(rgn2->base, expected_start); in alloc_top_down_disjoint_check()
105 ASSERT_EQ(memblock.reserved.cnt, 2); in alloc_top_down_disjoint_check()
106 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_disjoint_check()
144 ASSERT_EQ(rgn->size, total_size); in alloc_top_down_before_check()
145 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - total_size); in alloc_top_down_before_check()
147 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_top_down_before_check()
148 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_before_check()
192 ASSERT_EQ(rgn->size, total_size); in alloc_top_down_after_check()
193 ASSERT_EQ(rgn->base, r1.base - r2_size); in alloc_top_down_after_check()
195 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_top_down_after_check()
196 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_after_check()
242 ASSERT_EQ(rgn->size, r2.size + r3_size); in alloc_top_down_second_fit_check()
243 ASSERT_EQ(rgn->base, r2.base - r3_size); in alloc_top_down_second_fit_check()
245 ASSERT_EQ(memblock.reserved.cnt, 2); in alloc_top_down_second_fit_check()
246 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_second_fit_check()
296 ASSERT_EQ(rgn->size, total_size); in alloc_in_between_generic_check()
297 ASSERT_EQ(rgn->base, r1.base - r2.size - r3_size); in alloc_in_between_generic_check()
299 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_in_between_generic_check()
300 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_in_between_generic_check()
339 ASSERT_EQ(allocated_ptr, NULL); in alloc_small_gaps_generic_check()
362 ASSERT_EQ(allocated_ptr, NULL); in alloc_all_reserved_generic_check()
396 ASSERT_EQ(allocated_ptr, NULL); in alloc_no_space_generic_check()
432 ASSERT_EQ(rgn->size, MEM_SIZE); in alloc_limited_space_generic_check()
433 ASSERT_EQ(rgn->base, memblock_start_of_DRAM()); in alloc_limited_space_generic_check()
435 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_limited_space_generic_check()
436 ASSERT_EQ(memblock.reserved.total_size, MEM_SIZE); in alloc_limited_space_generic_check()
459 ASSERT_EQ(allocated_ptr, NULL); in alloc_no_memory_generic_check()
460 ASSERT_EQ(rgn->size, 0); in alloc_no_memory_generic_check()
461 ASSERT_EQ(rgn->base, 0); in alloc_no_memory_generic_check()
462 ASSERT_EQ(memblock.reserved.total_size, 0); in alloc_no_memory_generic_check()
492 ASSERT_EQ(allocated_ptr, NULL); in alloc_too_large_generic_check()
493 ASSERT_EQ(rgn->size, 0); in alloc_too_large_generic_check()
494 ASSERT_EQ(rgn->base, 0); in alloc_too_large_generic_check()
495 ASSERT_EQ(memblock.reserved.total_size, 0); in alloc_too_large_generic_check()
520 ASSERT_EQ(rgn->size, SZ_2); in alloc_bottom_up_simple_check()
521 ASSERT_EQ(rgn->base, memblock_start_of_DRAM()); in alloc_bottom_up_simple_check()
523 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_bottom_up_simple_check()
524 ASSERT_EQ(memblock.reserved.total_size, SZ_2); in alloc_bottom_up_simple_check()
576 ASSERT_EQ(rgn1->size, r1.size); in alloc_bottom_up_disjoint_check()
577 ASSERT_EQ(rgn1->base, r1.base); in alloc_bottom_up_disjoint_check()
579 ASSERT_EQ(rgn2->size, r2_size); in alloc_bottom_up_disjoint_check()
580 ASSERT_EQ(rgn2->base, expected_start); in alloc_bottom_up_disjoint_check()
582 ASSERT_EQ(memblock.reserved.cnt, 2); in alloc_bottom_up_disjoint_check()
583 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_bottom_up_disjoint_check()
618 ASSERT_EQ(rgn->size, total_size); in alloc_bottom_up_before_check()
619 ASSERT_EQ(rgn->base, memblock_start_of_DRAM()); in alloc_bottom_up_before_check()
621 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_bottom_up_before_check()
622 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_bottom_up_before_check()
665 ASSERT_EQ(rgn->size, total_size); in alloc_bottom_up_after_check()
666 ASSERT_EQ(rgn->base, r1.base); in alloc_bottom_up_after_check()
668 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_bottom_up_after_check()
669 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_bottom_up_after_check()
716 ASSERT_EQ(rgn->size, r2.size + r3_size); in alloc_bottom_up_second_fit_check()
717 ASSERT_EQ(rgn->base, r2.base); in alloc_bottom_up_second_fit_check()
719 ASSERT_EQ(memblock.reserved.cnt, 2); in alloc_bottom_up_second_fit_check()
720 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_bottom_up_second_fit_check()