1// Copyright 2020 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://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,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_team: "trendy_team_android_rubidium",
17    // See: http://go/android-license-faq
18    // A large-scale-change added 'default_applicable_licenses' to import
19    // all of the 'license_kinds' from "packages_modules_ExtServices_license"
20    // to get the below license kinds:
21    //   SPDX-license-identifier-Apache-2.0
22    default_applicable_licenses: ["packages_modules_ExtServices_license"],
23}
24
25filegroup {
26    name: "libextservices_test_default_map",
27    srcs: ["libextservices_test_default.map"],
28}
29
30cc_defaults {
31    name: "libextservices_test_default",
32    stl: "libc++_static",
33    version_script: ":libextservices_test_default_map",
34}
35
36// Run this test using "atest libextservices_test -- --all-abi" or it will fail to run on 64 bit
37// devices.
38cc_test {
39    name: "libextservices_test-tplus",
40    defaults: ["libextservices_test_default"],
41    test_suites: [
42        "general-tests",
43        "mts-extservices",
44    ],
45
46    shared_libs: [
47        "libandroid",
48        "liblog",
49    ],
50    static_libs: [
51        "libbase",
52        "libextservices",
53        "libfft2d",
54        "libgmock_main",
55        "libgmock",
56        "libgtest",
57    ],
58
59    cflags: [
60        "-Wall",
61        "-Werror",
62    ],
63
64    srcs: [
65        "*.cpp",
66    ],
67
68    data: [
69        "test_data/*.raw",
70    ],
71    compile_multilib: "prefer32",
72    min_sdk_version: "33",
73    test_config: "AndroidTest-tplus.xml",
74}
75
76// Run this test using "atest libextservices_test -- --all-abi" or it will fail to run on 64 bit
77// devices.
78cc_test {
79    name: "libextservices_test-sminus",
80    defaults: ["libextservices_test_default"],
81    test_suites: [
82        "general-tests",
83        "mts-extservices",
84    ],
85
86    shared_libs: [
87        "libandroid",
88        "liblog",
89    ],
90    static_libs: [
91        "libbase",
92        "libextservices",
93        "libfft2d",
94        "libgmock_main",
95        "libgmock",
96        "libgtest",
97    ],
98
99    cflags: [
100        "-Wall",
101        "-Werror",
102    ],
103
104    srcs: [
105        "*.cpp",
106    ],
107
108    data: [
109        "test_data/*.raw",
110    ],
111    compile_multilib: "prefer32",
112    min_sdk_version: "30",
113    test_config: "AndroidTest-sminus.xml",
114}
115