summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2019-01-25 21:34:46 +0000
committerTobias Thierer <tobiast@google.com>2019-01-25 23:08:32 +0000
commit4990b37421ae6107d49eeed9dbdb214d4f49d7a9 (patch)
tree54c1fe49017140a06b888899e7cc8ca9485bcba4 /annotations/generate_annotated_java_files.py
parentb3b3c659bd910b7a93cff67c10414a8b8bedbc19 (diff)
Add test coverage for URLConnection.getFileNameMap().
The implementation DefaultFileNameMap has logic around recognizing directories and stripping URL fragments (but but not query parameters) but this was not previously covered by tests. URLConnection.guessContentTypeFromName(String) is currently implemented on top of getFileNameMap(), but this was also not covered by tests. This CL adds test coverage for both. Note that the current Android behavior differs from the RI behavior because: - the RI has a bug where fragments are incorrectly cut off - the RI doesn't have logic to guess text/html for directory paths. Test: atest CtsLibcoreTestCases:libcore.java.net.URLConnectionTest Bug: 120171727 Bug: 123423689 Change-Id: I5381fbc109843525a03cf4ab03f490f5d17b3330
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions