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

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

Issue 343073003: Files.app: Provide detailed change information on onDirectoryChanged event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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/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 d2078a0732d26198b94f805d47af4acb8dc736df..26f9d023da2125ba2a5dbe2012d74950c56dd451 100644
--- a/chrome/browser/chromeos/drive/file_system/operation_test_base.h
+++ b/chrome/browser/chromeos/drive/file_system/operation_test_base.h
@@ -9,6 +9,7 @@
#include "base/files/scoped_temp_dir.h"
#include "chrome/browser/chromeos/drive/drive.pb.h"
+#include "chrome/browser/chromeos/drive/file_change.h"
#include "chrome/browser/chromeos/drive/file_errors.h"
#include "chrome/browser/chromeos/drive/file_system/operation_observer.h"
#include "chrome/browser/chromeos/drive/test_util.h"
@@ -51,17 +52,15 @@ class OperationTestBase : public testing::Test {
~LoggingObserver();
// OperationObserver overrides.
- virtual void OnDirectoryChangedByOperation(
- const base::FilePath& path) OVERRIDE;
+ virtual void OnFileChangedByOperation(
+ const FileChange& changed_files) OVERRIDE;
virtual void OnEntryUpdatedByOperation(
const std::string& local_id) OVERRIDE;
virtual void OnDriveSyncError(DriveSyncErrorType type,
const std::string& local_id) OVERRIDE;
// Gets the set of changed paths.
- const std::set<base::FilePath>& get_changed_paths() {
- return changed_paths_;
- }
+ const FileChange& get_changed_files() { return changed_files_; }
// Gets the set of updated local IDs.
const std::set<std::string>& updated_local_ids() const {
@@ -74,7 +73,7 @@ class OperationTestBase : public testing::Test {
}
private:
- std::set<base::FilePath> changed_paths_;
+ FileChange changed_files_;
std::set<std::string> updated_local_ids_;
std::vector<DriveSyncErrorType> drive_sync_errors_;
};

Powered by Google App Engine
This is Rietveld 408576698