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

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

Issue 10837148: gdata: Add GetEntryInfoByPath() and ReadDirectoryByPath() to GDataDirectoryService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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_test_util.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_test_util.cc b/chrome/browser/chromeos/gdata/gdata_test_util.cc
index 49363d03ffac4a9806b5036dcc4a2990513693f4..4994c006be5314c042689aa583b0e2e92f6df2e2 100644
--- a/chrome/browser/chromeos/gdata/gdata_test_util.cc
+++ b/chrome/browser/chromeos/gdata/gdata_test_util.cc
@@ -69,5 +69,29 @@ void CopyErrorCodeFromFileOperationCallback(GDataFileError* output,
*output = error;
}
+void CopyResultsFromGetEntryInfoCallback(
+ GDataFileError* out_error,
+ scoped_ptr<GDataEntryProto>* out_entry_proto,
+ GDataFileError error,
+ scoped_ptr<GDataEntryProto> entry_proto) {
+ DCHECK(out_error);
+ DCHECK(out_entry_proto);
+
+ *out_error = error;
+ *out_entry_proto = entry_proto.Pass();
+}
+
+void CopyResultsFromReadDirectoryCallback(
+ GDataFileError* out_error,
+ scoped_ptr<GDataEntryProtoVector>* out_entries,
+ GDataFileError error,
+ scoped_ptr<GDataEntryProtoVector> entries) {
+ DCHECK(out_error);
+ DCHECK(out_entries);
+
+ *out_error = error;
+ *out_entries = entries.Pass();
+}
+
} // namespace test_util
} // namespace gdata

Powered by Google App Engine
This is Rietveld 408576698