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

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

Issue 12210031: Implement fake drive service upload methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: properly rebased Created 7 years, 10 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/test_util.h ('k') | chrome/test/data/chromeos/gdata/root_feed.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/test_util.cc
diff --git a/chrome/browser/google_apis/test_util.cc b/chrome/browser/google_apis/test_util.cc
index cab63795979d40fbce42fb292b648cd6dc5f692e..b674c85358c854a3d2d209b66ec53f2ac16f440c 100644
--- a/chrome/browser/google_apis/test_util.cc
+++ b/chrome/browser/google_apis/test_util.cc
@@ -14,6 +14,7 @@
#include "base/stringprintf.h"
#include "base/threading/sequenced_worker_pool.h"
#include "chrome/browser/google_apis/drive_api_parser.h"
+#include "chrome/browser/google_apis/gdata_wapi_operations.h"
#include "chrome/browser/google_apis/gdata_wapi_parser.h"
#include "chrome/browser/google_apis/test_server/http_request.h"
#include "chrome/browser/google_apis/test_server/http_response.h"
@@ -167,6 +168,24 @@ void CopyResultsFromDownloadActionCallback(
*temp_file_out = temp_file_in;
}
+void CopyResultsFromInitiateUploadCallback(
+ GDataErrorCode* error_out,
+ GURL* url_out,
+ GDataErrorCode error_in,
+ const GURL& url_in) {
+ *error_out = error_in;
+ *url_out = url_in;
+}
+
+void CopyResultsFromUploadRangeCallback(
+ UploadRangeResponse* response_out,
+ scoped_ptr<ResourceEntry>* entry_out,
+ const UploadRangeResponse& response_in,
+ scoped_ptr<ResourceEntry> entry_in) {
+ *response_out = response_in;
+ *entry_out = entry_in.Pass();
+}
+
// Returns a HttpResponse created from the given file path.
scoped_ptr<test_server::HttpResponse> CreateHttpResponseFromFile(
const FilePath& file_path) {
« no previous file with comments | « chrome/browser/google_apis/test_util.h ('k') | chrome/test/data/chromeos/gdata/root_feed.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698