Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1354)

Unified Diff: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc

Issue 1264203002: bluetooth: Add histograms and logging for requestDevice() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-web-bluetooth-action
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
index 4b185a55e5462aa9cf67b6802c5f51c352a77f12..44042292764b51b7b6bd5bd6ed80e3267dd6f34f 100644
--- a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
+++ b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
@@ -133,6 +133,9 @@ LayoutTestBluetoothAdapterProvider::GetBaseAdapter() {
scoped_refptr<NiceMockBluetoothAdapter> adapter(
new NiceMockBluetoothAdapter());
+ ON_CALL(*adapter, IsPresent()).WillByDefault(Return(true));
+ ON_CALL(*adapter, IsPowered()).WillByDefault(Return(true));
+
// Using Invoke allows the adapter returned from this method to be futher
// modified and have devices added to it. The call to ::GetDevices will
// invoke ::GetConstMockDevices, returning all devices added up to that time.
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698