summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--acts/tests/google/bt/gatt/GattOverBrEdrTest.py144
1 files changed, 0 insertions, 144 deletions
diff --git a/acts/tests/google/bt/gatt/GattOverBrEdrTest.py b/acts/tests/google/bt/gatt/GattOverBrEdrTest.py
index b856d1034b..811c8b62f5 100644
--- a/acts/tests/google/bt/gatt/GattOverBrEdrTest.py
+++ b/acts/tests/google/bt/gatt/GattOverBrEdrTest.py
@@ -221,150 +221,6 @@ class GattOverBrEdrTest(BluetoothBaseTest):
gatt_callback)
@BluetoothBaseTest.bt_test_wrap
- def test_gatt_bredr_request_min_mtu(self):
- """Test GATT connection over BR/EDR and exercise MTU sizes.
-
- Test establishing a gatt connection between a GATT server and GATT
- client. Request an MTU size that matches the correct minimum size.
-
- Steps:
- 1. Start a generic advertisement.
- 2. Start a generic scanner.
- 3. Find the advertisement and extract the mac address.
- 4. Stop the first scanner.
- 5. Create a GATT connection between the scanner and advertiser.
- 6. From the scanner (client) request MTU size change to the
- minimum value.
- 7. Find the MTU changed event on the client.
- 8. Disconnect the GATT connection.
-
- Expected Result:
- Verify that a connection was established and the MTU value found
- matches the expected MTU value.
-
- Returns:
- Pass if True
- Fail if False
-
- TAGS: LE, Advertising, Filtering, Scanning, GATT, MTU
- Priority: 0
- """
- try:
- bluetooth_gatt, gatt_callback, adv_callback = (
- orchestrate_gatt_connection(self.cen_ad, self.per_ad,
- GattTransport.TRANSPORT_BREDR,
- self.per_droid_mac_address))
- except GattTestUtilsError:
- return False
- self.cen_ad.droid.gattClientRequestMtu(bluetooth_gatt,
- MtuSize.MIN.value)
- mtu_event = self.cen_ad.ed.pop_event(
- GattCbStrings.MTU_CHANGED.value.format(bluetooth_gatt),
- self.default_timeout)
- if mtu_event['data']['MTU'] != MtuSize.MIN.value:
- return False
- return self._orchestrate_gatt_disconnection(bluetooth_gatt,
- gatt_callback)
-
- @BluetoothBaseTest.bt_test_wrap
- def test_gatt_bredr_request_max_mtu(self):
- """Test GATT connection over BR/EDR and exercise MTU sizes.
-
- Test establishing a gatt connection between a GATT server and GATT
- client. Request an MTU size that matches the correct maximum size.
-
- Steps:
- 1. Start a generic advertisement.
- 2. Start a generic scanner.
- 3. Find the advertisement and extract the mac address.
- 4. Stop the first scanner.
- 5. Create a GATT connection between the scanner and advertiser.
- 6. From the scanner (client) request MTU size change to the
- maximum value.
- 7. Find the MTU changed event on the client.
- 8. Disconnect the GATT connection.
-
- Expected Result:
- Verify that a connection was established and the MTU value found
- matches the expected MTU value.
-
- Returns:
- Pass if True
- Fail if False
-
- TAGS: LE, Advertising, Filtering, Scanning, GATT, MTU
- Priority: 0
- """
- try:
- bluetooth_gatt, gatt_callback, adv_callback = (
- orchestrate_gatt_connection(self.cen_ad, self.per_ad,
- GattTransport.TRANSPORT_BREDR,
- self.per_droid_mac_address))
- except GattTestUtilsError:
- return False
- self.cen_ad.droid.gattClientRequestMtu(bluetooth_gatt,
- MtuSize.MAX.value)
- mtu_event = self.cen_ad.ed.pop_event(
- GattCbStrings.MTU_CHANGED.value.format(bluetooth_gatt),
- self.default_timeout)
- if mtu_event['data']['MTU'] != MtuSize.MAX.value:
- return False
- return self._orchestrate_gatt_disconnection(bluetooth_gatt,
- gatt_callback)
-
- @BluetoothBaseTest.bt_test_wrap
- def test_gatt_bredr_request_out_of_bounds_mtu(self):
- """Test GATT connection over BR/EDR and exercise an out of bound MTU size.
-
- Test establishing a gatt connection between a GATT server and GATT
- client. Request an MTU size that is the MIN value minus 1.
-
- Steps:
- 1. Start a generic advertisement.
- 2. Start a generic scanner.
- 3. Find the advertisement and extract the mac address.
- 4. Stop the first scanner.
- 5. Create a GATT connection between the scanner and advertiser.
- 6. From the scanner (client) request MTU size change to the
- minimum value minus one.
- 7. Find the MTU changed event on the client.
- 8. Disconnect the GATT connection.
-
- Expected Result:
- Verify that an MTU changed event was not discovered and that
- it didn't cause an exception when requesting an out of bounds
- MTU.
-
- Returns:
- Pass if True
- Fail if False
-
- TAGS: LE, Advertising, Filtering, Scanning, GATT, MTU
- Priority: 0
- """
- try:
- bluetooth_gatt, gatt_callback, adv_callback = (
- orchestrate_gatt_connection(self.cen_ad, self.per_ad,
- GattTransport.TRANSPORT_BREDR,
- self.per_droid_mac_address))
- except GattTestUtilsError:
- return False
- self.cen_ad.droid.gattClientRequestMtu(bluetooth_gatt,
- MtuSize.MIN.value - 1)
- try:
- self.cen_ad.ed.pop_event(
- GattCbStrings.MTU_CHANGED.value.format(bluetooth_gatt),
- self.default_timeout)
- self.log.error("Found {} event when it wasn't expected".format(
- GattCbStrings.MTU_CHANGED.format(bluetooth_gatt)))
- return False
- except Exception:
- self.log.debug("Successfully didn't find {} event".format(
- GattCbStrings.MTU_CHANGED.value.format(bluetooth_gatt)))
- return self._orchestrate_gatt_disconnection(bluetooth_gatt,
- gatt_callback)
-
- @BluetoothBaseTest.bt_test_wrap
def test_gatt_bredr_connect_trigger_on_read_rssi(self):
"""Test GATT connection over BR/EDR read RSSI.