Lines Matching refs:buf
53 char buf[kPageSize]; in TEST() local
56 memset(buf, 0xCC, sizeof(buf)); 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()
61 memset(buf, 0xCC, sizeof(buf)); 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()
66 memset(buf, 0xCC, sizeof(buf)); in TEST()
67 EXPECT_EQ(0, SafeCopy(buf, page2 + kPageSize - 1, kPageSize)); in TEST()
70 memset(buf, 0xCC, sizeof(buf)); in TEST()
71 EXPECT_EQ(static_cast<ssize_t>(kPageSize), SafeCopy(buf, page3, kPageSize * 2)); in TEST()
72 EXPECT_EQ(0, memcmp(buf, page3, kPageSize)); in TEST()
75 EXPECT_EQ(0, SafeCopy(buf, page1 + kPageSize, kPageSize)); in TEST()