Lines Matching refs:reservation

196   MemMap reservation = MemMap::MapAnonymous("reserve",  in TEST_F()  local
201 ASSERT_TRUE(reservation.IsValid()) << "Failed to allocate memory region " << error_str; in TEST_F()
202 MemMap image_reservation = reservation.TakeReservedMemory(kImageSize); in TEST_F()
204 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
209 &reservation)); in TEST_F()
212 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
259 MemMap reservation = MemMap::MapAnonymous("reserve", in TEST_F() local
264 ASSERT_TRUE(reservation.IsValid()) << "Failed to allocate memory region " << error_str; in TEST_F()
265 MemMap image_reservation = reservation.TakeReservedMemory(kImage1Size + kImage2Size); in TEST_F()
267 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
272 &reservation)); in TEST_F()
275 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
280 &reservation)); in TEST_F()
283 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
286 image_reservation = reservation.TakeReservedMemory(kImage3Size); in TEST_F()
288 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
292 &reservation)); in TEST_F()
295 ASSERT_FALSE(reservation.IsValid()); in TEST_F()
333 reservation = MemMap::MapAnonymous("reserve", in TEST_F()
338 ASSERT_TRUE(reservation.IsValid()) << "Failed to allocate memory region " << error_str; in TEST_F()
339 MemMap guard = reservation.TakeReservedMemory(kGuardSize); in TEST_F()
341 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
343 image_reservation = reservation.TakeReservedMemory(kImage4Size); in TEST_F()
345 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
349 &reservation)); in TEST_F()
352 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
353 ASSERT_EQ(reservation.Size(), kGuardSize); in TEST_F()
354 reservation.Reset(); // Release the guard memory. in TEST_F()
372 reservation = MemMap::MapAnonymous("reserve", in TEST_F()
377 ASSERT_TRUE(reservation.IsValid()) << "Failed to allocate memory region " << error_str; in TEST_F()
378 guard = reservation.TakeReservedMemory(kGuardSize); in TEST_F()
380 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
382 image_reservation = reservation.TakeReservedMemory(kImage5Size); in TEST_F()
384 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
388 &reservation)); in TEST_F()
391 ASSERT_TRUE(reservation.IsValid()); in TEST_F()
392 ASSERT_EQ(reservation.Size(), kGuardSize); in TEST_F()
393 reservation.Reset(); // Release the guard memory. in TEST_F()