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

Unified Diff: chrome/browser/chromeos/drive/file_system/operation_test_base.h

Issue 68543002: drive: Support offline delete (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move to drive/other and mark as deleted Created 7 years, 1 month 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/drive/file_system/operation_test_base.h
diff --git a/chrome/browser/chromeos/drive/file_system/operation_test_base.h b/chrome/browser/chromeos/drive/file_system/operation_test_base.h
index d4afea4f1b69a33a230c30d33984f4b9b07299e5..087f9a8a0767e515ddbd68de4beb34790e14afd6 100644
--- a/chrome/browser/chromeos/drive/file_system/operation_test_base.h
+++ b/chrome/browser/chromeos/drive/file_system/operation_test_base.h
@@ -51,6 +51,8 @@ class OperationTestBase : public testing::Test {
const base::FilePath& path) OVERRIDE;
virtual void OnCacheFileUploadNeededByOperation(
const std::string& local_id) OVERRIDE;
+ virtual void OnEntryRemovedByOperation(
+ const std::string& local_id) OVERRIDE;
// Gets the set of changed paths.
const std::set<base::FilePath>& get_changed_paths() {
@@ -62,9 +64,15 @@ class OperationTestBase : public testing::Test {
return upload_needed_local_ids_;
}
+ // Gets the set of removed local IDs.
+ const std::set<std::string>& removed_local_ids() const {
+ return removed_local_ids_;
+ }
+
private:
std::set<base::FilePath> changed_paths_;
std::set<std::string> upload_needed_local_ids_;
+ std::set<std::string> removed_local_ids_;
};
OperationTestBase();
@@ -82,6 +90,11 @@ class OperationTestBase : public testing::Test {
FileError GetLocalResourceEntry(const base::FilePath& path,
ResourceEntry* entry);
+ // Synchronously gets the resource entry corresponding to the ID from local
+ // ResourceMetadta.
+ FileError GetLocalResourceEntryById(const std::string& local_id,
+ ResourceEntry* entry);
+
// Gets the local ID of the entry specified by the path.
std::string GetLocalId(const base::FilePath& path);

Powered by Google App Engine
This is Rietveld 408576698