| 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" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
| 14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
| 15 #include "chrome/browser/sync_file_system/drive_file_sync_service.h" | 15 #include "chrome/browser/sync_file_system/drive_file_sync_service.h" |
| 16 #include "chrome/browser/sync_file_system/sync_file_system.pb.h" | 16 #include "chrome/browser/sync_file_system/sync_file_system.pb.h" |
| 17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 19 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
| 20 #include "webkit/fileapi/isolated_context.h" | 20 #include "webkit/browser/fileapi/isolated_context.h" |
| 21 #include "webkit/fileapi/syncable/syncable_file_system_util.h" | 21 #include "webkit/fileapi/syncable/syncable_file_system_util.h" |
| 22 | 22 |
| 23 #define FPL FILE_PATH_LITERAL | 23 #define FPL FILE_PATH_LITERAL |
| 24 | 24 |
| 25 using content::BrowserThread; | 25 using content::BrowserThread; |
| 26 | 26 |
| 27 namespace sync_file_system { | 27 namespace sync_file_system { |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 metadata_store()->AddIncrementalSyncOrigin(kOrigin1, kResourceId1); | 679 metadata_store()->AddIncrementalSyncOrigin(kOrigin1, kResourceId1); |
| 680 VerifyIncrementalSyncOrigin(kOrigin1, kResourceId1); | 680 VerifyIncrementalSyncOrigin(kOrigin1, kResourceId1); |
| 681 VerifyReverseMap(); | 681 VerifyReverseMap(); |
| 682 | 682 |
| 683 metadata_store()->SetOriginRootDirectory(kOrigin1, kResourceId2); | 683 metadata_store()->SetOriginRootDirectory(kOrigin1, kResourceId2); |
| 684 VerifyIncrementalSyncOrigin(kOrigin1, kResourceId2); | 684 VerifyIncrementalSyncOrigin(kOrigin1, kResourceId2); |
| 685 VerifyReverseMap(); | 685 VerifyReverseMap(); |
| 686 } | 686 } |
| 687 | 687 |
| 688 } // namespace sync_file_system | 688 } // namespace sync_file_system |
| OLD | NEW |