blob: 3186033e0055e47b6a413c6a7731f7b29ca0187f [file] [log] [blame]
Aaron Huangf73ff8c2019-12-06 18:12:24 +08001//########################################################################
2// Build NetworkStaticLibTests package
3//########################################################################
4
Bob Badour1b8c7442021-02-12 15:39:10 -08005package {
Aditya Choudhary01b5ede2024-01-31 11:08:57 +00006 default_team: "trendy_team_fwk_core_networking",
Bob Badour1b8c7442021-02-12 15:39:10 -08007 default_applicable_licenses: ["Android-Apache-2.0"],
8}
9
markchienba972ca2020-04-21 15:23:06 +080010android_library {
11 name: "NetworkStaticLibTestsLib",
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000012 srcs: [
13 "src/**/*.java",
14 "src/**/*.kt",
15 ],
Maciej Żenczykowski127a1442023-09-19 23:17:10 +000016 min_sdk_version: "30",
Remi NGUYEN VAN2202e612021-03-30 07:56:39 +000017 defaults: ["framework-connectivity-test-defaults"],
Aaron Huangf73ff8c2019-12-06 18:12:24 +080018 static_libs: [
markchienba972ca2020-04-21 15:23:06 +080019 "androidx.test.rules",
Remi NGUYEN VANb86b34d2020-12-01 18:29:21 +090020 "mockito-target-extended-minus-junit4",
Chalard Jeanb61091b2021-10-07 15:29:13 +090021 "netd-client",
Igor Chernysheva25f1092022-12-20 00:07:38 -080022 "net-tests-utils",
23 "net-utils-framework-common",
24 "net-utils-device-common",
25 "net-utils-device-common-async",
26 "net-utils-device-common-bpf",
27 "net-utils-device-common-ip",
Yang Sun3aa62e62024-03-12 21:23:19 +080028 "net-utils-device-common-struct-base",
Igor Chernyshev810be2b2023-04-06 15:52:26 -070029 "net-utils-device-common-wear",
Aaron Huangf73ff8c2019-12-06 18:12:24 +080030 ],
31 libs: [
32 "android.test.runner",
33 "android.test.base",
34 ],
markchienba972ca2020-04-21 15:23:06 +080035 visibility: [
36 "//frameworks/base/packages/Tethering/tests/integration",
Remi NGUYEN VANf96e0202021-06-09 18:00:43 +090037 "//packages/modules/Connectivity/tests:__subpackages__",
38 "//packages/modules/Connectivity/Tethering/tests:__subpackages__",
Remi NGUYEN VANf1098372020-06-08 15:55:25 +090039 "//packages/modules/NetworkStack/tests/integration",
Chiachang Wang7068c882021-11-19 15:37:30 +080040 ],
Yang Sund5c02762023-12-06 19:29:55 +080041 lint: {
Motomu Utsumia1a00342024-06-13 09:29:47 +000042 strict_updatability_linting: true,
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000043 test: true,
Yang Sund5c02762023-12-06 19:29:55 +080044 },
markchienba972ca2020-04-21 15:23:06 +080045}
46
47android_test {
48 name: "NetworkStaticLibTests",
49 certificate: "platform",
50 static_libs: [
51 "NetworkStaticLibTestsLib",
52 ],
Remi NGUYEN VANb86b34d2020-12-01 18:29:21 +090053 jni_libs: [
54 // For mockito extended
55 "libdexmakerjvmtiagent",
56 "libstaticjvmtiagent",
57 ],
markchienc064abd2020-10-26 15:10:45 +080058 jarjar_rules: "jarjar-rules.txt",
markchienba972ca2020-04-21 15:23:06 +080059 test_suites: ["device-tests"],
Motomu Utsumia1a00342024-06-13 09:29:47 +000060 lint: {
61 strict_updatability_linting: true,
62 },
Aaron Huangf73ff8c2019-12-06 18:12:24 +080063}
Junyu Lai850e6fa2024-06-21 14:34:01 +080064
65python_test_host {
66 name: "NetworkStaticLibHostPythonTests",
67 srcs: [
68 "host/python/*.py",
69 ],
70 main: "host/python/run_tests.py",
71 libs: [
72 "mobly",
73 "net-tests-utils-host-python-common",
74 ],
75 test_config: "host/python/test_config.xml",
76 test_suites: [
77 "general-tests",
78 ],
Junyu Lai3085caa2024-06-20 15:16:25 +080079 // MoblyBinaryHostTest doesn't support unit_test.
Junyu Lai850e6fa2024-06-21 14:34:01 +080080 test_options: {
Junyu Lai3085caa2024-06-20 15:16:25 +080081 unit_test: false,
82 },
83 // Needed for applying VirtualEnv.
84 version: {
85 py3: {
86 embedded_launcher: false,
87 },
Junyu Lai850e6fa2024-06-21 14:34:01 +080088 },
89}