Index: third_party/WebKit/Source/modules/bluetooth/FakeRemoteGATTDescriptor.idl |
diff --git a/third_party/WebKit/Source/modules/bluetooth/FakeRemoteGATTDescriptor.idl b/third_party/WebKit/Source/modules/bluetooth/FakeRemoteGATTDescriptor.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..09912b21220bda11ec7cef9c2371c7f4a0696c00 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/bluetooth/FakeRemoteGATTDescriptor.idl |
@@ -0,0 +1,11 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+[NoInterfaceObject] |
+interface FakeRemoteGATTDescriptor { |
+ [CallWith=ScriptState] Promise<void> simulateRead(GATTResult gattResult, optional BufferSource value); |
+ [CallWith=ScriptState] Promise<void> simulateWrite(GATTResult gattResult); |
+ [CallWith=ScriptState] Promise<unsigned long> getReadCallsCount(); |
+ [CallWith=ScriptState] Promise<unsigned long> getWriteCallsCount(); |
+}; |