Correct the namespace of DeviceConfig in VpnTest
The namespace used in production code is NAMESPACE_TETHERING, not NAMESPACE_CONNECTIVITY. Test: atest com.android.cts.net.HostsideVpnTests Change-Id: I0f31176c521e2a877a964c2bbe6f387c4e71352a
This commit is contained in:
committed by
Chiachang Wang
parent
fbcd08a28d
commit
d64b2b1bdd
@@ -1175,8 +1175,8 @@ public class VpnTest {
|
|||||||
|
|
||||||
final String origMode = runWithShellPermissionIdentity(() -> {
|
final String origMode = runWithShellPermissionIdentity(() -> {
|
||||||
final String mode = DeviceConfig.getProperty(
|
final String mode = DeviceConfig.getProperty(
|
||||||
DeviceConfig.NAMESPACE_CONNECTIVITY, AUTOMATIC_ON_OFF_KEEPALIVE_VERSION);
|
DeviceConfig.NAMESPACE_TETHERING, AUTOMATIC_ON_OFF_KEEPALIVE_VERSION);
|
||||||
DeviceConfig.setProperty(DeviceConfig.NAMESPACE_CONNECTIVITY,
|
DeviceConfig.setProperty(DeviceConfig.NAMESPACE_TETHERING,
|
||||||
AUTOMATIC_ON_OFF_KEEPALIVE_VERSION,
|
AUTOMATIC_ON_OFF_KEEPALIVE_VERSION,
|
||||||
AUTOMATIC_ON_OFF_KEEPALIVE_ENABLED, false /* makeDefault */);
|
AUTOMATIC_ON_OFF_KEEPALIVE_ENABLED, false /* makeDefault */);
|
||||||
return mode;
|
return mode;
|
||||||
@@ -1216,7 +1216,7 @@ public class VpnTest {
|
|||||||
|
|
||||||
runWithShellPermissionIdentity(() -> {
|
runWithShellPermissionIdentity(() -> {
|
||||||
DeviceConfig.setProperty(
|
DeviceConfig.setProperty(
|
||||||
DeviceConfig.NAMESPACE_CONNECTIVITY,
|
DeviceConfig.NAMESPACE_TETHERING,
|
||||||
AUTOMATIC_ON_OFF_KEEPALIVE_VERSION,
|
AUTOMATIC_ON_OFF_KEEPALIVE_VERSION,
|
||||||
origMode, false);
|
origMode, false);
|
||||||
mCM.setTestLowTcpPollingTimerForKeepalive(0);
|
mCM.setTestLowTcpPollingTimerForKeepalive(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user