| Index: third_party/WebKit/Source/modules/bluetooth/FakeLEPeripheral.idl
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/FakeLEPeripheral.idl b/third_party/WebKit/Source/modules/bluetooth/FakeLEPeripheral.idl
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0ed27bf42f59f26eb73a635948b148739468d84a
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/FakeLEPeripheral.idl
|
| @@ -0,0 +1,16 @@
|
| +// 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.
|
| +
|
| +enum GATTConnectionResult { "success", "failed" };
|
| +enum GATTResult { "success", "failed" };
|
| +
|
| +[NoInterfaceObject]
|
| +interface FakeLEPeripheral {
|
| + [CallWith=ScriptState] Promise<void> simulateGATTConnection(GATTConnectionResult connectionResult);
|
| + [CallWith=ScriptState] Promise<void> simulateGATTDiscoveryComplete();
|
| + [CallWith=ScriptState] Promise<void> simulateGATTDiscoveryError();
|
| +
|
| + [CallWith=ScriptState] Promise<FakeRemoteGATTService> addFakeService(FakeRemoteGATTServiceOptions options);
|
| + [CallWith=ScriptState] Promise<void> removeFakeService(FakeRemoteGATTService service);
|
| +};
|
|
|