| /external/python/httplib2/tests/ |
| D | test_http.py | 23 response, content = http.request( 26 assert response["content-location"] == tests.DUMMY_URL 27 assert content == b"the body" 36 response, content = http.request( 49 http.request("http://no-such-hostname./") 53 response, content = http.request("http://no-such-hostname./") 54 assert response["content-type"] == "text/plain" 55 assert content.startswith(b"Unable to find") 60 os.environ.get("TRAVIS_PYTHON_VERSION") in ("2.7", "pypy"), 62 "See https://travis-ci.org/httplib2/httplib2/jobs/408769880.", [all …]
|
| D | test_auth.py | 33 response, content = http.request(uri, "GET") 36 response, content = http.request(uri, "GET") 48 response, content = http.request(uri, "GET") 51 response, content = http.request(uri, "GET") 55 response, content = http.request(uri, "GET") 70 response, content = http.request(uri, "GET") 73 response, content = http.request(uri, "GET") 76 response, content = http.request(uri, "GET") 88 response, content = http.request(uri, "GET") 91 response, content = http.request(uri, "GET") [all …]
|
| D | test_encoding.py | 9 headers={"content-encoding": "gzip", "content-length": 42} 12 response, content = http.request(uri, "HEAD") 14 assert int(response["content-length"]) != 0 15 assert content == b"" 22 headers={"content-encoding": "gzip"}, 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") 31 assert content == b"properly compressed" [all …]
|
| D | test_cache.py | 12 # Test that can do a GET with cache and 'only-if-cached' 15 http.request(uri, "GET") 16 response, content = http.request( 17 uri, "GET", headers={"cache-control": "only-if-cached"} 24 # Test that can do a GET with no cache with 'only-if-cached' 27 response, content = http.request( 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 41 response, content = http.request( [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]), 147 "xn--http,-4y1d.org,fred,a=b,579924c35db315e5a32e3d9963388193", 253 self.fail("should get the address family right for IPv6") [all …]
|
| /external/python/httplib2/python2/ |
| D | httplib2test.py | 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]), 158 "xn--http,-4y1d.org,fred,a=b,579924c35db315e5a32e3d9963388193", 268 self.fail("should get the address family right for IPv6") [all …]
|
| /external/okhttp/okhttp-logging-interceptor/src/test/java/com/squareup/okhttp/logging/ |
| D | HttpLoggingInterceptorTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 44 private static final MediaType PLAIN = MediaType.parse("text/plain; charset=utf-8"); 114 .assertLogEqual("--> GET " + url + " HTTP/1.1") in basicGet() 115 .assertLogMatch("<-- HTTP/1\\.1 200 OK \\(\\d+ms, 0-byte body\\)") in basicGet() 119 .assertLogEqual("--> GET " + url + " HTTP/1.1") in basicGet() 120 .assertLogMatch("<-- HTTP/1\\.1 200 OK \\(\\d+ms, 0-byte body\\)") in basicGet() 131 .assertLogEqual("--> POST " + url + " HTTP/1.1 (3-byte body)") in basicPost() 132 .assertLogMatch("<-- HTTP/1\\.1 200 OK \\(\\d+ms, 0-byte body\\)") in basicPost() 136 .assertLogEqual("--> POST " + url + " HTTP/1.1 (3-byte body)") in basicPost() 137 .assertLogMatch("<-- HTTP/1\\.1 200 OK \\(\\d+ms, 0-byte body\\)") in basicPost() [all …]
|
| /external/curl/tests/data/ |
| D | test2031 | 5 HTTP GET 10 # Server-side 13 <!-- First request has NTLM auth, wrong password --> 16 Server: Microsoft-IIS/5.0 17 Content-Type: text/html; charset=iso-8859-1 18 Content-Length: 27 19 WWW-Authenticate: NTLM 26 Server: Microsoft-IIS/5.0 27 Content-Type: text/html; charset=iso-8859-1 28 Content-Length: 33 [all …]
|
| D | test2028 | 5 HTTP GET 11 # Server-side 14 <!-- Alternate the order that Digest and NTLM headers appear in responses to 15 ensure that the order doesn't matter. --> 17 <!-- First request has Digest auth, wrong password --> 20 Server: Microsoft-IIS/5.0 21 Content-Type: text/html; charset=iso-8859-1 22 Content-Length: 27 23 WWW-Authenticate: NTLM 24 WWW-Authenticate: Digest realm="testrealm", nonce="1" [all …]
|
| D | test2025 | 5 HTTP GET 11 # Server-side 14 <!-- Alternate the order that Basic and NTLM headers appear in responses to 15 ensure that the order doesn't matter. --> 17 <!-- First request has Basic auth, wrong password --> 20 Server: Microsoft-IIS/5.0 21 Content-Type: text/html; charset=iso-8859-1 22 Content-Length: 29 23 WWW-Authenticate: NTLM 24 WWW-Authenticate: Basic realm="testrealm" [all …]
|
| D | test2027 | 5 HTTP GET 9 # Server-side 12 <!-- 21 --> 23 <!-- First request has Digest auth, wrong password --> 26 Server: Microsoft-IIS/5.0 27 Content-Type: text/html; charset=iso-8859-1 28 Content-Length: 27 29 WWW-Authenticate: Digest realm="testrealm", nonce="1" 36 Server: Microsoft-IIS/5.0 [all …]
|
| D | test2030 | 5 HTTP GET 11 # Server-side 14 <!-- Alternate the order that Digest and NTLM headers appear in responses to 15 ensure that the order doesn't matter. --> 17 <!-- 26 --> 29 <!-- First request has NTLM auth, wrong password --> 32 Server: Microsoft-IIS/5.0 33 Content-Type: text/html; charset=iso-8859-1 34 Content-Length: 27 [all …]
|
| D | test2029 | 5 HTTP GET 11 # Server-side 14 <!-- Alternate the order that Basic and NTLM headers appear in responses to 15 ensure that the order doesn't matter. --> 17 <!-- First request has NTLM auth, wrong password --> 20 Server: Microsoft-IIS/5.0 21 Content-Type: text/html; charset=iso-8859-1 22 Content-Length: 27 23 WWW-Authenticate: NTLM 24 WWW-Authenticate: Basic realm="testrealm" [all …]
|
| D | test2026 | 5 HTTP GET 10 # Server-side 13 <!-- Alternate the order that Basic and Digest headers appear in responses to 14 ensure that the order doesn't matter. --> 16 <!-- First request has Digest auth, wrong password --> 19 Server: Microsoft-IIS/5.0 20 Content-Type: text/html; charset=iso-8859-1 21 Content-Length: 27 22 WWW-Authenticate: Digest realm="testrealm", nonce="1" 23 WWW-Authenticate: Basic realm="testrealm" [all …]
|
| D | test90 | 5 HTTP GET 7 --anyauth 12 # Server-side 18 WWW-Authenticate: Basic 19 WWW-Authenticate: Wild-and-crazy 20 WWW-Authenticate: NTLM 21 Content-Type: text/html; charset=iso-8859-1 22 Content-Length: 26 28 # Authorization: NTLM line passed-in from the client 31 Server: Microsoft-IIS/5.0 [all …]
|
| D | test2023 | 5 HTTP GET 9 # Server-side 12 <!-- First request has Basic auth, wrong password --> 15 Server: Microsoft-IIS/5.0 16 Content-Type: text/html; charset=iso-8859-1 17 Content-Length: 29 18 WWW-Authenticate: Basic realm="testrealm" 23 <!-- Second request has Basic auth, right password --> 26 Server: Microsoft-IIS/5.0 27 Content-Type: text/html; charset=iso-8859-1 [all …]
|
| /external/dokka/core/src/main/kotlin/Model/ |
| D | DocumentationNode.kt | 82 content: Content, 87 var content: Content = content variable 90 val summary: ContentNode get() = content.summary 93 get() = references(RefKind.Owner).singleOrNull()?.to 95 get() = references(RefKind.Detail).map { it.to } in <lambda>() 97 get() = references(RefKind.Member).map { it.to }.sortedBy { it.name } in <lambda>() 99 get() = references(RefKind.InheritedMember).map { it.to } in <lambda>() 101 get() = recursiveInheritedMembers().sortedBy { it.name } in <lambda>() 103 get() = references(RefKind.InheritedCompanionObjectMember).map { it.to } in <lambda>() 105 get() = references(RefKind.Extension).map { it.to } in <lambda>() [all …]
|
| /external/lottie/lottie/src/main/java/com/airbnb/lottie/animation/content/ |
| D | ContentGroup.java | 1 package com.airbnb.lottie.animation.content; 18 import com.airbnb.lottie.model.content.ContentModel; 19 import com.airbnb.lottie.model.content.ShapeGroup; 33 private static List<Content> contentsFromModels(LottieDrawable drawable, BaseLayer layer, in contentsFromModels() 35 List<Content> contents = new ArrayList<>(contentModels.size()); in contentsFromModels() 37 Content content = contentModels.get(i).toContent(drawable, layer); in contentsFromModels() local 38 if (content != null) { in contentsFromModels() 39 contents.add(content); in contentsFromModels() 47 ContentModel contentModel = contentModels.get(i); in findTransform() 61 private final List<Content> contents; [all …]
|
| /external/python/google-auth-library-python/tests/compute_engine/ |
| D | test__metadata.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 30 PATH = "instance/service-accounts/default" 54 method="GET", 67 method="GET", 102 method="GET", 113 request = make_request(data, headers={"content-type": "application/json"}) 115 result = _metadata.get(request, PATH) 118 method="GET", 130 data, headers={"content-type": "application/json"}, retry=True 133 result = _metadata.get(request, PATH) [all …]
|
| /external/cronet/net/http/ |
| D | http_network_layer_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 56 session_context.cert_verifier = cert_verifier_.get(); in ConfigureTestDependencies() 57 session_context.transport_security_state = transport_security_state_.get(); in ConfigureTestDependencies() 59 session_context.proxy_resolution_service = proxy_resolution_service_.get(); in ConfigureTestDependencies() 60 session_context.ssl_config_service = ssl_config_service_.get(); in ConfigureTestDependencies() 65 factory_ = std::make_unique<HttpNetworkLayer>(network_session_.get()); in ConfigureTestDependencies() 69 const std::string& content, in ExecuteRequestExpectingContentAndHeader() argument 82 int rv = factory_->CreateTransaction(DEFAULT_PRIORITY, &trans); in ExecuteRequestExpectingContentAndHeader() 85 rv = trans->Start(&request_info, callback.callback(), NetLogWithSource()); in ExecuteRequestExpectingContentAndHeader() 91 rv = ReadTransaction(trans.get(), &contents); in ExecuteRequestExpectingContentAndHeader() [all …]
|
| /external/libchrome/base/files/ |
| D | file_path_watcher_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 55 NotificationCollector() : task_runner_(base::ThreadTaskRunnerHandle::Get()) {} in NotificationCollector() 59 task_runner_->PostTask( in OnChange() 83 ASSERT_TRUE(task_runner_->BelongsToCurrentThread()); in RecordChange() 117 // thread-safe for setting expectations. Thus the test code cannot safely 125 collector_->Register(this); in TestDelegate() 133 collector_->OnChange(this); in OnFileChanged() 179 // Write |content| to |file|. Returns true on success. 180 bool WriteFile(const FilePath& file, const std::string& content) { in WriteFile() argument 181 int write_size = ::base::WriteFile(file, content.c_str(), content.length()); in WriteFile() [all …]
|
| /external/cronet/base/test/ |
| D | gtest_xml_unittest_result_printer_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 20 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( in SetUp() 29 XmlUnitTestResultPrinter::Get()->AddLink("unique_link", "http://google.com"); in TEST_F() 31 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( in TEST_F() 33 std::string content; in TEST_F() local 35 base::ReadFileToString(FilePath::FromUTF8Unsafe(file_path), &content)); in TEST_F() 41 EXPECT_TRUE(content.find(expected_content) != std::string::npos) in TEST_F() 42 << expected_content << " not found in " << content; in TEST_F() 46 XmlUnitTestResultPrinter::Get()->AddLink( in TEST_F() 49 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( in TEST_F() [all …]
|
| /external/nist-sip/java/gov/nist/javax/sip/message/ |
| D | SIPMessage.java | 14 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT 109 * Acknowledgements: Yanick Belanger sent in a patch for the right content length when the content 176 * The application data pointer. This is un-interpreted by the stack. This is provided as a 177 * convenient way of keeping book-keeping data for applications. 211 * Get the headers as a linked list of encoded Strings 256 * Get A dialog identifier constructed from this messsage. This is an id that can be used to 327 * @param template -- template to merge with. 354 * (rather than a binary array of bytes). If the payload cannot be encoded as a UTF-8 string 383 String content = null; in encode() local 386 content = messageContent; in encode() [all …]
|
| /external/icing/icing/result/ |
| D | result-retriever-v2_snippet_test.cc | 7 // http://www.apache.org/licenses/LICENSE-2.0 21 #include "icing/document-builder.h" 22 #include "icing/portable/equals-proto.h" 28 #include "icing/result/page-result.h" 29 #include "icing/result/result-adjustment-info.h" 30 #include "icing/result/result-retriever-v2.h" 31 #include "icing/result/result-state-v2.h" 32 #include "icing/schema-builder.h" 33 #include "icing/schema/schema-store.h" 35 #include "icing/scoring/priority-queue-scored-document-hits-ranker.h" [all …]
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/ |
| D | RtspHeadersTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 39 "Content-Length: 707", in build_withHeaderLines() 40 "Transport: RTP/AVP;unicast;client_port=65458-65459\r\n")) in build_withHeaderLines() 43 assertThat(headers.get("Accept")).isEqualTo("application/sdp"); in build_withHeaderLines() 44 assertThat(headers.get("CSeq")).isEqualTo("3"); in build_withHeaderLines() 45 assertThat(headers.get("Content-Length")).isEqualTo("707"); in build_withHeaderLines() 46 assertThat(headers.get("Transport")).isEqualTo("RTP/AVP;unicast;client_port=65458-65459"); in build_withHeaderLines() 57 "Content-Length", "707", in build_withHeaderLinesAsMap() 58 "Transport", "RTP/AVP;unicast;client_port=65458-65459\r\n")) in build_withHeaderLinesAsMap() 61 assertThat(headers.get("Accept")).isEqualTo("application/sdp"); in build_withHeaderLinesAsMap() [all …]
|