android_system_core/fastboot
David Pursell c3a466960f 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
2016-02-02 11:29:10 -08:00
..
.clang-format fastboot: use cutils socket functions. 2016-01-21 09:53:11 -08:00
Android.mk fastboot: socket testing improvements. 2016-02-02 11:29:10 -08:00
bootimg_utils.cpp Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07:00
bootimg_utils.h Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07:00
engine.cpp fastboot: show progress when sending sparse images. 2016-01-19 14:50:18 -08:00
fastboot.cpp fastboot: show progress when sending sparse images. 2016-01-19 14:50:18 -08:00
fastboot.h fastboot: show progress when sending sparse images. 2016-01-19 14:50:18 -08:00
fastboot_protocol.txt Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07:00
fs.cpp Clarify and fix the intent of the partition-type checking code. 2015-11-02 14:05:57 -08:00
fs.h Clarify and fix the intent of the partition-type checking code. 2015-11-02 14:05:57 -08:00
protocol.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
socket.cpp fastboot: socket testing improvements. 2016-02-02 11:29:10 -08:00
socket.h fastboot: socket testing improvements. 2016-02-02 11:29:10 -08:00
socket_mock.cpp fastboot: socket testing improvements. 2016-02-02 11:29:10 -08:00
socket_mock.h fastboot: socket testing improvements. 2016-02-02 11:29:10 -08:00
socket_test.cpp fastboot: socket testing improvements. 2016-02-02 11:29:10 -08:00
transport.h Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
usb.h fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
usb_linux.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
usb_osx.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
usb_windows.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
usbtest.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
util.cpp Move fastboot to C++. 2015-06-23 20:56:01 -07:00
util_linux.cpp Move fastboot to C++. 2015-06-23 20:56:01 -07:00
util_osx.cpp Move fastboot's Mac OS code to C++. 2015-06-24 11:17:28 -07:00
util_windows.cpp Move fastboot's Windows code to C++. 2015-06-24 10:48:43 -07:00