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 "chrome/browser/sync_file_system/drive_backend/register_app_task.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/register_app_task.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
14 #include "base/format_macros.h" | 14 #include "base/format_macros.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
17 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
19 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
| 20 #include "base/threading/sequenced_worker_pool.h" |
20 #include "base/threading/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
21 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 22 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
22 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h" | 23 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h" |
23 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe
r.h" | 24 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe
r.h" |
24 #include "chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h" | 25 #include "chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h" |
25 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 26 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
26 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 27 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
27 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" | 28 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" |
28 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 29 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
29 #include "components/drive/drive_uploader.h" | 30 #include "components/drive/drive_uploader.h" |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 | 336 |
336 CreateMetadataDatabase(std::move(db)); | 337 CreateMetadataDatabase(std::move(db)); |
337 RunRegisterAppTask(kAppID); | 338 RunRegisterAppTask(kAppID); |
338 | 339 |
339 EXPECT_EQ(1u, CountRegisteredAppRoot()); | 340 EXPECT_EQ(1u, CountRegisteredAppRoot()); |
340 EXPECT_TRUE(IsAppRegistered(kAppID)); | 341 EXPECT_TRUE(IsAppRegistered(kAppID)); |
341 } | 342 } |
342 | 343 |
343 } // namespace drive_backend | 344 } // namespace drive_backend |
344 } // namespace sync_file_system | 345 } // namespace sync_file_system |
OLD | NEW |