Commit Graph
128 Commits
Author SHA1 Message Date
hai007 a353c3f851 Automated Code Change
PiperOrigin-RevId: 864793757
2026-02-03 03:28:10 -08:00
hai007 3991d6ed70 Automated Code Change
PiperOrigin-RevId: 862218218
2026-01-28 07:02:42 -08:00
hai007 46ad9a75ef Fix out-of-bounds string access in GNCIPv4AddressTest found by LibC++ hardening
LibC++ hardening detected an out-of-bounds write in `testInitFromDataWithLeadingEmptyBytes`. The `std::string` initialized with "\0\0\0\0" was empty, making the access `addressString[3]` invalid.

Updated the `std::string` constructor to specify the size, so it correctly includes the null bytes, preventing the crash.

PiperOrigin-RevId: 846853226
2025-12-19 13:48:53 -08:00
Edwin Wu d48cdd18a2 Fix the Hotspot upgrade failed.
PiperOrigin-RevId: 836521706
2025-11-24 23:24:53 -08:00
Guogang Li 919d279695 Update the logic to retrieve BLE peripheral.
PiperOrigin-RevId: 834816089
2025-11-20 10:27:57 -08:00
Edwin Wu 8375b82a86 Make delegateDelay property atomic and access it via self.
PiperOrigin-RevId: 832080864
2025-11-13 18:00:52 -08:00
Edwin Wu f214179935 [NC Apple coverage] Refactor GNSCentralPeerManagerTest to use custom fakes and add more test cases.
PiperOrigin-RevId: 831283848
2025-11-12 01:59:05 -08:00
Edwin Wu 3b8ba4a452 [NC Apple coverage] Refactor GNSPeripheralServiceManager tests and improve peripheral socket handling.
PiperOrigin-RevId: 831267194
2025-11-12 01:09:14 -08:00
Edwin Wu d92eae1535 [NC Apple coverage] Refactor GNSPeripheralManager tests to use fake objects. III
PiperOrigin-RevId: 831259501
2025-11-12 00:45:50 -08:00
Edwin Wu 935096779d [NC Apple coverage] Refactor GNSPeripheralManager tests to use fake objects. II
PiperOrigin-RevId: 831246580
2025-11-12 00:04:37 -08:00
Edwin Wu a96818b409 [NC Apple coverage] Refactor GNCNWFrameworkServerSocket and add more tests.
PiperOrigin-RevId: 831142947
2025-11-11 18:08:21 -08:00
Edwin Wu 50de2233f5 [NC Apple coverage] Refactor: Wrap Network.framework C functions for testability. Part II.
PiperOrigin-RevId: 831136979
2025-11-11 17:47:56 -08:00
Edwin Wu d59408553d [NC Apple coverage] Refactor GNSPeripheralManager tests to use fake objects. I
PiperOrigin-RevId: 829457380
2025-11-07 08:55:55 -08:00
Edwin Wu d7a3d13fe2 [BLEREFACTOR]: Add refactor flow for Ble/L2CAP in Apple platform layer.
PiperOrigin-RevId: 829179079
2025-11-06 17:51:10 -08:00
Edwin Wu cee0b3815e [NC Apple coverage] Refactor: Wrap Network.framework C functions for testability. Part I.
PiperOrigin-RevId: 828308553
2025-11-04 23:07:39 -08:00
Edwin Wu f353079f6f [NC Apple coverage] Add more comprehensive tests for BLE medium connections.
PiperOrigin-RevId: 826582061
2025-10-31 12:15:56 -07:00
Edwin Wu 270c71ad4b [NC Apple coverage] Add unit tests for GNCHotspotMedium on iOS and improve macOS tests.
PiperOrigin-RevId: 825810451
2025-10-29 19:32:46 -07:00
Edwin Wu a8c3789711 [NC Apple coverage] Add BLE L2CAP socket tests.
PiperOrigin-RevId: 825809602
2025-10-29 19:28:29 -07:00
Edwin Wu bf971db1bb [NC Apple coverage] Add unit tests for network_utils.h.
PiperOrigin-RevId: 825792828
2025-10-29 18:26:22 -07:00
Edwin Wu 3878ce99c8 [NC Apple coverage]Add more comprehensive tests for BLE L2CAP components.
PiperOrigin-RevId: 821886071
2025-10-20 18:22:03 -07:00
Edwin Wu 3569a9c17a [NC Apple coverage] Add tests for WifiHotspotMedium.
PiperOrigin-RevId: 820488585
2025-10-16 19:37:00 -07:00
Edwin Wu d08ca79b89 [NC Apple coverage] Add unit tests for Nearby Apple's BleMedium.
PiperOrigin-RevId: 820484319
2025-10-16 19:18:27 -07:00
Edwin Wu 866651e7c9 [NC Apple coverage] Add fakes and tests for Apple Hotspot mediums.
PiperOrigin-RevId: 820357736
2025-10-16 12:50:58 -07:00
Edwin Wu a211c5b527 [NC Apple coverage] Add tests for CBPeripheralManager category methods.
PiperOrigin-RevId: 814030295
2025-10-01 19:53:53 -07:00
Edwin Wu bbd6bbb9b9 [NC Apple coverage] Add tests for CBPeripheral category methods and update GNCFakePeripheral.
PiperOrigin-RevId: 814026340
2025-10-01 19:37:12 -07:00
Guogang Li 799027bdc9 Improve Hotspot connection retry logic.
PiperOrigin-RevId: 811370302
2025-09-25 09:01:43 -07:00
Edwin Wu d429a8e42d [NC Apple coverage] Add unit tests for GNCMBleConnection.
PiperOrigin-RevId: 810761287
2025-09-24 00:53:29 -07:00
Edwin Wu 56148e3b86 [NC Apple coverage] Add tests for GNCMConnectionHandlers.
PiperOrigin-RevId: 810655020
2025-09-23 18:24:47 -07:00
Edwin Wu 8ded7ccfca [NC Apple coverage] Add unit tests for GNCMBleUtils.
PiperOrigin-RevId: 808614106
2025-09-18 09:26:32 -07:00
Edwin Wu 961e73d7c9 [NC Apple coverage] Add unit tests for BleSocket on Apple.
PiperOrigin-RevId: 808378919
2025-09-17 20:51:46 -07:00
Ivo Ristovski List ebdcfbdf3c Automated Code Change
PiperOrigin-RevId: 807654392
2025-09-16 05:23:02 -07:00
Guogang Li 3c9f6ecdd3 Improve BLE Peripheral Management and Socket Closure on Apple.
PiperOrigin-RevId: 805438865
2025-09-10 11:14:14 -07:00
Edwin Wu 6cd1575a64 [NC Apple coverage] Added unit tests for GNCNWFrameworkServerSocket in WiFiCommon
PiperOrigin-RevId: 803705843
2025-09-05 20:36:01 -07:00
Guogang Li 4e684adac9 Add macOS support to GNCHotspotMedium.
PiperOrigin-RevId: 803641968
2025-09-05 16:22:16 -07:00
Edwin Wu dca5a4b6ec [NC Apple coverage] Added unit tests for GNCNWFrameworkSocket in WiFiCommon
PiperOrigin-RevId: 803485731
2025-09-05 09:10:16 -07:00
Guogang Li 6c80cc39e9 Adjust BLE advertisement length check for macOS.
PiperOrigin-RevId: 803170812
2025-09-04 14:15:55 -07:00
Edwin Wu b90f1d3719 [NC Apple coverage] Add unit tests for nearby::apple::AwdlMedium.
PiperOrigin-RevId: 802840092
2025-09-03 21:18:51 -07:00
Edwin Wu f0d164fc40 [NC Apple coverage] Test implementation for Wifi LAN medium.
PiperOrigin-RevId: 802829901
2025-09-03 20:39:01 -07:00
Edwin Wu 6e1fd931b7 [NC Apple coverage] Refactor CBManagerStateString and add tests for BLE
Sockets utilities and Weave packets.

