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

Unified Diff: chrome/browser/google_apis/drive_api_operations_unittest.cc

Issue 13927002: Add callback for upload progress in Drive service and operation layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « chrome/browser/google_apis/drive_api_operations.cc ('k') | chrome/browser/google_apis/drive_api_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/drive_api_operations_unittest.cc
diff --git a/chrome/browser/google_apis/drive_api_operations_unittest.cc b/chrome/browser/google_apis/drive_api_operations_unittest.cc
index 36c2c8984d1c7836df8b43c572c3da1e9786773a..5b8adfd1e19f19a917f34163b4b0d37b7fab7306 100644
--- a/chrome/browser/google_apis/drive_api_operations_unittest.cc
+++ b/chrome/browser/google_apis/drive_api_operations_unittest.cc
@@ -621,7 +621,8 @@ TEST_F(DriveApiOperationsTest, UploadNewFileOperation) {
buffer,
CreateComposedCallback(
base::Bind(&test_util::RunAndQuit),
- test_util::CreateCopyResultCallback(&response, &new_entry)));
+ test_util::CreateCopyResultCallback(&response, &new_entry)),
+ ProgressCallback());
resume_operation->Start(
kTestDriveApiAuthToken, kTestUserAgent,
base::Bind(&test_util::DoNothingForReAuthenticateCallback));
@@ -713,7 +714,8 @@ TEST_F(DriveApiOperationsTest, UploadNewEmptyFileOperation) {
buffer,
CreateComposedCallback(
base::Bind(&test_util::RunAndQuit),
- test_util::CreateCopyResultCallback(&response, &new_entry)));
+ test_util::CreateCopyResultCallback(&response, &new_entry)),
+ ProgressCallback());
resume_operation->Start(
kTestDriveApiAuthToken, kTestUserAgent,
base::Bind(&test_util::DoNothingForReAuthenticateCallback));
@@ -810,7 +812,8 @@ TEST_F(DriveApiOperationsTest, UploadNewLargeFileOperation) {
buffer,
CreateComposedCallback(
base::Bind(&test_util::RunAndQuit),
- test_util::CreateCopyResultCallback(&response, &new_entry)));
+ test_util::CreateCopyResultCallback(&response, &new_entry)),
+ ProgressCallback());
resume_operation->Start(
kTestDriveApiAuthToken, kTestUserAgent,
base::Bind(&test_util::DoNothingForReAuthenticateCallback));
@@ -908,7 +911,8 @@ TEST_F(DriveApiOperationsTest, UploadExistingFileOperation) {
buffer,
CreateComposedCallback(
base::Bind(&test_util::RunAndQuit),
- test_util::CreateCopyResultCallback(&response, &new_entry)));
+ test_util::CreateCopyResultCallback(&response, &new_entry)),
+ ProgressCallback());
resume_operation->Start(
kTestDriveApiAuthToken, kTestUserAgent,
base::Bind(&test_util::DoNothingForReAuthenticateCallback));
@@ -995,7 +999,8 @@ TEST_F(DriveApiOperationsTest, UploadExistingFileOperationWithETag) {
buffer,
CreateComposedCallback(
base::Bind(&test_util::RunAndQuit),
- test_util::CreateCopyResultCallback(&response, &new_entry)));
+ test_util::CreateCopyResultCallback(&response, &new_entry)),
+ ProgressCallback());
resume_operation->Start(
kTestDriveApiAuthToken, kTestUserAgent,
base::Bind(&test_util::DoNothingForReAuthenticateCallback));
« no previous file with comments | « chrome/browser/google_apis/drive_api_operations.cc ('k') | chrome/browser/google_apis/drive_api_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698