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

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

Issue 394103003: Add unit tests for drive::FileTaskExecutor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to Review #2 Created 6 years, 5 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/drive/fake_drive_service.h
diff --git a/chrome/browser/drive/fake_drive_service.h b/chrome/browser/drive/fake_drive_service.h
index 8e296ff80dca6118fed013fb0169791cde169897..7c4438e827e73bd5afe63018cff14f3ac3cffcae 100644
--- a/chrome/browser/drive/fake_drive_service.h
+++ b/chrome/browser/drive/fake_drive_service.h
@@ -113,6 +113,13 @@ class FakeDriveService : public DriveServiceInterface {
// Returns the (fake) URL for the link.
static GURL GetFakeLinkUrl(const std::string& resource_id);
+ // Sets the printf format for constructing the response of AuthorizeApp().
+ // The format string must include two %s that are to be filled with
+ // resource_id and app_id.
+ void set_open_url_format(const std::string& url_format) {
+ open_url_format_ = url_format;
+ }
+
// DriveServiceInterface Overrides
virtual void Initialize(const std::string& account_id) OVERRIDE;
virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE;
@@ -348,6 +355,7 @@ class FakeDriveService : public DriveServiceInterface {
base::FilePath last_cancelled_file_;
GURL share_url_base_;
std::string app_json_template_;
+ std::string open_url_format_;
DISALLOW_COPY_AND_ASSIGN(FakeDriveService);
};
« no previous file with comments | « chrome/browser/chromeos/drive/file_task_executor_unittest.cc ('k') | chrome/browser/drive/fake_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698