Lines Matching refs:map

55     MemMap map = MemMap::MapAnonymous("temp",  in GetValidMapAddress()  local
60 CHECK(map.IsValid()); in GetValidMapAddress()
61 return map.Begin(); in GetValidMapAddress()
327 MemMap map = MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F() local
332 ASSERT_FALSE(map.IsValid()) << error_msg; in TEST_F()
336 map = MemMap::MapAnonymous("MapAnonymousNonEmpty", in TEST_F()
341 ASSERT_TRUE(map.IsValid()) << error_msg; in TEST_F()
348 MemMap map = MemMap::MapAnonymous("MapAnonymousInvalid", in TEST_F() local
356 ASSERT_FALSE(map.IsValid()); in TEST_F()
363 MemMap map = MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F() local
368 ASSERT_FALSE(map.IsValid()) << error_msg; in TEST_F()
372 map = MemMap::MapAnonymous("MapAnonymousNonEmpty", in TEST_F()
377 ASSERT_TRUE(map.IsValid()) << error_msg; in TEST_F()
379 ASSERT_LT(reinterpret_cast<uintptr_t>(map.BaseBegin()), 1ULL << 32); in TEST_F()
388 MemMap map = MemMap::MapFile(/*byte_count=*/kMapSize, in TEST_F() local
396 ASSERT_TRUE(map.IsValid()) << error_msg; in TEST_F()
398 ASSERT_EQ(map.Size(), kMapSize); in TEST_F()
399 ASSERT_LT(reinterpret_cast<uintptr_t>(map.BaseBegin()), 1ULL << 32); in TEST_F()
472 MemMap map = MemMap::MapFile(/*byte_count=*/kMapSize, in TEST_F() local
480 ASSERT_TRUE(map.IsValid()) << error_msg; in TEST_F()
482 ASSERT_EQ(map.Size(), kMapSize); in TEST_F()
483 ASSERT_LT(reinterpret_cast<uintptr_t>(map.BaseBegin()), 1ULL << 32); in TEST_F()
484 ASSERT_EQ(data[0], *map.Begin()); in TEST_F()
485 ASSERT_EQ(data[kPageSize], *(map.Begin() + kPageSize)); in TEST_F()
486 ASSERT_EQ(data[2 * kPageSize], *(map.Begin() + 2 * kPageSize)); in TEST_F()
489 MemMap tail = map.RemapAtEnd(map.Begin() + offset, in TEST_F()
498 ASSERT_EQ(offset, map.Size()); in TEST_F()
500 ASSERT_EQ(tail.Begin(), map.Begin() + map.Size()); in TEST_F()
515 MemMap map; in TEST_F() local
517 map = MemMap::MapAnonymous("MapAnonymousExactAddr32bitHighAddr", in TEST_F()
525 if (map.IsValid()) { in TEST_F()
529 ASSERT_TRUE(map.IsValid()) << error_msg; in TEST_F()
530 ASSERT_GE(reinterpret_cast<uintptr_t>(map.End()), 2u * GB); in TEST_F()
532 ASSERT_EQ(map.BaseBegin(), reinterpret_cast<void*>(start_addr)); in TEST_F()
540 MemMap map = MemMap::MapAnonymous("MapAnonymousOverflow", in TEST_F() local
548 ASSERT_FALSE(map.IsValid()); in TEST_F()
556 MemMap map = in TEST_F() local
565 ASSERT_FALSE(map.IsValid()); in TEST_F()
572 MemMap map = MemMap::MapAnonymous("MapAnonymousLow4GBRangeTooHigh", in TEST_F() local
580 ASSERT_FALSE(map.IsValid()); in TEST_F()
588 MemMap map = MemMap::MapAnonymous("MapAnonymousReserve", in TEST_F() local
593 ASSERT_TRUE(map.IsValid()); in TEST_F()
596 /*addr=*/ reinterpret_cast<uint8_t*>(map.BaseBegin()), in TEST_F()