| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/stl_util.h" | 5 #include "base/stl_util.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 #include "webkit/fileapi/file_system_context.h" | 7 #include "webkit/fileapi/file_system_context.h" |
| 8 #include "webkit/fileapi/file_system_task_runners.h" | 8 #include "webkit/fileapi/file_system_task_runners.h" |
| 9 #include "webkit/fileapi/file_system_types.h" | 9 #include "webkit/fileapi/file_system_types.h" |
| 10 #include "webkit/fileapi/isolated_context.h" | 10 #include "webkit/fileapi/isolated_context.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 } | 74 } |
| 75 | 75 |
| 76 FileSystemContext* file_system_context() { | 76 FileSystemContext* file_system_context() { |
| 77 return file_system_.file_system_context(); | 77 return file_system_.file_system_context(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 LocalFileChangeTracker* change_tracker() { | 80 LocalFileChangeTracker* change_tracker() { |
| 81 return file_system_context()->change_tracker(); | 81 return file_system_context()->change_tracker(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 ScopedTempDir data_dir_; | 84 base::ScopedTempDir data_dir_; |
| 85 MessageLoop message_loop_; | 85 MessageLoop message_loop_; |
| 86 | 86 |
| 87 CannedSyncableFileSystem file_system_; | 87 CannedSyncableFileSystem file_system_; |
| 88 scoped_refptr<LocalFileSyncContext> sync_context_; | 88 scoped_refptr<LocalFileSyncContext> sync_context_; |
| 89 | 89 |
| 90 base::WeakPtrFactory<SyncableFileSystemTest> weak_factory_; | 90 base::WeakPtrFactory<SyncableFileSystemTest> weak_factory_; |
| 91 | 91 |
| 92 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemTest); | 92 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemTest); |
| 93 }; | 93 }; |
| 94 | 94 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 SYNC_FILE_TYPE_DIRECTORY)); | 223 SYNC_FILE_TYPE_DIRECTORY)); |
| 224 VerifyAndClearChange(URL(kPath1), | 224 VerifyAndClearChange(URL(kPath1), |
| 225 FileChange(FileChange::FILE_CHANGE_DELETE, | 225 FileChange(FileChange::FILE_CHANGE_DELETE, |
| 226 SYNC_FILE_TYPE_DIRECTORY)); | 226 SYNC_FILE_TYPE_DIRECTORY)); |
| 227 VerifyAndClearChange(URL(kPath2), | 227 VerifyAndClearChange(URL(kPath2), |
| 228 FileChange(FileChange::FILE_CHANGE_DELETE, | 228 FileChange(FileChange::FILE_CHANGE_DELETE, |
| 229 SYNC_FILE_TYPE_FILE)); | 229 SYNC_FILE_TYPE_FILE)); |
| 230 } | 230 } |
| 231 | 231 |
| 232 } // namespace fileapi | 232 } // namespace fileapi |
| OLD | NEW |