commit | 47d55f5f733bb68a3226b889f6135af2893b2e2c | [log] [tgz] |
---|---|---|
author | David Pursell <dpursell@google.com> | Fri Sep 11 16:06:59 2015 -0700 |
committer | David Pursell <dpursell@google.com> | Fri Sep 11 18:28:27 2015 -0700 |
tree | ac26e9509c52ce44a64f757ce5f34caac3de2b16 | |
parent | de4c716ab08ab12d6a5f8fbd76c9f0c5530a1d61 [diff] |
adb: fix shell_service_protocol_test for Windows. Adds missing #ifdef guards to shell_service_protocol_test.cpp so the test compiles on Windows. Also fixes a bug in Windows socketpair write implementation. Previously it was only checking for a closed pipe if the write happened to block. This adds an additional pre-check to exit immediately on a closed pipe. These two changes allow the test to compile and pass on Windows. Change-Id: Ib8853ed72f015fc0d623da47c32982cb3ffa4a3d