Lines Matching refs:allocs
48 std::vector<AllocDataType> allocs; member
52 test_data->allocs.resize(test_data->allocs.size() + 1); in AllocPtr()
53 AllocDataType* alloc = &test_data->allocs.back(); in AllocPtr()
63 for (size_t i = 0; i < test_data->allocs.size(); i++) { in FreePtrs()
64 free(test_data->allocs[i].ptr); in FreePtrs()
79 for (size_t i = 0; i < test_data->allocs.size(); i++) { in SavePointers()
80 uintptr_t ptr = reinterpret_cast<uintptr_t>(test_data->allocs[i].ptr); in SavePointers()
82 test_data->allocs[i].count++; in SavePointers()
85 if (max_size > test_data->allocs[i].size) { in SavePointers()
86 test_data->allocs[i].size_reported = test_data->allocs[i].size; in SavePointers()
88 test_data->allocs[i].size_reported = max_size; in SavePointers()
116 for (size_t i = 0; i < test_data->allocs.size(); i++) { in VerifyPtrs()
117 EXPECT_EQ(1UL, test_data->allocs[i].count) << "Failed on size " << test_data->allocs[i].size; in VerifyPtrs()
118 if (test_data->allocs[i].count == 1) { in VerifyPtrs()
119 EXPECT_EQ(test_data->allocs[i].size, test_data->allocs[i].size_reported); in VerifyPtrs()