Bluetooth SDP autotest: Service Search Request with invalid syntax

This CL adds the last test for SDP Service Search Request, which checks if
response for request with invalid syntax is correct. It is implementation of
test case 'TP/SERVER/SS/BI-02-C' from SIG Bluetooth Test Specification.
However, the specification itself doesn't specify the format of invalid request
(it's not clear, what exactly should be invalid). So testers are free to send
any invalid request. This implementation sends requests without continuation
state parameter, so that the requests are invalid, but still are very close to
valid format. The latest BlueZ unit-tests also do the same invalid requests.

BUG=chromium:329044
TEST=test_that --board ${BOARD} ${HOSTNAME} bluetooth_SDP_ServiceSearchRequestBasic

Change-Id: I4fbd9eae20d440d75849286cdd80ac157e4bb1bb
Reviewed-on: https://chromium-review.googlesource.com/189243
Tested-by: Artem Rakhov <arakhov@chromium.org>
Reviewed-by: Scott James Remnant <keybuk@chromium.org>
Commit-Queue: Artem Rakhov <arakhov@chromium.org>
diff --git a/server/cros/bluetooth/bluetooth_tester.py b/server/cros/bluetooth/bluetooth_tester.py
index 753de40..15efc4b 100644
--- a/server/cros/bluetooth/bluetooth_tester.py
+++ b/server/cros/bluetooth/bluetooth_tester.py
@@ -123,7 +123,7 @@
 
 
     def service_search_request(self, uuids, max_rec_cnt, preferred_size=32,
-                               forced_pdu_size=None):
+                               forced_pdu_size=None, invalid_request=False):
         """Send a Service Search Request
 
         @param uuids: List of UUIDs (as integers) to look for.
@@ -131,13 +131,16 @@
         @param preferred_size: Preffered size of UUIDs in bits (16, 32, or 128).
         @param forced_pdu_size: Use certain PDU size parameter instead of
                calculating actual length of sequence.
+        @param invalid_request: Whether to send request with intentionally
+               invalid syntax for testing purposes (bool flag).
 
         @return list of found services' service record handles or Error Code
 
         """
         return self._proxy.service_search_request(uuids, max_rec_cnt,
                                                   preferred_size,
-                                                  forced_pdu_size)
+                                                  forced_pdu_size,
+                                                  invalid_request)
 
 
 def create_host_from(device_host):