Merge changes from topic "l1" into lollipop-mr1-cts-dev
* changes: DO NOT MERGE Add CTS test for URI fix. DO NOT MERGE Add EffectBundleTest DO NOT MERGE Add CTS test for cve_2017_0852_b_62815506
This commit is contained in:
@@ -109,6 +109,11 @@ public class UriTest extends AndroidTestCase {
|
|||||||
uri = Uri.parse("http://localhost");
|
uri = Uri.parse("http://localhost");
|
||||||
assertEquals("localhost", uri.getHost());
|
assertEquals("localhost", uri.getHost());
|
||||||
assertEquals(-1, uri.getPort());
|
assertEquals(-1, uri.getPort());
|
||||||
|
|
||||||
|
uri = Uri.parse("http://a:a@example.com:a@example2.com/path");
|
||||||
|
assertEquals("a:a@example.com:a@example2.com", uri.getAuthority());
|
||||||
|
assertEquals("example2.com", uri.getHost());
|
||||||
|
assertEquals(-1, uri.getPort());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testCompareTo() {
|
public void testCompareTo() {
|
||||||
|
|||||||
Reference in New Issue
Block a user