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. |