Home
last modified time | relevance | path

Searched refs:FileChange (Results 1 – 25 of 56) sorted by relevance

123

/external/chromium_org/chrome/browser/sync_file_system/
Dfile_change_unittest.cc15 FileChange AddOrUpdateFile() { in AddOrUpdateFile()
16 return FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, SYNC_FILE_TYPE_FILE); in AddOrUpdateFile()
19 FileChange DeleteFile() { in DeleteFile()
20 return FileChange(FileChange::FILE_CHANGE_DELETE, SYNC_FILE_TYPE_FILE); in DeleteFile()
23 FileChange AddDirectory() { in AddDirectory()
24 return FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in AddDirectory()
28 FileChange DeleteDirectory() { in DeleteDirectory()
29 return FileChange(FileChange::FILE_CHANGE_DELETE, SYNC_FILE_TYPE_DIRECTORY); in DeleteDirectory()
33 void CreateList(FileChangeList* list, const FileChange (&inputs)[INPUT_SIZE]) { in CreateList()
41 const FileChange (&expected)[EXPECTED_SIZE]) { in VerifyList()
[all …]
Dfile_change.h18 class FileChange {
25 FileChange(ChangeType change, SyncFileType file_type);
39 bool operator==(const FileChange& that) const {
51 typedef std::deque<FileChange> List;
57 void Update(const FileChange& new_change);
63 const FileChange& front() const { return list_.front(); } in front()
64 const FileChange& back() const { return list_.back(); } in back()
Dfile_change.cc13 FileChange::FileChange( in FileChange() function in sync_file_system::FileChange
19 std::string FileChange::DebugString() const { in DebugString()
47 void FileChangeList::Update(const FileChange& new_change) { in Update()
53 FileChange& last = list_.back(); in Update()
Dfake_remote_change_processor.h26 class FileChange; variable
30 typedef std::map<fileapi::FileSystemURL, std::vector<FileChange>,
45 const FileChange& change,
55 const FileChange& change,
60 const FileChange& change);
Dfake_remote_change_processor.cc45 const FileChange& applied_change = found->second.back(); in PrepareForProcessRemoteChange()
66 const FileChange& change, in ApplyRemoteChange()
81 const FileChange& local_change = found_list->second.back(); in ApplyRemoteChange()
111 const FileChange& change, in RecordFakeLocalChange()
120 const FileChange& change) { in UpdateLocalFileMetadata()
153 const std::vector<FileChange>& applied = itr->second; in VerifyConsistency()
154 const std::vector<FileChange>& expected = found->second; in VerifyConsistency()
Dremote_change_processor.h23 class FileChange; variable
62 const FileChange& change,
84 const FileChange& change,
Dlocal_change_processor.h17 class FileChange; variable
35 const FileChange& change,
Dmock_local_change_processor.h21 void(const FileChange& change,
29 const FileChange& change,
/external/chromium_org/chrome/browser/chromeos/drive/
Dfile_change_unittest.cc13 FileChange::Type change_type = FileChange::ADDED; in TEST()
15 FileChange file_change(change_path, change_type); in TEST()
23 FileChange::Type change_type = FileChange::CHANGED; in TEST()
26 FileChange::CreateSingleSet(change_path, change_type); in TEST()
38 FileChange file_change1(base::FilePath(FILE_PATH_LITERAL("a")), in TEST()
39 FileChange::ADDED); in TEST()
40 FileChange file_change2(base::FilePath(FILE_PATH_LITERAL("b")), in TEST()
41 FileChange::ADDED); in TEST()
46 FileChange file_change3(base::FilePath(FILE_PATH_LITERAL("a")), in TEST()
47 FileChange::DELETED); in TEST()
[all …]
Dfile_change.h14 class FileChange; variable
17 typedef std::set<FileChange> FileChangeSet;
22 class FileChange {
32 FileChange(const base::FilePath& path, Type type);
33 ~FileChange();
38 bool operator==(const FileChange &file_change) const {
42 bool operator<(const FileChange &file_change) const {
Dfile_change.cc9 FileChange::FileChange(const base::FilePath& path, Type type) in FileChange() function in drive::FileChange
13 FileChange::~FileChange() {} in ~FileChange()
16 FileChangeSet FileChange::CreateSingleSet(const base::FilePath& path, in CreateSingleSet()
19 result.insert(FileChange(path, type)); in CreateSingleSet()
/external/chromium_org/chrome/browser/sync_file_system/drive_backend_v1/
Dlocal_sync_operation_resolver.cc14 const FileChange& local_file_change, in Resolve()
15 const FileChange* remote_file_change, in Resolve()
31 case FileChange::FILE_CHANGE_ADD_OR_UPDATE: in Resolve()
47 case FileChange::FILE_CHANGE_DELETE: in Resolve()
58 const FileChange* remote_file_change, in ResolveForAddOrUpdateFile()
76 case FileChange::FILE_CHANGE_ADD_OR_UPDATE: in ResolveForAddOrUpdateFile()
80 case FileChange::FILE_CHANGE_DELETE: in ResolveForAddOrUpdateFile()
91 const FileChange* remote_file_change) { in ResolveForAddOrUpdateFileInConflict()
95 case FileChange::FILE_CHANGE_ADD_OR_UPDATE: in ResolveForAddOrUpdateFileInConflict()
99 case FileChange::FILE_CHANGE_DELETE: in ResolveForAddOrUpdateFileInConflict()
[all …]
Dlocal_sync_operation_resolver.h16 class FileChange; variable
23 const FileChange& local_file_change,
24 const FileChange* remote_file_change,
29 const FileChange* remote_file_change,
32 const FileChange* remote_file_change);
34 const FileChange* remote_file_change,
38 const FileChange* remote_file_change,
41 const FileChange* remote_file_change);
Dlocal_sync_operation_resolver_unittest.cc20 scoped_ptr<FileChange> remote_file_change;
33 Input(FileChange* remote_file_change, in Input()
56 new FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in CreateInput()
60 new FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in CreateInput()
64 new FileChange(FileChange::FILE_CHANGE_DELETE, in CreateInput()
68 new FileChange(FileChange::FILE_CHANGE_DELETE, in CreateInput()
Dremote_sync_operation_resolver_unittest.cc41 list.Update(FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in CreateAddOrUpdateFileChange()
48 list.Update(FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in CreateAddDirectoryChange()
55 list.Update(FileChange(FileChange::FILE_CHANGE_DELETE, in CreateDeleteFileChange()
62 list.Update(FileChange(FileChange::FILE_CHANGE_DELETE, in CreateDeleteDirectoryChange()
/external/chromium_org/chrome/browser/sync_file_system/local/
Dlocal_file_change_tracker_unittest.cc85 const FileChange& expected_change) { in VerifyAndClearChange()
222 FileChange(FileChange::FILE_CHANGE_DELETE, in TEST_F()
225 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
228 FileChange(FileChange::FILE_CHANGE_DELETE, in TEST_F()
231 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
234 FileChange(FileChange::FILE_CHANGE_DELETE, in TEST_F()
291 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
294 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
297 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
300 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
[all …]
Dsyncable_file_system_unittest.cc73 const FileChange& expected_change) { in VerifyAndClearChange()
208 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
211 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
214 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
242 FileChange(FileChange::FILE_CHANGE_DELETE, in TEST_F()
245 FileChange(FileChange::FILE_CHANGE_DELETE, in TEST_F()
248 FileChange(FileChange::FILE_CHANGE_DELETE, in TEST_F()
Dlocal_file_change_tracker.cc102 RecordChange(url, FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in OnCreateFile()
108 RecordChange(url, FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in OnCreateFileFrom()
113 RecordChange(url, FileChange(FileChange::FILE_CHANGE_DELETE, in OnRemoveFile()
118 RecordChange(url, FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in OnModifyFile()
123 RecordChange(url, FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in OnCreateDirectory()
128 RecordChange(url, FileChange(FileChange::FILE_CHANGE_DELETE, in OnRemoveDirectory()
356 RecordChange(url, FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in CollectLastDirtyChanges()
361 RecordChange(url, FileChange( in CollectLastDirtyChanges()
362 FileChange::FILE_CHANGE_ADD_OR_UPDATE, in CollectLastDirtyChanges()
382 RecordChange(url, FileChange(FileChange::FILE_CHANGE_DELETE, in CollectLastDirtyChanges()
[all …]
Dlocal_file_sync_service_unittest.cc171 SyncStatusCode ApplyRemoteChange(const FileChange& change, in ApplyRemoteChange()
232 FileChange change(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
247 change = FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
264 change = FileChange(FileChange::FILE_CHANGE_DELETE, SYNC_FILE_TYPE_UNKNOWN); in TEST_F()
371 const FileChange change(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
410 const FileChange change(FileChange::FILE_CHANGE_DELETE, SYNC_FILE_TYPE_FILE); in TEST_F()
481 std::vector<FileChange> changes; in TEST_F()
499 EXPECT_EQ(FileChange(FileChange::FILE_CHANGE_DELETE, SYNC_FILE_TYPE_FILE), in TEST_F()
501 EXPECT_EQ(FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
551 const FileChange change(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
[all …]
Dlocal_file_sync_context_unittest.cc139 const FileChange& change, in ApplyRemoteChange()
648 FileChange change(FileChange::FILE_CHANGE_DELETE, in TEST_F()
657 change = FileChange(FileChange::FILE_CHANGE_DELETE, in TEST_F()
726 FileChange change(FileChange::FILE_CHANGE_DELETE, SYNC_FILE_TYPE_DIRECTORY); in TEST_F()
829 FileChange change(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
848 change = FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
855 change = FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
865 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, SYNC_FILE_TYPE_FILE); in TEST_F()
874 change = FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
939 FileChange change(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
Dlocal_file_sync_service.h39 class FileChange; variable
138 const FileChange& change,
148 const FileChange& change,
223 const FileChange& last_change,
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/
Dlocal_to_remote_syncer_unittest.cc169 SyncStatusCode RunLocalToRemoteSyncer(FileChange file_change, in RunLocalToRemoteSyncer()
264 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
268 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
272 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
293 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
297 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
301 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
323 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
327 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
335 FileChange(FileChange::FILE_CHANGE_DELETE, in TEST_F()
[all …]
Dremote_to_local_syncer_unittest.cc171 url, FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in CreateLocalFolder()
177 url, FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in CreateLocalFile()
208 FileChange::ChangeType change_type, in AppendExpectedChange()
210 expected_changes_[url].push_back(FileChange(change_type, file_type)); in AppendExpectedChange()
250 FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
253 FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
256 FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
259 FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
278 FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
281 FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
[all …]
Dconflict_resolver_unittest.cc160 url, FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in CreateLocalFile()
193 const FileChange& file_change) { in RunLocalToRemoteSyncer()
382 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, SYNC_FILE_TYPE_FILE)); in TEST_F()
406 FileChange(FileChange::FILE_CHANGE_DELETE, in TEST_F()
409 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
429 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, SYNC_FILE_TYPE_FILE)); in TEST_F()
454 FileChange(FileChange::FILE_CHANGE_DELETE, in TEST_F()
457 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
460 FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in TEST_F()
Dremote_change_processor_wrapper.h30 const FileChange& change,
42 const FileChange& change,

123