commit | f3f17edcf13c81a41ae64404397ededf39ae43aa | [log] [tgz] |
---|---|---|
author | David Pursell <dpursell@google.com> | Wed Feb 03 10:23:05 2016 -0800 |
committer | David Pursell <dpursell@google.com> | Wed Feb 03 10:43:01 2016 -0800 |
tree | 56d81ff3d3bce7623a885f21059b8f32adf84161 | |
parent | fc196f9e929421fba566770e42031f6dfe7c54ce [diff] |
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