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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js

Issue 1403723004: bluetooth: Implement BluetoothCharacteristicProperties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-query-cache
Patch Set: Address scheib's comments Created 5 years, 2 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
Index: third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js
diff --git a/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js b/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js
index 238400564d4e1e08bb0ca349d3f61deb4430f4a1..54920a14e6774c8c7ed389b5dc6ccfbecae64200 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js
+++ b/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js
@@ -184,3 +184,23 @@ function assert_no_events(object, event_name) {
}, 100);
});
}
+
+class TestCharacteristicProperties {
+ constructor(properties) {
+ this.broadcast = properties.broadcast || false;
+ this.read = properties.read || false;
+ this.writeWithoutResponse = properties.writeWithoutResponse || false;
+ this.write = properties.write || false;
+ this.notify = properties.notify || false;
+ this.indicate = properties.indicate || false;
+ this.authenticatedSignedWrites = properties.authenticatedSignedWrites || false;
+ this.reliableWrite = properties.reliableWrite || false;
+ this.writableAuxiliaries = properties.writableAuxiliaries || false;
+ }
+}
+
+function assert_properties_equal(properties, expected_properties) {
+ for (let key in expected_properties) {
+ assert_equals(properties[key], expected_properties[key]);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698