blob: 2d64f190839c5b6e302e71ad18797f4ebe8c05d5 [file] [log] [blame]
Tej Singhf11e0a32020-01-15 16:12:07 -08001// Copyright (C) 2019 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
15android_test {
16 name: "LibStatsPullTests",
17 static_libs: [
18 "androidx.test.rules",
19 "platformprotoslite",
20 "statsdprotolite",
21 "truth-prebuilt",
22 ],
23 libs: [
24 "android.test.runner.stubs",
25 "android.test.base.stubs",
26 ],
27 jni_libs: [
28 "libstatspull_testhelper",
29 ],
30 srcs: [
31 "src/**/*.java",
32 "protos/**/*.proto",
33 ],
34 test_suites: [
35 "general-tests",
36 ],
37 platform_apis: true,
38 privileged: true,
39 certificate: "platform",
40 compile_multilib: "both",
41}
42
43cc_library_shared {
44 name: "libstatspull_testhelper",
45 srcs: ["jni/stats_pull_helper.cpp"],
46 cflags: [
47 "-Wall",
48 "-Werror",
49 ],
50 shared_libs: [
Tej Singheb7d8f42020-01-29 15:59:35 -080051 "libbinder_ndk",
52 "statsd-aidl-ndk_platform",
Tej Singhf11e0a32020-01-15 16:12:07 -080053 ],
Tej Singheb7d8f42020-01-29 15:59:35 -080054 static_libs: [
55 "libstatspull_private",
56 "libstatssocket_private",
57 "libutils",
58 "libcutils",
59 ],
60}