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

Unified Diff: device/bluetooth/bluetooth_gatt_characteristic_unittest.cc

Issue 1583583003: bluetooth: android: Implement characteristic GetService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bta-descriptors-
Patch Set: Created 4 years, 11 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 | « no previous file | device/bluetooth/bluetooth_remote_gatt_characteristic_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_gatt_characteristic_unittest.cc
diff --git a/device/bluetooth/bluetooth_gatt_characteristic_unittest.cc b/device/bluetooth/bluetooth_gatt_characteristic_unittest.cc
index 428ab7e4362cfaa4faf2e8ac3c2b35de8a835969..2db7df7d58093c647ed46558d0ef9c9a50894b00 100644
--- a/device/bluetooth/bluetooth_gatt_characteristic_unittest.cc
+++ b/device/bluetooth/bluetooth_gatt_characteristic_unittest.cc
@@ -182,6 +182,16 @@ TEST_F(BluetoothGattCharacteristicTest, GetProperties) {
#endif // defined(OS_ANDROID)
#if defined(OS_ANDROID)
+// Tests GetService.
+TEST_F(BluetoothGattCharacteristicTest, GetService) {
+ ASSERT_NO_FATAL_FAILURE(FakeCharacteristicBoilerplate());
+
+ EXPECT_EQ(service_, characteristic1_->GetService());
+ EXPECT_EQ(service_, characteristic2_->GetService());
+}
+#endif // defined(OS_ANDROID)
+
+#if defined(OS_ANDROID)
// Tests ReadRemoteCharacteristic and GetValue with empty value buffer.
TEST_F(BluetoothGattCharacteristicTest, ReadRemoteCharacteristic_Empty) {
ASSERT_NO_FATAL_FAILURE(FakeCharacteristicBoilerplate());
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_remote_gatt_characteristic_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698