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..b440f20fbfa030b944e6bd4735343a707a4d801a 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 CopyResultFromFileOperationCallback( |
achuithb
2012/07/31 00:06:52
This name is a bit misleading. CopyErrorCodeFromFi
satorux1
2012/07/31 00:28:30
Sounds good. Will rename it accordingly.
satorux1
2012/07/31 07:13:22
Done.
|
+ GDataFileError* output, GDataFileError error); |
+ |
+ |
} // namespace test_util |
} // namespace gdata |