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

Unified Diff: chrome/browser/chromeos/drive/drive_scheduler_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
« no previous file with comments | « no previous file | chrome/browser/google_apis/base_operations_server_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/drive_scheduler_unittest.cc
diff --git a/chrome/browser/chromeos/drive/drive_scheduler_unittest.cc b/chrome/browser/chromeos/drive/drive_scheduler_unittest.cc
index b4cfc0dc73924df6c1f7bc30931bd14144c31229..c3f571a07b3134a386ba9ea555273fbb638b9526 100644
--- a/chrome/browser/chromeos/drive/drive_scheduler_unittest.cc
+++ b/chrome/browser/chromeos/drive/drive_scheduler_unittest.cc
@@ -405,9 +405,8 @@ TEST_F(DriveSchedulerTest, DownloadFileCellularDisabled) {
kOutputFilePath,
kContentUrl,
DriveClientContext(BACKGROUND),
- base::Bind(&google_apis::test_util::CopyResultsFromDownloadActionCallback,
- &download_error,
- &output_file_path),
+ google_apis::test_util::CreateCopyResultCallback(
+ &download_error, &output_file_path),
google_apis::GetContentCallback());
// Metadata should still work
google_apis::GDataErrorCode metadata_error = google_apis::GDATA_OTHER_ERROR;
@@ -460,9 +459,8 @@ TEST_F(DriveSchedulerTest, DownloadFileWimaxDisabled) {
kOutputFilePath,
kContentUrl,
DriveClientContext(BACKGROUND),
- base::Bind(&google_apis::test_util::CopyResultsFromDownloadActionCallback,
- &download_error,
- &output_file_path),
+ google_apis::test_util::CreateCopyResultCallback(
+ &download_error, &output_file_path),
google_apis::GetContentCallback());
// Metadata should still work
google_apis::GDataErrorCode metadata_error = google_apis::GDATA_OTHER_ERROR;
@@ -515,9 +513,8 @@ TEST_F(DriveSchedulerTest, DownloadFileCellularEnabled) {
kOutputFilePath,
kContentUrl,
DriveClientContext(BACKGROUND),
- base::Bind(&google_apis::test_util::CopyResultsFromDownloadActionCallback,
- &download_error,
- &output_file_path),
+ google_apis::test_util::CreateCopyResultCallback(
+ &download_error, &output_file_path),
google_apis::GetContentCallback());
// Metadata should still work
google_apis::GDataErrorCode metadata_error = google_apis::GDATA_OTHER_ERROR;
@@ -562,9 +559,8 @@ TEST_F(DriveSchedulerTest, DownloadFileWimaxEnabled) {
kOutputFilePath,
kContentUrl,
DriveClientContext(BACKGROUND),
- base::Bind(&google_apis::test_util::CopyResultsFromDownloadActionCallback,
- &download_error,
- &output_file_path),
+ google_apis::test_util::CreateCopyResultCallback(
+ &download_error, &output_file_path),
google_apis::GetContentCallback());
// Metadata should still work
google_apis::GDataErrorCode metadata_error = google_apis::GDATA_OTHER_ERROR;
« no previous file with comments | « no previous file | chrome/browser/google_apis/base_operations_server_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698