Android-cuttlefish cvd tool
Classes | Namespaces | Functions
unique_resource_allocator_test.cpp File Reference
#include <unordered_set>
#include <vector>
#include <gtest/gtest.h>
#include "cuttlefish/common/libs/utils/contains.h"
#include "cuttlefish/common/libs/utils/unique_resource_allocator.h"
Include dependency graph for unique_resource_allocator_test.cpp:

Classes

class  cuttlefish::OneEachTest
 
class  cuttlefish::CvdIdAllocatorTest
 

Namespaces

namespace  cuttlefish
 

Functions

 cuttlefish::TEST_P (OneEachTest, GetAnyAvailableOne)
 
 cuttlefish::INSTANTIATE_TEST_SUITE_P (CvdIdAllocator, OneEachTest, testing::Values(std::vector< unsigned >{}, std::vector< unsigned >{1}, std::vector< unsigned >{1, 22, 3, 43, 5}))
 
 cuttlefish::TEST_F (CvdIdAllocatorTest, ClaimAll)
 
 cuttlefish::TEST_F (CvdIdAllocatorTest, StrideBeyond)
 
 cuttlefish::TEST_F (CvdIdAllocatorTest, Consecutive)
 
 cuttlefish::TEST_F (CvdIdAllocatorTest, Take)
 
 cuttlefish::TEST_F (CvdIdAllocatorTest, TakeAll)
 
 cuttlefish::TEST_F (CvdIdAllocatorTest, TakeRange)
 
 cuttlefish::TEST_F (CvdIdAllocatorTest, Reclaim)
 
 cuttlefish::TEST (CvdIdAllocatorExpandTest, Expand)