| /external/python/httplib2/tests/ |
| D | test_http.py | 26 assert response["content-location"] == tests.DUMMY_URL 49 http.request("http://no-such-hostname./") 53 response, content = http.request("http://no-such-hostname./") 54 assert response["content-type"] == "text/plain" 60 os.environ.get("TRAVIS_PYTHON_VERSION") in ("2.7", "pypy"), 62 "See https://travis-ci.org/httplib2/httplib2/jobs/408769880.", 74 os.environ.get("TRAVIS_PYTHON_VERSION") in ("2.7", "pypy"), 76 "See https://travis-ci.org/httplib2/httplib2/jobs/408769880.", 85 assert response["content-type"] == "text/plain" 97 with tests.server_reflect() as uri: [all …]
|
| D | test_cache.py | 12 # Test that can do a GET with cache and 'only-if-cached' 14 with tests.server_const_http(add_etag=True) as uri: 15 http.request(uri, "GET") 17 uri, "GET", headers={"cache-control": "only-if-cached"} 24 # Test that can do a GET with no cache with 'only-if-cached' 26 with tests.server_const_http(request_count=0) as uri: 28 uri, "GET", headers={"cache-control": "only-if-cached"} 35 # Test that can do a GET with no cache with 'only-if-cached' 37 # that responds to the 'only-if-cached', so this 40 with tests.server_const_http(request_count=0) as uri: [all …]
|
| D | test_auth.py | 32 with tests.server_request(handler, request_count=3) as uri: 33 response, content = http.request(uri, "GET") 36 response, content = http.request(uri, "GET") 47 with tests.server_request(handler, request_count=4) as uri: 48 response, content = http.request(uri, "GET") 51 response, content = http.request(uri, "GET") 53 domain = urllib.parse.urlparse(uri)[1] 55 response, content = http.request(uri, "GET") 68 with tests.server_request(handler, request_count=7) as uri: 70 response, content = http.request(uri, "GET") [all …]
|
| D | test_encoding.py | 9 headers={"content-encoding": "gzip", "content-length": 42} 11 with tests.server_const_bytes(response) as uri: 12 response, content = http.request(uri, "HEAD") 14 assert int(response["content-length"]) != 0 22 headers={"content-encoding": "gzip"}, 25 with tests.server_const_bytes(response) as uri: 26 response, content = http.request(uri, "GET") 28 assert "content-encoding" not in response 29 assert "-content-encoding" in response 30 assert int(response["content-length"]) == len(b"properly compressed") [all …]
|
| /external/python/httplib2/python3/ |
| D | httplib2test.py | 85 "http://example.org/", httplib2.urlnorm("http://example.org")[-1] 88 "http://example.org/", httplib2.urlnorm("http://EXAMple.org")[-1] 91 "http://example.org/?=b", httplib2.urlnorm("http://EXAMple.org?=b")[-1] 95 httplib2.urlnorm("http://EXAMple.org/mypath?a=b")[-1], 98 "http://localhost:80/", httplib2.urlnorm("http://localhost:80")[-1] 106 self.fail("Non-absolute URIs should raise an exception") 127 httplib2.safename(httplib2.urlnorm("http://www")[-1]), 128 httplib2.safename(httplib2.urlnorm("http://WWW")[-1]), 138 uri = "http://" + ("w" * 200) + ".org" 140 self.assertNotEqual(httplib2.safename(uri2), httplib2.safename(uri)) [all …]
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/ |
| D | HlsMediaPlaylistParserTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 import android.net.Uri; 46 Uri playlistUri = Uri.parse("https://example.com/test.m3u8"); in parseMediaPlaylist() 49 + "#EXT-X-VERSION:3\n" in parseMediaPlaylist() 50 + "#EXT-X-PLAYLIST-TYPE:VOD\n" in parseMediaPlaylist() 51 + "#EXT-X-START:TIME-OFFSET=-25\n" in parseMediaPlaylist() 52 + "#EXT-X-TARGETDURATION:8\n" in parseMediaPlaylist() 53 + "#EXT-X-MEDIA-SEQUENCE:2679\n" in parseMediaPlaylist() 54 + "#EXT-X-DISCONTINUITY-SEQUENCE:4\n" in parseMediaPlaylist() 55 + "#EXT-X-ALLOW-CACHE:YES\n" in parseMediaPlaylist() [all …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/ |
| D | HlsMediaPlaylistParserTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 import android.net.Uri; 46 Uri playlistUri = Uri.parse("https://example.com/test.m3u8"); in parseMediaPlaylist() 49 + "#EXT-X-VERSION:3\n" in parseMediaPlaylist() 50 + "#EXT-X-PLAYLIST-TYPE:VOD\n" in parseMediaPlaylist() 51 + "#EXT-X-START:TIME-OFFSET=-25\n" in parseMediaPlaylist() 52 + "#EXT-X-TARGETDURATION:8\n" in parseMediaPlaylist() 53 + "#EXT-X-MEDIA-SEQUENCE:2679\n" in parseMediaPlaylist() 54 + "#EXT-X-DISCONTINUITY-SEQUENCE:4\n" in parseMediaPlaylist() 55 + "#EXT-X-ALLOW-CACHE:YES\n" in parseMediaPlaylist() [all …]
|
| /external/python/httplib2/python2/ |
| D | httplib2test.py | 32 # The test resources base uri 96 "http://example.org/", httplib2.urlnorm("http://example.org")[-1] 99 "http://example.org/", httplib2.urlnorm("http://EXAMple.org")[-1] 102 "http://example.org/?=b", httplib2.urlnorm("http://EXAMple.org?=b")[-1] 106 httplib2.urlnorm("http://EXAMple.org/mypath?a=b")[-1], 109 "http://localhost:80/", httplib2.urlnorm("http://localhost:80")[-1] 117 self.fail("Non-absolute URIs should raise an exception") 138 httplib2.safename(httplib2.urlnorm("http://www")[-1]), 139 httplib2.safename(httplib2.urlnorm("http://WWW")[-1]), 149 uri = "http://" + ("w" * 200) + ".org" [all …]
|
| /external/robolectric/robolectric/src/test/java/org/robolectric/shadows/ |
| D | ShadowContentResolverTest.java | 39 import android.net.Uri; 82 private Uri uri21; 83 private Uri uri22; 90 uri21 = Uri.parse(EXTERNAL_CONTENT_URI.toString() + "/21"); in setUp() 91 uri22 = Uri.parse(EXTERNAL_CONTENT_URI.toString() + "/22"); in setUp() 122 Uri uri, in getType_shouldReturnProviderValue() 131 public Uri insert(Uri uri, ContentValues values) { in getType_shouldReturnProviderValue() 136 public int delete(Uri uri, String selection, String[] selectionArgs) { in getType_shouldReturnProviderValue() 137 return -1; in getType_shouldReturnProviderValue() 142 Uri uri, ContentValues values, String selection, String[] selectionArgs) { in getType_shouldReturnProviderValue() [all …]
|
| /external/libxml2/python/ |
| D | libxml2-python-api.xml | 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <api name='libxml2-python'> 7 <return type='int' info="1 in case of success, 0 or -1 in case of error"/> 16 <return type='int' info="1 in case of success, 0 or -1 in case of error"/> 33 <arg name='URI' type='xmlChar *' info='The URI used for base computations'/> 42 <arg name='URI' type='xmlChar *' info='The URI used for base computations'/> 45 …<info>Interface to parse an XML file or resource pointed by an URI to build an event flow to the S… 48 <arg name='URI' type='xmlChar *' info='The URI of the resource'/> 53 …<info>Interface to parse an HTML file or resource pointed by an URI to build an event flow to the … 56 <arg name='URI' type='xmlChar *' info='The URI of the resource'/> [all …]
|
| /external/aws-crt-java/src/test/java/software/amazon/awssdk/crt/test/ |
| D | Http2ClientConnectionTest.java | 3 * SPDX-License-Identifier: Apache-2.0. 11 import java.net.URI; 29 private final static String HOST = "https://postman-echo.com"; 39 URI uri = new URI(HOST); in testHttp2ConnectionGetVersion() local 41 … try (HttpClientConnectionManager connPool = createConnectionPoolManager(uri, EXPECTED_VERSION)) { in testHttp2ConnectionGetVersion() 43 … try (HttpClientConnection conn = connPool.acquireConnection().get(60, TimeUnit.SECONDS)) { in testHttp2ConnectionGetVersion() 53 shutdownComplete.get(60, TimeUnit.SECONDS); in testHttp2ConnectionGetVersion() 65 URI uri = new URI(HOST); in testHttp2ConnectionUpdateSettings() local 67 … try (HttpClientConnectionManager connPool = createConnectionPoolManager(uri, EXPECTED_VERSION)) { in testHttp2ConnectionUpdateSettings() 69 … try (Http2ClientConnection conn = (Http2ClientConnection) connPool.acquireConnection().get(60, in testHttp2ConnectionUpdateSettings() [all …]
|
| D | Http2ClientLocalHostTest.java | 4 * SPDX-License-Identifier: Apache-2.0. 8 import java.net.URI; 50 private Http2StreamManager createStreamManager(URI uri, int numConnections) { in createStreamManager() argument 64 .withUri(uri) in createStreamManager() 88 System.out.println("Encountered error trying to get payload bytes."); in createBodyStreamWithLength() 99 remainingBody -= amtToTransfer; in createBodyStreamWithLength() 118 private Http2Request createHttp2Request(String method, URI uri, long bodyLength) { in createHttp2Request() argument 121 new HttpHeader(":path", uri.getPath()), in createHttp2Request() 122 new HttpHeader(":scheme", uri.getScheme()), in createHttp2Request() 123 new HttpHeader(":authority", uri.getHost()), in createHttp2Request() [all …]
|
| /external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/transforms/ |
| D | IntegrityTransformTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 24 import android.net.Uri; 73 Uri uri = tmpUri.newUriBuilder().withTransform(TransformProtos.DEFAULT_INTEGRITY_SPEC).build(); in write_shouldComputeChecksum() local 74 Future<Uri> uriFuture; in write_shouldComputeChecksum() 75 UriComputingBehavior computeUri = new UriComputingBehavior(uri); in write_shouldComputeChecksum() 77 storage.open(uri, WriteStreamOpener.create().withBehaviors(computeUri)); in write_shouldComputeChecksum() 83 Uri uriWithHash = uriFuture.get(); in write_shouldComputeChecksum() 92 Uri uri = builder.withTransform(TransformProtos.DEFAULT_INTEGRITY_SPEC).build(); in consumeStream_shouldComputeChecksum() local 94 UriComputingBehavior computeUri = new UriComputingBehavior(uri); in consumeStream_shouldComputeChecksum() 95 Future<Uri> uriFuture; in consumeStream_shouldComputeChecksum() [all …]
|
| /external/nanohttpd/core/src/test/java/fi/iki/elonen/ |
| D | HttpGetRequestTest.java | 5 * NanoHttpd-Core 7 * Copyright (C) 2012 - 2015 nanohttpd 49 invokeServer("GET " + HttpServerTest.URI + "?foo&bar= HTTP/1.1"); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults() 50 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults() 51 assertEquals(0, this.testServer.decodedParamters.get("foo").size()); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults() 52 assertTrue(this.testServer.decodedParamters.get("bar") instanceof List); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults() 53 assertEquals(1, this.testServer.decodedParamters.get("bar").size()); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults() 54 assertEquals("", this.testServer.decodedParamters.get("bar").get(0)); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults() 59 invokeServer("GET " + HttpServerTest.URI + "?foo=bar&foo=baz&zot&zim= HTTP/1.1"); in testDecodingMixtureOfParameters() 60 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List); in testDecodingMixtureOfParameters() [all …]
|
| D | HttpHeadRequestTest.java | 5 * NanoHttpd-Core 7 * Copyright (C) 2012 - 2015 nanohttpd 56 invokeServer("HEAD " + HttpServerTest.URI + "?foo&bar= HTTP/1.1"); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults() 57 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults() 58 assertEquals(0, this.testServer.decodedParamters.get("foo").size()); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults() 59 assertTrue(this.testServer.decodedParamters.get("bar") instanceof List); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults() 60 assertEquals(1, this.testServer.decodedParamters.get("bar").size()); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults() 61 assertEquals("", this.testServer.decodedParamters.get("bar").get(0)); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults() 66 invokeServer("HEAD " + HttpServerTest.URI + "?foo=bar&foo=baz&zot&zim= HTTP/1.1"); in testDecodingMixtureOfParameters() 67 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List); in testDecodingMixtureOfParameters() [all …]
|
| /external/libcups/test/ |
| D | 4.2-cups-printer-ops.test | 4 # Copyright © 2007-2019 by Apple Inc. 5 # Copyright © 2001-2006 by Easy Software Products. All rights reserved. 15 OPERATION cups-add-printer 20 ATTR charset attributes-charset utf-8 21 ATTR language attributes-natural-language en 22 ATTR uri printer-uri $method://$hostname:$port/printers/Test1 27 STATUS successful-ok 30 EXPECT attributes-charset 31 EXPECT attributes-natural-language 38 OPERATION get-printer-attributes [all …]
|
| D | 4.3-job-ops.test | 4 # Copyright © 2007-2019 by Apple Inc. 5 # Copyright © 2001-2006 by Easy Software Products. All rights reserved. 12 NAME "Print PostScript Job with bad job-sheets value to Test1" 15 OPERATION print-job 20 ATTR charset attributes-charset utf-8 21 ATTR language attributes-natural-language en 22 ATTR uri printer-uri $method://$hostname:$port/printers/Test1 23 ATTR name requesting-user-name $user 24 ATTR name job-sheets "none\,none" 29 STATUS client-error-bad-request [all …]
|
| /external/tink/cc/core/ |
| D | kms_clients_test.cc | 7 // http://www.apache.org/licenses/LICENSE-2.0 41 auto client_result = KmsClients::Get("some uri"); in TEST() 44 client_result = KmsClients::Get(""); in TEST() 54 std::string uri; member 64 absl::make_unique<DummyKmsClient>(data_1.prefix, data_1.uri)); in TEST() 66 auto client_result = KmsClients::Get(data_1.uri); in TEST() 68 EXPECT_TRUE(client_result.value()->DoesSupport(data_1.uri)); in TEST() 69 EXPECT_FALSE(client_result.value()->DoesSupport(data_2.uri)); in TEST() 72 client_result = KmsClients::Get(data_2.uri); in TEST() 77 absl::make_unique<DummyKmsClient>(data_2.prefix, data_2.uri)); in TEST() [all …]
|
| /external/libcups/examples/ |
| D | set-attrs-hold.test | 1 # Test print-job and later job-hold-until attribute 10 OPERATION pause-printer 14 ATTR charset attributes-charset utf-8 15 ATTR language attributes-natural-language en 16 ATTR uri printer-uri $uri 17 ATTR name requesting-user-name $user 20 STATUS successful-ok 21 STATUS successful-ok-ignored-or-substituted-attributes 32 OPERATION print-job 36 ATTR charset attributes-charset utf-8 [all …]
|
| /external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/downloader/offroad/ |
| D | Offroad2FileDownloaderTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 26 import android.net.Uri; 65 import java.net.URI; 113 private Uri.Builder testUrlPrefix; 177 Optional.of(() -> cookieJar), in setUp() 195 Uri fileUri = tmpUri.newUri(); in testStartDownloading_downloadConditionsNull_usesWifiOnly() 201 constraints -> { in testStartDownloading_downloadConditionsNull_usesWifiOnly() 219 downloadFuture.get(MAX_CONNECTION_WAIT_SECS, SECONDS); in testStartDownloading_downloadConditionsNull_usesWifiOnly() 226 assertThat(fakeDownloadMetadataStore.read(fileUri).get(MAX_CONNECTION_WAIT_SECS, SECONDS)) in testStartDownloading_downloadConditionsNull_usesWifiOnly() 232 Uri fileUri = tmpUri.newUri(); in testStartDownloading_wifi() [all …]
|
| /external/openthread/src/cli/ |
| D | README_COAP.md | 1 # OpenThread CLI - CoAP Example 13 On node 1, setup CoAP server with resource `test-resource`. 18 > coap resource test-resource 27 > coap get fdde:ad00:beef:0:d395:daee:a75:3964 test-resource 30 > coap put fdde:ad00:beef:0:2780:9423:166c:1aac test-resource con payload 40 coap request from [fdde:ad00:beef:0:b3:e3f6:2dcc:4b79] GET 48 - [help](#help) 49 - [cancel](#cancel) 50 - [delete](#delete-address-uri-path-type-payload) 51 - [get](#get-address-uri-path-type) [all …]
|
| /external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/ |
| D | DownloadFileGroupAndroidSharingIntegrationTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 31 import android.net.Uri; 86 private static final String FILE_GROUP_TO_SHARE_1 = "test-group-1"; 87 private static final String FILE_GROUP_TO_SHARE_2 = "test-group-2"; 89 private static final String FILE_ID_1 = "test-file-to-share-1"; 96 private static final String FILE_ID_2 = "test-file-to-share-2"; 121 // Investigate why this is happening and enable single-threaded tests. 149 mobileDataDownload.clear().get(); in tearDown() 172 Uri androidUri = in oneAndroidSharedFile_blobStoreBackendNotRegistered_fileDownloadedAndStoredLocally() 175 // A file group with one android-shared file and one non-androidShared file in oneAndroidSharedFile_blobStoreBackendNotRegistered_fileDownloadedAndStoredLocally() [all …]
|
| /external/sandboxed-api/contrib/uriparser/test/ |
| D | test_uriparser.cc | 7 // https://www.apache.org/licenses/LICENSE-2.0 29 std::string uri; member 46 .uri = "http://www.example.com/", 60 .test = "https://github.com/google/sandboxed-api/", 61 .uri = "https://github.com/google/sandboxed-api/", 62 .uriescaped = "https%3A%2F%2Fgithub.com%2Fgoogle%2Fsandboxed-api%2F", 70 .normalized = "https://github.com/google/sandboxed-api/", 71 .add_base_example = "https://github.com/google/sandboxed-api/", 72 .remove_base_example = "https://github.com/google/sandboxed-api/", 73 .path_elements = {"google", "sandboxed-api"}, [all …]
|
| /external/zxing/javase/src/main/java/com/google/zxing/client/j2se/ |
| D | CommandLineRunner.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 import java.net.URI; 38 * as arguments. By default it uses the normal decoding algorithms, but you can pass --try_harder 60 List<URI> inputs = new ArrayList<>(config.inputPaths.size()); in main() 62 URI uri; in main() local 64 uri = new URI(inputPath); in main() 67 if (!Files.exists(Paths.get(inputPath))) { in main() 70 uri = new URI("file", inputPath, null); in main() 72 inputs.add(uri); in main() 85 Queue<URI> syncInputs = new ConcurrentLinkedQueue<>(inputs); in main() [all …]
|
| /external/rust/crates/http/src/ |
| D | request.rs | 16 //! .uri("https://www.rust-lang.org/") 17 //! .header("User-Agent", "my-awesome-agent/1.0"); 25 //! # fn needs_awesome_header() -> bool { 29 //! fn send(req: Request<()>) -> Response<()> { 40 //! fn respond_to(req: Request<()>) -> http::Result<Response<()>> { 41 //! if req.uri() != "/awesome-url" { 62 use crate::{Extensions, Result, Uri}; 79 /// .uri("https://www.rust-lang.org/") 80 /// .header("User-Agent", "my-awesome-agent/1.0"); 88 /// # fn needs_awesome_header() -> bool { [all …]
|