android_packages_modules_Co.../tests/unit/java/com/android
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Remi NGUYEN VAN af4ea5826b Clear inetaddress fields when removing the record
When calling MdnsResponse.setInet4AddressRecord with null, the record
was removed from the records list, but not from the inet4AddressRecord /
inet6AddressRecord fields.

Fix that, and update the MdnsResponseDecoder test that missed the bug
because it modified the same incomplete MdnsResponse multiple times
(so isComplete keeps returning false), instead of using a copy of
a complete MdnsResponse.

This requires using a copy constructor, which will be useful for future
changes, so add it with a test.

Bug: 267570781
Test: atest
Change-Id: I199a8e4bc9a54a142c1fec1acee2ab6b1baa7efb
2023-03-03 11:43:03 +09:00
..
internal/net Add unit tests for new VpnProfile fields 2023-02-15 15:01:28 +00:00
server Clear inetaddress fields when removing the record 2023-03-03 11:43:03 +09:00