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

Unified Diff: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc

Issue 1972353002: Implement the notifyCharacteristicValueChanged API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notifications_bluez
Patch Set: Created 4 years, 7 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: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc
index 446905033799ed9c653b25e8a37cc9678b3067b4..41b5206f9c4affad796e5be747ea72a5db9f87dc 100644
--- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc
+++ b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc
@@ -151,6 +151,22 @@ IN_PROC_BROWSER_TEST_F(BluetoothLowEnergyApiTestChromeOs, RemoveService) {
<< message_;
}
+IN_PROC_BROWSER_TEST_F(BluetoothLowEnergyApiTestChromeOs,
+ NotifyCharacteristicValueChanged) {
+ ASSERT_TRUE(
+ RunPlatformAppTest("api_test/bluetooth_low_energy/"
+ "notify_characteristic_value_changed"))
+ << message_;
+}
+
+IN_PROC_BROWSER_TEST_F(BluetoothLowEnergyApiTestChromeOs,
+ NotifyCharacteristicValueChanged_ErrorConditions) {
+ ASSERT_TRUE(RunPlatformAppTest(
+ "api_test/bluetooth_low_energy/"
+ "notify_characteristic_value_changed_error_conditions"))
+ << message_;
+}
+
// TODO(rkc): Figure out how to integrate with BluetoothTestBlueZ and write
// comprehensive tests for GATT server events. See http://crbug.com/607395 for
// details.

Powered by Google App Engine
This is Rietveld 408576698