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

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

Issue 10837148: gdata: Add GetEntryInfoByPath() and ReadDirectoryByPath() to GDataDirectoryService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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.h
diff --git a/chrome/browser/chromeos/gdata/gdata_test_util.h b/chrome/browser/chromeos/gdata/gdata_test_util.h
index de815e55b2bc65f0b6cd202fb40685da9153ea65..91de0481f1622a5f5d1c50ca4dd8c11c6370f871 100644
--- a/chrome/browser/chromeos/gdata/gdata_test_util.h
+++ b/chrome/browser/chromeos/gdata/gdata_test_util.h
@@ -5,10 +5,13 @@
#ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_
#define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_
+#include "base/memory/scoped_ptr.h"
#include "chrome/browser/chromeos/gdata/gdata_errorcode.h"
+#include "chrome/browser/chromeos/gdata/gdata_files.h"
namespace gdata {
+class GDataEntryProto;
class GDataCacheEntry;
namespace test_util {
@@ -44,6 +47,23 @@ bool CacheStatesEqual(const GDataCacheEntry& a, const GDataCacheEntry& b);
void CopyErrorCodeFromFileOperationCallback(
GDataFileError* output, GDataFileError error);
+// Copies |error| and |entry_proto| to |out_error| and |out_entry_proto|
+// respectively. Used to run asynchronous functions that take
+// GetEntryInfoCallback from tests.
+void CopyResultsFromGetEntryInfoCallback(
+ GDataFileError* out_error,
+ scoped_ptr<GDataEntryProto>* out_entry_proto,
+ GDataFileError error,
+ scoped_ptr<GDataEntryProto> entry_proto);
+
+// Copies |error| and |entries| to |out_error| and |out_entries|
+// respectively. Used to run asynchronous functions that take
+// GetEntryInfoCallback from tests.
+void CopyResultsFromReadDirectoryCallback(
+ GDataFileError* out_error,
+ scoped_ptr<GDataEntryProtoVector>* out_entries,
+ GDataFileError error,
+ scoped_ptr<GDataEntryProtoVector> entries);
} // namespace test_util
} // namespace gdata
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_files_unittest.cc ('k') | chrome/browser/chromeos/gdata/gdata_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698