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

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

Issue 10832241: Drive: Removes unused cache files after the initial feed fetch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the build error. 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 01ad8d4165e3fb98f1afce3de82b67f8455a7755..38c721e72886546c80367383f398fc89f91f3653 100644
--- a/chrome/browser/chromeos/gdata/gdata_test_util.h
+++ b/chrome/browser/chromeos/gdata/gdata_test_util.h
@@ -11,10 +11,15 @@
class FilePath;
+namespace base {
+class Value;
+}
+
namespace gdata {
class DriveCacheEntry;
class DriveEntryProto;
+class DriveFileSystem;
typedef std::vector<DriveEntryProto> DriveEntryProtoVector;
@@ -94,6 +99,19 @@ void CopyResultsFromGetEntryInfoPairCallback(
scoped_ptr<EntryInfoPairResult>* out_result,
scoped_ptr<EntryInfoPairResult> result);
+// Returns the absolute path for a test file stored under
+// chrome/test/data/chromeos/gdata.
+FilePath GetTestFilePath(const FilePath::StringType& base_name);
+
+// Loads a test JSON file as a base::Value.
+base::Value* LoadJSONFile(const std::string& base_name);
+
+// Loads a test json file as root ("/drive") element.
+void LoadChangeFeed(const std::string& filename,
+ DriveFileSystem* file_system,
+ int64 start_changestamp,
+ int64 root_feed_changestamp);
+
} // namespace test_util
} // namespace gdata

Powered by Google App Engine
This is Rietveld 408576698