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 fc0cb43f2682acb60ebf971a99f19b061aa0d5ca..de815e55b2bc65f0b6cd202fb40685da9153ea65 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_test_util.h |
+++ b/chrome/browser/chromeos/gdata/gdata_test_util.h |
@@ -5,6 +5,8 @@ |
#ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ |
#define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ |
+#include "chrome/browser/chromeos/gdata/gdata_errorcode.h" |
+ |
namespace gdata { |
class GDataCacheEntry; |
@@ -37,6 +39,12 @@ GDataCacheEntry ToCacheEntry(int cache_state); |
// Returns true if the cache state of the given two cache entries are equal. |
bool CacheStatesEqual(const GDataCacheEntry& a, const GDataCacheEntry& b); |
+// Copies |error| to |output|. Used to run asynchronous functions that take |
+// FileOperationCallback from tests. |
+void CopyErrorCodeFromFileOperationCallback( |
+ GDataFileError* output, GDataFileError error); |
+ |
+ |
} // namespace test_util |
} // namespace gdata |