Remove CtsHostsideNetworkTestAppNext.
This is now identical to CtsHostsideNetworkTestsApp, and we're getting rid of -Next targets anyway, so there's no point in keeping it. Bug: 365191921 Test: atest CtsHostsideNetworkTests Change-Id: I57eb7c6d9bc37d222a9449bbc85265e7c6ec9ffc
This commit is contained in:
parent
6a655a02d1
commit
0820ccb033
3 changed files with 9 additions and 36 deletions
|
|
@ -12,12 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
next_app_data = [":CtsHostsideNetworkTestsAppNext"]
|
||||
|
||||
// The above line is put in place to prevent any future automerger merge conflict between aosp,
|
||||
// downstream branches. The CtsHostsideNetworkTestsAppNext target will not exist in
|
||||
// some downstream branches, but it should exist in aosp and some downstream branches.
|
||||
|
||||
package {
|
||||
default_team: "trendy_team_fwk_core_networking",
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
|
|
@ -68,6 +62,6 @@ java_test_host {
|
|||
":CtsHostsideNetworkCapTestsAppWithoutProperty",
|
||||
":CtsHostsideNetworkCapTestsAppWithProperty",
|
||||
":CtsHostsideNetworkCapTestsAppSdk33",
|
||||
] + next_app_data,
|
||||
],
|
||||
per_testcase_directory: true,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,8 +19,13 @@ package {
|
|||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
java_defaults {
|
||||
name: "CtsHostsideNetworkTestsAppDefaults",
|
||||
android_test_helper_app {
|
||||
name: "CtsHostsideNetworkTestsApp",
|
||||
defaults: [
|
||||
"cts_support_defaults",
|
||||
"framework-connectivity-test-defaults",
|
||||
"CtsHostsideNetworkTestsAllAppDefaults",
|
||||
],
|
||||
static_libs: [
|
||||
"CtsHostsideNetworkTestsAidl",
|
||||
"androidx.test.ext.junit",
|
||||
|
|
@ -39,24 +44,3 @@ java_defaults {
|
|||
"src/**/*.java",
|
||||
],
|
||||
}
|
||||
|
||||
android_test_helper_app {
|
||||
name: "CtsHostsideNetworkTestsApp",
|
||||
defaults: [
|
||||
"cts_support_defaults",
|
||||
"framework-connectivity-test-defaults",
|
||||
"CtsHostsideNetworkTestsAppDefaults",
|
||||
"CtsHostsideNetworkTestsAllAppDefaults",
|
||||
],
|
||||
}
|
||||
|
||||
android_test_helper_app {
|
||||
name: "CtsHostsideNetworkTestsAppNext",
|
||||
defaults: [
|
||||
"cts_support_defaults",
|
||||
"framework-connectivity-test-defaults",
|
||||
"CtsHostsideNetworkTestsAppDefaults",
|
||||
"CtsHostsideNetworkTestsAllAppDefaults",
|
||||
"ConnectivityNextEnableDefaults",
|
||||
],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ package com.android.cts.net;
|
|||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertNull;
|
||||
|
||||
import com.android.modules.utils.build.testing.DeviceSdkLevel;
|
||||
import com.android.tradefed.device.DeviceNotAvailableException;
|
||||
import com.android.tradefed.invoker.TestInformation;
|
||||
import com.android.tradefed.targetprep.BuildError;
|
||||
|
|
@ -36,17 +35,13 @@ import org.junit.runner.RunWith;
|
|||
abstract class HostsideNetworkTestCase extends BaseHostJUnit4Test {
|
||||
protected static final String TEST_PKG = "com.android.cts.net.hostside";
|
||||
protected static final String TEST_APK = "CtsHostsideNetworkTestsApp.apk";
|
||||
protected static final String TEST_APK_NEXT = "CtsHostsideNetworkTestsAppNext.apk";
|
||||
protected static final String TEST_APP2_PKG = "com.android.cts.net.hostside.app2";
|
||||
protected static final String TEST_APP2_APK = "CtsHostsideNetworkTestsApp2.apk";
|
||||
|
||||
@BeforeClassWithInfo
|
||||
public static void setUpOnceBase(TestInformation testInfo) throws Exception {
|
||||
DeviceSdkLevel deviceSdkLevel = new DeviceSdkLevel(testInfo.getDevice());
|
||||
String testApk = deviceSdkLevel.isDeviceAtLeastV() ? TEST_APK_NEXT : TEST_APK;
|
||||
|
||||
uninstallPackage(testInfo, TEST_PKG, false);
|
||||
installPackage(testInfo, testApk);
|
||||
installPackage(testInfo, TEST_APK);
|
||||
}
|
||||
|
||||
@AfterClassWithInfo
|
||||
|
|
|
|||
Loading…
Reference in a new issue