Merge "Specify exposed capabilities for VCN gateway connection errors." am: 54a3e52998
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1624864 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ia8f20ff766030631fd3bd8d2564008c41fec07ff
This commit is contained in:
@@ -979,7 +979,7 @@ public class VcnGatewayConnection extends StateMachine {
|
|||||||
// IkeSessionCallback.onClosedExceptionally(), which calls sessionClosed()
|
// IkeSessionCallback.onClosedExceptionally(), which calls sessionClosed()
|
||||||
if (exception != null) {
|
if (exception != null) {
|
||||||
mGatewayStatusCallback.onGatewayConnectionError(
|
mGatewayStatusCallback.onGatewayConnectionError(
|
||||||
mConnectionConfig.getRequiredUnderlyingCapabilities(),
|
mConnectionConfig.getExposedCapabilities(),
|
||||||
VCN_ERROR_CODE_INTERNAL_ERROR,
|
VCN_ERROR_CODE_INTERNAL_ERROR,
|
||||||
RuntimeException.class.getName(),
|
RuntimeException.class.getName(),
|
||||||
"Received "
|
"Received "
|
||||||
@@ -1016,7 +1016,7 @@ public class VcnGatewayConnection extends StateMachine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mGatewayStatusCallback.onGatewayConnectionError(
|
mGatewayStatusCallback.onGatewayConnectionError(
|
||||||
mConnectionConfig.getRequiredUnderlyingCapabilities(),
|
mConnectionConfig.getExposedCapabilities(),
|
||||||
errorCode,
|
errorCode,
|
||||||
exceptionClass,
|
exceptionClass,
|
||||||
exceptionMessage);
|
exceptionMessage);
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ public class VcnGatewayConnectionConnectedStateTest extends VcnGatewayConnection
|
|||||||
|
|
||||||
verify(mGatewayStatusCallback)
|
verify(mGatewayStatusCallback)
|
||||||
.onGatewayConnectionError(
|
.onGatewayConnectionError(
|
||||||
eq(mConfig.getRequiredUnderlyingCapabilities()),
|
eq(mConfig.getExposedCapabilities()),
|
||||||
eq(VCN_ERROR_CODE_INTERNAL_ERROR),
|
eq(VCN_ERROR_CODE_INTERNAL_ERROR),
|
||||||
any(),
|
any(),
|
||||||
any());
|
any());
|
||||||
@@ -275,10 +275,7 @@ public class VcnGatewayConnectionConnectedStateTest extends VcnGatewayConnection
|
|||||||
|
|
||||||
verify(mGatewayStatusCallback)
|
verify(mGatewayStatusCallback)
|
||||||
.onGatewayConnectionError(
|
.onGatewayConnectionError(
|
||||||
eq(mConfig.getRequiredUnderlyingCapabilities()),
|
eq(mConfig.getExposedCapabilities()), eq(expectedErrorType), any(), any());
|
||||||
eq(expectedErrorType),
|
|
||||||
any(),
|
|
||||||
any());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user