1 # Copyright 2022 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.
9 # Integration helpers for fuchsia.* FIDL APIs used by Fuchsia Components.
10 source_set("fuchsia_component_support") {
11 # Only for use by Fuchsia Components.
15 "//chromecast/internal/*",
16 "//fuchsia_web/runners/*",
17 "//fuchsia_web/webengine/*",
18 "//fuchsia_web/webinstance_host/*",
21 "append_arguments_from_file.h",
23 "feedback_registration.h",
25 "serialize_arguments.h",
28 "append_arguments_from_file.cc",
30 "feedback_registration.cc",
32 "serialize_arguments.cc",
36 "//third_party/abseil-cpp:absl",
39 "//build:branding_buildflags",
40 "//components/version_info",
41 "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.feedback:fuchsia.feedback_hlcpp",
42 "//third_party/fuchsia-sdk/sdk/pkg/fidl_cpp_base",
43 "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
44 "//third_party/fuchsia-sdk/sdk/pkg/sys_inspect_cpp",
48 source_set("annotations_manager") {
50 public = [ "annotations_manager.h" ]
51 sources = [ "annotations_manager.cc" ]
54 "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.element:fuchsia.element_hlcpp",
55 "//third_party/fuchsia-sdk/sdk/pkg/fidl_cpp",
59 # Integration helper for components which host child components.
60 source_set("dynamic_component_host") {
64 "dynamic_component_host.cc",
65 "dynamic_component_host.h",
70 "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.io:fuchsia.io_hlcpp",
71 "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
72 "//third_party/fuchsia-sdk/sdk/pkg/vfs_cpp",
75 public_deps = [ "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.component:fuchsia.component_hlcpp" ]
78 source_set("test_support") {
81 # Only for use by Fuchsia Components.
86 public = [ "mock_realm.h" ]
87 sources = [ "mock_realm.cc" ]
91 "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.component",
93 deps = [ "//testing/gtest" ]
96 source_set("unit_tests") {
98 visibility += [ "//components:components_unittests__exec" ]
100 "annotations_manager_unittest.cc",
101 "config_reader_unittest.cc",
102 "dynamic_component_host_unittest.cc",
103 "inspect_unittest.cc",
106 ":annotations_manager",
107 ":dynamic_component_host",
108 ":fuchsia_component_support",
111 "//base/test:test_support",
112 "//components/version_info",
114 "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.component:fuchsia.component_hlcpp",
115 "//third_party/fuchsia-sdk/sdk/pkg/fdio",
116 "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
117 "//third_party/fuchsia-sdk/sdk/pkg/sys_inspect_cpp",