/external/icu4c/test/iotest/ |
D | strtst.c | 249 UChar testStr[256]; in TestLocalizedString() local 254 UFILE *strFile = u_fstropen(testStr, sizeof(testStr)/sizeof(testStr[0]), "en_US"); in TestLocalizedString() 264 u_austrcpy(cBuffer,testStr); in TestLocalizedString() 265 if (u_strcmp(testStr, uBuffer) != 0) { in TestLocalizedString() 289 u_austrcpy(cBuffer,testStr); in TestLocalizedString() 290 if (u_strcmp(testStr, uBuffer) != 0) { in TestLocalizedString() 297 strFile = u_fstropen(testStr, sizeof(testStr)/sizeof(testStr[0]), NULL); in TestLocalizedString() 306 if (u_fstropen(testStr, -1, NULL) != NULL) { in TestLocalizedString() 314 u_uastrncpy(testStr, "xxxxxxxxxxxxxx", sizeof(testStr)/sizeof(testStr[0]));\ 315 size = u_snprintf(testStr, limit, format, value);\ [all …]
|
D | stream.cpp | 64 …static const char testStr[] = "\x42\x65\x67\x69\x6E\x6E\x69\x6E\x67\x20\x6F\x66\x20\x74\x65\x73\x7… in TestStream() local 100 if (strcmp(testStreamBuf, testStr) != 0) { in TestStream() 101 log_err("Got: \"%s\", Expected: \"%s\"\n", testStreamBuf, testStr); in TestStream()
|
D | filetst.c | 434 …static const char testStr[] = "This is a test string that tests u_fgets. It makes sure that we don… in TestfgetsBuffers() local 436 int32_t expectedSize = (int32_t)strlen(testStr); in TestfgetsBuffers() 455 u_uastrncpy(buffer, testStr, expectedSize+1); in TestfgetsBuffers() 497 u_uastrncpy(buffer, testStr, expectedSize+1); in TestfgetsBuffers() 539 u_uastrncpy(buffer, testStr, expectedSize+1); in TestfgetsBuffers() 591 …static const char testStr[] = "This is a test string that tests u_fgets. It makes sure that we don… in TestfgetsLineCount() local 594 int32_t expectedSize = (int32_t)strlen(testStr); in TestfgetsLineCount() 605 fwrite(testStr, sizeof(testStr[0]), expectedSize, stdFile); in TestfgetsLineCount() 607 fwrite("\n", sizeof(testStr[0]), 1, stdFile); in TestfgetsLineCount()
|
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
D | DeflaterInputStreamTest.java | 31 String testStr = "Hi,this is a test"; field in DeflaterInputStreamTest 135 is = new ByteArrayInputStream(testStr.getBytes("UTF-8")); in testReadByteArrayIntInt() 258 is = new ByteArrayInputStream(testStr.getBytes("UTF-8")); in testSkip() 287 is = new ByteArrayInputStream(testStr.getBytes("UTF-8")); in testSkip() 378 is = new ByteArrayInputStream(testStr.getBytes("UTF-8")); in setUp()
|
/external/icu4c/test/intltest/ |
D | canittst.cpp | 153 UnicodeString testStr = CharsToUnicodeString(testArray[i][0]); in TestBasic() local 154 it.setSource(testStr, status); in TestBasic() 166 … expectEqual(i + ": ", testStr, collectionToString(set), CharsToUnicodeString(testArray[i][1])); in TestBasic()
|
D | rbbiapts.cpp | 1139 UChar testStr[] = {0x20, 0x41, 0x20, 0x42, 0x20, 0x43, 0x20, 0x44, 0x0}; /* = " A B C D" */ in TestRefreshInputText() local 1147 utext_openUChars(&ut1, testStr, -1, &status); in TestRefreshInputText() 1159 u_strcpy(movedStr, testStr); in TestRefreshInputText() 1160 u_memset(testStr, 0x20, u_strlen(testStr)); in TestRefreshInputText()
|
/external/icu4c/test/cintltst/ |
D | cbiapts.c | 843 UChar testStr[] = {0x20, 0x41, 0x20, 0x42, 0x20, 0x43, 0x20, 0x44, 0x0}; /* = " A B C D" */ in TestBreakIteratorRefresh() local 853 utext_openUChars(&ut1, testStr, -1, &status); in TestBreakIteratorRefresh() 864 u_strcpy(movedStr, testStr); in TestBreakIteratorRefresh() 865 u_memset(testStr, 0x20, u_strlen(testStr)); in TestBreakIteratorRefresh()
|
D | reapits.c | 2206 UChar testStr[] = {0x41, 0x20, 0x42, 0x20, 0x43, 0x0}; /* = "A B C" */ in TestRefreshInput() local 2216 utext_openUChars(&ut1, testStr, -1, &status); in TestRefreshInput() 2226 u_strcpy(movedStr, testStr); in TestRefreshInput() 2227 u_memset(testStr, 0, u_strlen(testStr)); in TestRefreshInput()
|
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/ |
D | SocketChannelTest.java | 3146 final String testStr = "Hello World"; in test_socketChannel_write_ByteBuffer_posNotZero() local 3148 ByteBuffer buf = ByteBuffer.wrap(testStr.getBytes()); in test_socketChannel_write_ByteBuffer_posNotZero()
|