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

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

Issue 308003005: app_list: Drive app integration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pref is_syancable -> do_not_sync, remove AppListModel deps and no auto uninstall new_app Created 6 years, 6 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 8abcac80c62ab62d3c87eef9fa5b546d113eecf5..7fa48fccd2aff3bf2aa3f9a66c284fa87a40bcc0 100644
--- a/chrome/browser/drive/fake_drive_service.h
+++ b/chrome/browser/drive/fake_drive_service.h
@@ -34,6 +34,18 @@ class FakeDriveService : public DriveServiceInterface {
// Loads the app list for Drive API. Returns true on success.
bool LoadAppListForDriveApi(const std::string& relative_path);
+ // Adds an app to app list.
+ void AddApp(const std::string& app_id,
+ const std::string& app_name,
+ const std::string& product_id,
+ const std::string& create_url);
+
+ // Removes an app by product id.
+ void RemoveAppByProductId(const std::string& product_id);
+
+ // Returns true if the service knows the given drive app id.
+ bool HasApp(const std::string& app_id) const;
+
// Changes the offline state. All functions fail with GDATA_NO_CONNECTION
// when offline. By default the offline state is false.
void set_offline(bool offline) { offline_ = offline; }
@@ -335,6 +347,7 @@ class FakeDriveService : public DriveServiceInterface {
bool never_return_all_file_list_;
base::FilePath last_cancelled_file_;
GURL share_url_base_;
+ std::string app_json_template_;
DISALLOW_COPY_AND_ASSIGN(FakeDriveService);
};

Powered by Google App Engine
This is Rietveld 408576698