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

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

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/fake_drive_service_unittest.cc ('k') | chrome/browser/google_apis/test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/test_util.h
diff --git a/chrome/browser/google_apis/test_util.h b/chrome/browser/google_apis/test_util.h
index 6f3682edd385015c8cc7af79c54140d741f24485..9f1cae8a9546f2558a6b808be2464f7db005b43c 100644
--- a/chrome/browser/google_apis/test_util.h
+++ b/chrome/browser/google_apis/test_util.h
@@ -23,6 +23,7 @@ class AccountMetadataFeed;
class AuthenticatedOperationInterface;
class ResourceEntry;
class ResourceList;
+struct UploadRangeResponse;
namespace test_server {
struct HttpRequest;
@@ -113,6 +114,20 @@ void CopyResultsFromDownloadActionCallback(
GDataErrorCode error_in,
const base::FilePath& temp_file_in);
+// Copies the results from InitiateUploadCallback.
+void CopyResultsFromInitiateUploadCallback(
+ GDataErrorCode* error_out,
+ GURL* url_out,
+ GDataErrorCode error_in,
+ const GURL& url_in);
+
+// Copies the results from ResumeUploadCallback.
+void CopyResultsFromUploadRangeCallback(
+ UploadRangeResponse* response_out,
+ scoped_ptr<ResourceEntry>* entry_out,
+ const UploadRangeResponse& response_in,
+ scoped_ptr<ResourceEntry> entry_in);
+
// Returns a HttpResponse created from the given file path.
scoped_ptr<test_server::HttpResponse> CreateHttpResponseFromFile(
const base::FilePath& file_path);
« no previous file with comments | « chrome/browser/google_apis/fake_drive_service_unittest.cc ('k') | chrome/browser/google_apis/test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698