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

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

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
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_bluez.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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*>
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698