bluetooth: Add FakeBluetooth interface

Desktop / Chromium - ortuno [chromium.org] - 18 April 2017 19:06 EDT

Adds the FakeBluetooth interface with a stub function, web-bluetooth-test.js which acquires a pointer to that interface and calls its method.

Based on https://docs.google.com/document/d/1Nhv_oVDCodd1pEH_jj9k8gF4rPGb_84VYaZ9IG8M_WY/edit#heading=h.kingfw5ed9qq

BUG=569709

Review-Url: https://codereview.chromium.org/2737343003 Cr-Commit-Position: refs/heads/master@{#465416}

97febb8 bluetooth: Add FakeBluetooth interface
content/shell/BUILD.gn | 1 +
.../content_shell_browser_manifest_overlay.json | 3 +-
.../layout_test_content_browser_client.cc | 4 ++
device/bluetooth/BUILD.gn | 13 +++++
device/bluetooth/README.md | 53 +------------------
device/bluetooth/public/interfaces/BUILD.gn | 6 +++
device/bluetooth/public/interfaces/test/OWNERS | 2 +
device/bluetooth/public/interfaces/test/README.md | 12 +++++
.../public/interfaces/test/fake_bluetooth.mojom | 19 +++++++
device/bluetooth/test/README.md | 56 ++++++++++++++++++++
device/bluetooth/test/fake_bluetooth.cc | 30 +++++++++++
device/bluetooth/test/fake_bluetooth.h | 29 +++++++++++
.../bluetooth/requestDevice/le-not-supported.html | 14 +++++
.../resources/bluetooth/web-bluetooth-test.js | 60 ++++++++++++++++++++++
14 files changed, 250 insertions(+), 52 deletions(-)

Upstream: git.chromium.org


  • Share