| /third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
| H A D | NioByteStringTest.java | 59 private final ByteString testString = new NioByteString(backingBuffer); field in NioByteStringTest 62 String actualClassName = getActualClassName(testString); in testExpectedType() 75 stillEqual = (BYTES[i] == testString.byteAt(i)); in testByteAt() 82 ByteString.ByteIterator iter = testString.iterator(); in testByteIterator() 100 for (byte quantum : testString) { in testByteIterable() 109 assertEquals(CLASSNAME + " must have the expected size", BYTES.length, testString.size()); in testSize() 113 assertEquals(CLASSNAME + " must have depth 0", 0, testString.getTreeDepth()); in testGetTreeDepth() 117 assertTrue(CLASSNAME + " is technically balanced", testString.isBalanced()); in testIsBalanced() 125 testString.copyTo(destination, sourceOffset, destinationOffset, length); in testCopyTo_ByteArrayOffsetLength() 140 testString in testCopyTo_ByteArrayOffsetLengthErrors() [all...] |
| H A D | RopeByteStringSubstringTest.java | 81 String testString = builder.toString(); in testToString() 84 testString = testString.substring(2, testString.length() - 6); in testToString() 92 assertEquals(classUnderTest + " unicode bytes must match", testString, roundTripString); in testToString() 93 ByteString flatString = ByteString.copyFromUtf8(testString); in testToString() 114 String testString = builder.toString(); in testCharsetToString() 117 testString = testString.substring(2, testString in testCharsetToString() [all...] |
| H A D | BoundedByteStringTest.java | 63 String testString = "I love unicode \u1234\u5678 characters"; in testToString() 64 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testToString() 74 testString.substring(2, testString.length() - 6), in testToString() 80 String testString = "I love unicode \u1234\u5678 characters"; in testCharsetToString() 81 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testCharsetToString() 91 testString.substring(2, testString.length() - 6), in testCharsetToString()
|
| H A D | RopeByteStringTest.java | 105 ByteString testString = ByteString.copyFrom(testBytes); in testBalance() 107 classUnderTest + " balanced string must equal flat string", testString, concatenated); in testBalance() 109 classUnderTest + " flat string must equal balanced string", concatenated, testString); in testBalance() 112 testString.hashCode(), in testBalance() 129 String testString = builder.toString(); in testToString() 136 assertEquals(classUnderTest + " unicode bytes must match", testString, roundTripString); in testToString() 137 ByteString flatString = ByteString.copyFromUtf8(testString); in testToString() 158 String testString = builder.toString(); in testCharsetToString() 165 assertEquals(classUnderTest + " unicode bytes must match", testString, roundTripString); in testCharsetToString() 166 ByteString flatString = ByteString.copyFromUtf8(testString); in testCharsetToString() [all...] |
| /third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/rbbi/ |
| H A D | RBBIAPITest.java | 52 String testString = "Testing word break iterators's clone() and equals()"; in TestCloneEquals() 53 bi1.setText(testString); in TestCloneEquals() 54 bi2.setText(testString); in TestCloneEquals() 55 biequal.setText(testString); in TestCloneEquals() 176 String testString = "This is a word break. Isn't it? 2.25"; in TestFirstNextFollowing() 178 logln("testing word iterator - string :- \"" + testString + "\"\n"); in TestFirstNextFollowing() 180 wordIter1.setText(testString); in TestFirstNextFollowing() 185 doTest(testString, p, q, 20, "This is a word break"); in TestFirstNextFollowing() 188 doTest(testString, p, q, 21, "."); in TestFirstNextFollowing() 191 doTest(testString, in TestFirstNextFollowing() 467 doTest(String testString, int start, int gotoffset, int expectedOffset, String expectedString) doTest() argument [all...] |
| H A D | RBBITestExtended.java | 101 String testString = testFileBuf.toString(); in TestExtended() 125 int len = testString.length(); in TestExtended() 128 int c = testString.codePointAt(charIdx); in TestExtended() 130 if (c == '\r' && charIdx<len && testString.charAt(charIdx) == '\n') { in TestExtended() 158 if (testString.startsWith("<word>", charIdx-1)) { in TestExtended() 163 if (testString.startsWith("<char>", charIdx-1)) { in TestExtended() 168 if (testString.startsWith("<line>", charIdx-1)) { in TestExtended() 173 if (testString.startsWith("<sent>", charIdx-1)) { in TestExtended() 178 if (testString.startsWith("<title>", charIdx-1)) { in TestExtended() 183 if (testString in TestExtended() [all...] |
| /third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/ |
| H A D | RBBIAPITest.java | 49 String testString = "Testing word break iterators's clone() and equals()"; in TestCloneEquals() 50 bi1.setText(testString); in TestCloneEquals() 51 bi2.setText(testString); in TestCloneEquals() 52 biequal.setText(testString); in TestCloneEquals() 173 String testString = "This is a word break. Isn't it? 2.25"; in TestFirstNextFollowing() 175 logln("testing word iterator - string :- \"" + testString + "\"\n"); in TestFirstNextFollowing() 177 wordIter1.setText(testString); in TestFirstNextFollowing() 182 doTest(testString, p, q, 20, "This is a word break"); in TestFirstNextFollowing() 185 doTest(testString, p, q, 21, "."); in TestFirstNextFollowing() 188 doTest(testString, in TestFirstNextFollowing() 464 doTest(String testString, int start, int gotoffset, int expectedOffset, String expectedString) doTest() argument [all...] |
| H A D | RBBITestExtended.java | 102 String testString = testFileBuf.toString(); in TestExtended() 126 int len = testString.length(); in TestExtended() 129 int c = testString.codePointAt(charIdx); in TestExtended() 131 if (c == '\r' && charIdx<len && testString.charAt(charIdx) == '\n') { in TestExtended() 159 if (testString.startsWith("<word>", charIdx-1)) { in TestExtended() 164 if (testString.startsWith("<char>", charIdx-1)) { in TestExtended() 169 if (testString.startsWith("<line>", charIdx-1)) { in TestExtended() 174 if (testString.startsWith("<sent>", charIdx-1)) { in TestExtended() 179 if (testString.startsWith("<title>", charIdx-1)) { in TestExtended() 184 if (testString in TestExtended() [all...] |
| /third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
| H A D | DisplayGL_unittest.cpp | 26 std::string testString = "Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2)"; in TEST() local 28 EXPECT_EQ(SanitizeRendererString(testString), testExpectation); in TEST() 33 std::string testString = "llvmpipe (LLVM 11.0.0, 256 bits)"; in TEST() local 35 EXPECT_EQ(SanitizeRendererString(testString), testExpectation); in TEST() 40 std::string testString = "Radeon RX Vega"; in TEST() local 42 EXPECT_EQ(SanitizeRendererString(testString), testExpectation); in TEST() 47 std::string testString = in TEST() local 50 EXPECT_EQ(SanitizeRendererString(testString), testExpectation); in TEST() 55 std::string testString = "AMD Radeon RX 5700 (DRM 3.35.0, 5.4.0-65-generic, LLVM 11.0.0)"; in TEST() local 57 EXPECT_EQ(SanitizeRendererString(testString), testExpectatio in TEST() 62 std::string testString = "4.6.0 NVIDIA 391.76"; TEST() local 70 std::string testString = "OpenGL 4.5.0 - Build 22.20.16.4749"; TEST() local 77 std::string testString = "4.6.0 NVIDIA 419.67"; TEST() local 84 std::string testString = "OpenGL ES 3.2 v1.r12p0-04rel0.44f2946824bb8739781564bffe2110c9"; TEST() local [all...] |
| /third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/translit/ |
| H A D | ErrorTest.java | 37 ReplaceableString testString = in TestTransliteratorErrors() 49 len = testString.length(); in TestTransliteratorErrors() 50 stoppedAt = t.transliterate(testString, 0, 100); in TestTransliteratorErrors() 53 } else if (testString.length() != len) { in TestTransliteratorErrors() 54 testString = in TestTransliteratorErrors() 58 stoppedAt = t.transliterate(testString, 100, testString.length() - 1); in TestTransliteratorErrors() 61 } else if (testString.length() != len) { in TestTransliteratorErrors() 62 testString = in TestTransliteratorErrors() 67 pos.limit = testString in TestTransliteratorErrors() [all...] |
| /third_party/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
| H A D | ErrorTest.java | 34 ReplaceableString testString = in TestTransliteratorErrors() 46 len = testString.length(); in TestTransliteratorErrors() 47 stoppedAt = t.transliterate(testString, 0, 100); in TestTransliteratorErrors() 50 } else if (testString.length() != len) { in TestTransliteratorErrors() 51 testString = in TestTransliteratorErrors() 55 stoppedAt = t.transliterate(testString, 100, testString.length() - 1); in TestTransliteratorErrors() 58 } else if (testString.length() != len) { in TestTransliteratorErrors() 59 testString = in TestTransliteratorErrors() 64 pos.limit = testString in TestTransliteratorErrors() [all...] |
| /third_party/icu/icu4c/source/test/intltest/ |
| H A D | trnserr.cpp | 61 UnicodeString testString="A quick fox jumped over the lazy dog."; in TestTransliteratorErrors() local 75 len = testString.length(); in TestTransliteratorErrors() 76 stoppedAt = t->transliterate(testString, 0, 100); in TestTransliteratorErrors() 79 } else if (testString.length() != len) { in TestTransliteratorErrors() 80 testString="A quick fox jumped over the lazy dog."; in TestTransliteratorErrors() 83 stoppedAt = t->transliterate(testString, 100, testString.length()-1); in TestTransliteratorErrors() 86 else if (testString.length() != len) { in TestTransliteratorErrors() 87 testString="A quick fox jumped over the lazy dog."; in TestTransliteratorErrors() 91 pos.limit = testString in TestTransliteratorErrors() [all...] |
| H A D | strtest.cpp | 850 CharString testString; in TestCharStrAppendNumber() local 851 testString.appendNumber(1, errorCode); in TestCharStrAppendNumber() 852 assertEquals("TestAppendNumber 1", "1", testString.data()); in TestCharStrAppendNumber() 854 testString.clear(); in TestCharStrAppendNumber() 855 testString.appendNumber(-1, errorCode); in TestCharStrAppendNumber() 856 assertEquals("TestAppendNumber -1", "-1", testString.data()); in TestCharStrAppendNumber() 858 testString.clear(); in TestCharStrAppendNumber() 859 testString.appendNumber(12345, errorCode); in TestCharStrAppendNumber() 860 assertEquals("TestAppendNumber 12345", "12345", testString.data()); in TestCharStrAppendNumber() 861 testString in TestCharStrAppendNumber() [all...] |
| /third_party/unity/test/tests/ |
| H A D | test_unity_strings.c | 38 const char *testString = "foo"; in testEqualStrings() local 40 TEST_ASSERT_EQUAL_STRING(testString, testString); in testEqualStrings() 42 TEST_ASSERT_EQUAL_STRING("foo", testString); in testEqualStrings() 43 TEST_ASSERT_EQUAL_STRING(testString, "foo"); in testEqualStrings() 49 const char *testString = "foobar"; in testEqualStringsLen() local 50 TEST_ASSERT_EQUAL_STRING_LEN(testString, testString, strlen(testString)); in testEqualStringsLen() 52 TEST_ASSERT_EQUAL_STRING_LEN("foo", testString, in testEqualStringsLen() 59 const char *testString = "foo\\r\\nbar"; testEqualStringsWithCarriageReturnsAndLineFeeds() local [all...] |
| H A D | test_unity_memory.c | 38 const char *testString = "whatever"; in testEqualMemory() local 40 TEST_ASSERT_EQUAL_MEMORY(testString, testString, 8); in testEqualMemory() 42 TEST_ASSERT_EQUAL_MEMORY("whatever", testString, 8); in testEqualMemory() 43 TEST_ASSERT_EQUAL_MEMORY(testString, "whatever", 8); in testEqualMemory() 44 TEST_ASSERT_EQUAL_MEMORY(testString, "whatever", 2); in testEqualMemory()
|
| /third_party/icu/icu4c/source/test/iotest/ |
| H A D | stream.cpp | 219 testString( in testString() argument 221 const char* testString, in testString() 231 sstrm << testString; in testString() local 233 /*log_verbose("iostream before operator::>>() call \"%s\" ", testString); in testString() 238 log_verbose("iostream after operator::>>() call \"%s\" ", testString); in testString() 246 log_err("Did not get expected results from \"%s\", expected \"%s\"\n", testString, expectedString); in testString() 310 testString(UStr, u_austrcpy(testcase, testCase1), expectedResultA, IOSTREAM_EOF|IOSTREAM_FAIL); in TestStreamEOF() 311 testString(UStr, u_austrcpy(testcase, testCase2), expectedResultB, IOSTREAM_EOF); in TestStreamEOF() 313 testString(UStr, u_austrcpy(testcase, testCase3), expectedResultC, IOSTREAM_EOF|IOSTREAM_FAIL); in TestStreamEOF() 314 testString(USt in TestStreamEOF() [all...] |
| /third_party/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/ |
| H A D | RBBIPerf.java | 30 String testString; field in RBBIPerf 55 testString = testFileBuf.toString(); in setup() 73 bi.setText(testString); in setup() 76 jdkbi.setText(testString); in setup() 145 int n=testString.length(); in testRBBIIsBoundary() 153 int n = testString.length(); in testRBBIIsBoundary()
|
| /third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/lang/ |
| H A D | TestUScriptRun.java | 340 String testString = ""; in TestRuns() 349 testString += test[run].runText; in TestRuns() 356 scriptRun = new UScriptRun(testString); in TestRuns() 359 errln("new UScriptRun(testString) produced an IllegalArgumentException!"); in TestRuns() 370 scriptRun = new UScriptRun(testString.toCharArray()); in TestRuns() 373 errln("new UScriptRun(testString.toCharArray()) produced an IllegalArgumentException!"); in TestRuns() 394 scriptRun.reset(testString, 0, testString.length()); in TestRuns() 397 errln("scriptRun.reset(testString, 0, testString in TestRuns() [all...] |
| /third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
| H A D | TestUScriptRun.java | 337 String testString = ""; in TestRuns() 346 testString += test[run].runText; in TestRuns() 353 scriptRun = new UScriptRun(testString); in TestRuns() 356 errln("new UScriptRun(testString) produced an IllegalArgumentException!"); in TestRuns() 367 scriptRun = new UScriptRun(testString.toCharArray()); in TestRuns() 370 errln("new UScriptRun(testString.toCharArray()) produced an IllegalArgumentException!"); in TestRuns() 391 scriptRun.reset(testString, 0, testString.length()); in TestRuns() 394 errln("scriptRun.reset(testString, 0, testString in TestRuns() [all...] |
| /third_party/node/test/parallel/ |
| H A D | test-http2-createwritereq.js | 14 const testString = 'a\u00A1\u0100\uD83D\uDE00'; 37 Buffer.from(testString, testEncoding).equals(chunk) 53 writeEncoding !== 'buffer' ? testString : Buffer.from(testString),
|
| /third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
| H A D | RopeByteStringTest.java | 76 ByteString testString = ByteString.copyFrom(testBytes); in testBalance() 78 concatenated.equals(testString)); in testBalance() 80 testString.equals(concatenated)); in testBalance() 82 testString.hashCode(), concatenated.hashCode()); in testBalance()
|
| /third_party/node/test/node-api/test_init_order/ |
| H A D | test_init_order.cc | 20 static const std::string testString; member 26 const std::string MyClass::testString = std::string("123"); member in __anon15484::MyClass 38 env, MyClass::testString.c_str(), NAPI_AUTO_LENGTH, &cppStringValue)); in Init()
|
| /third_party/icu/icu4c/source/test/cintltst/ |
| H A D | custrtst.c | 485 const UChar testString[] = {0x0061, 0x0062, 0x0063, 0x0064, 0x0064, 0x0061, 0}; in TestStringSearching() local 509 if (u_strpbrk(testString, a) != &testString[0]) { in TestStringSearching() 512 if (u_strpbrk(testString, dc) != &testString[2]) { in TestStringSearching() 515 if (u_strpbrk(testString, cd) != &testString[2]) { in TestStringSearching() 518 if (u_strpbrk(testString, cdh) != &testString[2]) { in TestStringSearching() 521 if (u_strpbrk(testString, in TestStringSearching() [all...] |
| /third_party/icu/icu4c/source/samples/citer/ |
| H A D | citer.cpp | 58 UnicodeString testString(testChars,""); in TestUChariter() 59 const UChar *testText = testString.getTerminatedBuffer(); in TestUChariter() 125 UnicodeString testString(testChars,""); in TestStringiter() 126 const UChar *testText = testString.getTerminatedBuffer(); in TestStringiter()
|
| /third_party/skia/third_party/externals/icu/source/samples/citer/ |
| H A D | citer.cpp | 58 UnicodeString testString(testChars,""); in TestUChariter() 59 const UChar *testText = testString.getTerminatedBuffer(); in TestUChariter() 125 UnicodeString testString(testChars,""); in TestStringiter() 126 const UChar *testText = testString.getTerminatedBuffer(); in TestStringiter()
|