Home
last modified time | relevance | path

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

/system/core/libutils/
DUnicode_test.cpp131 void* memptr; in TEST_F() local
134 ASSERT_EQ(posix_memalign(&memptr, alignment, size), 0); in TEST_F()
136 memset(memptr, 'A', size); in TEST_F()
138 char16_t* const emptyString = (char16_t* const)((char*)memptr + alignment - 4); in TEST_F()
141 ASSERT_EQ(mprotect((char*)memptr + alignment, alignment, PROT_NONE), 0); in TEST_F()
143 ASSERT_EQ(strstr16((char16_t*)memptr, emptyString), (char16_t*)memptr) in TEST_F()
146 ASSERT_EQ(mprotect((char*)memptr + alignment, alignment, PROT_READ | PROT_WRITE), 0); in TEST_F()
148 free(memptr); in TEST_F()