1 # Copyright 2021 The Chromium Authors
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 static_library("custom_handlers") {
11 "protocol_handler_registry.cc",
12 "protocol_handler_registry.h",
13 "protocol_handler_throttle.cc",
14 "protocol_handler_throttle.h",
18 "//build:chromeos_buildflags",
19 "//components/keyed_service/content",
20 "//components/keyed_service/core",
21 "//components/pref_registry",
23 "//components/strings",
24 "//components/user_prefs",
25 "//content/public/browser",
26 "//content/public/common",
28 "//services/network/public/cpp:cpp_base",
29 "//third_party/blink/public/common:headers",
34 "register_protocol_handler_permission_request.cc",
35 "register_protocol_handler_permission_request.h",
39 "//components/permissions",
45 source_set("test_support") {
48 "simple_protocol_handler_registry_factory.cc",
49 "simple_protocol_handler_registry_factory.h",
50 "test_protocol_handler_registry_delegate.cc",
51 "test_protocol_handler_registry_delegate.h",
56 "//components/keyed_service/content",
60 source_set("unit_tests") {
63 sources = [ "protocol_handler_registry_unittest.cc" ]
68 "//base/test:test_support",
69 "//components/pref_registry",
70 "//components/sync_preferences",
71 "//components/sync_preferences:test_support",
72 "//components/user_prefs",
73 "//content/public/browser",
74 "//content/public/common",
75 "//content/test:test_support",
78 "//third_party/blink/public/common:headers",
82 source_set("browser_tests") {
84 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
85 sources = [ "protocol_handler_registry_browsertest.cc" ]
89 "//base/test:test_support",
90 "//components/keyed_service/content",
91 "//content/shell:content_shell_lib",
92 "//content/test:browsertest_support",
93 "//content/test:test_support",
100 "//components/test:custom_handlers_test_bundle_data",
101 "//components/test:fenced_frames_test_bundle_data",