diff options
author | lucaslin <lucaslin@google.com> | 2021-01-29 19:19:27 +0800 |
---|---|---|
committer | Lucas Lin <lucaslin@google.com> | 2021-02-01 07:24:37 +0000 |
commit | 6082d3788eb5e5baa10dad0ca9423700472bf00f (patch) | |
tree | 05862389584d43d625e4f2fdebf9f3c213f44bc6 /client-libs/tests/unit/Android.bp | |
parent | a7af478653f62e5e3c210691eef814453d9a8c90 (diff) | |
download | net-6082d3788eb5e5baa10dad0ca9423700472bf00f.tar.gz |
Have a collection of utilities for netd - NetdUtils
Some files which will be inside mainline module depend on
NetworkManagementService to talk to netd, but after they become
a part of mainline module, they cannot access @hide API of
NetworkManagementService.
So create a NetdUtils to help them to talk to netd.
Bug: 170598012
Test: atest CtsNetTestCasesLatestSdk NetdStaticLibTests
Change-Id: I8bee1204b9533b70844da0b3768427438fd0c890
Diffstat (limited to 'client-libs/tests/unit/Android.bp')
-rw-r--r-- | client-libs/tests/unit/Android.bp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/client-libs/tests/unit/Android.bp b/client-libs/tests/unit/Android.bp new file mode 100644 index 00000000..fc8a2c6c --- /dev/null +++ b/client-libs/tests/unit/Android.bp @@ -0,0 +1,39 @@ +android_library { + name: "NetdStaticLibTestsLib", + srcs: [ + "src/**/*.java", + "src/**/*.kt", + ], + min_sdk_version: "29", + static_libs: [ + "androidx.test.rules", + "mockito-target-extended-minus-junit4", + "net-tests-utils-host-device-common", + "netd-client", + ], + libs: [ + "android.test.runner", + "android.test.base", + ], + visibility: [ + // Visible for Tethering and NetworkStack integration test and link NetdStaticLibTestsLib + // there, so that the tests under client-libs can also be run when running tethering and + // NetworkStack MTS. + "//packages/modules/Connectivity/Tethering/tests/integration", + "//packages/modules/NetworkStack/tests/integration", + ] +} + +android_test { + name: "NetdStaticLibTests", + certificate: "platform", + static_libs: [ + "NetdStaticLibTestsLib", + ], + jni_libs: [ + // For mockito extended + "libdexmakerjvmtiagent", + "libstaticjvmtiagent", + ], + test_suites: ["device-tests"], +} |