Lines Matching refs:reallocated_ptr
92 uint32_t* reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 1024)); in TEST() local
94 ASSERT_TRUE(reallocated_ptr != nullptr); in TEST()
95 ASSERT_TRUE(reallocated_ptr != array); in TEST()
97 ASSERT_TRUE(memcmp(reallocated_ptr, model, array_size) == 0); in TEST()
99 array = reallocated_ptr; in TEST()
103 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 62)); in TEST()
105 ASSERT_TRUE(reallocated_ptr == array); in TEST()
107 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 4000)); in TEST()
109 ASSERT_TRUE(reallocated_ptr != nullptr); in TEST()
110 ASSERT_TRUE(reallocated_ptr != array); in TEST()
111 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(reallocated_ptr) % 16); in TEST()
113 ASSERT_TRUE(memcmp(reallocated_ptr, model, array_size * 2) == 0); in TEST()
115 array = reallocated_ptr; in TEST()
119 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 64000)); in TEST()
121 ASSERT_TRUE(reallocated_ptr != nullptr); in TEST()
122 ASSERT_TRUE(reallocated_ptr != array); in TEST()
123 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(reallocated_ptr) % 16); in TEST()
125 ASSERT_TRUE(memcmp(reallocated_ptr, model, 4000) == 0); in TEST()
127 ASSERT_EQ(nullptr, allocator.realloc(reallocated_ptr, 0)); in TEST()