summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2017-02-07 20:46:37 +0000
committerTobias Thierer <tobiast@google.com>2017-02-08 10:58:02 +0000
commit3ac6579c2666301209dcb116d60de4ba99d86e09 (patch)
tree1967b46631a6adcdffd277f3f14063bca689b5aa /annotations/generate_annotated_java_files.py
parentdbd0e5a9c815df276f0943bf069946921bb06938 (diff)
Expand test coverage for disconnect during connect.
Before this CL, URLConnectionTest.testDisconnectDuringConnect() tested the case of a HttpURLConnection being disconnected from the CookieManager while connecting via getInputStream(). The test missed the bug from http://r.android.com/329002 because that bug only occurred during getOutputStream(), which was not tested. After this CL, connection initiation via the follow methods is now covered: - getInputStream() - getOutputStream() - getResponseCode() - getResponseMessage() Note that getErrorStream() is not used because it is documented not to initiate a connection. Bug: 34695782 Test: libcore.java.net.URLConnectionTest Test: Checked that testDisconnectDuringConnect_getInputStream() would have found the bug in http://r.android.com/329002 (unsubmitted) because it hangs indefinitely when run against a build that includes that CL. Change-Id: I6432a69b2cdac177f01e1ba84f32b99322e7c4e1
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions