platform_system_core/adb
Spencer Low 1ce06087db adb unittest for win32 handle inheritance
adb.cpp: launch_server() has a long comment about how
stdin/stdout/stderr handles have to be made non-inheritable to prevent
hangs in callers to adb.exe.

It would be disastrous to do this wrong, and I've modified this code, so
here's a unittest to verify that I'm doing it right.

The test also runs fine on unix.

Change-Id: I3672c3066bc7498635c19212f9e5c50757942439
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-09-16 20:50:53 -07:00
..
client adb: win32: make adb_getenv() case-insensitive 2015-09-11 15:53:08 -07:00
daemon adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00
.clang-format Fix clang-format file for correct indent settings. 2015-03-19 13:27:20 -07:00
__init__.py Create adb Python package. 2015-07-27 15:52:15 -07:00
adb.cpp Merge "Add unit tests for local socket." 2015-09-17 02:32:12 +00:00
adb.h Add unit tests for local socket. 2015-09-16 15:00:59 -07:00
adb_auth.cpp adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00
adb_auth.h Ignore ro.adb.secure in user builds. 2015-06-18 10:19:30 -07:00
adb_auth_client.cpp adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00
adb_auth_host.cpp adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00
adb_client.cpp adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00
adb_client.h Fix error handling/reporting for "adb forward" and "adb reverse". 2015-05-29 18:03:57 -07:00
adb_io.cpp adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00
adb_io.h adb sync cleanup. 2015-08-24 11:15:01 -07:00
adb_io_test.cpp adb/base win32 tests: fix comment and open() flags 2015-09-01 14:57:58 -07:00
adb_listeners.cpp adb: clean up transport disconnect operations. 2015-08-28 16:36:00 -07:00
adb_listeners.h adb: win32: initial IPv6 support and improved Winsock error reporting 2015-07-30 23:07:55 -07:00
adb_trace.h adb: move shell service to a separate file. 2015-09-04 08:52:35 -07:00
adb_utils.cpp adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00
adb_utils.h adb sync cleanup. 2015-08-24 11:15:01 -07:00
adb_utils_test.cpp win32: adb_test/libbase_test fixes 2015-08-06 18:09:32 -07:00
Android.mk Add unit tests for local socket. 2015-09-16 15:00:59 -07:00
commandline.cpp adb: Fix missing shell protocol usage. 2015-09-14 15:33:50 -07:00
console.cpp adb: win32: initial IPv6 support and improved Winsock error reporting 2015-07-30 23:07:55 -07:00
CPPLINT.cfg Ignore whitespace/indent issues from cpplint. 2015-05-18 16:49:07 -07:00
device.py adb: add client side shell protocol and enable. 2015-09-11 13:02:17 -07:00
fdevent.cpp Add unit tests for local socket. 2015-09-16 15:00:59 -07:00
fdevent.h Add unit tests for local socket. 2015-09-16 15:00:59 -07:00
fdevent_test.cpp Add unit tests for local socket. 2015-09-16 15:00:59 -07:00
file_sync_client.cpp Improve adb sync_send error reporting. 2015-09-03 13:55:55 -07:00
file_sync_service.cpp adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00
file_sync_service.h There are no big endian hosts, grandpa. 2015-08-24 14:27:03 -07:00
framebuffer_service.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
get_my_path_darwin.cpp Move get_my_path_darwin to C++. 2015-04-16 13:24:58 -07:00
get_my_path_linux.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
jdwp_service.cpp adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00
MODULE_LICENSE_APACHE2 eclair snapshot 2009-11-12 18:46:23 -08:00
mutex_list.h adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00
NOTICE eclair snapshot 2009-11-12 18:46:23 -08:00
OVERVIEW.TXT Fixing spelling errors in adb docs 2010-04-28 11:38:39 -04:00
protocol.txt Increase size of the the adb packets sent over the wire 2015-07-22 13:06:06 -07:00
remount_service.cpp Fix "adb remount" for when the root directory is in system.img 2015-07-08 19:36:19 +00:00
remount_service.h Failure to find an oem partition should not be a remount failure. 2015-05-11 13:28:22 -07:00
services.cpp adb: implement shell protocol. 2015-09-11 11:27:50 -07:00
SERVICES.TXT adb sync cleanup. 2015-08-24 11:15:01 -07:00
set_verity_enable_state_service.cpp Failure to find an oem partition should not be a remount failure. 2015-05-11 13:28:22 -07:00
shell_service.cpp adb: Kill subprocess when the client exits. 2015-09-15 10:16:24 -07:00
shell_service.h adb: implement shell protocol. 2015-09-11 11:27:50 -07:00
shell_service_protocol.cpp adb: create shell protocol class (take 2). 2015-09-08 10:04:10 -07:00
shell_service_protocol_test.cpp adb: fix shell_service_protocol_test for Windows. 2015-09-11 18:28:27 -07:00
shell_service_test.cpp adb: implement shell protocol. 2015-09-11 11:27:50 -07:00
socket.h Add unit tests for local socket. 2015-09-16 15:00:59 -07:00
socket_test.cpp Add unit tests for local socket. 2015-09-16 15:00:59 -07:00
sockets.cpp Add unit tests for local socket. 2015-09-16 15:00:59 -07:00
sockets.dia auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
SYNC.TXT adb sync cleanup. 2015-08-24 11:15:01 -07:00
sysdeps.h adb: set thread names (linux & mac) 2015-08-31 07:52:52 -07:00
sysdeps_win32.cpp adb: fix shell_service_protocol_test for Windows. 2015-09-11 18:28:27 -07:00
sysdeps_win32_test.cpp adb: win32: make adb_getenv() case-insensitive 2015-09-11 15:53:08 -07:00
test_adb.py adb unittest for win32 handle inheritance 2015-09-16 20:50:53 -07:00
test_device.py Merge "adb unittest: make test_sync properly cleanup after itself" 2015-09-17 03:03:31 +00:00
test_track_devices.cpp Add missing includes. 2015-08-11 16:39:57 -07:00
transport.cpp adb: add client side shell protocol and enable. 2015-09-11 13:02:17 -07:00
transport.h adb: implement shell protocol. 2015-09-11 11:27:50 -07:00
transport_local.cpp adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00
transport_test.cpp adb: clean up transport disconnect operations. 2015-08-28 16:36:00 -07:00
transport_usb.cpp adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00
usb_linux.cpp adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00
usb_linux_client.cpp adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00
usb_osx.cpp adb: improve names for transport threads. 2015-08-31 13:34:27 -07:00
usb_windows.cpp adb: clean up debug tracing a little. 2015-09-02 20:21:00 -07:00