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

Unified Diff: chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc

Issue 16628003: drive: Remove FileCacheObserver::OnCacheCommitted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix PinAndUnpin Created 7 years, 6 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/file_system/download_operation_unittest.cc
diff --git a/chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc b/chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc
index 8f6e714861a7b952bdf5c712d6db682091d51f60..5148dfc3b64b4aeafb61064587d07138a12cab76 100644
--- a/chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc
+++ b/chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc
@@ -403,7 +403,7 @@ TEST_F(DownloadOperationTest, EnsureFileDownloadedByPath_DirtyCache) {
// Store the file as a cache, marking it to be dirty.
FileError error = FILE_ERROR_FAILED;
- cache()->StoreLocallyModifiedOnUIThread(
+ cache()->StoreOnUIThread(
src_entry.resource_id(),
src_entry.file_specific_info().md5(),
dirty_file,
@@ -411,6 +411,12 @@ TEST_F(DownloadOperationTest, EnsureFileDownloadedByPath_DirtyCache) {
google_apis::test_util::CreateCopyResultCallback(&error));
google_apis::test_util::RunBlockingPoolTask();
EXPECT_EQ(FILE_ERROR_OK, error);
+ cache()->MarkDirtyOnUIThread(
+ src_entry.resource_id(),
+ src_entry.file_specific_info().md5(),
+ google_apis::test_util::CreateCopyResultCallback(&error));
+ google_apis::test_util::RunBlockingPoolTask();
+ EXPECT_EQ(FILE_ERROR_OK, error);
// Record values passed to GetFileContentInitializedCallback().
FileError init_error;

Powered by Google App Engine
This is Rietveld 408576698