Update VTS for Bluetooth Socket Offload with RFCOMM
Bug: 342012881
Test: atest VtsHalBluetoothSocketTargetTest
Change-Id: I2db399ae4f441c43eac68fa4c8281c40c79666c3
diff --git a/bluetooth/socket/aidl/vts/VtsHalBluetoothSocketTargetTest.cpp b/bluetooth/socket/aidl/vts/VtsHalBluetoothSocketTargetTest.cpp
index 5973d77..1069207 100644
--- a/bluetooth/socket/aidl/vts/VtsHalBluetoothSocketTargetTest.cpp
+++ b/bluetooth/socket/aidl/vts/VtsHalBluetoothSocketTargetTest.cpp
@@ -112,6 +112,14 @@
ASSERT_TRUE(socket_capabilities.leCocCapabilities.mtu >= 23 &&
socket_capabilities.leCocCapabilities.mtu <= 65535);
}
+ ASSERT_TRUE(socket_capabilities.rfcommCapabilities.numberOfSupportedSockets >=
+ 0);
+ if (socket_capabilities.rfcommCapabilities.numberOfSupportedSockets) {
+ // When RFCOMM is supported, the maximum frame size must be configured
+ // within the valid range defined in the RFCOMM specification.
+ ASSERT_TRUE(socket_capabilities.rfcommCapabilities.maxFrameSize >= 23 &&
+ socket_capabilities.rfcommCapabilities.maxFrameSize <= 32767);
+ }
}
TEST_P(BluetoothSocketTest, Opened) {