Lines Matching refs:dest

172   MemMap dest = MemMap::MapAnonymous("MapAnonymousEmpty-atomic-replace-dest",  in TEST_F()  local
177 ASSERT_TRUE(dest.IsValid()); in TEST_F()
185 void* dest_addr = dest.Begin(); in TEST_F()
192 ASSERT_TRUE(dest.ReplaceWith(&source, &error_msg)) << error_msg; in TEST_F()
198 ASSERT_EQ(dest.Size(), static_cast<size_t>(page_size)); in TEST_F()
200 ASSERT_EQ(memcmp(dest.Begin(), data.data(), dest.Size()), 0); in TEST_F()
206 MemMap dest = MemMap::MapAnonymous("MapAnonymousEmpty-atomic-replace-dest", in TEST_F() local
215 ASSERT_TRUE(dest.IsValid()); in TEST_F()
223 uint8_t* dest_addr = dest.Begin(); in TEST_F()
231 dest.SetSize(page_size); in TEST_F()
235 ASSERT_EQ(dest.Size(), static_cast<size_t>(page_size)); in TEST_F()
237 ASSERT_TRUE(dest.ReplaceWith(&source, &error_msg)) << error_msg; in TEST_F()
240 ASSERT_EQ(dest.Size(), static_cast<size_t>(3 * page_size)); in TEST_F()
245 ASSERT_EQ(memcmp(dest.Begin(), data.data(), dest.Size()), 0); in TEST_F()
251 MemMap dest = MemMap::MapAnonymous("MapAnonymousEmpty-atomic-replace-dest", in TEST_F() local
256 ASSERT_TRUE(dest.IsValid()); in TEST_F()
264 uint8_t* dest_addr = dest.Begin(); in TEST_F()
268 ASSERT_EQ(dest.Size(), static_cast<size_t>(3 * page_size)); in TEST_F()
273 ASSERT_TRUE(dest.ReplaceWith(&source, &error_msg)) << error_msg; in TEST_F()
276 ASSERT_EQ(dest.Size(), static_cast<size_t>(page_size)); in TEST_F()
281 ASSERT_EQ(memcmp(dest.Begin(), data.data(), dest.Size()), 0); in TEST_F()
287 MemMap dest = in TEST_F() local
295 ASSERT_TRUE(dest.IsValid()); in TEST_F()
297 dest.SetSize(page_size); in TEST_F()
300 dest.Begin() + page_size, in TEST_F()
308 ASSERT_EQ(dest.Begin() + page_size, source.Begin()); in TEST_F()
310 uint8_t* dest_addr = dest.Begin(); in TEST_F()
317 memcpy(dest.Begin(), dest_data.data(), dest_data.size()); in TEST_F()
320 ASSERT_EQ(dest.Size(), static_cast<size_t>(page_size)); in TEST_F()
322 ASSERT_FALSE(dest.ReplaceWith(&source, &error_msg)) << error_msg; in TEST_F()
327 ASSERT_EQ(dest.Size(), dest_data.size()); in TEST_F()
330 ASSERT_EQ(memcmp(dest.Begin(), dest_data.data(), dest_data.size()), 0); in TEST_F()