summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorLuis Hector Chavez <lhchavez@google.com>2018-04-17 14:25:04 -0700
committerLuis Hector Chavez <lhchavez@google.com>2018-04-26 13:53:35 -0700
commit56fe753070043a9a645ad002bad19ca2ae829cc2 (patch)
treeb50702b3ba093ad7f8b8d38d887638a35d0c4e53 /trusty/coverage/coverage_test.cpp
parent9aca01907d6f72bc8c481293a90bf6fe9395a2c7 (diff)
adb: Add a way to distinguish between connection failures and successes
This change adds a callback that is invoked exactly once, either when the connection is fully established (i.e. CNXN packets have been sent and received) or the atransport object is deleted before that (because the connection failed). This helps in distinguishing between successful and failing connections for TCP. Especially when there is some kind of port forwarding/multiplexing in between (like an SSH tunnel or SSLH proxy). Bug: 74411879 Test: adb connect chromebook:22 (which runs an sslh tunnel to adbd). either succeeds or fails, but not fake-succeeds. Change-Id: I7e826c6f5d4c30338a03b2d376a857ac5d05672a
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions