blob: 121efa1a38364516d658104d12012dc1d9dc12aa [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 {
Aditya Choudhary71086be2024-01-31 11:08:57 +000013 default_team: "trendy_team_fwk_core_networking",
Remi NGUYEN VAN678277c2021-05-11 13:37:06 +000014 // See: http://go/android-license-faq
Baligh Uddincd4d44c2021-05-23 18:43:24 +000015 default_applicable_licenses: ["Android-Apache-2.0"],
Remi NGUYEN VAN678277c2021-05-11 13:37:06 +000016}
17
18android_test {
19 name: "FrameworksNetSmokeTests",
20 defaults: ["FrameworksNetTests-jni-defaults"],
21 srcs: ["java/SmokeTest.java"],
22 test_suites: ["device-tests"],
23 static_libs: [
24 "androidx.test.rules",
25 "mockito-target-minus-junit4",
Paul Duffin4ceb8c12022-05-20 14:15:42 +000026 "service-connectivity-for-tests",
Remi NGUYEN VAN678277c2021-05-11 13:37:06 +000027 ],
28}