| 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 "chrome/browser/sync_file_system/drive_metadata_store.h" | 5 #include "chrome/browser/sync_file_system/drive_metadata_store.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 itr != left.end(); ++itr) { | 312 itr != left.end(); ++itr) { |
| 313 OriginByResourceId::const_iterator found = right.find(itr->second); | 313 OriginByResourceId::const_iterator found = right.find(itr->second); |
| 314 if (found == right.end() || found->second != itr->first) | 314 if (found == right.end() || found->second != itr->first) |
| 315 return false; | 315 return false; |
| 316 } | 316 } |
| 317 return true; | 317 return true; |
| 318 } | 318 } |
| 319 | 319 |
| 320 base::ScopedTempDir base_dir_; | 320 base::ScopedTempDir base_dir_; |
| 321 | 321 |
| 322 MessageLoop message_loop_; | 322 base::MessageLoop message_loop_; |
| 323 scoped_ptr<base::Thread> file_thread_; | 323 scoped_ptr<base::Thread> file_thread_; |
| 324 | 324 |
| 325 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | 325 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
| 326 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; | 326 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; |
| 327 | 327 |
| 328 scoped_ptr<DriveMetadataStore> drive_metadata_store_; | 328 scoped_ptr<DriveMetadataStore> drive_metadata_store_; |
| 329 | 329 |
| 330 bool created_; | 330 bool created_; |
| 331 | 331 |
| 332 DISALLOW_COPY_AND_ASSIGN(DriveMetadataStoreTest); | 332 DISALLOW_COPY_AND_ASSIGN(DriveMetadataStoreTest); |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 VerifyBatchSyncOrigin(kOrigin1, kResourceId1); | 731 VerifyBatchSyncOrigin(kOrigin1, kResourceId1); |
| 732 VerifyIncrementalSyncOrigin(kOrigin2, kResourceId2); | 732 VerifyIncrementalSyncOrigin(kOrigin2, kResourceId2); |
| 733 VerifyReverseMap(); | 733 VerifyReverseMap(); |
| 734 | 734 |
| 735 metadata_store()->SetOriginRootDirectory(kOrigin2, kResourceId3); | 735 metadata_store()->SetOriginRootDirectory(kOrigin2, kResourceId3); |
| 736 VerifyIncrementalSyncOrigin(kOrigin2, kResourceId3); | 736 VerifyIncrementalSyncOrigin(kOrigin2, kResourceId3); |
| 737 VerifyReverseMap(); | 737 VerifyReverseMap(); |
| 738 } | 738 } |
| 739 | 739 |
| 740 } // namespace sync_file_system | 740 } // namespace sync_file_system |
| OLD | NEW |