blob: e81396405d3134b3d5aff4621c0eecb2424a0fe0 [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: [
51 "libbinder",
52 "libutils",
53 "libstatspull",
54 "libstatssocket",
55 ],
56}