summaryrefslogtreecommitdiffstats
path: root/chrome/browser/google_apis/test_util.cc
diff options
context:
space:
mode:
authorkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-12 09:50:53 +0000
committerkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-12 09:50:53 +0000
commita14950ec027ce6c3c381c53d8e4f7d98a10f2341 (patch)
tree346970e36202e64ba77dd85a5546d4f628f86b2e /chrome/browser/google_apis/test_util.cc
parentbe41344db6626fd628f6c3174ab92967357566a4 (diff)
downloadchromium_src-a14950ec027ce6c3c381c53d8e4f7d98a10f2341.zip
chromium_src-a14950ec027ce6c3c381c53d8e4f7d98a10f2341.tar.gz
chromium_src-a14950ec027ce6c3c381c53d8e4f7d98a10f2341.tar.bz2
Add ProgressCallback to DriveServiceInterface::DownloadFile.
This is a preparation for moving the progress report creation task from OperationRegistry to DriveScheduler. For that purpose we need to wire the progress information to upper layer. BUG=128079 Review URL: https://chromiumcodereview.appspot.com/14215003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193895 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/google_apis/test_util.cc')
-rw-r--r--chrome/browser/google_apis/test_util.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/google_apis/test_util.cc b/chrome/browser/google_apis/test_util.cc
index e2f37ac..27d3957 100644
--- a/chrome/browser/google_apis/test_util.cc
+++ b/chrome/browser/google_apis/test_util.cc
@@ -196,5 +196,11 @@ bool ParseContentRangeHeader(const std::string& value,
base::StringToInt64(parts[1], end_position));
}
+void AppendProgressCallbackResult(std::vector<ProgressInfo>* progress_values,
+ int64 progress,
+ int64 total) {
+ progress_values->push_back(ProgressInfo(progress, total));
+}
+
} // namespace test_util
} // namespace google_apis