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
Change-Id: I2f3a94b2ba50cd4d73303961bf1661a3091ab033
diff --git a/staticlibs/tests/unit/Android.bp b/staticlibs/tests/unit/Android.bp
index fe363f5..52c5f82 100644
--- a/staticlibs/tests/unit/Android.bp
+++ b/staticlibs/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"],
 }