diff options
author | David Pursell <dpursell@google.com> | 2016-01-29 08:10:50 -0800 |
---|---|---|
committer | David Pursell <dpursell@google.com> | 2016-02-02 11:29:10 -0800 |
commit | c3a466960ff19bbf9b28b4d069dd0b872d4165d8 (patch) | |
tree | 97a3483c1c8cb5a57c82633723b9f8a84a2ab9cd /libcutils/sockets_unix.cpp | |
parent | d95ecfc432206d5408738bb7cbc6eb15e5827d91 (diff) |
fastboot: socket testing improvements.
(This code was originally part of a huge fastboot CL but has been split
out to try to make the CLs a little more manageable).
More prep for fastboot TCP and UDP implementations. This CL adds a
SocketMock class that makes it easy to mock out network behavior so we
can unit test the TCP and UDP protocols.
Also uses the new libcutils socket_get_local_port() to avoid hardcoding
a server port in unit tests.
Bug: http://b/26157893.
Change-Id: I1ba10f31e98d7349313fc15f240383d63378a8db
Diffstat (limited to 'libcutils/sockets_unix.cpp')
0 files changed, 0 insertions, 0 deletions