OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
10 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h" | 10 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h" |
11 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" | 11 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" |
12 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" | 12 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" |
13 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 13 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
14 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 14 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
15 #include "content/public/test/async_file_test_helper.h" | |
16 #include "content/public/test/sandbox_file_system_test_helper.h" | 15 #include "content/public/test/sandbox_file_system_test_helper.h" |
17 #include "content/public/test/test_browser_thread_bundle.h" | 16 #include "content/public/test/test_browser_thread_bundle.h" |
18 #include "storage/browser/fileapi/file_system_context.h" | 17 #include "storage/browser/fileapi/file_system_context.h" |
19 #include "storage/browser/fileapi/file_system_operation_context.h" | 18 #include "storage/browser/fileapi/file_system_operation_context.h" |
20 #include "storage/browser/fileapi/isolated_context.h" | 19 #include "storage/browser/fileapi/isolated_context.h" |
21 #include "storage/browser/quota/quota_manager.h" | 20 #include "storage/browser/quota/quota_manager.h" |
| 21 #include "storage/browser/test/async_file_test_helper.h" |
22 #include "storage/common/fileapi/file_system_types.h" | 22 #include "storage/common/fileapi/file_system_types.h" |
23 #include "storage/common/quota/quota_types.h" | 23 #include "storage/common/quota/quota_types.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
25 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" | 25 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" |
26 #include "third_party/leveldatabase/src/include/leveldb/env.h" | 26 #include "third_party/leveldatabase/src/include/leveldb/env.h" |
27 | 27 |
28 using content::SandboxFileSystemTestHelper; | 28 using content::SandboxFileSystemTestHelper; |
29 using storage::FileSystemContext; | 29 using storage::FileSystemContext; |
30 using storage::FileSystemOperationContext; | 30 using storage::FileSystemOperationContext; |
31 using storage::FileSystemURL; | 31 using storage::FileSystemURL; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 sync_file_system::SYNC_FILE_TYPE_DIRECTORY)); | 244 sync_file_system::SYNC_FILE_TYPE_DIRECTORY)); |
245 VerifyAndClearChange(URL(kPath1), | 245 VerifyAndClearChange(URL(kPath1), |
246 FileChange(FileChange::FILE_CHANGE_DELETE, | 246 FileChange(FileChange::FILE_CHANGE_DELETE, |
247 sync_file_system::SYNC_FILE_TYPE_DIRECTORY)); | 247 sync_file_system::SYNC_FILE_TYPE_DIRECTORY)); |
248 VerifyAndClearChange(URL(kPath2), | 248 VerifyAndClearChange(URL(kPath2), |
249 FileChange(FileChange::FILE_CHANGE_DELETE, | 249 FileChange(FileChange::FILE_CHANGE_DELETE, |
250 sync_file_system::SYNC_FILE_TYPE_FILE)); | 250 sync_file_system::SYNC_FILE_TYPE_FILE)); |
251 } | 251 } |
252 | 252 |
253 } // namespace sync_file_system | 253 } // namespace sync_file_system |
OLD | NEW |