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

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

Issue 10274002: Add gdata content search (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix renaming Created 8 years, 8 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 8e2bdfd5392e1e8a038fdd8462d329acae931f03..0964da2259affe0afc9cae15855dc5d52722fa77 100644
--- a/chrome/browser/chromeos/gdata/mock_gdata_documents_service.h
+++ b/chrome/browser/chromeos/gdata/mock_gdata_documents_service.h
@@ -31,8 +31,9 @@ class MockDocumentsService : public DocumentsServiceInterface {
MOCK_CONST_METHOD0(operation_registry, GDataOperationRegistry*());
MOCK_METHOD0(CancelAll, void(void));
MOCK_METHOD1(Authenticate, void(const AuthStatusCallback& callback));
- MOCK_METHOD3(GetDocuments, void(const GURL& feed_url,
+ MOCK_METHOD4(GetDocuments, void(const GURL& feed_url,
int start_changestamp,
+ const std::string& search_string,
const GetDataCallback& callback));
MOCK_METHOD1(GetAccountMetadata, void(const GetDataCallback& callback));
MOCK_METHOD2(DeleteDocument, void(const GURL& document_url,
@@ -84,6 +85,7 @@ class MockDocumentsService : public DocumentsServiceInterface {
// value of |feed_data_|.
void GetDocumentsStub(const GURL& feed_url,
int start_changestamp,
+ const std::string& search_string,
const GetDataCallback& callback);
// Will call |callback| with HTTP_SUCCESS and a StringValue with the current
@@ -163,6 +165,10 @@ class MockDocumentsService : public DocumentsServiceInterface {
// Feed data to be returned from CopyDocument.
scoped_ptr<base::Value> document_data_;
+
+ // Feed data to be returned from GetDocuments if the search path is specified.
+ // The feed contains subset of the root_feed.
+ scoped_ptr<base::Value> search_result_;
};
} // namespace gdata

Powered by Google App Engine
This is Rietveld 408576698