Home | History | Annotate | Download | only in drive

Lines Matching refs:cache_

111     cache_.reset(new FileCache(metadata_storage_.get(),
115 ASSERT_TRUE(cache_->Initialize());
123 cache_.get(),
158 EXPECT_EQ(FILE_ERROR_OK, cache_->Pin(resource_ids_["foo"]));
161 EXPECT_EQ(FILE_ERROR_OK, cache_->Pin(resource_ids_["bar"]));
164 EXPECT_EQ(FILE_ERROR_OK, cache_->Pin(resource_ids_["baz"]));
170 cache_->Store(resource_ids_["fetched"], md5_fetched,
172 EXPECT_EQ(FILE_ERROR_OK, cache_->Pin(resource_ids_["fetched"]));
178 cache_->Store(resource_ids_["dirty"], md5_dirty,
180 EXPECT_EQ(FILE_ERROR_OK, cache_->Pin(resource_ids_["dirty"]));
181 EXPECT_EQ(FILE_ERROR_OK, cache_->MarkDirty(resource_ids_["dirty"]));
208 scoped_ptr<FileCache, test_util::DestroyHelperForTests> cache_;
220 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["foo"], &cache_entry));
223 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["bar"], &cache_entry));
226 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["baz"], &cache_entry));
230 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["dirty"], &cache_entry));
239 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["foo"], &cache_entry));
251 EXPECT_FALSE(cache_->GetCacheEntry(resource_ids_["foo"], &cache_entry));
265 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["foo"], &cache_entry));
268 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["bar"], &cache_entry));
271 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["baz"], &cache_entry));
286 EXPECT_EQ(FILE_ERROR_OK, cache_->GetFile(resource_ids_["fetched"],
292 EXPECT_EQ(FILE_ERROR_OK, cache_->GetFile(resource_ids_["dirty"],
319 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["foo"], &cache_entry));
321 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["dirty"], &cache_entry));
331 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["foo"], &cache_entry));
333 EXPECT_TRUE(cache_->GetCacheEntry(resource_ids_["dirty"], &cache_entry));