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_v1/drive_file_sync_servi
ce.h" | 5 #include "chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_servi
ce.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/message_loop/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "chrome/browser/drive/drive_uploader.h" | 13 #include "chrome/browser/drive/drive_uploader.h" |
14 #include "chrome/browser/drive/fake_drive_service.h" | 14 #include "chrome/browser/drive/fake_drive_service.h" |
15 #include "chrome/browser/extensions/test_extension_service.h" | 15 #include "chrome/browser/extensions/test_extension_service.h" |
16 #include "chrome/browser/extensions/test_extension_system.h" | 16 #include "chrome/browser/extensions/test_extension_system.h" |
17 #include "chrome/browser/google_apis/drive_api_parser.h" | |
18 #include "chrome/browser/google_apis/gdata_errorcode.h" | |
19 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | |
20 #include "chrome/browser/google_apis/test_util.h" | |
21 #include "chrome/browser/sync_file_system/drive_backend_v1/api_util.h" | 17 #include "chrome/browser/sync_file_system/drive_backend_v1/api_util.h" |
22 #include "chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_util.
h" | 18 #include "chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_util.
h" |
23 #include "chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.
h" | 19 #include "chrome/browser/sync_file_system/drive_backend_v1/drive_metadata_store.
h" |
24 #include "chrome/browser/sync_file_system/drive_backend_v1/fake_drive_service_he
lper.h" | 20 #include "chrome/browser/sync_file_system/drive_backend_v1/fake_drive_service_he
lper.h" |
25 #include "chrome/browser/sync_file_system/file_status_observer.h" | 21 #include "chrome/browser/sync_file_system/file_status_observer.h" |
26 #include "chrome/browser/sync_file_system/mock_remote_change_processor.h" | 22 #include "chrome/browser/sync_file_system/mock_remote_change_processor.h" |
27 #include "chrome/browser/sync_file_system/sync_direction.h" | 23 #include "chrome/browser/sync_file_system/sync_direction.h" |
28 #include "chrome/browser/sync_file_system/sync_file_metadata.h" | 24 #include "chrome/browser/sync_file_system/sync_file_metadata.h" |
29 #include "chrome/browser/sync_file_system/sync_file_system.pb.h" | 25 #include "chrome/browser/sync_file_system/sync_file_system.pb.h" |
30 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 26 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
31 #include "chrome/test/base/testing_profile.h" | 27 #include "chrome/test/base/testing_profile.h" |
32 #include "content/public/test/test_browser_thread_bundle.h" | 28 #include "content/public/test/test_browser_thread_bundle.h" |
33 #include "extensions/common/extension.h" | 29 #include "extensions/common/extension.h" |
34 #include "extensions/common/extension_builder.h" | 30 #include "extensions/common/extension_builder.h" |
35 #include "extensions/common/id_util.h" | 31 #include "extensions/common/id_util.h" |
| 32 #include "google_apis/drive/drive_api_parser.h" |
| 33 #include "google_apis/drive/gdata_errorcode.h" |
| 34 #include "google_apis/drive/gdata_wapi_parser.h" |
| 35 #include "google_apis/drive/test_util.h" |
36 #include "testing/gmock/include/gmock/gmock.h" | 36 #include "testing/gmock/include/gmock/gmock.h" |
37 #include "testing/gtest/include/gtest/gtest.h" | 37 #include "testing/gtest/include/gtest/gtest.h" |
38 #include "webkit/common/fileapi/file_system_util.h" | 38 #include "webkit/common/fileapi/file_system_util.h" |
39 | 39 |
40 #if defined(OS_CHROMEOS) | 40 #if defined(OS_CHROMEOS) |
41 #include "chrome/browser/chromeos/login/user_manager.h" | 41 #include "chrome/browser/chromeos/login/user_manager.h" |
42 #include "chrome/browser/chromeos/settings/cros_settings.h" | 42 #include "chrome/browser/chromeos/settings/cros_settings.h" |
43 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 43 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
44 #endif | 44 #endif |
45 | 45 |
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 } | 940 } |
941 | 941 |
942 TEST_F(DriveFileSyncServiceFakeTest, GetRemoteVersions_WAPI) { | 942 TEST_F(DriveFileSyncServiceFakeTest, GetRemoteVersions_WAPI) { |
943 ScopedDisableDriveAPI disable_drive_api; | 943 ScopedDisableDriveAPI disable_drive_api; |
944 TestGetRemoteVersions(); | 944 TestGetRemoteVersions(); |
945 } | 945 } |
946 | 946 |
947 #endif // !defined(OS_ANDROID) | 947 #endif // !defined(OS_ANDROID) |
948 | 948 |
949 } // namespace sync_file_system | 949 } // namespace sync_file_system |
OLD | NEW |