Index: components/drive/DEPS |
diff --git a/components/drive/DEPS b/components/drive/DEPS |
index 818ed7c7b8d52ff9a6196c1dd6a5c7ddb9e74740..6c96e5a8fe0549e6ebeb1a1d4c8c8d9d09444552 100644 |
--- a/components/drive/DEPS |
+++ b/components/drive/DEPS |
@@ -4,21 +4,99 @@ include_rules = [ |
"+google_apis", |
"+google/cacheinvalidation/types.pb.h", |
"+net", |
+ "+net", |
+ "+third_party/leveldatabase", |
"+third_party/re2", |
] |
specific_include_rules = { |
- # The following dependency should be removed to fully make this |
- # directory chrome/ and content/ and storage/ independent. |
- # crbug.com/257943 |
+ # The following product dependency should be removed to fully make this |
+ # directory chrome/ and content/ and storage/ independent. crbug.com/257943 |
"drive_api_util\.cc": [ |
"+storage/browser/fileapi/file_stream_reader.h" |
], |
- # The following dependency should be removed to fully make this |
- # directory chrome/ and content/ and storage/ independent. |
- # crbug.com/257943 |
+ # The following product dependency should be removed to fully make this |
+ # directory chrome/ and content/ and storage/ independent. crbug.com/257943 |
"drive_uploader\.cc": [ |
"+content/public/browser/power_save_blocker.h", |
], |
+ |
+ # The following test dependencies should be removed to fully componentize this |
+ # directory. crbug.com/498951 |
+ r"(create_directory_operation_unittest\.cc" |
+ r"|create_file_operation_unittest\.cc" |
+ r"|copy_operation_unittest\.cc" |
+ r"|download_operation_unittest\.cc" |
+ r"|entry_revert_performer_unittest\.cc" |
+ r"|entry_update_performer_unittest\.cc" |
+ r"|get_file_for_saving_operation_unittest\.cc" |
+ r"|move_operation_unittest\.cc" |
+ r"|open_file_operation_unittest\.cc" |
+ r"|operation_test_base\.cc" |
+ r"|search_operation_unittest\.cc" |
+ r"|set_property_operation_unittest\.cc" |
+ r"|remove_operation_unittest\.cc" |
+ r"|remove_performer_unittest\.cc" |
+ r"|test_util\.h" |
+ r"|truncate_operation_unittest\.cc" |
+ r")": [ |
+ "!content/public/test/test_utils.h", |
+ ], |
+ |
+ # The following test dependencies should be removed to fully componentize this |
+ # directory. crbug.com/498951 |
+ r"(change_list_loader_unittest.cc" |
+ r"|change_list_processor_unittest.cc" |
+ r"|directory_loader_unittest.cc" |
+ r"|fake_file_system_unittest.cc" |
+ r"|file_cache_unittest.cc" |
+ r"|file_system_unittest.cc" |
+ r"|file_write_watcher_unittest.cc" |
+ r"|job_scheduler_unittest.cc" |
+ r"|operation_test_base\.h" |
+ r"|remove_stale_cache_files_unittest.cc" |
+ r"|resource_metadata_storage_unittest.cc" |
+ r"|resource_metadata_unittest.cc" |
+ r"|search_metadata_unittest.cc" |
+ r"|sync_client_unittest\.cc" |
+ r")": [ |
+ "!content/public/test/test_browser_thread_bundle.h", |
+ ], |
+ |
+ # The following test dependencies should be removed to fully componentize this |
+ # directory. crbug.com/498951 |
+ r"(fake_file_system\.cc" |
+ r"|file_system_unittest\.cc" |
+ r"|file_write_watcher_unittest\.cc" |
+ r"|get_file_for_saving_operation\.cc" |
+ r"|get_file_for_saving_operation_unittest\.cc" |
+ r"|operation_test_base\.cc" |
+ r")": [ |
+ "!content/public/browser/browser_thread.h", |
+ ], |
+ |
+ # The following test dependencies should be removed to fully componentize this |
+ # directory. crbug.com/498951 |
+ "file_system_core_util_unittest\.cc": [ |
+ "+chrome/browser/chromeos/drive/file_system_util.h", |
+ "+chrome/test/base/testing_profile.h", |
+ "+content/public/test/test_browser_thread_bundle.h", |
+ "+content/public/test/test_file_system_options.h", |
+ "+storage/browser/fileapi/external_mount_points.h", |
+ "+storage/browser/fileapi/file_system_backend.h", |
+ "+storage/browser/fileapi/file_system_context.h", |
+ "+storage/browser/fileapi/file_system_url.h", |
+ "+storage/browser/fileapi/isolated_context.h", |
+ ], |
+ |
+ # The dependency below is ok and can stay here for the long-term, because it |
+ # is guarded by #if defined(OS_CHROMEOS) in the source code. |
+ r"(file_cache\.cc" |
+ r"|download_operation_unittest\.cc" |
+ r"|test_util\.h" |
+ r")": [ |
+ "!third_party/cros_system_api/constants/cryptohome.h", |
+ ], |
+ |
} |