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

Unified Diff: device/bluetooth/test/bluetooth_test_mac.h

Issue 2695573002: Adding BluetoothTestBase::CheckNotifySessionValue() method (Closed)
Patch Set: Should work Created 3 years, 10 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 | « device/bluetooth/test/bluetooth_test.cc ('k') | device/bluetooth/test/bluetooth_test_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/bluetooth_test_mac.h
diff --git a/device/bluetooth/test/bluetooth_test_mac.h b/device/bluetooth/test/bluetooth_test_mac.h
index 337085600e5af90567bee0c1fcafb445e2419a9d..daa0d4671b58e7b836e9c1691e260007b9e92f00 100644
--- a/device/bluetooth/test/bluetooth_test_mac.h
+++ b/device/bluetooth/test/bluetooth_test_mac.h
@@ -39,6 +39,7 @@ class BluetoothTestMac : public BluetoothTestBase {
void InitWithDefaultAdapter() override;
void InitWithoutDefaultAdapter() override;
void InitWithFakeAdapter() override;
+ void ResetEventCounts() override;
BluetoothDevice* SimulateLowEnergyDevice(int device_ordinal) override;
void SimulateConnectedLowEnergyDevice(
ConnectedDeviceType device_ordinal) override;
@@ -84,6 +85,8 @@ class BluetoothTestMac : public BluetoothTestBase {
void SimulateGattCharacteristicRemoved(
BluetoothRemoteGattService* service,
BluetoothRemoteGattCharacteristic* characteristic) override;
+ void ExpectedChangeNotifyValueAttempts(int attempts) override;
+ void ExpectedNotifyValue(NotifyValueState expected_value_state) override;
// Callback for the bluetooth central manager mock.
void OnFakeBluetoothDeviceConnectGattCalled();
@@ -120,7 +123,7 @@ class BluetoothTestMac : public BluetoothTestBase {
std::unique_ptr<ScopedMockCentralManager> mock_central_manager_;
// Value set by -[CBPeripheral setNotifyValue:forCharacteristic:] call.
- bool last_notify_value = false;
+ bool last_notify_value_ = false;
};
// Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
« no previous file with comments | « device/bluetooth/test/bluetooth_test.cc ('k') | device/bluetooth/test/bluetooth_test_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698