Home
last modified time | relevance | path

Searched refs:fileContents (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DFtpURLConnectionTest.java89 byte[] fileContents = "abcdef 1234567890".getBytes(UTF_8); in testInputUrl()
90 addFileEntry(FILE_PATH, fileContents); in testInputUrl()
93 assertContents(fileContents, connection.getInputStream()); in testInputUrl()
124 byte[] fileContents = "abcdef 1234567890".getBytes(UTF_8); in testOutputUrl()
125 addFileEntry("test/output-url/existing file.txt", fileContents); in testOutputUrl()
140 byte[] fileContents = "abcdef 1234567890".getBytes(UTF_8); in testConnectOverProxy_noProxy()
141 URL fileUrl = addFileEntry(FILE_PATH, fileContents); in testConnectOverProxy_noProxy()
143 assertContents(fileContents, connection.getInputStream()); in testConnectOverProxy_noProxy()
176 byte[] fileContents = "abcdef 1234567890".getBytes(UTF_8); in testConnectOverProxy_explicit_http_uses_direct_connection()
177 URL fileUrl = addFileEntry(FILE_PATH, fileContents); in testConnectOverProxy_explicit_http_uses_direct_connection()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DProcessBuilderTest.java151 String fileContents = new String(IoUtils.readFileAsByteArray( in testRedirectFile_output() local
153 assertEquals(processInput, fileContents); in testRedirectFile_output()
165 String fileContents = new String(IoUtils.readFileAsByteArray(file.getAbsolutePath())); in testRedirectFile_error() local
168 assertTrue("Unexpected output: " + fileContents, in testRedirectFile_error()
169 fileContents.contains(missingFilePath) && !fileContents.equals(missingFilePath)); in testRedirectFile_error()