1// 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 "device-tests", 36 "mts", 37 ], 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: [ 52 "libbinder_ndk", 53 "statsd-aidl-ndk_platform", 54 ], 55 static_libs: [ 56 "libstatspull_private", 57 "libstatssocket_private", 58 "libutils", 59 "libcutils", 60 ], 61} 62