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
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102
  103
  104
  105

content / public / test / DEPS [blame]

include_rules = [
  "-content",

  # These are low-level system APIs on ChromeOS that need to be available
  # everywhere.
  "+chromeos/crosapi/cpp/crosapi_constants.h",
  "+chromeos/lacros/lacros_service.h",
  "+chromeos/startup/browser_params_proxy.h",
  "+chromeos/startup/startup_switches.h",

  # Tests can use all content/public headers.
  "+content/public",

  # This file does not belong in content/public as it should not be
  # included directly by embedders of content/.  It must however be
  # available to code in content/public.
  "+content/common/content_export.h",

  "+components/breadcrumbs/core",
  "+components/discardable_memory/service",
  "+components/download/public/common",
  "+components/leveldb_proto/public",
  "+components/network_session_configurator/common/network_switches.h",
  "+components/services/storage/privileged",
  "+components/services/storage/public",
  "+components/services/storage/shared_storage",
  "+components/startup_metric_utils/browser",
  "+components/startup_metric_utils/common",
  "+components/ukm/test_ukm_recorder.h",
  "+components/viz/client",
  "+components/viz/common",
  "+components/viz/host",
  "+components/viz/test",
  "+device/vr/public/mojom",
  "+services/audio",
  "+services/cert_verifier",
  "+services/metrics/public/cpp",
  "+services/network",
  "+services/service_manager",
  "+services/tracing/public/cpp",
  "+testing/android/native_test/native_browser_test_support.h",
  "+tools/v8_context_snapshot/buildflags.h",
  "+ui/base/resource/resource_bundle.h",
  "+ui/base/resource/resource_bundle_android.h",
  "+ui/ozone/public",
  "+ui/platform_window/common/platform_window_defaults.h",
  "+ui/views",
  "+v8/include/v8.h",
  "+v8/include/v8-forward.h",
]

specific_include_rules = {
  ".*\.(cc|mm)": [
    # Ensure we don't leak internal content headers through public headers. But
    # testing utilities can access anything in content/.
    "+content",
    "+components/tracing/common",
    "+gin/v8_initializer.h",
    "+services/network/network_context.h",
    "+third_party/iaccessible2",
    "+ui/base/resource/resource_bundle.h",
  ],
  # Shell-based browser test set up should use this Shell-derived
  # ContentMainDelegate, but tests that use content should not be using Shell
  # directly.
  "content_browser_test_shell_main_delegate.h": [
    "+content/shell/app/shell_main_delegate.h"
  ],
  "content_browser_test_content_browser_client.h": [
    "+content/shell/browser/shell_content_browser_client.h"
  ],
  "browser_test_base.cc": [
    "+ui/platform_window/fuchsia/initialize_presenter_api_view.h"
  ],
  "browser_test_utils.cc": [
    "+ash/webui/grit/ash_webui_common_resources.h"
  ],
  "fenced_frame_reporter_observer.cc": [
    "+content/browser/fenced_frame/fenced_frame_reporter.h"
  ],
  "fenced_frame_reporter_observer.h": [
    "+content/browser/fenced_frame/fenced_frame_reporter.h"
  ],
  "mock_captured_surface_controller.h": [
    "+content/browser/media/captured_surface_controller.h"
  ],
  "mock_video_picture_in_picture_window_controller_impl.h": [
    "+content/browser/picture_in_picture/video_picture_in_picture_window_controller_impl.h"
  ],
  "scoped_time_zone.cc": [
    "+services/device/device_service.h"
  ],
  "scoped_time_zone.h": [
    "+services/device/time_zone_monitor/fake_time_zone_monitor.h"
  ],
  "shared_storage_test_utils.h": [
    "+content/browser/private_aggregation/private_aggregation_host.h"
  ],
  "test_image_transport_factory.h": [
    "+content/browser/compositor/image_transport_factory.h"
  ],
  "test_shared_storage_header_observer.h": [
    "+content/browser/shared_storage/shared_storage_header_observer.h"
  ]
}