OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <stack> | 8 #include <stack> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 15 #include "base/sequenced_task_runner.h" |
15 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
16 #include "base/task_scheduler/post_task.h" | 17 #include "base/task_scheduler/post_task.h" |
17 #include "base/threading/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
18 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" | 19 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" |
19 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 20 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
20 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe
r.h" | 21 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe
r.h" |
21 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 22 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
22 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 23 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
23 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h" | 24 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h" |
24 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" | 25 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" |
(...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1713 | 1714 |
1714 EXPECT_EQ(1u, CountApp()); | 1715 EXPECT_EQ(1u, CountApp()); |
1715 EXPECT_EQ(1u, CountLocalFile(app_id)); | 1716 EXPECT_EQ(1u, CountLocalFile(app_id)); |
1716 | 1717 |
1717 EXPECT_EQ(2u, CountMetadata()); | 1718 EXPECT_EQ(2u, CountMetadata()); |
1718 EXPECT_EQ(2u, CountTracker()); | 1719 EXPECT_EQ(2u, CountTracker()); |
1719 } | 1720 } |
1720 | 1721 |
1721 } // namespace drive_backend | 1722 } // namespace drive_backend |
1722 } // namespace sync_file_system | 1723 } // namespace sync_file_system |
OLD | NEW |