Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: chrome/browser/chromeos/drive/stale_cache_files_remover_unittest.cc

Issue 15060002: drive: Rename FileCache methods in a blocking pool centric manner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove virtual Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/drive/stale_cache_files_remover_unittest.cc
diff --git a/chrome/browser/chromeos/drive/stale_cache_files_remover_unittest.cc b/chrome/browser/chromeos/drive/stale_cache_files_remover_unittest.cc
index 43eee4fdcdf804f44aacdeeed9bc79ad9256ca0b..3d42c507f9ffbacd6581330c2e1a611a8a525f92 100644
--- a/chrome/browser/chromeos/drive/stale_cache_files_remover_unittest.cc
+++ b/chrome/browser/chromeos/drive/stale_cache_files_remover_unittest.cc
@@ -121,18 +121,19 @@ TEST_F(StaleCacheFilesRemoverTest, RemoveStaleCacheFiles) {
// Create a stale cache file.
FileError error = FILE_ERROR_OK;
- cache_->Store(resource_id, md5, dummy_file,
- internal::FileCache::FILE_OPERATION_COPY,
- google_apis::test_util::CreateCopyResultCallback(&error));
+ cache_->StoreOnUIThread(
+ resource_id, md5, dummy_file,
+ internal::FileCache::FILE_OPERATION_COPY,
+ google_apis::test_util::CreateCopyResultCallback(&error));
google_apis::test_util::RunBlockingPoolTask();
EXPECT_EQ(FILE_ERROR_OK, error);
// Verify that the cache entry exists.
bool success = false;
FileCacheEntry cache_entry;
- cache_->GetCacheEntry(resource_id, md5,
- google_apis::test_util::CreateCopyResultCallback(
- &success, &cache_entry));
+ cache_->GetCacheEntryOnUIThread(
+ resource_id, md5,
+ google_apis::test_util::CreateCopyResultCallback(&success, &cache_entry));
google_apis::test_util::RunBlockingPoolTask();
EXPECT_TRUE(success);
@@ -153,9 +154,9 @@ TEST_F(StaleCacheFilesRemoverTest, RemoveStaleCacheFiles) {
google_apis::test_util::RunBlockingPoolTask();
// Verify that the cache entry is deleted.
- cache_->GetCacheEntry(resource_id, md5,
- google_apis::test_util::CreateCopyResultCallback(
- &success, &cache_entry));
+ cache_->GetCacheEntryOnUIThread(
+ resource_id, md5,
+ google_apis::test_util::CreateCopyResultCallback(&success, &cache_entry));
google_apis::test_util::RunBlockingPoolTask();
EXPECT_FALSE(success);
}
« no previous file with comments | « chrome/browser/chromeos/drive/stale_cache_files_remover.cc ('k') | chrome/browser/chromeos/drive/sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698