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

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

Issue 9742002: Wired GDataFileSystem::GetFile() method with internal cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 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/mock_gdata_documents_service.h
diff --git a/chrome/browser/chromeos/gdata/mock_gdata_documents_service.h b/chrome/browser/chromeos/gdata/mock_gdata_documents_service.h
index d26e20786113187b5a9042080cecc4c21586de65..f4ee7b9ffb7468d43c659254e78bfc0b7bfbc5e6 100644
--- a/chrome/browser/chromeos/gdata/mock_gdata_documents_service.h
+++ b/chrome/browser/chromeos/gdata/mock_gdata_documents_service.h
@@ -36,7 +36,8 @@ class MockDocumentsService : public DocumentsServiceInterface {
MOCK_METHOD1(GetAccountMetadata, void(const GetDataCallback& callback));
MOCK_METHOD2(DeleteDocument, void(const GURL& document_url,
const EntryActionCallback& callback));
- MOCK_METHOD4(DownloadDocument, void(const FilePath& virtual_path,
+ MOCK_METHOD5(DownloadDocument, void(const FilePath& virtual_path,
+ const FilePath& local_cache_path,
const GURL& content_url,
DocumentExportFormat format,
const DownloadActionCallback& callback));
@@ -59,7 +60,8 @@ class MockDocumentsService : public DocumentsServiceInterface {
void(const GURL& parent_content_url,
const FilePath::StringType& directory_name,
const GetDataCallback& callback));
- MOCK_METHOD3(DownloadFile, void(const FilePath& virtual_path,
+ MOCK_METHOD4(DownloadFile, void(const FilePath& virtual_path,
+ const FilePath& local_cache_path,
const GURL& content_url,
const DownloadActionCallback& callback));
MOCK_METHOD2(InitiateUpload,
@@ -91,6 +93,7 @@ class MockDocumentsService : public DocumentsServiceInterface {
// Will call |callback| with HTTP_SUCCESS, the given URL, and the host+path
// portion of the URL as the temporary file path.
void DownloadDocumentStub(const FilePath& virtual_path,
+ const FilePath& local_tmp_path,
const GURL& content_url,
DocumentExportFormat format,
const DownloadActionCallback& callback);
@@ -126,6 +129,7 @@ class MockDocumentsService : public DocumentsServiceInterface {
// Will call |callback| with HTTP_SUCCESS, the given URL, and the host+path
// portion of the URL as the temporary file path.
void DownloadFileStub(const FilePath& virtual_path,
+ const FilePath& local_tmp_path,
const GURL& content_url,
const DownloadActionCallback& callback);
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_operations.cc ('k') | chrome/browser/chromeos/gdata/mock_gdata_documents_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698