summaryrefslogtreecommitdiffstats
path: root/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h
diff options
context:
space:
mode:
authorjyasskin <jyasskin@chromium.org>2015-09-24 09:58:31 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-24 16:59:30 +0000
commit1e9f0c90c10d405dacfe7ab9b5ae4c1c05227a98 (patch)
treebcaf5d663c63d0d01c526417f2a636b9007f59dc /content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h
parent11f882b405f348be9a286164f14205f0184ff474 (diff)
downloadchromium_src-1e9f0c90c10d405dacfe7ab9b5ae4c1c05227a98.zip
chromium_src-1e9f0c90c10d405dacfe7ab9b5ae4c1c05227a98.tar.gz
chromium_src-1e9f0c90c10d405dacfe7ab9b5ae4c1c05227a98.tar.bz2
Handle RESCAN events from the Bluetooth chooser by starting or extending a discovery session.
I also added interfaces to support tests that this works, documented in https://github.com/WebBluetoothCG/web-bluetooth/pull/165. BUG=533185 TBR=mkwst@chromium.org Review URL: https://codereview.chromium.org/1353053002 Cr-Commit-Position: refs/heads/master@{#350586}
Diffstat (limited to 'content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h')
-rw-r--r--content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h
index 9d52de9..ac87afe 100644
--- a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h
+++ b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h
@@ -121,6 +121,15 @@ class LayoutTestBluetoothAdapterProvider {
static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
GetGlucoseHeartRateAdapter();
+ // |SecondDiscoveryFindsHeartRateAdapter|
+ // Inherits from |PoweredAdapter|
+ // Mock Functions:
+ // - StartDiscoverySessionWithFilter:
+ // Run success callback with |DiscoverySession|.
+ // After the first call, adds a |HeartRateDevice|.
+ static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
+ GetSecondDiscoveryFindsHeartRateAdapter();
+
// |MissingServiceGenericAccessAdapter|
// Inherits from |EmptyAdapter|
// Internal Structure: