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

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system.h

Issue 9582037: Make document service an interface (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Review changes Created 8 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
Index: chrome/browser/chromeos/gdata/gdata_file_system.h
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system.h b/chrome/browser/chromeos/gdata/gdata_file_system.h
index bb6ed7266e1af45c419cb1d88aa4dd2a66e96a76..f0c6e420b203e932953820ad92d975e4d1afb65d 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.h
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.h
@@ -365,6 +365,10 @@ class GDataFileSystem : public ProfileKeyedService {
void ResumeUpload(const ResumeUploadParams& params,
const ResumeUploadOperationCallback& callback);
+ // Only used by tests to inject a mock documents service.
+ void ReplaceDocumentsService(
satorux1 2012/03/08 01:48:37 Rather than replacing it, wouldn't it be cleaner t
Greg Spencer (Chromium) 2012/03/08 19:06:35 It would, but I worried about the following too mu
satorux1 2012/03/08 19:28:37 As mentioned elsewhere, I think you can inject fro
Greg Spencer (Chromium) 2012/03/09 00:33:30 Done.
+ scoped_ptr<DocumentsServiceInterface> documents_service);
+
// Unsafe (unlocked) version of the function above.
void UnsafeFindFileByPath(const FilePath& file_path,
scoped_refptr<FindFileDelegate> delegate);
@@ -456,7 +460,7 @@ class GDataFileSystem : public ProfileKeyedService {
Profile* profile_;
// The document service for the GDataFileSystem.
- scoped_ptr<DocumentsService> documents_service_;
+ scoped_ptr<DocumentsServiceInterface> documents_service_;
// File content uploader.
scoped_ptr<GDataUploader> uploader_;

Powered by Google App Engine
This is Rietveld 408576698