Lines Matching refs:dest

165   MemMap dest = MemMap::MapAnonymous("MapAnonymousEmpty-atomic-replace-dest",  in TEST_F()  local
170 ASSERT_TRUE(dest.IsValid()); in TEST_F()
178 void* dest_addr = dest.Begin(); in TEST_F()
185 ASSERT_TRUE(dest.ReplaceWith(&source, &error_msg)) << error_msg; in TEST_F()
191 ASSERT_EQ(dest.Size(), static_cast<size_t>(kPageSize)); in TEST_F()
193 ASSERT_EQ(memcmp(dest.Begin(), data.data(), dest.Size()), 0); in TEST_F()
198 MemMap dest = MemMap::MapAnonymous("MapAnonymousEmpty-atomic-replace-dest", in TEST_F() local
207 ASSERT_TRUE(dest.IsValid()); in TEST_F()
215 uint8_t* dest_addr = dest.Begin(); in TEST_F()
223 dest.SetSize(kPageSize); in TEST_F()
227 ASSERT_EQ(dest.Size(), static_cast<size_t>(kPageSize)); in TEST_F()
229 ASSERT_TRUE(dest.ReplaceWith(&source, &error_msg)) << error_msg; in TEST_F()
232 ASSERT_EQ(dest.Size(), static_cast<size_t>(3 * kPageSize)); in TEST_F()
237 ASSERT_EQ(memcmp(dest.Begin(), data.data(), dest.Size()), 0); in TEST_F()
242 MemMap dest = MemMap::MapAnonymous("MapAnonymousEmpty-atomic-replace-dest", in TEST_F() local
247 ASSERT_TRUE(dest.IsValid()); in TEST_F()
255 uint8_t* dest_addr = dest.Begin(); in TEST_F()
259 ASSERT_EQ(dest.Size(), static_cast<size_t>(3 * kPageSize)); in TEST_F()
264 ASSERT_TRUE(dest.ReplaceWith(&source, &error_msg)) << error_msg; in TEST_F()
267 ASSERT_EQ(dest.Size(), static_cast<size_t>(kPageSize)); in TEST_F()
272 ASSERT_EQ(memcmp(dest.Begin(), data.data(), dest.Size()), 0); in TEST_F()
277 MemMap dest = in TEST_F() local
285 ASSERT_TRUE(dest.IsValid()); in TEST_F()
287 dest.SetSize(kPageSize); in TEST_F()
290 dest.Begin() + kPageSize, in TEST_F()
298 ASSERT_EQ(dest.Begin() + kPageSize, source.Begin()); in TEST_F()
300 uint8_t* dest_addr = dest.Begin(); in TEST_F()
307 memcpy(dest.Begin(), dest_data.data(), dest_data.size()); in TEST_F()
310 ASSERT_EQ(dest.Size(), static_cast<size_t>(kPageSize)); in TEST_F()
312 ASSERT_FALSE(dest.ReplaceWith(&source, &error_msg)) << error_msg; in TEST_F()
317 ASSERT_EQ(dest.Size(), dest_data.size()); in TEST_F()
320 ASSERT_EQ(memcmp(dest.Begin(), dest_data.data(), dest_data.size()), 0); in TEST_F()