Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4659)

Unified Diff: chrome/test/data/extensions/api_test/bluetooth_socket/listen/runtest.js

Issue 391453002: [Bluetooth] Enforce that PSMs must be odd. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Validate PSMs more correctly Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/bluetooth_socket/listen/runtest.js
diff --git a/chrome/test/data/extensions/api_test/bluetooth_socket/listen/runtest.js b/chrome/test/data/extensions/api_test/bluetooth_socket/listen/runtest.js
index 2372faadff6d62720b10ce20aaf2ccd594960e3c..63a05af6f2efabc97d8a5f532bdf38af196572a0 100644
--- a/chrome/test/data/extensions/api_test/bluetooth_socket/listen/runtest.js
+++ b/chrome/test/data/extensions/api_test/bluetooth_socket/listen/runtest.js
@@ -75,7 +75,26 @@ function secondStage() {
function() {
expectError("Permission denied");
- chrome.test.sendMessage('ready', startTests);
+ chrome.bluetoothSocket.listenUsingL2cap(
+ socket.socketId, uuid, {'psm': 1234},
+ function() {
+ expectError("Invalid PSM");
+
+ chrome.bluetoothSocket.listenUsingL2cap(
+ socket.socketId, uuid, {'psm': 4369},
+ function() {
+ expectError("Invalid PSM");
+
+ chrome.bluetoothSocket.listenUsingL2cap(
+ socket.socketId, uuid, {'psm': 13},
+ function() {
+ expectError("Invalid PSM");
+
+ chrome.test.sendMessage(
+ 'ready', startTests);
+ });
+ });
+ });
});
});
});
« no previous file with comments | « chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698