summaryrefslogtreecommitdiff
path: root/tests/netinet_in_test.cpp
AgeCommit message (Collapse)Author
2020-08-12Various coverage improvements.Elliott Hughes
Mostly from extra test cases, but also: * Move the fgets size < 0 assertion into fgets. * Use ELF aliases for strtoq/strtouq rather than duplicating code. * Don't check uname() succeeded, since it can't fail. Test: treehugger Change-Id: I2e6b3b88b0a3eb16bd68be68b9bc9f40d8043291
2017-12-14Use in_addr in ip_mreq_source and ip_msfilter.Elliott Hughes
This adds a new mechanism to say "replace struct S with #include <bits/S.h>". Also switch epoll_event over to the new mechanism. Also use the kernel's struct sockaddr_storage directly rather than behind an unnecessary #define. This patch also removes some dead code in the header scrubber. This code still needs rewriting completely. I learned that a "block" isn't necessarily a single struct definition, say; it might be a run of them. It seems like a block is a run of preprocessor directives or a run of regular code. Bug: https://issuetracker.google.com/36987220 Test: new test Change-Id: Ic6a5c09559766a4babe3cd4c3ea538b885e07308
2017-02-24Add tests for <endian.h>.Elliott Hughes
Also, for the stuff that's also in <netinet/in.h> as real functions, check that they're there too (and as functions rather than macros, since that was historically not true). Bug: http://b/28432448 Test: ran tests Change-Id: I7e4ae926f7e02de3b6dd38d1953e5b3b43d44f74
2016-02-03Add in6addr_any and in6addr_loopback symbols.Elliott Hughes
Change-Id: I3a90fa448b6bd43321672ba74b84a4e9e8a67738