grpc-ios icon indicating copy to clipboard operation
grpc-ios copied to clipboard

iOS CoreTest coverage for libuv's dns resolver component

Open dennycd opened this issue 3 years ago • 2 comments

Add libuv-based unit test on iOS core test for DNS resolver. This make sure the API that core uses can work. Unit test logic can be sampled from a core subset from

  • https://github.com/libuv/libuv/blob/v1.x/test/test-getaddrinfo.c
  • https://github.com/libuv/libuv/blob/v1.x/test/test-gethostname.c
  • https://github.com/libuv/libuv/blob/v1.x/test/test-getnameinfo.c
  • https://github.com/libuv/libuv/blob/v1.x/test/test-getsockname.c

Libuv's DNS utility API

  • http://docs.libuv.org/en/v1.x/dns.html

dennycd avatar Oct 18 '21 19:10 dennycd

Proof-of-concept commit porting test-getaddrinfo.c with ios_unit_test setup via bazel

https://github.com/dennycd/grpc/commit/ef193cefba6d54d7cf5afad801d53e2fc020c7a0

dennycd avatar Nov 11 '21 22:11 dennycd

Pending for grpc #27513 to land

dennycd avatar Nov 12 '21 23:11 dennycd