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

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

Issue 12500008: Eliminate CopyResultsFromDownloadActionCallback(AndQuit). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 9 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/google_apis/fake_drive_service_unittest.cc
diff --git a/chrome/browser/google_apis/fake_drive_service_unittest.cc b/chrome/browser/google_apis/fake_drive_service_unittest.cc
index 372c99083feb466640fcf4f4aa599de6e61c5c24..9a12a227f70f2e80a063c00fa55354dec9cfb67f 100644
--- a/chrome/browser/google_apis/fake_drive_service_unittest.cc
+++ b/chrome/browser/google_apis/fake_drive_service_unittest.cc
@@ -585,9 +585,7 @@ TEST_F(FakeDriveServiceTest, DownloadFile_ExistingFile) {
base::FilePath::FromUTF8Unsafe("/drive/whatever.txt"), // virtual path
kOutputFilePath,
kContentUrl,
- base::Bind(&test_util::CopyResultsFromDownloadActionCallback,
- &error,
- &output_file_path),
+ test_util::CreateCopyResultCallback(&error, &output_file_path),
GetContentCallback());
message_loop_.RunUntilIdle();
@@ -615,9 +613,7 @@ TEST_F(FakeDriveServiceTest, DownloadFile_NonexistingFile) {
base::FilePath::FromUTF8Unsafe("/drive/whatever.txt"), // virtual path
kOutputFilePath,
kContentUrl,
- base::Bind(&test_util::CopyResultsFromDownloadActionCallback,
- &error,
- &output_file_path),
+ test_util::CreateCopyResultCallback(&error, &output_file_path),
GetContentCallback());
message_loop_.RunUntilIdle();
@@ -641,9 +637,7 @@ TEST_F(FakeDriveServiceTest, DownloadFile_Offline) {
base::FilePath::FromUTF8Unsafe("/drive/whatever.txt"), // virtual path
kOutputFilePath,
kContentUrl,
- base::Bind(&test_util::CopyResultsFromDownloadActionCallback,
- &error,
- &output_file_path),
+ test_util::CreateCopyResultCallback(&error, &output_file_path),
GetContentCallback());
message_loop_.RunUntilIdle();
« no previous file with comments | « chrome/browser/google_apis/base_operations_server_unittest.cc ('k') | chrome/browser/google_apis/test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698