2021-03-29 17:09:13 +09:00
|
|
|
// Copyright (C) 2021 The Android Open Source Project
|
|
|
|
|
//
|
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
|
//
|
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
//
|
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
2021-03-30 22:55:10 -07:00
|
|
|
package {
|
2024-01-31 11:08:57 +00:00
|
|
|
default_team: "trendy_team_fwk_core_networking",
|
2021-03-30 22:55:10 -07:00
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-29 17:09:13 +09:00
|
|
|
java_library {
|
|
|
|
|
name: "net-tests-utils",
|
|
|
|
|
srcs: [
|
|
|
|
|
"devicetests/**/*.java",
|
|
|
|
|
"devicetests/**/*.kt",
|
|
|
|
|
],
|
2021-03-30 07:56:39 +00:00
|
|
|
defaults: [
|
|
|
|
|
"framework-connectivity-test-defaults",
|
|
|
|
|
],
|
2021-03-29 17:09:13 +09:00
|
|
|
libs: [
|
2025-06-06 18:08:50 +09:00
|
|
|
// TODO: is there a way to subclass MockContentResolver without depending on the impl?
|
|
|
|
|
"android.test.mock.impl",
|
2021-03-29 17:09:13 +09:00
|
|
|
"androidx.annotation_annotation",
|
2024-01-31 11:08:57 +00:00
|
|
|
"net-utils-device-common-bpf", // TestBpfMap extends IBpfMap.
|
2021-03-29 17:09:13 +09:00
|
|
|
],
|
|
|
|
|
static_libs: [
|
|
|
|
|
"androidx.test.ext.junit",
|
2024-10-09 16:24:44 +09:00
|
|
|
"collector-device-lib",
|
2025-06-06 18:08:50 +09:00
|
|
|
"frameworks-base-testutils", // For FakeSettingsProvider.
|
2021-03-29 17:09:13 +09:00
|
|
|
"kotlin-reflect",
|
|
|
|
|
"libnanohttpd",
|
2025-03-07 10:09:53 +09:00
|
|
|
"mockito-target-minus-junit4",
|
2021-03-29 17:09:13 +09:00
|
|
|
"net-tests-utils-host-device-common",
|
|
|
|
|
"net-utils-device-common",
|
2023-01-05 19:25:18 -08:00
|
|
|
"net-utils-device-common-async",
|
2021-07-01 13:57:02 +00:00
|
|
|
"net-utils-device-common-netlink",
|
2023-08-28 18:49:44 +08:00
|
|
|
"net-utils-device-common-struct",
|
2024-03-12 21:23:19 +08:00
|
|
|
"net-utils-device-common-struct-base",
|
2023-04-06 15:52:26 -07:00
|
|
|
"net-utils-device-common-wear",
|
2021-06-21 11:52:44 +08:00
|
|
|
"modules-utils-build_system",
|
2021-03-29 17:09:13 +09:00
|
|
|
],
|
2024-01-31 11:08:57 +00:00
|
|
|
lint: {
|
|
|
|
|
strict_updatability_linting: true,
|
|
|
|
|
},
|
2021-03-29 17:09:13 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
java_library {
|
2021-11-22 19:28:34 +09:00
|
|
|
// Consider using net-tests-utils instead if writing device code.
|
|
|
|
|
// That library has a lot more useful tools into it for users that
|
|
|
|
|
// work on Android and includes this lib.
|
|
|
|
|
name: "net-tests-utils-host-device-common",
|
|
|
|
|
srcs: [
|
|
|
|
|
"hostdevice/**/*.java",
|
|
|
|
|
"hostdevice/**/*.kt",
|
|
|
|
|
],
|
|
|
|
|
host_supported: true,
|
2025-04-16 08:54:34 +09:00
|
|
|
sdk_version: "module_current",
|
2021-11-22 19:28:34 +09:00
|
|
|
visibility: [
|
2023-09-11 11:48:36 +09:00
|
|
|
"//packages/modules/Connectivity/staticlibs/tests:__subpackages__",
|
|
|
|
|
"//packages/modules/Connectivity/staticlibs/client-libs/tests:__subpackages__",
|
2023-07-26 14:41:33 +08:00
|
|
|
"//packages/modules/Connectivity/tests/cts/hostside",
|
2025-04-16 08:54:34 +09:00
|
|
|
"//external/cronet:__subpackages__",
|
2021-11-22 19:28:34 +09:00
|
|
|
],
|
|
|
|
|
libs: [
|
|
|
|
|
"jsr305",
|
|
|
|
|
],
|
|
|
|
|
static_libs: [
|
2024-01-31 11:08:57 +00:00
|
|
|
"kotlin-test",
|
2021-11-22 19:28:34 +09:00
|
|
|
],
|
2024-01-31 11:08:57 +00:00
|
|
|
lint: {
|
|
|
|
|
strict_updatability_linting: true,
|
|
|
|
|
},
|
2021-03-29 17:09:13 +09:00
|
|
|
}
|
2021-10-04 19:53:32 +09:00
|
|
|
|
|
|
|
|
java_test_host {
|
|
|
|
|
name: "net-tests-utils-host-common",
|
|
|
|
|
srcs: [
|
2024-06-27 10:31:19 +08:00
|
|
|
"host/java/**/*.java",
|
|
|
|
|
"host/java/**/*.kt",
|
2021-10-04 19:53:32 +09:00
|
|
|
],
|
|
|
|
|
libs: ["tradefed"],
|
2023-12-19 10:50:05 +00:00
|
|
|
test_suites: [
|
|
|
|
|
"ats",
|
2025-01-16 15:25:33 -08:00
|
|
|
"automotive-general-tests",
|
2023-12-19 10:50:05 +00:00
|
|
|
"device-tests",
|
|
|
|
|
"general-tests",
|
|
|
|
|
"cts",
|
|
|
|
|
"mts-networking",
|
2024-01-23 09:24:45 +00:00
|
|
|
"mts-tethering",
|
2024-12-02 03:11:19 +00:00
|
|
|
"mcts-tethering",
|
2023-12-19 10:50:05 +00:00
|
|
|
],
|
2024-10-22 16:31:00 -07:00
|
|
|
device_common_data: [":ConnectivityTestPreparer"],
|
2021-10-04 19:53:32 +09:00
|
|
|
}
|
2024-06-27 10:31:19 +08:00
|
|
|
|
|
|
|
|
python_library_host {
|
|
|
|
|
name: "net-tests-utils-host-python-common",
|
|
|
|
|
srcs: [
|
|
|
|
|
"host/python/*.py",
|
|
|
|
|
],
|
|
|
|
|
pkg_path: "net_tests_utils",
|
|
|
|
|
}
|