Home
last modified time | relevance | path

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

/bionic/tests/
Dbionic_allocator_test.cpp92 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()
[all …]