commit | 3fb517cb7519869a2b13169c22473e064657352c | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Sep 19 17:31:55 2016 -0700 |
committer | Josh Gao <jmgao@google.com> | Tue Sep 20 13:55:43 2016 -0700 |
tree | f6e91d57b132d64af1a3019bb139d48085bd8241 | |
parent | 54ab20e5bb3b620e4d9b522f2c799dea655b13fc [diff] |
adb: parse tcp socket specs with base::ParseNetAddress. libbase already has IPv6-aware address parsing, so use it instead of adb's handrolled IPv4-only parsing. Bug: http://b/31537253 Change-Id: I4e9ce56b55d7d02787c0fa67b724490bf49ce479 Test: mma && adb start-server && \ adb -L 'tcp:[::ffff:127.0.0.1]:5037' devices && \ adb -L 'tcp:localhost:5037' devices && \ adb -L 'tcp:127.0.0.1:5037' devices && \ adb -L 'tcp:5037' devices && \ $ANDROID_HOST_OUT/nativetest64/adb_test/adb_test