platform_system_core/fastboot
David Pursell 2c094f7983 fastboot: fix SocketMock send failures.
Fixes SocketMock::ExpectSendFailure() to allow unit testing of errors
during send, and adds tests for ExpectSendFailure() and
AddReceiveFailure().

Also adds missing tests to make sure ReceiveAll() continues to read
until failure or all bytes have been read.

Bug: http://b/26157893
Change-Id: I67e7d6de8e8ec4a3b62a6b7d7217f7530862edf7
2016-02-03 10:43:01 -08:00
..
.clang-format fastboot: use cutils socket functions. 2016-01-21 09:53:11 -08:00
Android.mk libcutils/fastboot: improve multi-buffer write. 2016-02-03 10:01:38 -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 libcutils/fastboot: improve multi-buffer write. 2016-02-03 10:01:38 -08:00
socket.h libcutils/fastboot: improve multi-buffer write. 2016-02-03 10:01:38 -08:00
socket_mock.cpp fastboot: fix SocketMock send failures. 2016-02-03 10:43:01 -08:00
socket_mock.h fastboot: fix SocketMock send failures. 2016-02-03 10:43:01 -08:00
socket_test.cpp fastboot: fix SocketMock send failures. 2016-02-03 10:43:01 -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