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

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

Issue 11787038: google_apis: Implement some functions in FakeDriveService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Exclude the test on Android Created 7 years, 11 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 ac6aeceab9f86cc9771db9989f96b2d3b6cd1592..876509e996b79c500ac5a92e52541b342ab7b3e7 100644
--- a/chrome/browser/google_apis/fake_drive_service.h
+++ b/chrome/browser/google_apis/fake_drive_service.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_
#define CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_
+#include "base/values.h"
#include "chrome/browser/google_apis/drive_service_interface.h"
namespace google_apis {
@@ -22,6 +23,12 @@ class FakeDriveService : public DriveServiceInterface {
FakeDriveService();
virtual ~FakeDriveService();
+ // Loads the resource list for WAPI. Returns true on success.
+ bool LoadResourceListForWapi(const std::string& relative_path);
+
+ // Loads the account metadata for WAPI. Returns true on success.
+ bool LoadAccountMetadataForWapi(const std::string& relative_path);
+
// DriveServiceInterface Overrides
virtual void Initialize(Profile* profile) OVERRIDE;
virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE;
@@ -85,6 +92,11 @@ class FakeDriveService : public DriveServiceInterface {
virtual void AuthorizeApp(const GURL& edit_url,
const std::string& app_id,
const AuthorizeAppCallback& callback) OVERRIDE;
+
+ private:
+ scoped_ptr<base::Value> resource_list_value_;
+ scoped_ptr<base::Value> account_metadata_value_;
+ DISALLOW_COPY_AND_ASSIGN(FakeDriveService);
};
} // namespace google_apis
« 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