xref: /aosp_15_r20/external/pigweed/pw_containers/examples/BUILD.bazel (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1# Copyright 2024 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7#     https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14
15load("//pw_unit_test:pw_cc_test.bzl", "pw_cc_test")
16
17package(default_visibility = ["//visibility:public"])
18
19licenses(["notice"])
20
21# Examples
22
23pw_cc_test(
24    name = "flat_map",
25    srcs = ["flat_map.cc"],
26    deps = ["//pw_containers:flat_map"],
27)
28
29pw_cc_test(
30    name = "intrusive_forward_list",
31    srcs = ["intrusive_forward_list.cc"],
32    deps = ["//pw_containers:intrusive_forward_list"],
33)
34
35pw_cc_test(
36    name = "intrusive_list",
37    srcs = ["intrusive_list.cc"],
38    deps = ["//pw_containers:intrusive_list"],
39)
40
41pw_cc_test(
42    name = "intrusive_map",
43    srcs = ["intrusive_map.cc"],
44    deps = ["//pw_containers:intrusive_map"],
45)
46
47pw_cc_test(
48    name = "intrusive_multimap",
49    srcs = ["intrusive_multimap.cc"],
50    deps = ["//pw_containers:intrusive_multimap"],
51)
52
53pw_cc_test(
54    name = "intrusive_set",
55    srcs = ["intrusive_set.cc"],
56    deps = ["//pw_containers:intrusive_set"],
57)
58
59pw_cc_test(
60    name = "intrusive_multiset",
61    srcs = ["intrusive_multiset.cc"],
62    deps = ["//pw_containers:intrusive_multiset"],
63)
64
65pw_cc_test(
66    name = "multiple_containers",
67    srcs = ["multiple_containers.cc"],
68    deps = [
69        "//pw_containers:intrusive_list",
70        "//pw_containers:intrusive_map",
71        "//pw_result",
72        "//pw_status",
73    ],
74)
75
76pw_cc_test(
77    name = "wrapped_iterator",
78    srcs = ["wrapped_iterator.cc"],
79    deps = ["//pw_containers:wrapped_iterator"],
80)
81