Searched refs:IsAllocAllowed (Results 1 – 4 of 4) sorted by relevance
2057 EXPECT_TRUE(cache_impl_->IsAllocAllowed(0, kOneMB)); in TEST_F()2060 EXPECT_TRUE(cache_impl_->IsAllocAllowed(0, kOneMB)); in TEST_F()2063 EXPECT_TRUE(cache_impl_->IsAllocAllowed(0, kOneMB)); in TEST_F()2070 EXPECT_FALSE(cache_impl_->IsAllocAllowed(0, 30 * kOneMB)); in TEST_F()2073 cache_impl_->IsAllocAllowed(0, kOneMB); // Ignore the result. in TEST_F()2075 EXPECT_FALSE(cache_impl_->IsAllocAllowed(0, kOneMB)); in TEST_F()
159 bool IsAllocAllowed(int current_size, int new_size);
282 grow_allowed_ = backend_->IsAllocAllowed(current_size, required); in GrowBuffer()
1001 bool BackendImpl::IsAllocAllowed(int current_size, int new_size) { in IsAllocAllowed() function in disk_cache::BackendImpl