xref: /aosp_15_r20/build/bazel/rules/cc/testing/BUILD.bazel (revision 7594170e27e0732bc44b93d1440d87a54b6ffe7c)
1*7594170eSAndroid Build Coastguard Worker"""Copyright (C) 2022 The Android Open Source Project
2*7594170eSAndroid Build Coastguard Worker
3*7594170eSAndroid Build Coastguard WorkerLicensed under the Apache License, Version 2.0 (the "License");
4*7594170eSAndroid Build Coastguard Workeryou may not use this file except in compliance with the License.
5*7594170eSAndroid Build Coastguard WorkerYou may obtain a copy of the License at
6*7594170eSAndroid Build Coastguard Worker
7*7594170eSAndroid Build Coastguard Worker     http://www.apache.org/licenses/LICENSE-2.0
8*7594170eSAndroid Build Coastguard Worker
9*7594170eSAndroid Build Coastguard WorkerUnless required by applicable law or agreed to in writing, software
10*7594170eSAndroid Build Coastguard Workerdistributed under the License is distributed on an "AS IS" BASIS,
11*7594170eSAndroid Build Coastguard WorkerWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*7594170eSAndroid Build Coastguard WorkerSee the License for the specific language governing permissions and
13*7594170eSAndroid Build Coastguard Workerlimitations under the License.
14*7594170eSAndroid Build Coastguard Worker"""
15*7594170eSAndroid Build Coastguard Worker
16*7594170eSAndroid Build Coastguard Workerpackage(default_visibility = ["//build/bazel/rules/cc:__subpackages__"])
17*7594170eSAndroid Build Coastguard Worker
18*7594170eSAndroid Build Coastguard Worker# for use by tests which need non-generated files
19*7594170eSAndroid Build Coastguard Worker# i.e. files for which File.is_source == True
20*7594170eSAndroid Build Coastguard Workerfilegroup(
21*7594170eSAndroid Build Coastguard Worker    name = "test_srcs",
22*7594170eSAndroid Build Coastguard Worker    srcs = [
23*7594170eSAndroid Build Coastguard Worker        "test.cpp",
24*7594170eSAndroid Build Coastguard Worker    ],
25*7594170eSAndroid Build Coastguard Worker)
26*7594170eSAndroid Build Coastguard Worker
27*7594170eSAndroid Build Coastguard Worker# for use by tests that need a non-blank gunit test
28*7594170eSAndroid Build Coastguard Workerfilegroup(
29*7594170eSAndroid Build Coastguard Worker    name = "gunit_test_srcs",
30*7594170eSAndroid Build Coastguard Worker    srcs = [
31*7594170eSAndroid Build Coastguard Worker        "gunit_test.cpp",
32*7594170eSAndroid Build Coastguard Worker    ],
33*7594170eSAndroid Build Coastguard Worker)
34