summaryrefslogtreecommitdiffstats
path: root/components/drive/DEPS
blob: c23c40e7db8e7aeb2033566791b300ac0cd12533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
include_rules = [
  "+components/invalidation",
  "+components/keyed_service",
  "+components/prefs",
  "+google_apis",
  "+google/cacheinvalidation/types.pb.h",
  "+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
  "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"(copy_operation_unittest\.cc"
  r"|create_directory_operation_unittest\.cc"
  r"|create_file_operation_unittest\.cc"
  r"|download_operation_unittest\.cc"
  r"|drive_test_util\.h"
  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"|remove_operation_unittest\.cc"
  r"|remove_performer_unittest\.cc"
  r"|search_operation_unittest\.cc"
  r"|set_property_operation_unittest\.cc"
  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_core_util_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_unittest\.cc"
  r"|operation_test_base\.cc"
  r")": [
    "+content/public/browser/browser_thread.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.
  "file_cache\.h": [
    "+third_party/cros_system_api/constants/cryptohome.h",
  ],
}