blob: 1535f3ddcb38563dbc311b1bc6c99c9c988cee02 [file] [log] [blame]
Remi NGUYEN VAN678277c2021-05-11 13:37:06 +00001// This test exists only because the jni_libs list for these tests is difficult to
2// maintain: the test itself only depends on libnetworkstatsfactorytestjni, but the test
3// fails to load that library unless *all* the dependencies of that library are explicitly
4// listed in jni_libs. This means that whenever any of the dependencies changes the test
5// starts failing and breaking presubmits in frameworks/base. We cannot easily put
6// FrameworksNetTests into global presubmit because they are at times flaky, but this
7// test is effectively empty beyond validating that the libraries load correctly, and
8// thus should be stable enough to put in global presubmit.
9//
10// TODO: remove this hack when there is a better solution for jni_libs that includes
11// dependent libraries.
12package {
13 // See: http://go/android-license-faq
14 // A large-scale-change added 'default_applicable_licenses' to import
15 // all of the 'license_kinds' from "frameworks_base_license"
16 // to get the below license kinds:
17 // SPDX-license-identifier-Apache-2.0
18 default_applicable_licenses: ["frameworks_base_license"],
19}
20
21android_test {
22 name: "FrameworksNetSmokeTests",
23 defaults: ["FrameworksNetTests-jni-defaults"],
24 srcs: ["java/SmokeTest.java"],
25 test_suites: ["device-tests"],
26 static_libs: [
27 "androidx.test.rules",
28 "mockito-target-minus-junit4",
29 "services.core",
30 ],
31}