blob: 05b3e049ac3946951b75e25d47b927556a5da09c [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: [
Sundong Ahn14867bb2020-04-08 09:28:25 +090035 "device-tests",
Jeffrey Huang73bd8662020-04-22 17:41:15 -070036 "mts",
Tej Singhf11e0a32020-01-15 16:12:07 -080037 ],
38 platform_apis: true,
39 privileged: true,
40 certificate: "platform",
41 compile_multilib: "both",
42}
43
44cc_library_shared {
45 name: "libstatspull_testhelper",
46 srcs: ["jni/stats_pull_helper.cpp"],
47 cflags: [
48 "-Wall",
49 "-Werror",
50 ],
51 shared_libs: [
Tej Singheb7d8f42020-01-29 15:59:35 -080052 "libbinder_ndk",
53 "statsd-aidl-ndk_platform",
Tej Singhf11e0a32020-01-15 16:12:07 -080054 ],
Tej Singheb7d8f42020-01-29 15:59:35 -080055 static_libs: [
56 "libstatspull_private",
57 "libstatssocket_private",
58 "libutils",
59 "libcutils",
60 ],
61}