commit | 8a14c224e30ee4a76fd83cb92c47e00bb5f4abea | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Tue Apr 19 13:00:51 2016 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Fri Apr 22 22:25:51 2016 +0900 |
tree | 76324ce47296dc938addd22c0546ffe51aad7cf2 | |
parent | 0e47422a47489a8eea8fa7cd8b56ae94ac4f123c [diff] |
Add more test coverage to ConnectivityManagerTest. 1. Test NetworkCallbacks as well as CONNECTIVITY_ACTION, since we are moving away from CONNECTIVITY_ACTION. 2. Use the Network objects we get back to test Network#getSocketFactory(). 3. Check that TCP connections are closed with ECONNABORTED when a network disconnects. Bug: 28251576 Change-Id: I41a438b82ef9251e52866332f3445f1bf876e04f