paulhu dc09e6e635 Correct FrameworksNetTests-jni-defaults lib
FrameworksNetTests-jni-defaults lib should only contain jni
dependencies. Remove static_libs/libs from it and update
FrameworksNetTests/FrameworksNetSmokeTests libs as well.

Bug: NA
Test: atest FrameworksNetSmokeTests FrameworksNetTests
Change-Id: I705e949e4c00035c9734b6a240529d1c2216eb6b
2019-07-01 09:29:13 +00:00

22 lines
1.0 KiB
Plaintext

// This test exists only because the jni_libs list for these tests is difficult to
// maintain: the test itself only depends on libnetworkstatsfactorytestjni, but the test
// fails to load that library unless *all* the dependencies of that library are explicitly
// listed in jni_libs. This means that whenever any of the dependencies changes the test
// starts failing and breaking presubmits in frameworks/base. We cannot easily put
// FrameworksNetTests into global presubmit because they are at times flaky, but this
// test is effectively empty beyond validating that the libraries load correctly, and
// thus should be stable enough to put in global presubmit.
//
// TODO: remove this hack when there is a better solution for jni_libs that includes
// dependent libraries.
android_test {
name: "FrameworksNetSmokeTests",
defaults: ["FrameworksNetTests-jni-defaults"],
srcs: ["java/SmokeTest.java"],
test_suites: ["device-tests"],
static_libs: [
"androidx.test.rules",
"mockito-target-minus-junit4",
"services.core",
],
}