OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 [NoInterfaceObject] |
| 6 interface FakeRemoteGATTCharacteristic { |
| 7 [CallWith=ScriptState] Promise<void> simulateRead(GATTResult gattResult, optio
nal BufferSource value); |
| 8 [CallWith=ScriptState] Promise<DataView> simulateWriteWithResponse(GATTResult
gattResult); |
| 9 [CallWith=ScriptState] Promise<void> simulateNotificationsStarted(GATTResult g
attResult); |
| 10 [CallWith=ScriptState] Promise<void> simulateNotificationsStopped(GATTResult g
attResult); |
| 11 [CallWith=ScriptState] Promise<void> simulateNotification(FakeNotificationOpti
ons options); |
| 12 [CallWith=ScriptState] Promise<FakeRemoteGATTDescriptor> addFakeDescriptor(Fak
eRemoteGATTDescriptorOptions options); |
| 13 [CallWith=ScriptState] Promise<void> removeFakeDescriptor(FakeRemoteGATTDescri
ptor descriptor); |
| 14 [CallWith=ScriptState] Promise<unsigned long> getReadCallsCount(); |
| 15 [CallWith=ScriptState] Promise<unsigned long> getWriteWithResponseCallsCount()
; |
| 16 [CallWith=ScriptState] Promise<unsigned long> getWriteWithoutResponseCallsCoun
t(); |
| 17 [CallWith=ScriptState] Promise<unsigned long> getStartNotificationsCallsCount(
); |
| 18 [CallWith=ScriptState] Promise<unsigned long> getStopNotificationsCallsCount()
; |
| 19 }; |
OLD | NEW |