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

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

Issue 13510003: google_apis: Introduce AddNewFile() and SetLastModifiedTime() in FakeDriveService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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/fake_drive_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/fake_drive_service.h
diff --git a/chrome/browser/google_apis/fake_drive_service.h b/chrome/browser/google_apis/fake_drive_service.h
index 2023e839fa7ccfc81707dce439cbc027b1244992..cfd549238a73f8716660003ba01f2b31adabb1d3 100644
--- a/chrome/browser/google_apis/fake_drive_service.h
+++ b/chrome/browser/google_apis/fake_drive_service.h
@@ -168,6 +168,21 @@ class FakeDriveService : public DriveServiceInterface {
const std::string& app_id,
const AuthorizeAppCallback& callback) OVERRIDE;
+ // Adds a new file with the given parameters. On success, returns
+ // HTTP_CREATED with the parsed entry.
+ // |callback| must not be null.
+ void AddNewFile(const std::string& content_type,
+ int64 content_length,
+ const std::string& parent_resource_id,
+ const std::string& title,
+ const GetResourceEntryCallback& callback);
+
+ // Sets the last modified time for an entry specified by |resource_id|.
+ // On success, returns HTTP_SUCCESS with the parsed entry.
+ // |callback| must not be null.
+ void SetLastModifiedTime(const std::string& resource_id,
+ const base::Time& last_modified_time,
+ const GetResourceEntryCallback& callback);
private:
// Returns a pointer to the entry that matches |resource_id|, or NULL if
// not found.
« no previous file with comments | « no previous file | chrome/browser/google_apis/fake_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698