diff options
Diffstat (limited to 'tests/integration/Android.bp')
-rw-r--r-- | tests/integration/Android.bp | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/tests/integration/Android.bp b/tests/integration/Android.bp index c4f057b..a9eabc8 100644 --- a/tests/integration/Android.bp +++ b/tests/integration/Android.bp @@ -27,9 +27,8 @@ java_defaults { visibility: ["//visibility:private"], } -android_library { - name: "NetworkStackIntegrationTestsLib", - min_sdk_version: "29", +java_defaults { + name: "NetworkStackIntegrationTestsDefaults", srcs: ["src/**/*.java"], static_libs: [ "androidx.annotation_annotation", @@ -37,7 +36,6 @@ android_library { "mockito-target-extended-minus-junit4", "net-tests-utils", "testables", - "NetworkStackApiStableLib", ], libs: [ "android.test.runner", @@ -48,6 +46,15 @@ android_library { visibility: ["//visibility:private"], } +android_library { + name: "NetworkStackIntegrationTestsLib", + defaults: ["NetworkStackIntegrationTestsDefaults"], + min_sdk_version: "29", + static_libs: [ + "NetworkStackApiStableLib", + ], +} + // Network stack integration tests. android_test { name: "NetworkStackIntegrationTests", @@ -59,6 +66,21 @@ android_test { min_sdk_version: "29", } +// Network stack next integration tests. +android_test { + name: "NetworkStackNextIntegrationTests", + defaults: [ + "NetworkStackIntegrationTestsDefaults", + "NetworkStackIntegrationTestsJniDefaults", + ], + static_libs: [ + "NetworkStackApiCurrentLib", + ], + certificate: "networkstack", + platform_apis: true, + test_suites: ["device-tests"], +} + // Special version of the network stack tests that includes all tests necessary for code coverage // purposes. This is currently the union of NetworkStackTests and NetworkStackIntegrationTests. android_test { |