| 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/browser/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 |
| 31 const char kOrigin[] = "chrome-extension://example"; | 31 const char kOrigin[] = "chrome-extension://example"; |
| (...skipping 699 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 |