Currently these tests run as hostside tests and require a lot of boilerplate, including their own CtsHostsideNetworkTestsApp3 build target. Move the coverage to LinkPropertiesTest using the new-ish @CtsNetTestCasesMaxTargetSdk31 annotation, and remove the hostside tests. The only test that is not being moved is one that checks the behaviour of disabling the compat change on T. This test is not very useful because it can only run on userdebug builds and not on production builds, because CtsHostsideNetworkTestsApp3 targets SDK 33. We do have test coverage for disabling the compat change on an app targeting SDK 31, where it is allowed. Fix: 236087258 Test: atest CtsNetTestCasesMaxTargetSdk31 Test: atest CtsNetTestCasesLatestSdk:android.net.LinkPropertiesTest Change-Id: I6d4b1ba40f6cb63b30a600c227e9628858c03d73
43 lines
1.3 KiB
Text
43 lines
1.3 KiB
Text
// Copyright (C) 2014 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.
|
|
|
|
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
java_test_host {
|
|
name: "CtsHostsideNetworkTests",
|
|
defaults: ["cts_defaults"],
|
|
// Only compile source java files in this apk.
|
|
srcs: ["src/**/*.java"],
|
|
libs: [
|
|
"cts-tradefed",
|
|
"tradefed",
|
|
],
|
|
static_libs: [
|
|
"modules-utils-build-testing",
|
|
],
|
|
// Tag this module as a cts test artifact
|
|
test_suites: [
|
|
"cts",
|
|
"general-tests",
|
|
"sts"
|
|
],
|
|
data: [
|
|
":CtsHostsideNetworkTestsApp",
|
|
":CtsHostsideNetworkTestsApp2",
|
|
":CtsHostsideNetworkTestsAppNext",
|
|
],
|
|
per_testcase_directory: true,
|
|
}
|