Tej Singh | f11e0a3 | 2020-01-15 16:12:07 -0800 | [diff] [blame] | 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 | |
| 15 | android_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 Ahn | 14867bb | 2020-04-08 09:28:25 +0900 | [diff] [blame] | 35 | "device-tests", |
Jeffrey Huang | 73bd866 | 2020-04-22 17:41:15 -0700 | [diff] [blame] | 36 | "mts", |
Tej Singh | f11e0a3 | 2020-01-15 16:12:07 -0800 | [diff] [blame] | 37 | ], |
| 38 | platform_apis: true, |
| 39 | privileged: true, |
| 40 | certificate: "platform", |
| 41 | compile_multilib: "both", |
| 42 | } |
| 43 | |
| 44 | cc_library_shared { |
| 45 | name: "libstatspull_testhelper", |
| 46 | srcs: ["jni/stats_pull_helper.cpp"], |
| 47 | cflags: [ |
| 48 | "-Wall", |
| 49 | "-Werror", |
| 50 | ], |
| 51 | shared_libs: [ |
Tej Singh | eb7d8f4 | 2020-01-29 15:59:35 -0800 | [diff] [blame] | 52 | "libbinder_ndk", |
| 53 | "statsd-aidl-ndk_platform", |
Tej Singh | f11e0a3 | 2020-01-15 16:12:07 -0800 | [diff] [blame] | 54 | ], |
Tej Singh | eb7d8f4 | 2020-01-29 15:59:35 -0800 | [diff] [blame] | 55 | static_libs: [ |
| 56 | "libstatspull_private", |
| 57 | "libstatssocket_private", |
| 58 | "libutils", |
| 59 | "libcutils", |
| 60 | ], |
| 61 | } |