/external/skia/tests/ |
DiscardableMemoryTest.cpp | 14 const char testString[] = "HELLO, WORLD!"; 15 const size_t len = sizeof(testString); 23 memcpy(ptr, testString, sizeof(testString)); 31 REPORTER_ASSERT(reporter, 0 == memcmp(ptr, testString, len));
|
/external/chromium_org/tools/telemetry/telemetry/core/ |
camel_case_unittest.py | 11 def testString(self):
|
/external/chromium_org/v8/test/mjsunit/harmony/ |
string-endswith.js | 32 var testString = "Hello World"; 33 assertTrue(testString.endsWith("")); 34 assertTrue(testString.endsWith("World")); 35 assertFalse(testString.endsWith("world")); 36 assertFalse(testString.endsWith("Hello World!")); 37 assertFalse(testString.endsWith(null)); 38 assertFalse(testString.endsWith(undefined));
|
string-startswith.js | 32 var testString = "Hello World"; 33 assertTrue(testString.startsWith("")); 34 assertTrue(testString.startsWith("Hello")); 35 assertFalse(testString.startsWith("hello")); 36 assertFalse(testString.startsWith("Hello World!")); 37 assertFalse(testString.startsWith(null)); 38 assertFalse(testString.startsWith(undefined));
|
/external/chromium_org/v8/test/mjsunit/third_party/ |
string-trim.js | 41 var testString = 'foo bar'; 79 trimString = wsString + testString + wsString; 80 leftTrimString = testString + wsString; // Trimmed from the left. 81 rightTrimString = wsString + testString; // Trimmed from the right. 87 assertEquals(trimString.trim(), testString); 91 assertEquals(leftTrimString.trim(), testString); 93 assertEquals(leftTrimString.trimRight(), testString); 95 assertEquals(rightTrimString.trim(), testString); 96 assertEquals(rightTrimString.trimLeft(), testString);
|
/external/chromium_org/v8/test/webkit/ |
string-trim.js | 31 var testString = 'foo bar'; 69 trimString = wsString + testString + wsString; 70 leftTrimString = testString + wsString; //trimmed from the left 71 rightTrimString = wsString + testString; //trimmed from the right 77 shouldBe("trimString.trim()", "testString"); 81 shouldBe("leftTrimString.trim()", "testString"); 83 shouldBe("leftTrimString.trimRight()", "testString"); 85 shouldBe("rightTrimString.trim()", "testString"); 86 shouldBe("rightTrimString.trimLeft()", "testString");
|
/external/stlport/test/eh/ |
test_string.cpp | 30 typedef EH_STD::basic_string<char, EH_STD::char_traits<char>, eh_allocator(char) > TestString; 33 container_category(const TestString&) 39 TestString testString, testString2; 42 while ( testString.size() < ropeSize ) { 43 TestString::value_type x = TestString::value_type(random_number(random_base)) ; // initialize before use 44 testString.append(1, x ); 45 testString2.append(1, TestString::value_type() ); 47 WeakCheck( testString, test_insert_one<TestString>(testString) ) [all...] |
/external/v8/test/mjsunit/third_party/ |
string-trim.js | 41 var testString = 'foo bar'; 79 trimString = wsString + testString + wsString; 80 leftTrimString = testString + wsString; // Trimmed from the left. 81 rightTrimString = wsString + testString; // Trimmed from the right. 87 assertEquals(trimString.trim(), testString); 91 assertEquals(leftTrimString.trim(), testString); 93 assertEquals(leftTrimString.trimRight(), testString); 95 assertEquals(rightTrimString.trim(), testString); 96 assertEquals(rightTrimString.trimLeft(), testString);
|
/external/chromium_org/v8/test/mjsunit/ |
value-callic-prototype-change.js | 31 function testString() { 50 testString();
|
/external/v8/test/mjsunit/ |
value-callic-prototype-change.js | 31 function testString() { 50 testString();
|
/external/guava/guava-tests/test/com/google/common/io/ |
MultiReaderTest.java | 34 String testString = "abcdefgh"; 35 final InputSupplier<Reader> supplier = newReader(testString); 54 assertEquals(testString.length() * 3, result.length()); 70 String testString = "abcdefgh"; 71 InputSupplier<Reader> supplier = newReader(testString); 75 String expectedString = testString + testString;
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super/d/ |
TSuper.java | 47 public void testString(String s) {
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super_range/d/ |
TSuper.java | 47 public void testString(String s) {
|
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
EncodeHtmlDataUriTest.java | 31 String testString = "><#%\"'"; 32 String encodedUri = UrlUtils.encodeHtmlDataUri(testString); 34 assertEquals("Delimiters are not properly encoded", decodedUri, testString); 39 String testString = "{}|\\^[]`"; 40 String encodedUri = UrlUtils.encodeHtmlDataUri(testString); 42 assertEquals("Unwise characters are not properly encoded", decodedUri, testString); 47 String testString = " \n\t"; 48 String encodedUri = UrlUtils.encodeHtmlDataUri(testString); 50 assertEquals("Whitespace characters are not properly encoded", decodedUri, testString); 56 String testString = "<html><body onload=\"alert('Hello \\\"world\\\"');\"></body></html>" [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
ThreadSafeDataTransportTest.cpp | 41 const char testString[] = "123456789"; 42 RefPtr<SharedBuffer> buffer = SharedBuffer::create(testString, sizeof(testString));
|
/external/chromium_org/third_party/WebKit/Source/wtf/text/ |
WTFStringTest.cpp | 114 String testString = "1224"; 115 ASSERT_TRUE(testString.is8Bit()); 116 testString.replaceWithLiteral('2', ""); 117 ASSERT_STREQ("14", testString.utf8().data()); 119 testString = "1224"; 120 ASSERT_TRUE(testString.is8Bit()); 121 testString.replaceWithLiteral('2', "3"); 122 ASSERT_STREQ("1334", testString.utf8().data()); 124 testString = "1224"; 125 ASSERT_TRUE(testString.is8Bit()) [all...] |
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/ |
BoundedByteStringTest.java | 58 String testString = "I love unicode \u1234\u5678 characters"; 59 LiteralByteString unicode = new LiteralByteString(testString.getBytes(UTF_8)); 66 testString.substring(2, testString.length() - 6), roundTripString);
|
RopeByteStringSubstringTest.java | 81 String testString = builder.toString(); 84 testString = testString.substring(2, testString.length() - 6); 91 testString, roundTripString); 92 ByteString flatString = ByteString.copyFromUtf8(testString);
|
RopeByteStringTest.java | 81 ByteString testString = ByteString.copyFrom(testBytes); 83 concatenated.equals(testString)); 85 testString.equals(concatenated)); 87 testString.hashCode(), concatenated.hashCode()); 103 String testString = builder.toString(); 109 testString, roundTripString); 110 ByteString flatString = ByteString.copyFromUtf8(testString);
|
/libcore/luni/src/test/java/libcore/java/io/ |
OldStringReaderTest.java | 25 String testString = "This is a test string"; 30 sr = new StringReader(testString); 39 char[] buf = new char[testString.length()]; 40 sr = new StringReader(testString); 54 sr.read(buf, 1, testString.length());
|
OldPipedOutputStreamTest.java | 74 static final String testString = "Lorem ipsum dolor sit amet,\n" + 77 static final int testLength = testString.length(); 161 out.write(testString.getBytes(), 0, 10); 165 testString.substring(0, 10), reader.read(10)); 172 out.write(testString.getBytes(), 0, 5); 181 out.write(testString.getBytes(), -1, 10); 188 out.write(testString.getBytes(), 0, -1); 195 out.write(testString.getBytes(), 5, testString.length()); 206 out.write(testString.getBytes(), 0, testString.length()) [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
GsmAlphabetTest.java | 134 StringBuilder testString = new StringBuilder(300); 137 for (int i = 0; i < 9; i++, testString.append('@')) { 138 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); 139 assertEquals(testString.toString(), 152 testString.append(c); 159 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); 160 assertEquals(testString.toString(), 165 testString.append(sGsmExtendedChars); 174 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); 175 assertEquals(testString.toString() [all...] |
ApnSettingTest.java | 59 String testString; 62 testString = "Vodafone IT,web.omnitel.it,,,,,,,,,222,10,,DUN"; 66 assertApnSettingEqual(expected_apn, ApnSetting.fromString(testString)); 69 testString = "[ApnSettingV2] Name,apn,,,,,,,,,123,45,,mms|*,IPV6,IP,true,14"; 73 assertApnSettingEqual(expected_apn, ApnSetting.fromString(testString)); 76 testString = "[ApnSettingV2] Name,apn, ,,,,,,,,123,45,,mms|*,IPV4V6, IP,true,14"; 80 assertApnSettingEqual(expected_apn, ApnSetting.fromString(testString)); 83 testString = "[ApnSettingV2] Name,apn,,,,,,,,,123, 45,,mms|*"; 84 assertEquals(null, ApnSetting.fromString(testString)); 86 testString = "Name,apn,,,,,,,,,123, 45," [all...] |
/cts/hostsidetests/sample/src/android/sample/cts/ |
SampleHostTest.java | 113 String testString = ""; 118 testString = line.split(":")[1].trim(); 122 assertEquals("Incorrect test string", TEST_STRING, testString);
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
ContentViewMiscTest.java | 49 String testString = "Address: " + googleAddr + " in a string"; 50 assertEquals(googleAddr, ContentViewStatics.findAddress(testString));
|