PiperOrigin-RevId: 802825276
2025-09-03 20:23:01 -07:00
Edwin Wu 1b169516cb [NC Apple coverage]add unit tests for Hotspot Medium.
PiperOrigin-RevId: 802798810
2025-09-03 18:55:15 -07:00
Edwin Wu eff9d2d50b [NC Apple coverage] Reorganize BLE medium and test files
PiperOrigin-RevId: 800719731
2025-08-28 20:26:08 -07:00
Edwin Wu da266c0025 [NC Apple coverage] Enable WiFiCommon tests.
PiperOrigin-RevId: 799130702
2025-08-25 08:24:11 -07:00
Guogang Li 9087989a42 [iOS]Serialize API calls and improve error handling in GATT client
PiperOrigin-RevId: 797433462
2025-08-20 13:12:26 -07:00
Edwin Wu e95b44cf61 Fixes a potential crash when shutting down a BleMedium.
PiperOrigin-RevId: 792365629
2025-08-07 17:08:04 -07:00
Guogang Li fc37f9b9f0 Internal bug fix
PiperOrigin-RevId: 792253206
2025-08-07 12:01:37 -07:00
Guogang Li ddd4f922b9 Fixed deadlock during stop scanning on iOS
PiperOrigin-RevId: 791998760
2025-08-06 22:47:41 -07:00
Guogang Li 0640a9c13c Add cancel support for hotspot connection
PiperOrigin-RevId: 791394599
2025-08-05 15:33:33 -07:00
Edwin Wu 76a9af2441 Enabled unit tests in GNSCentralManager.m
PiperOrigin-RevId: 787352883
2025-07-25 21:36:23 -07:00
Edwin Wu cbbdb85df2 Update Unit Test for GNSSocket and GNSWeavePacket in Shared folder.
PiperOrigin-RevId: 787348545
2025-07-25 21:19:59 -07:00
hai007 7480977c58 Automated Code Change
PiperOrigin-RevId: 786349659
2025-07-23 11:07:56 -07:00