| /external/perfetto/ui/src/test/ |
| D | ui_integrationtest.ts | 7 // http://www.apache.org/licenses/LICENSE-2.0 30 const expectedScreenshotPath = path.join('test', 'data', 'ui-screenshots'); 31 const tmpDir = path.resolve('./ui-test-artifacts'); 37 return pages[pages.length - 1]; 40 // Executed once at the beginning of the test. Navigates to the UI. 51 // After each test (regardless of nesting) capture a screenshot named after the 52 // test('') name and compare the screenshot with the expected one in 53 // /test/data/ui-screenshots. 56 testName = testName.replace(/[^a-z0-9-]/gim, '_').toLowerCase(); 59 const screenshotName = `ui-${testName}.png`; [all …]
|
| /external/cronet/net/dns/ |
| D | dns_hosts_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 7 #include "base/test/metrics/histogram_tester.h" 37 TEST(DnsHostsTest, ParseHosts) { in TEST() function 39 "127.0.0.1 localhost # standard\n" in TEST() 41 "1.0.0.1 localhost # ignored, first hit above\n" in TEST() 46 "::1\tlocalhost ip6-localhost ip6-loopback # comment # within a comment\n" in TEST() 47 "\t fe00::0 ip6-localnet\r\n" in TEST() 59 "127.0.0.5 fóó.test # canonicalizes to 'xn--f-vgaa.test' due to RFC3490\n" in TEST() 64 {"localhost", ADDRESS_FAMILY_IPV4, "127.0.0.1"}, in TEST() 66 {"localhost", ADDRESS_FAMILY_IPV6, "::1"}, in TEST() [all …]
|
| /external/libwebsockets/READMEs/ |
| D | README.test-apps.md | 1 Overview of lws test apps 4 Are you building a client? You just need to look at the test client 5 [libwebsockets-test-client](../test-apps/test-client.c). 16 plugin. See [plugin-standalone](../plugin-standalone) for an example of how 19 $ cmake .. -DLWS_WITH_LWSWS=1 35 $ cmake .. -DLWS_WITH_PLUGINS=1 37 See, eg, the [test-server](../test-apps/test-server.c) 59 Notes about lws test apps 64 If you run [libwebsockets-test-server](../test-apps/test-server.c) and point your browser 69 It will fetch a script in the form of `test.html`, and then run the [all …]
|
| /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
| D | RequestTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 27 import org.junit.Test; 34 @Test public void string() throws Exception { in string() 35 MediaType contentType = MediaType.parse("text/plain; charset=utf-8"); in string() 43 @Test public void stringWithDefaultCharsetAdded() throws Exception { in stringWithDefaultCharsetAdded() 46 assertEquals(MediaType.parse("text/plain; charset=utf-8"), body.contentType()); in stringWithDefaultCharsetAdded() 51 @Test public void stringWithNonDefaultCharsetSpecified() throws Exception { in stringWithNonDefaultCharsetSpecified() 52 MediaType contentType = MediaType.parse("text/plain; charset=utf-16be"); in stringWithNonDefaultCharsetSpecified() 59 @Test public void byteArray() throws Exception { in byteArray() 68 @Test public void byteArrayRange() throws Exception { in byteArrayRange() [all …]
|
| /external/aws-sdk-java-v2/http-client-spi/src/test/java/software/amazon/awssdk/http/ |
| D | SdkHttpRequestResponseTest.java | 33 import org.junit.jupiter.api.Test; 40 @Test 47 @Test 49 assertRequestHeaderMapsAreCopied(b -> b.putHeader("foo", "bar")); in requestHeaderMapsAreCopiedWhenModified() 50 assertRequestHeaderMapsAreCopied(b -> b.putHeader("foo", singletonList("bar"))); in requestHeaderMapsAreCopiedWhenModified() 51 assertRequestHeaderMapsAreCopied(b -> b.appendHeader("foo", "bar")); in requestHeaderMapsAreCopiedWhenModified() 52 assertRequestHeaderMapsAreCopied(b -> b.headers(emptyMap())); in requestHeaderMapsAreCopiedWhenModified() 53 assertRequestHeaderMapsAreCopied(b -> b.clearHeaders()); in requestHeaderMapsAreCopiedWhenModified() 54 assertRequestHeaderMapsAreCopied(b -> b.removeHeader("Accept")); in requestHeaderMapsAreCopiedWhenModified() 57 @Test [all …]
|
| /external/tensorflow/tensorflow/core/data/service/ |
| D | auto_shard_rewriter_test.cc | 7 http://www.apache.org/licenses/LICENSE-2.0 34 #include "tensorflow/core/platform/test.h" 75 task_def.mutable_processing_mode_def()->set_sharding_policy(sharding_policy); in GetTaskDef() 81 TEST(AutoShardRewriterTest, AutoShard) { in TEST() function 97 TEST(AutoShardRewriterTest, ShardByData) { in TEST() function 113 TEST(AutoShardRewriterTest, ShardByFile) { in TEST() function 125 TEST(AutoShardRewriterTest, ShardByHint) { in TEST() function 141 TEST(AutoShardRewriterTest, NoShard) { in TEST() function 152 TEST(AutoShardRewriterTest, EmptyDataset) { in TEST() function 169 TEST(AutoShardRewriterTest, NoWorkers) { in TEST() function [all …]
|
| D | url_test.cc | 7 http://www.apache.org/licenses/LICENSE-2.0 17 #include "tensorflow/core/platform/test.h" 23 TEST(URLTest, ParseUrl) { in TEST() function 24 URL url("localhost"); in TEST() 25 EXPECT_EQ(url.host(), "localhost"); in TEST() 29 TEST(URLTest, ParseUrlWithProtocol) { in TEST() function 30 URL url("http://localhost"); in TEST() 31 EXPECT_EQ(url.host(), "http://localhost"); in TEST() 35 TEST(URLTest, ParseUrlWithPort) { in TEST() function 36 URL url("localhost:1234"); in TEST() [all …]
|
| /external/aws-sdk-java-v2/http-clients/apache-client/src/test/java/software/amazon/awssdk/http/apache/internal/impl/ |
| D | ApacheHttpRequestFactoryTest.java | 35 import org.junit.jupiter.api.Test; 58 @Test 61 .uri(URI.create("http://localhost:12345/")) in createSetsHostHeaderByDefault() 71 assertEquals("localhost:12345", hostHeaders[0].getValue()); in createSetsHostHeaderByDefault() 74 @Test 77 .uri(URI.create("http://localhost:12345/")) in putRequest_withTransferEncodingChunked_isChunkedAndDoesNotIncludeHeader() 79 .putHeader("Transfer-Encoding", "chunked") in putRequest_withTransferEncodingChunked_isChunkedAndDoesNotIncludeHeader() 84 .contentStreamProvider(() -> inputStream) in putRequest_withTransferEncodingChunked_isChunkedAndDoesNotIncludeHeader() 87 Header[] transferEncodingHeaders = result.getHeaders("Transfer-Encoding"); in putRequest_withTransferEncodingChunked_isChunkedAndDoesNotIncludeHeader() 97 @Test [all …]
|
| /external/python/cpython3/Lib/test/ |
| D | test_smtplib.py | 20 from test import support, mock_socket 21 from test.support import hashlib_helper 22 from test.support import socket_helper 23 from test.support import threading_helper 24 from test.support import warnings_helper 59 n -= 1 76 # so test to make sure it still works. 174 @unittest.skipUnless(hasattr(socket, 'AF_UNIX'), "test requires Unix domain socket") 191 # Test server thread using the specified SMTP server class 211 n -= 1 [all …]
|
| /external/autotest/server/ |
| D | afe_urls_unittest.py | 3 # Use of this source code is governed by a BSD-style license that can be 29 """Test _geturl() happy path.""" 30 urls = afe_urls.AfeUrls('http://localhost/afe/') 32 self.assertURLEqual(got, 'http://localhost/afe/#foo=bar&spam=eggs') 35 """Test get_host_url() happy path.""" 36 urls = afe_urls.AfeUrls('http://localhost/afe/') 40 'http://localhost/afe/#tab_id=view_host&object_id=42') 43 """Test happy path for root_url attribute.""" 44 urls = afe_urls.AfeUrls('http://localhost/afe/') 45 self.assertEqual(urls.root_url, 'http://localhost/afe/') [all …]
|
| /external/rust/crates/http/src/uri/ |
| D | tests.rs | 5 #[test] 27 #[test] 59 "/some/path/here?and=then&hello#and-bye", 109 "localhost", 110 ["LOCALHOST", "LocaLHOSt"], 113 authority = part!("localhost"), 117 host = Some("localhost"), 135 "localhost:3000", 136 ["localhosT:3000"], 139 authority = part!("localhost:3000"), [all …]
|
| /external/grpc-grpc-java/interop-testing/src/test/java/io/grpc/testing/integration/ |
| D | StressTestClientTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 38 import org.junit.Test; 50 @Test 53 client.parseArgs(new String[] {"--server_addresses=[0:0:0:0:0:0:0:1]:8080," in ipv6AddressesShouldBeSupported() 61 @Test 64 assertEquals(singletonList(new InetSocketAddress("localhost", 8080)), client.addresses()); in defaults() 66 assertEquals(-1, client.durationSecs()); in defaults() 72 @Test 76 "--server_addresses=localhost:8080,localhost:8081,localhost:8082", in allCommandlineSwitchesAreSupported() 77 "--test_cases=empty_unary:20,large_unary:50,server_streaming:30", in allCommandlineSwitchesAreSupported() [all …]
|
| /external/nanohttpd/nanolets/src/test/java/fi/iki/elonen/router/ |
| D | TestNanolets.java | 7 * Copyright (C) 2012 - 2015 nanohttpd 56 import org.junit.Test; 88 Pattern.compile("([A-Za-z0-9\\-\\._~:/?#\\[\\]@!\\$&'\\(\\)\\*\\+,;=]+)"); in main() 89 … Pattern URI_PATTERN = Pattern.compile("([A-Za-z0-9\\-\\._~:/?#\\[\\]@!\\$&'\\(\\)\\*\\+,;=]+)"); in main() 94 …n URI_PATTERN = Pattern.compile("photos/([A-Za-z0-9\\-\\._~:/?#\\[\\]@!\\$&'\\(\\)\\*\\+,;=]+)/([A… in main() 96 System.out.println("--------------->" + "/" + uri); in main() 106 @Test 110 HttpGet httpget = new HttpGet("http://localhost:9090/user/blabla"); in doSomeBasicMethodTest() 113 String string = new String(readContents(entity), "UTF-8"); in doSomeBasicMethodTest() 118 HttpPost httppost = new HttpPost("http://localhost:9090/user/blabla"); in doSomeBasicMethodTest() [all …]
|
| /external/python/cpython2/Lib/test/ |
| D | test_smtplib.py | 12 from test import test_support 36 n -= 1 43 @unittest.skipUnless(threading, 'Threading required for this test.') 105 # Test server thread using the specified SMTP server class 125 n -= 1 137 MSG_BEGIN = '---------- MESSAGE FOLLOWS ----------\n' 138 MSG_END = '------------ END MESSAGE ------------\n' 140 # NOTE: Some SMTP objects in the tests below are created with a non-default 143 # test server times out, causing the test to fail. 145 # Test behavior of smtpd.DebuggingServer [all …]
|
| /external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
| D | GZipIntegrationTest.java | 5 * NanoHttpd-Core 7 * Copyright (C) 2012 - 2015 nanohttpd 52 import org.junit.Test; 82 @Test 84 testServer.response = NanoHTTPD.newFixedLengthResponse("This is a test"); in contentEncodingShouldBeAddedToFixedLengthResponses() 85 HttpGet request = new HttpGet("http://localhost:8192/"); in contentEncodingShouldBeAddedToFixedLengthResponses() 86 request.addHeader("Accept-encoding", "gzip"); in contentEncodingShouldBeAddedToFixedLengthResponses() 88 Header contentEncoding = response.getFirstHeader("content-encoding"); in contentEncodingShouldBeAddedToFixedLengthResponses() 89 assertNotNull("Content-Encoding should be set", contentEncoding); in contentEncodingShouldBeAddedToFixedLengthResponses() 93 @Test [all …]
|
| /external/tensorflow/tensorflow/core/common_runtime/ |
| D | direct_session_with_tracking_alloc_test.cc | 7 http://www.apache.org/licenses/LICENSE-2.0 39 #include "tensorflow/core/platform/test.h" 48 TEST(DirectSessionWithTrackingAllocTest, CostModelTest) { in TEST() function 52 test::FillValues<float>(&a_tensor, {3, 2, -1, 0}); in TEST() 53 Node* a = test::graph::Constant(&graph, a_tensor); in TEST() 54 a->set_assigned_device_name("/job:localhost/replica:0/task:0/cpu:0"); in TEST() 57 test::FillValues<float>(&x_tensor, {1, 1}); in TEST() 58 Node* x = test::graph::Constant(&graph, x_tensor); in TEST() 59 x->set_assigned_device_name("/job:localhost/replica:0/task:0/cpu:1"); in TEST() 62 Node* y = test::graph::Matmul(&graph, a, x, false, false); in TEST() [all …]
|
| /external/curl/tests/data/ |
| D | test2079 | 11 # Server-side 16 Server: test-server/fake 17 Content-Length: 7 24 # Client-side 32 https Server-localhost-sv.pem 38 # This test is pointless if we're not using the schannel backend 42 --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --pinnedpubkey %SRCDIR/certs/Server-localhost-sv.pub.pem… 44 # Ensure that we're running on localhost because we're checking the host name 46 perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );" 51 # Verify data after the test has been "shot" [all …]
|
| D | test2033 | 11 # Server-side 16 Server: test-server/fake 17 Content-Length: 7 24 # Client-side 32 https Server-localhost-sv.pem 38 # This test is pointless if we're not using the schannel backend 42 --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --pinnedpubkey %SRCDIR/certs/Server-localhost-sv.pub.der… 44 # Ensure that we're running on localhost because we're checking the host name 46 perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );" 51 # Verify data after the test has been "shot" [all …]
|
| D | test3023 | 11 # Server-side 16 Server: test-server/fake 17 Content-Length: 7 24 # Client-side 31 https Server-localhost-firstSAN-sv.pem 34 HTTPS GET to localhost, first subject alt name matches, CN does not match (Schannel variant) 37 # This test is pointless if we're not using the schannel backend 41 --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --ssl-revoke-best-effort https://localhost:%HTTPSPORT/%T… 43 # Ensure that we're running on localhost because we're checking the host name 45 perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );" [all …]
|
| D | test3024 | 11 # Server-side 16 Server: test-server/fake 17 Content-Length: 7 24 # Client-side 31 https Server-localhost-lastSAN-sv.pem 34 HTTPS GET to localhost, last subject alt name matches, CN does not match (Schannel variant) 37 # This test is pointless if we're not using the schannel backend 41 --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --ssl-revoke-best-effort https://localhost:%HTTPSPORT/%T… 43 # Ensure that we're running on localhost because we're checking the host name 45 perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );" [all …]
|
| D | test389 | 5 .localhost 10 # Server-side 15 Server: test-server/fake 16 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 17 ETag: "21025-dc7-39462498" 18 Accept-Ranges: bytes 19 Content-Length: 6 21 Content-Type: text/html 22 Funny-head: yesyes 24 -foo- [all …]
|
| D | test3000 | 11 # Server-side 16 Server: test-server/fake 17 Content-Length: 7 24 # Client-side 31 https Server-localhost-firstSAN-sv.pem 34 HTTPS GET to localhost, first subject alt name matches, CN does not match 37 --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt https://localhost:%HTTPSPORT/%TESTNUMBER 39 # Ensure that we're running on localhost because we're checking the host name 41 perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );" 46 # Verify data after the test has been "shot" [all …]
|
| D | test3001 | 11 # Server-side 16 Server: test-server/fake 17 Content-Length: 7 24 # Client-side 31 https Server-localhost-lastSAN-sv.pem 34 HTTPS GET to localhost, last subject alt name matches, CN does not match 37 --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt https://localhost:%HTTPSPORT/%TESTNUMBER 39 # Ensure that we're running on localhost because we're checking the host name 41 perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );" 46 # Verify data after the test has been "shot" [all …]
|
| /external/tensorflow/tensorflow/compiler/jit/ |
| D | device_util_test.cc | 7 http://www.apache.org/licenses/LICENSE-2.0 19 #include "tensorflow/core/platform/test.h" 59 const char* kCPU0 = "/job:localhost/replica:0/task:0/device:CPU:0"; 60 const char* kGPU0 = "/job:localhost/replica:0/task:0/device:GPU:0"; 61 const char* kXPU0 = "/job:localhost/replica:0/task:0/device:XPU:0"; 62 const char* kYPU0 = "/job:localhost/replica:0/task:0/device:YPU:0"; 64 const char* kCPU1 = "/job:localhost/replica:0/task:0/device:CPU:1"; 65 const char* kGPU1 = "/job:localhost/replica:0/task:0/device:GPU:1"; 66 const char* kXPU1 = "/job:localhost/replica:0/task:0/device:XPU:1"; 72 TEST(PickDeviceForXla, UniqueDevice) { in TEST() function [all …]
|
| /external/nanohttpd/webserver/src/test/java/fi/iki/elonen/ |
| D | TestHttpServer.java | 5 * NanoHttpd-Webserver 7 * Copyright (C) 2012 - 2015 nanohttpd 51 import org.junit.Test; 68 "--host", in setUp() 69 "localhost", in setUp() 70 "--port", in setUp() 72 "--dir", in setUp() 73 "src/test/resources" in setUp() 90 @Test 93 HttpGet httpget = new HttpGet("http://localhost:9090/xxx/yyy.html"); in doTest404() [all …]
|