Home | History | Annotate | Download | only in tests

Lines Matching defs:array

78   uint32_t* array = reinterpret_cast<uint32_t*>(allocator.alloc(512));
90 memcpy(array, model, array_size);
92 uint32_t* reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 1024));
95 ASSERT_TRUE(reallocated_ptr != array);
99 array = reallocated_ptr;
101 memcpy(array, model, 2*array_size);
103 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 62));
105 ASSERT_TRUE(reallocated_ptr == array);
107 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 4000));
110 ASSERT_TRUE(reallocated_ptr != array);
115 array = reallocated_ptr;
117 memcpy(array, model, 4000);
119 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 64000));
122 ASSERT_TRUE(reallocated_ptr != array);