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

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

Issue 22185002: Add browser test to the sharing dialog feature in Files.app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added the licence header. Created 7 years, 4 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 9b1a4e51f270de32a54d138e5a3c152ff0d59fab..3cb942e8d0976b9d46549e1d9f228d59b4c6a6bd 100644
--- a/chrome/browser/drive/fake_drive_service.h
+++ b/chrome/browser/drive/fake_drive_service.h
@@ -46,6 +46,12 @@ class FakeDriveService : public DriveServiceInterface {
default_max_results_ = default_max_results;
}
+ // Sets the url to the test server to be used as a base for generated share
+ // urls to the share dialog.
+ void set_share_url_base(const GURL& share_url_base) {
+ share_url_base_ = share_url_base;
+ }
+
// Returns the largest changestamp, which starts from 0 by default. See
// also comments at LoadAccountMetadataForWapi().
int64 largest_changestamp() const { return largest_changestamp_; }
@@ -274,6 +280,7 @@ class FakeDriveService : public DriveServiceInterface {
int about_resource_load_count_;
bool offline_;
base::FilePath last_cancelled_file_;
+ GURL share_url_base_;
DISALLOW_COPY_AND_ASSIGN(FakeDriveService);
};

Powered by Google App Engine
This is Rietveld 408576698