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

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

Issue 1690133002: Implement BluetoothRemoteGattServiceWin and related unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments and split out of included GATT services Created 4 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
Index: device/bluetooth/test/bluetooth_test_win.h
diff --git a/device/bluetooth/test/bluetooth_test_win.h b/device/bluetooth/test/bluetooth_test_win.h
index eeeb068d39ec2177e8438d92c337157ed646c037..f159235c2e5d36b0c3ba05c6a126b07a8b4cd8fa 100644
--- a/device/bluetooth/test/bluetooth_test_win.h
+++ b/device/bluetooth/test/bluetooth_test_win.h
@@ -34,6 +34,13 @@ class BluetoothTestWin : public BluetoothTestBase {
void SimulateGattServicesDiscovered(
BluetoothDevice* device,
const std::vector<std::string>& uuids) override;
+ void SimulateGattServiceRemoved(BluetoothGattService* service) override;
+ void SimulateGattCharacteristic(BluetoothGattService* service,
+ const std::string& uuid,
+ int properties) override;
+ void SimulateGattCharacteristicRemoved(
+ BluetoothGattService* service,
+ BluetoothGattCharacteristic* characteristic) override;
private:
scoped_refptr<base::TestSimpleTaskRunner> ui_task_runner_;
@@ -44,6 +51,9 @@ class BluetoothTestWin : public BluetoothTestBase {
win::BluetoothLowEnergyWrapperFake* fake_bt_le_wrapper_;
void AdapterInitCallback();
+ win::BLEGattService* GetSimulatedService(win::BLEDevice* device,
+ BluetoothGattService* service);
+ void ForceRefreshDevice();
};
// Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).

Powered by Google App Engine
This is Rietveld 408576698