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

Side by Side Diff: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h

Issue 2637343002: Implement WebBluetooth descriptor.readValue() (Closed)
Patch Set: run bad_message_reasons Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER _H_ 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER _H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER _H_ 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER _H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 // - Request Disconnection Service: - Characteristics as described in 334 // - Request Disconnection Service: - Characteristics as described in
335 // GetDisconnectingService 335 // GetDisconnectingService
336 // - Health Thermometer: 336 // - Health Thermometer:
337 // - Measurement Interval (0x2a21): 337 // - Measurement Interval (0x2a21):
338 // - Read: Calls GattCharacteristicValueChanged and success 338 // - Read: Calls GattCharacteristicValueChanged and success
339 // callback with [1]. 339 // callback with [1].
340 // - Write: Calls success callback. 340 // - Write: Calls success callback.
341 // - StartNotifySession: Run success callback. 341 // - StartNotifySession: Run success callback.
342 // - GetProperties: Returns 342 // - GetProperties: Returns
343 // BluetoothRemoteGattCharacteristic::PROPERTY_READ 343 // BluetoothRemoteGattCharacteristic::PROPERTY_READ
344 // - Descriptors 344 // - Descriptors (if |addDescriptors| input is true)
345 // - User Description (2901) 345 // - User Description (2901)
346 // - Client Characteristic Configuration (2902) 346 // - Client Characteristic Configuration (2902)
347 // Note: This descriptor is blocklisted for writes. 347 // Note: This descriptor is blocklisted for writes.
348 // - bad2ddcf-60db-45cd-bef9-fd72b153cf7c 348 // - bad2ddcf-60db-45cd-bef9-fd72b153cf7c
349 // A test descriptor that is blocklisted. 349 // A test descriptor that is blocklisted.
350 // - bad3ec61-3cc3-4954-9702-7977df514114
351 // A test descriptor that is exclude read..
350 352
351 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 353 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
352 GetDisconnectingHealthThermometer(); 354 GetDisconnectingHealthThermometer(bool add_descriptors);
353 355
354 // |ServicesDiscoveredAfterReconnectionAdapter|(disconnect) 356 // |ServicesDiscoveredAfterReconnectionAdapter|(disconnect)
355 // Inherits from |HeartRateAdapter| 357 // Inherits from |HeartRateAdapter|
356 // Internal Structure: 358 // Internal Structure:
357 // - Heart Rate Device 359 // - Heart Rate Device
358 // - UUIDs: 360 // - UUIDs:
359 // - Generic Access UUID (0x1800) 361 // - Generic Access UUID (0x1800)
360 // - Heart Rate UUID (0x180d) 362 // - Heart Rate UUID (0x180d)
361 // - Services: 363 // - Services:
362 // - Generic Access Service - Characteristics as described in 364 // - Generic Access Service - Characteristics as described in
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 855
854 // Function to turn an integer into an MAC address of the form 856 // Function to turn an integer into an MAC address of the form
855 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) 857 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef)
856 // returns "00:00:DE:AD:BE:EF". 858 // returns "00:00:DE:AD:BE:EF".
857 static std::string makeMACAddress(uint64_t addr); 859 static std::string makeMACAddress(uint64_t addr);
858 }; 860 };
859 861
860 } // namespace content 862 } // namespace content
861 863
862 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_ 864 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698