Home
last modified time | relevance | path

Searched refs:TakeRange (Results 1 – 2 of 2) sorted by relevance

/device/google/cuttlefish/common/libs/utils/
Dunique_resource_allocator_test.cpp140 TEST_F(CvdIdAllocatorTest, TakeRange) { in TEST_F() argument
147 auto take_range_5_12 = allocator->TakeRange(5, 12); in TEST_F()
149 auto take_range_2_4 = allocator->TakeRange(2, 4); in TEST_F()
163 auto take_range_5_12 = allocator->TakeRange(5, 12); in TEST_F()
170 ASSERT_FALSE(allocator->TakeRange(5, 12)); in TEST_F()
174 ASSERT_TRUE(allocator->TakeRange(5, 12)); in TEST_F()
184 auto hold_6_to_10 = allocator->TakeRange(6, 11); in TEST()
Dunique_resource_allocator.h221 TakeRange(const T& start_inclusive, const T& end_exclusive) { in TakeRange() function