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

Unified Diff: chrome/browser/media_galleries/fileapi/native_media_file_util_unittest.cc

Issue 24030002: Adds callbacks to notify progress into Copy's API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/media_galleries/fileapi/native_media_file_util_unittest.cc
diff --git a/chrome/browser/media_galleries/fileapi/native_media_file_util_unittest.cc b/chrome/browser/media_galleries/fileapi/native_media_file_util_unittest.cc
index 4eb0d1866aef84c893a803bb27ead9b91bd1e3f9..a71fac48b99b5343f4870fc97b03e97f39958a9a 100644
--- a/chrome/browser/media_galleries/fileapi/native_media_file_util_unittest.cc
+++ b/chrome/browser/media_galleries/fileapi/native_media_file_util_unittest.cc
@@ -305,7 +305,9 @@ TEST_F(NativeMediaFileUtilTest, CopySourceFiltering) {
expectation = base::PLATFORM_FILE_ERROR_INVALID_OPERATION;
}
operation_runner()->Copy(
- url, dest_url, base::Bind(&ExpectEqHelper, test_name, expectation));
+ url, dest_url,
+ fileapi::FileSystemOperationRunner::CopyProgressCallback(),
+ base::Bind(&ExpectEqHelper, test_name, expectation));
base::MessageLoop::current()->RunUntilIdle();
}
}
@@ -367,7 +369,9 @@ TEST_F(NativeMediaFileUtilTest, CopyDestFiltering) {
}
}
operation_runner()->Copy(
- src_url, url, base::Bind(&ExpectEqHelper, test_name, expectation));
+ src_url, url,
+ fileapi::FileSystemOperationRunner::CopyProgressCallback(),
+ base::Bind(&ExpectEqHelper, test_name, expectation));
base::MessageLoop::current()->RunUntilIdle();
}
}

Powered by Google App Engine
This is Rietveld 408576698