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

Unified Diff: chrome/browser/chromeos/gdata/gdata_mock.cc

Issue 9742002: Wired GDataFileSystem::GetFile() method with internal cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unit tests added 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_mock.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_mock.cc b/chrome/browser/chromeos/gdata/gdata_mock.cc
index 8daf5cc1c0819ea6e04722341e1fffadb75173d7..2272cc17ccffdd22ab49138c8aca71416191337a 100644
--- a/chrome/browser/chromeos/gdata/gdata_mock.cc
+++ b/chrome/browser/chromeos/gdata/gdata_mock.cc
@@ -51,7 +51,7 @@ MockDocumentsService::MockDocumentsService() {
&MockDocumentsService::GetAccountMetadataStub));
ON_CALL(*this, DeleteDocument(_, _))
.WillByDefault(Invoke(this, &MockDocumentsService::DeleteDocumentStub));
- ON_CALL(*this, DownloadDocument(_, _, _, _))
+ ON_CALL(*this, DownloadDocument(_, _, _, _, _))
.WillByDefault(Invoke(this, &MockDocumentsService::DownloadDocumentStub));
ON_CALL(*this, CopyDocument(_, _, _))
.WillByDefault(Invoke(this, &MockDocumentsService::CopyDocumentStub));
@@ -65,7 +65,7 @@ MockDocumentsService::MockDocumentsService() {
Invoke(this, &MockDocumentsService::RemoveResourceFromDirectoryStub));
ON_CALL(*this, CreateDirectory(_, _, _))
.WillByDefault(Invoke(this, &MockDocumentsService::CreateDirectoryStub));
- ON_CALL(*this, DownloadFile(_, _, _))
+ ON_CALL(*this, DownloadFile(_, _, _, _))
.WillByDefault(Invoke(this, &MockDocumentsService::DownloadFileStub));
// Fill in the default values for mock feeds.
@@ -108,13 +108,13 @@ void MockDocumentsService::DeleteDocumentStub(
void MockDocumentsService::DownloadDocumentStub(
const FilePath& virtual_path,
+ const FilePath& local_tmp_path,
const GURL& content_url,
DocumentExportFormat format,
const DownloadActionCallback& callback) {
base::MessageLoopProxy::current()->PostTask(
FROM_HERE,
- base::Bind(callback, HTTP_SUCCESS, content_url,
- FilePath(content_url.host() + content_url.path())));
+ base::Bind(callback, HTTP_SUCCESS, content_url, local_tmp_path));
}
void MockDocumentsService::CopyDocumentStub(
@@ -165,12 +165,12 @@ void MockDocumentsService::CreateDirectoryStub(
void MockDocumentsService::DownloadFileStub(
const FilePath& virtual_path,
+ const FilePath& local_tmp_path,
const GURL& content_url,
const DownloadActionCallback& callback) {
base::MessageLoopProxy::current()->PostTask(
FROM_HERE,
- base::Bind(callback, HTTP_SUCCESS, content_url, FilePath(
- content_url.host() + content_url.path())));
+ base::Bind(callback, HTTP_SUCCESS, content_url, local_tmp_path));
}
} // namespace gdata

Powered by Google App Engine
This is Rietveld 408576698