Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72799378 authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN Committed by android-build-merger
Browse files

Add tests for stable API NetworkStack to presubmit am: 5f48efe6 am: 3496918e

am: e5898175

Change-Id: Ic60e857bcdd046649bd7c5acada5bc5979cbff53
parents 40a4f619 e5898175
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2,6 +2,9 @@
  "presubmit": [
    {
      "name": "NetworkStackTests"
    },
    {
      "name": "NetworkStackNextTests"
    }
  ],
  "postsubmit": [
+17 −4
Original line number Diff line number Diff line
@@ -14,18 +14,16 @@
// limitations under the License.
//

android_test {
    name: "NetworkStackTests",
java_defaults {
    name: "NetworkStackTestsDefaults",
    certificate: "platform",
    srcs: ["src/**/*.java", "src/**/*.kt"],
    test_suites: ["device-tests"],
    resource_dirs: ["res"],
    static_libs: [
        "androidx.test.rules",
        "kotlin-reflect",
        "mockito-target-extended-minus-junit4",
        "net-tests-utils",
        "NetworkStackApiCurrentLib",
        "testables",
    ],
    libs: [
@@ -42,6 +40,21 @@ android_test {
    ],
}

android_test {
    name: "NetworkStackNextTests",
    srcs: [], // TODO: tests that only apply to the current, non-stable API can be added here
    test_suites: ["device-tests"],
    defaults: ["NetworkStackTestsDefaults"],
    static_libs: ["NetworkStackApiCurrentLib"],
}

android_test {
    name: "NetworkStackTests",
    test_suites: ["device-tests"],
    defaults: ["NetworkStackTestsDefaults"],
    static_libs: ["NetworkStackApiStableLib"],
}

// Additional dependencies of libnetworkstackutilsjni that are not provided by the system when
// running as a test application.
// Using java_defaults as jni_libs does not support filegroups.