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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 virtual void TearDown() override { | 142 virtual void TearDown() override { |
143 local_service_->Shutdown(); | 143 local_service_->Shutdown(); |
144 file_system_->TearDown(); | 144 file_system_->TearDown(); |
145 RevokeSyncableFileSystem(); | 145 RevokeSyncableFileSystem(); |
146 content::RunAllPendingInMessageLoop(BrowserThread::FILE); | 146 content::RunAllPendingInMessageLoop(BrowserThread::FILE); |
147 content::RunAllPendingInMessageLoop(BrowserThread::IO); | 147 content::RunAllPendingInMessageLoop(BrowserThread::IO); |
148 } | 148 } |
149 | 149 |
150 // LocalChangeObserver overrides. | 150 // LocalChangeObserver overrides. |
151 virtual void OnLocalChangeAvailable(int64 num_changes) override { | 151 void OnLocalChangeAvailable(int64 num_changes) override { |
152 num_changes_ = num_changes; | 152 num_changes_ = num_changes; |
153 } | 153 } |
154 | 154 |
155 void PrepareForProcessRemoteChange( | 155 void PrepareForProcessRemoteChange( |
156 const FileSystemURL& url, | 156 const FileSystemURL& url, |
157 const tracked_objects::Location& where, | 157 const tracked_objects::Location& where, |
158 SyncStatusCode expected_status, | 158 SyncStatusCode expected_status, |
159 const SyncFileMetadata& expected_metadata) { | 159 const SyncFileMetadata& expected_metadata) { |
160 base::RunLoop run_loop; | 160 base::RunLoop run_loop; |
161 local_service_->PrepareForProcessRemoteChange( | 161 local_service_->PrepareForProcessRemoteChange( |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 all_origins.insert(kOrigin2); | 726 all_origins.insert(kOrigin2); |
727 all_origins.insert(kOrigin3); | 727 all_origins.insert(kOrigin3); |
728 while (!all_origins.empty()) { | 728 while (!all_origins.empty()) { |
729 ASSERT_TRUE(NextOriginToProcess(&origin)); | 729 ASSERT_TRUE(NextOriginToProcess(&origin)); |
730 ASSERT_TRUE(ContainsKey(all_origins, origin)); | 730 ASSERT_TRUE(ContainsKey(all_origins, origin)); |
731 all_origins.erase(origin); | 731 all_origins.erase(origin); |
732 } | 732 } |
733 } | 733 } |
734 | 734 |
735 } // namespace sync_file_system | 735 } // namespace sync_file_system |
OLD | NEW |