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/sync_engine_initializer.
h" | 5 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer.
h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
11 #include "chrome/browser/drive/drive_api_util.h" | |
12 #include "chrome/browser/drive/drive_uploader.h" | |
13 #include "chrome/browser/drive/fake_drive_service.h" | |
14 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 11 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
15 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_test_util.
h" | 12 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_test_util.
h" |
16 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 13 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
17 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 14 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
18 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" | 15 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" |
19 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" | 16 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" |
20 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 17 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
| 18 #include "components/drive/drive_api_util.h" |
| 19 #include "components/drive/drive_uploader.h" |
| 20 #include "components/drive/service/fake_drive_service.h" |
21 #include "content/public/test/test_browser_thread_bundle.h" | 21 #include "content/public/test/test_browser_thread_bundle.h" |
22 #include "google_apis/drive/drive_api_parser.h" | 22 #include "google_apis/drive/drive_api_parser.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" | 24 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" |
25 #include "third_party/leveldatabase/src/include/leveldb/env.h" | 25 #include "third_party/leveldatabase/src/include/leveldb/env.h" |
26 | 26 |
27 namespace sync_file_system { | 27 namespace sync_file_system { |
28 namespace drive_backend { | 28 namespace drive_backend { |
29 | 29 |
30 namespace { | 30 namespace { |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 | 340 |
341 EXPECT_EQ(0u, CountTrackersForFile(sync_root->file_id())); | 341 EXPECT_EQ(0u, CountTrackersForFile(sync_root->file_id())); |
342 EXPECT_FALSE(HasNoParent(sync_root->file_id())); | 342 EXPECT_FALSE(HasNoParent(sync_root->file_id())); |
343 | 343 |
344 EXPECT_EQ(1u, CountFileMetadata()); | 344 EXPECT_EQ(1u, CountFileMetadata()); |
345 EXPECT_EQ(1u, CountFileTracker()); | 345 EXPECT_EQ(1u, CountFileTracker()); |
346 } | 346 } |
347 | 347 |
348 } // namespace drive_backend | 348 } // namespace drive_backend |
349 } // namespace sync_file_system | 349 } // namespace sync_file_system |
OLD | NEW |