Home | History | Annotate | Download | only in drive

Lines Matching refs:cache_

35     cache_.reset(new FileCache(metadata_storage_.get(),
44 ASSERT_TRUE(cache_->Initialize());
53 scoped_ptr<FileCache, test_util::DestroyHelperForTests> cache_;
68 cache_->Store(resource_id, md5, dummy_file,
73 EXPECT_TRUE(cache_->GetCacheEntry(resource_id, &cache_entry));
80 RemoveStaleCacheFiles(cache_.get(), resource_metadata_.get());
83 EXPECT_FALSE(cache_->GetCacheEntry(resource_id, &cache_entry));
95 cache_->Store(resource_id_1, md5_1, dummy_file,
97 EXPECT_EQ(FILE_ERROR_OK, cache_->MarkDirty(resource_id_1));
104 cache_->Store(resource_id_2, md5_2_cache, dummy_file,
106 EXPECT_EQ(FILE_ERROR_OK, cache_->MarkDirty(resource_id_2));
115 RemoveStaleCacheFiles(cache_.get(), resource_metadata_.get());
120 EXPECT_FALSE(cache_->GetCacheEntry(resource_id_1, &cache_entry));
121 EXPECT_TRUE(cache_->GetCacheEntry(resource_id_2, &cache_entry));