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

Side by Side Diff: chrome/browser/sync_file_system/local/canned_syncable_file_system.cc

Issue 2815743002: Move a couple of blob tests next to the files they cover. (Closed)
Patch Set: Fix gn check, take 2. Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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" 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" 29 #include "storage/browser/blob/shareable_file_reference.h"
32 #include "storage/browser/fileapi/external_mount_points.h" 30 #include "storage/browser/fileapi/external_mount_points.h"
33 #include "storage/browser/fileapi/file_system_backend.h" 31 #include "storage/browser/fileapi/file_system_backend.h"
34 #include "storage/browser/fileapi/file_system_context.h" 32 #include "storage/browser/fileapi/file_system_context.h"
35 #include "storage/browser/fileapi/file_system_operation_context.h" 33 #include "storage/browser/fileapi/file_system_operation_context.h"
36 #include "storage/browser/fileapi/file_system_operation_runner.h" 34 #include "storage/browser/fileapi/file_system_operation_runner.h"
37 #include "storage/browser/quota/quota_manager.h" 35 #include "storage/browser/quota/quota_manager.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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 sync_status_ = status; 754 sync_status_ = status;
755 quit_closure.Run(); 755 quit_closure.Run();
756 } 756 }
757 757
758 void CannedSyncableFileSystem::InitializeSyncStatusObserver() { 758 void CannedSyncableFileSystem::InitializeSyncStatusObserver() {
759 ASSERT_TRUE(io_task_runner_->RunsTasksOnCurrentThread()); 759 ASSERT_TRUE(io_task_runner_->RunsTasksOnCurrentThread());
760 backend()->sync_context()->sync_status()->AddObserver(this); 760 backend()->sync_context()->sync_status()->AddObserver(this);
761 } 761 }
762 762
763 } // namespace sync_file_system 763 } // namespace sync_file_system
OLDNEW
« no previous file with comments | « chrome/browser/platform_util_unittest.cc ('k') | chrome/browser/sync_file_system/local/syncable_file_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698