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

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: 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 1a57724e2196550ae840bbc89bb4cd114f547c4a..11e396d84e7e24746139efb7de8abfacfcccdc48 100644
--- a/chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc
+++ b/chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc
@@ -397,7 +397,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,
@@ -405,6 +405,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