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

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

Issue 2039773005: Add support in Chrome to send notifications to a specific device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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.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
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_service_provider.cc ('k') | device/bluetooth/test/bluetooth_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698