Chromium Code Reviews| Index: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h |
| 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 70a1f0d5fb29c3cc2be5e94606a4fc62b6b42f32..14969c37ffe5a1729b1c670f68259da9640ca361 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 |
| @@ -114,6 +114,32 @@ class LayoutTestBluetoothAdapterProvider { |
| static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| GetEmptyAdapter(); |
| + // |PowerValueAdapter|(tx_power, rssi) |
| + // Inherits from |EmptyAdapter| |
| + // Internal Structure: |
| + // - |HeartRateDevice| |
| + // - Mock Functions: |
| + // - GetInquiryTxPower(): Returns tx_power |
| + // - GetInquiryRSSI(): Returns rssi |
| + static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| + GetPowerValueAdapter(int tx_power, int rssi); |
|
palmer
2015/11/04 21:57:19
Not int8 or int16?
ortuno
2015/11/04 22:45:58
Done.
|
| + |
| + // |PowerPresenceAdapter|(tx_power_present, rssi_present) |
| + // Inherits from |EmptyAdapter| |
| + // Internal Structure: |
| + // - |HeartRateDevice| |
| + // - Mock Functions: |
| + // - GetInquiryTxPower(): If tx_power_present is true, returns -10, |
| + // the TxPower of a device broadcasting at 0.1mW. Otherwise |
| + // returns 127 which denotes a missing Tx Power. |
| + // TODO(ortuno): Change 127 to -128 when Tx Power Unknown value gets |
| + // fixed: http://crbug.com/551572 |
| + // - GetInquiryRSSI(): If rssi_present is true returns -51, |
| + // the RSSI at 1m from a device broadcasting at 0.1mW. Otherwise |
| + // returns 127 which denotes a missing RSSI. |
| + static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| + GetPowerPresenceAdapter(bool tx_power_present, bool rssi_present); |
| + |
| // |GlucoseHeartRateAdapter| |
| // Inherits from |EmptyAdapter| |
| // Devices added: |