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 <algorithm> | 5 #include <algorithm> |
6 #include <stack> | 6 #include <stack> |
7 | 7 |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
12 #include "chrome/browser/drive/drive_uploader.h" | |
13 #include "chrome/browser/drive/fake_drive_service.h" | |
14 #include "chrome/browser/drive/test_util.h" | |
15 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" | 12 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" |
16 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 13 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
17 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe
r.h" | 14 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe
r.h" |
18 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 15 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
19 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 16 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
20 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h" | 17 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h" |
21 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" | 18 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" |
22 #include "chrome/browser/sync_file_system/drive_backend/sync_worker.h" | 19 #include "chrome/browser/sync_file_system/drive_backend/sync_worker.h" |
23 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h" | 20 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h" |
24 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" | 21 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" |
25 #include "chrome/browser/sync_file_system/local/local_file_sync_service.h" | 22 #include "chrome/browser/sync_file_system/local/local_file_sync_service.h" |
26 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 23 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
27 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 24 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
28 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 25 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
29 #include "chrome/test/base/testing_profile.h" | 26 #include "chrome/test/base/testing_profile.h" |
| 27 #include "components/drive/drive_uploader.h" |
| 28 #include "components/drive/service/fake_drive_service.h" |
| 29 #include "components/drive/service/test_util.h" |
30 #include "content/public/test/test_browser_thread.h" | 30 #include "content/public/test/test_browser_thread.h" |
31 #include "content/public/test/test_browser_thread_bundle.h" | 31 #include "content/public/test/test_browser_thread_bundle.h" |
32 #include "content/public/test/test_utils.h" | 32 #include "content/public/test/test_utils.h" |
33 #include "extensions/common/extension.h" | 33 #include "extensions/common/extension.h" |
34 #include "google_apis/drive/drive_api_parser.h" | 34 #include "google_apis/drive/drive_api_parser.h" |
35 #include "net/url_request/url_request_context_getter.h" | 35 #include "net/url_request/url_request_context_getter.h" |
36 #include "storage/browser/fileapi/file_system_context.h" | 36 #include "storage/browser/fileapi/file_system_context.h" |
37 #include "testing/gtest/include/gtest/gtest.h" | 37 #include "testing/gtest/include/gtest/gtest.h" |
38 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" | 38 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" |
39 #include "third_party/leveldatabase/src/include/leveldb/env.h" | 39 #include "third_party/leveldatabase/src/include/leveldb/env.h" |
(...skipping 1681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1721 | 1721 |
1722 EXPECT_EQ(1u, CountApp()); | 1722 EXPECT_EQ(1u, CountApp()); |
1723 EXPECT_EQ(1u, CountLocalFile(app_id)); | 1723 EXPECT_EQ(1u, CountLocalFile(app_id)); |
1724 | 1724 |
1725 EXPECT_EQ(2u, CountMetadata()); | 1725 EXPECT_EQ(2u, CountMetadata()); |
1726 EXPECT_EQ(2u, CountTracker()); | 1726 EXPECT_EQ(2u, CountTracker()); |
1727 } | 1727 } |
1728 | 1728 |
1729 } // namespace drive_backend | 1729 } // namespace drive_backend |
1730 } // namespace sync_file_system | 1730 } // namespace sync_file_system |
OLD | NEW |