Index: device/bluetooth/test/bluetooth_test.h |
diff --git a/device/bluetooth/test/bluetooth_test.h b/device/bluetooth/test/bluetooth_test.h |
index 5b7caaf148c8a32926d3642635f6b6f80ae2758c..157865fd0ae8373957be16b60cfa85f7075f8310 100644 |
--- a/device/bluetooth/test/bluetooth_test.h |
+++ b/device/bluetooth/test/bluetooth_test.h |
@@ -41,6 +41,19 @@ class BluetoothTestBase : public testing::Test { |
public: |
enum class Call { EXPECTED, NOT_EXPECTED }; |
+ struct NotificationType { |
+ NotificationType(); |
+ NotificationType(std::string device_path, |
+ std::vector<uint8_t> value, |
+ bool indicate); |
+ NotificationType(const NotificationType& obj); |
+ ~NotificationType(); |
+ |
+ std::string device_path; |
+ std::vector<uint8_t> value; |
+ bool indicate; |
+ }; |
+ |
static const std::string kTestAdapterName; |
static const std::string kTestAdapterAddress; |
@@ -263,7 +276,7 @@ class BluetoothTestBase : public testing::Test { |
// Returns the value for the last notification that was sent on this |
// characteristic. |
- virtual std::vector<uint8_t> LastNotifactionValueForCharacteristic( |
+ virtual NotificationType LastNotifactionValueForCharacteristic( |
BluetoothLocalGattCharacteristic* characteristic); |
// Remembers |descriptor|'s platform specific object to be used in a |