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

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

Issue 137903002: Files.app: Add a drive sync error event to the fileBrowserPrivate API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed typo. Created 6 years, 11 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 fdba64e92922721d389b85bafac86b7e980d941e..b5d957c017a0ea3d849dc7716830c5cda22fda03 100644
--- a/chrome/browser/chromeos/drive/file_system/operation_test_base.h
+++ b/chrome/browser/chromeos/drive/file_system/operation_test_base.h
@@ -54,6 +54,7 @@ class OperationTestBase : public testing::Test {
const std::string& local_id) OVERRIDE;
virtual void OnEntryUpdatedByOperation(
const std::string& local_id) OVERRIDE;
+ virtual void OnDriveSyncError(DriveSyncErrorType type) OVERRIDE;
// Gets the set of changed paths.
const std::set<base::FilePath>& get_changed_paths() {
@@ -70,10 +71,16 @@ class OperationTestBase : public testing::Test {
return updated_local_ids_;
}
+ // Gets the list of drive sync errors.
+ const std::vector<DriveSyncErrorType> drive_sync_errors() const {
+ return drive_sync_errors_;
+ }
+
private:
std::set<base::FilePath> changed_paths_;
std::set<std::string> upload_needed_local_ids_;
std::set<std::string> updated_local_ids_;
+ std::vector<DriveSyncErrorType> drive_sync_errors_;
};
OperationTestBase();

Powered by Google App Engine
This is Rietveld 408576698