| 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 "chrome/browser/sync_file_system/local/canned_syncable_file_system.h" |    5 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h" | 
|    6  |    6  | 
|    7 #include <stddef.h> |    7 #include <stddef.h> | 
|    8 #include <algorithm> |    8 #include <algorithm> | 
|    9 #include <iterator> |    9 #include <iterator> | 
|   10 #include <utility> |   10 #include <utility> | 
|   11  |   11  | 
|   12 #include "base/bind.h" |   12 #include "base/bind.h" | 
|   13 #include "base/bind_helpers.h" |   13 #include "base/bind_helpers.h" | 
|   14 #include "base/files/file.h" |   14 #include "base/files/file.h" | 
|   15 #include "base/files/file_util.h" |   15 #include "base/files/file_util.h" | 
|   16 #include "base/guid.h" |   16 #include "base/guid.h" | 
|   17 #include "base/macros.h" |   17 #include "base/macros.h" | 
|   18 #include "base/run_loop.h" |   18 #include "base/run_loop.h" | 
|   19 #include "base/single_thread_task_runner.h" |   19 #include "base/single_thread_task_runner.h" | 
|   20 #include "base/task_runner_util.h" |   20 #include "base/task_runner_util.h" | 
|   21 #include "base/threading/thread_task_runner_handle.h" |   21 #include "base/threading/thread_task_runner_handle.h" | 
|   22 #include "base/trace_event/trace_event.h" |   22 #include "base/trace_event/trace_event.h" | 
|   23 #include "chrome/browser/sync_file_system/file_change.h" |   23 #include "chrome/browser/sync_file_system/file_change.h" | 
|   24 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" |   24 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" | 
|   25 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" |   25 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" | 
|   26 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |   26 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 
|   27 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |   27 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 
|   28 #include "content/public/test/mock_blob_url_request_context.h" |  | 
|   29 #include "content/public/test/mock_special_storage_policy.h" |  | 
|   30 #include "content/public/test/test_file_system_options.h" |  | 
|   31 #include "storage/browser/blob/shareable_file_reference.h" |   28 #include "storage/browser/blob/shareable_file_reference.h" | 
|   32 #include "storage/browser/fileapi/external_mount_points.h" |   29 #include "storage/browser/fileapi/external_mount_points.h" | 
|   33 #include "storage/browser/fileapi/file_system_backend.h" |   30 #include "storage/browser/fileapi/file_system_backend.h" | 
|   34 #include "storage/browser/fileapi/file_system_context.h" |   31 #include "storage/browser/fileapi/file_system_context.h" | 
|   35 #include "storage/browser/fileapi/file_system_operation_context.h" |   32 #include "storage/browser/fileapi/file_system_operation_context.h" | 
|   36 #include "storage/browser/fileapi/file_system_operation_runner.h" |   33 #include "storage/browser/fileapi/file_system_operation_runner.h" | 
|   37 #include "storage/browser/quota/quota_manager.h" |   34 #include "storage/browser/quota/quota_manager.h" | 
 |   35 #include "storage/browser/test/mock_blob_url_request_context.h" | 
 |   36 #include "storage/browser/test/mock_special_storage_policy.h" | 
 |   37 #include "storage/browser/test/test_file_system_options.h" | 
|   38 #include "testing/gtest/include/gtest/gtest.h" |   38 #include "testing/gtest/include/gtest/gtest.h" | 
|   39  |   39  | 
|   40 using base::File; |   40 using base::File; | 
|   41 using storage::FileSystemContext; |   41 using storage::FileSystemContext; | 
|   42 using storage::FileSystemOperationRunner; |   42 using storage::FileSystemOperationRunner; | 
|   43 using storage::FileSystemURL; |   43 using storage::FileSystemURL; | 
|   44 using storage::FileSystemURLSet; |   44 using storage::FileSystemURLSet; | 
|   45 using storage::QuotaManager; |   45 using storage::QuotaManager; | 
|   46 using content::MockBlobURLRequestContext; |   46 using content::MockBlobURLRequestContext; | 
|   47 using content::ScopedTextBlob; |   47 using content::ScopedTextBlob; | 
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  753   sync_status_ = status; |  753   sync_status_ = status; | 
|  754   quit_closure.Run(); |  754   quit_closure.Run(); | 
|  755 } |  755 } | 
|  756  |  756  | 
|  757 void CannedSyncableFileSystem::InitializeSyncStatusObserver() { |  757 void CannedSyncableFileSystem::InitializeSyncStatusObserver() { | 
|  758   ASSERT_TRUE(io_task_runner_->RunsTasksOnCurrentThread()); |  758   ASSERT_TRUE(io_task_runner_->RunsTasksOnCurrentThread()); | 
|  759   backend()->sync_context()->sync_status()->AddObserver(this); |  759   backend()->sync_context()->sync_status()->AddObserver(this); | 
|  760 } |  760 } | 
|  761  |  761  | 
|  762 }  // namespace sync_file_system |  762 }  // namespace sync_file_system | 
| OLD | NEW |