Searched refs:UseIfExists (Results 1 – 5 of 5) sorted by relevance
275 TEST_F(SimpleIndexTest, UseIfExists) { in TEST_F() argument284 EXPECT_TRUE(index()->UseIfExists(kHash1)); in TEST_F()287 EXPECT_TRUE(index()->UseIfExists(kHash1)); in TEST_F()292 EXPECT_TRUE(index()->UseIfExists(kHash1)); in TEST_F()296 EXPECT_TRUE(index()->UseIfExists(kHash1)); in TEST_F()301 EXPECT_FALSE(index()->UseIfExists(kHash1)); in TEST_F()304 EXPECT_TRUE(index()->UseIfExists(kHash1)); in TEST_F()309 EXPECT_TRUE(index()->UseIfExists(kHash1)); in TEST_F()313 EXPECT_FALSE(index()->UseIfExists(kHash1)); in TEST_F()565 index()->UseIfExists(kHash1); in TEST_F()
100 bool UseIfExists(uint64 entry_hash);
275 bool SimpleIndex::UseIfExists(uint64 entry_hash) { in UseIfExists() function in disk_cache::SimpleIndex
860 backend_->index()->UseIfExists(entry_hash_); in ReadDataInternal()943 backend_->index()->UseIfExists(entry_hash_); in WriteDataInternal()
553 index_->UseIfExists(simple_util::GetEntryHashKey(key)); in OnExternalCacheHit()