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 "chrome/browser/drive/drive_api_util.h" | 10 #include "chrome/browser/drive/drive_api_util.h" |
11 #include "chrome/browser/drive/fake_drive_service.h" | 11 #include "chrome/browser/drive/fake_drive_service.h" |
12 #include "chrome/browser/google_apis/drive_api_parser.h" | |
13 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | |
14 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 12 #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" | 13 #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" | 14 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
17 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 15 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
18 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 16 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
19 #include "content/public/test/test_browser_thread_bundle.h" | 17 #include "content/public/test/test_browser_thread_bundle.h" |
| 18 #include "google_apis/drive/drive_api_parser.h" |
| 19 #include "google_apis/drive/gdata_wapi_parser.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 namespace sync_file_system { | 22 namespace sync_file_system { |
23 namespace drive_backend { | 23 namespace drive_backend { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 const int64 kInitialLargestChangeID = 1234; | 27 const int64 kInitialLargestChangeID = 1234; |
28 | 28 |
29 } // namespace | 29 } // namespace |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 | 345 |
346 EXPECT_EQ(0u, CountTrackersForFile(sync_root->file_id())); | 346 EXPECT_EQ(0u, CountTrackersForFile(sync_root->file_id())); |
347 EXPECT_FALSE(HasNoParent(sync_root->file_id())); | 347 EXPECT_FALSE(HasNoParent(sync_root->file_id())); |
348 | 348 |
349 EXPECT_EQ(1u, NumberOfMetadata()); | 349 EXPECT_EQ(1u, NumberOfMetadata()); |
350 EXPECT_EQ(1u, NumberOfTrackers()); | 350 EXPECT_EQ(1u, NumberOfTrackers()); |
351 } | 351 } |
352 | 352 |
353 } // namespace drive_backend | 353 } // namespace drive_backend |
354 } // namespace sync_file_system | 354 } // namespace sync_file_system |
OLD | NEW |