Index: device/bluetooth/test/bluetooth_test.cc |
diff --git a/device/bluetooth/test/bluetooth_test.cc b/device/bluetooth/test/bluetooth_test.cc |
index de47f463ad31415623f0027765b0a09e388a5ebb..61f741265f1cb9f020a1d19c94c480fb7f2a8e34 100644 |
--- a/device/bluetooth/test/bluetooth_test.cc |
+++ b/device/bluetooth/test/bluetooth_test.cc |
@@ -28,6 +28,23 @@ const std::string BluetoothTestBase::kTestUUIDGenericAttribute = "1801"; |
const std::string BluetoothTestBase::kTestUUIDImmediateAlert = "1802"; |
const std::string BluetoothTestBase::kTestUUIDLinkLoss = "1803"; |
+BluetoothTestBase::NotificationType::NotificationType() : indicate(false) {} |
+ |
+BluetoothTestBase::NotificationType::NotificationType( |
+ std::string device_path, |
+ std::vector<uint8_t> value, |
+ bool indicate) |
+ : device_path(device_path), value(value), indicate(indicate) {} |
+ |
+BluetoothTestBase::NotificationType::NotificationType( |
+ const NotificationType& obj) { |
+ this->device_path = obj.device_path; |
+ this->value = obj.value; |
+ this->indicate = obj.indicate; |
+} |
+ |
+BluetoothTestBase::NotificationType::~NotificationType() {} |
+ |
BluetoothTestBase::BluetoothTestBase() : weak_factory_(this) {} |
BluetoothTestBase::~BluetoothTestBase() { |
@@ -75,10 +92,11 @@ bool BluetoothTestBase::SimulateLocalGattCharacteristicNotificationsRequest( |
return false; |
} |
-std::vector<uint8_t> BluetoothTestBase::LastNotifactionValueForCharacteristic( |
+BluetoothTestBase::NotificationType |
+BluetoothTestBase::LastNotifactionValueForCharacteristic( |
BluetoothLocalGattCharacteristic* characteristic) { |
NOTIMPLEMENTED(); |
- return std::vector<uint8_t>(); |
+ return NotificationType(); |
} |
std::vector<BluetoothLocalGattService*> |