Home
last modified time | relevance | path

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

/art/libartbase/base/
Dsafe_copy_test.cc40 char* page1 = static_cast<char*>(map); in TEST() local
41 char* page2 = page1 + kPageSize; in TEST()
44 ASSERT_EQ(0, mprotect(page1 + kPageSize, kPageSize, PROT_NONE)); in TEST()
47 page1[0] = 'a'; in TEST()
48 page1[kPageSize - 1] = 'z'; in TEST()
57 EXPECT_EQ(static_cast<ssize_t>(kPageSize), SafeCopy(buf, page1, kPageSize)) << strerror(errno); in TEST()
58 EXPECT_EQ(0, memcmp(buf, page1, kPageSize)); in TEST()
62 EXPECT_EQ(static_cast<ssize_t>(kPageSize - 1), SafeCopy(buf, page1 + 1, kPageSize)); in TEST()
63 EXPECT_EQ(0, memcmp(buf, page1 + 1, kPageSize - 1)); in TEST()
75 EXPECT_EQ(0, SafeCopy(buf, page1 + kPageSize, kPageSize)); in TEST()