summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/bluetooth_adapter_unittest.cc
diff options
context:
space:
mode:
authorjyasskin <jyasskin@chromium.org>2015-08-26 18:06:41 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-27 01:07:24 +0000
commit7ecb9dca513ed0f6d89e7bb00d326f7392935697 (patch)
tree31774fe7f9d7fecb0bbb900f694416ae29f10799 /device/bluetooth/bluetooth_adapter_unittest.cc
parente185fb60feb9a81a58ef23935ed3eb357a6cbfeb (diff)
downloadchromium_src-7ecb9dca513ed0f6d89e7bb00d326f7392935697.zip
chromium_src-7ecb9dca513ed0f6d89e7bb00d326f7392935697.tar.gz
chromium_src-7ecb9dca513ed0f6d89e7bb00d326f7392935697.tar.bz2
Add histograms for BT discovery session failures.
I'm returning the UMA reason from the subclass-overridden virtual methods and reporting it in BluetoothAdapter, which maximizes the amount of compiler help we get in ensuring we report all the outcomes. BUG=521780 Review URL: https://codereview.chromium.org/1310753005 Cr-Commit-Position: refs/heads/master@{#345752}
Diffstat (limited to 'device/bluetooth/bluetooth_adapter_unittest.cc')
-rw-r--r--device/bluetooth/bluetooth_adapter_unittest.cc21
1 files changed, 12 insertions, 9 deletions
diff --git a/device/bluetooth/bluetooth_adapter_unittest.cc b/device/bluetooth/bluetooth_adapter_unittest.cc
index 7f380ab..c4a1513 100644
--- a/device/bluetooth/bluetooth_adapter_unittest.cc
+++ b/device/bluetooth/bluetooth_adapter_unittest.cc
@@ -108,17 +108,20 @@ class TestBluetoothAdapter : public BluetoothAdapter {
protected:
~TestBluetoothAdapter() override {}
- void AddDiscoverySession(BluetoothDiscoveryFilter* discovery_filter,
- const base::Closure& callback,
- const ErrorCallback& error_callback) override {}
+ void AddDiscoverySession(
+ BluetoothDiscoveryFilter* discovery_filter,
+ const base::Closure& callback,
+ const DiscoverySessionErrorCallback& error_callback) override {}
- void RemoveDiscoverySession(BluetoothDiscoveryFilter* discovery_filter,
- const base::Closure& callback,
- const ErrorCallback& error_callback) override {}
+ void RemoveDiscoverySession(
+ BluetoothDiscoveryFilter* discovery_filter,
+ const base::Closure& callback,
+ const DiscoverySessionErrorCallback& error_callback) override {}
- void SetDiscoveryFilter(scoped_ptr<BluetoothDiscoveryFilter> discovery_filter,
- const base::Closure& callback,
- const ErrorCallback& error_callback) override {}
+ void SetDiscoveryFilter(
+ scoped_ptr<BluetoothDiscoveryFilter> discovery_filter,
+ const base::Closure& callback,
+ const DiscoverySessionErrorCallback& error_callback) override {}
void RemovePairingDelegateInternal(
BluetoothDevice::PairingDelegate* pairing_delegate) override {}