diff options
author | markchien <markchien@google.com> | 2020-04-22 03:46:18 +0000 |
---|---|---|
committer | Mark Chien <markchien@google.com> | 2020-04-22 07:37:44 +0000 |
commit | 76d0b5e4db722cd9536cc170314932804184cc24 (patch) | |
tree | 25466d6b4363f3ba81e263ebd815d8c2f0e3d502 | |
parent | 97c7286f697645a479bec21a1ebc3e9e898a123b (diff) | |
download | net-76d0b5e4db722cd9536cc170314932804184cc24.tar.gz |
Make NetworkStaticLibTests as test lib
Share the tests with TetheringCoverageTests because
tethering module use net-utils-framework-common.
Remove unused static library. Currently we do not implement any
unit test for net-utils-services-common. "net-utils-services-common"
can be back when we add new test for it.
Bug: 148636687
Test: atest NetworkStaticLibTests
atest TetheringCoverageTests
Merged-In: I2f3a94b2ba50cd4d73303961bf1661a3091ab033
Change-Id: I2f3a94b2ba50cd4d73303961bf1661a3091ab033
-rw-r--r-- | common/tests/unit/Android.bp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/common/tests/unit/Android.bp b/common/tests/unit/Android.bp index fe363f5a..52c5f82f 100644 --- a/common/tests/unit/Android.bp +++ b/common/tests/unit/Android.bp @@ -2,20 +2,29 @@ // Build NetworkStaticLibTests package //######################################################################## -android_test { - name: "NetworkStaticLibTests", - certificate: "platform", +android_library { + name: "NetworkStaticLibTestsLib", srcs: ["src/**/*.java","src/**/*.kt"], jarjar_rules: "jarjar-rules.txt", - test_suites: ["device-tests"], static_libs: [ - "androidx.test.rules", "net-utils-framework-common", - "net-utils-services-common", + "androidx.test.rules", ], libs: [ "android.test.runner", "android.test.base", ], + visibility: [ + "//frameworks/base/packages/Tethering/tests/integration", + ] +} + +android_test { + name: "NetworkStaticLibTests", + certificate: "platform", + static_libs: [ + "NetworkStaticLibTestsLib", + ], + test_suites: ["device-tests"], } |