Home
last modified time | relevance | path

Searched refs:testCases (Results 1 – 25 of 61) sorted by relevance

123

/external/chromium_org/third_party/boringssl/src/ssl/test/runner/
Drunner.go156 var testCases = []testCase{ var
855 testCases = append(testCases, testCase{
867 testCases = append(testCases, testCase{
883 testCases = append(testCases, testCase{
895 testCases = append(testCases, testCase{
917 testCases = append(testCases, testCase{
935 testCases = append(testCases, testCase{
945 testCases = append(testCases, testCase{
958 testCases = append(testCases, testCase{
974 testCases = append(testCases, testCase{
[all …]
/external/chromium_org/third_party/WebKit/Source/core/css/
DMediaValuesTest.cpp27 TestCase testCases[] = { in TEST() local
47 for (unsigned i = 0; testCases[i].viewportWidth; ++i) { in TEST()
49 bool success = MediaValues::computeLength(testCases[i].value, in TEST()
50 testCases[i].type, in TEST()
51 testCases[i].fontSize, in TEST()
52 testCases[i].viewportWidth, in TEST()
53 testCases[i].viewportHeight, in TEST()
55 ASSERT_EQ(testCases[i].success, success); in TEST()
57 ASSERT_EQ(testCases[i].output, output); in TEST()
DMediaQuerySetTest.cpp47 TestCase testCases[] = { in TEST() local
165 for (unsigned i = 0; testCases[i].input; ++i) { in TEST()
166 … RefPtrWillBeRawPtr<MediaQuerySet> oldParserQuerySet = MediaQuerySet::create(testCases[i].input); in TEST()
167 …eRawPtr<MediaQuerySet> threadSafeQuerySet = MediaQuerySet::createOffMainThread(testCases[i].input); in TEST()
168 testMediaQuery(testCases[i], *oldParserQuerySet, true); in TEST()
169 testMediaQuery(testCases[i], *threadSafeQuerySet, false); in TEST()
DMediaQueryEvaluatorTest.cpp78 void testMQEvaluator(TestCase* testCases, const MediaQueryEvaluator& mediaQueryEvaluator) in testMQEvaluator() argument
80 for (unsigned i = 0; testCases[i].input; ++i) { in testMQEvaluator()
81 RefPtrWillBeRawPtr<MediaQuerySet> querySet = MediaQuerySet::create(testCases[i].input); in testMQEvaluator()
82 ASSERT_EQ(testCases[i].output, mediaQueryEvaluator.eval(querySet.get())); in testMQEvaluator()
/external/chromium_org/third_party/WebKit/Source/core/css/parser/
DSizesCalcParserTest.cpp53 TestCase testCases[] = { in TEST() local
118 for (unsigned i = 0; testCases[i].input; ++i) { in TEST()
120 MediaQueryTokenizer::tokenize(testCases[i].input, tokens); in TEST()
122 ASSERT_EQ(testCases[i].valid, calcParser.isValid()); in TEST()
124 ASSERT_EQ(testCases[i].output, calcParser.result()); in TEST()
125 ASSERT_EQ(testCases[i].viewportDependant, calcParser.viewportDependant()); in TEST()
129 for (unsigned i = 0; testCases[i].input; ++i) { in TEST()
130 if (testCases[i].dontRunInCSSCalc) in TEST()
132 …verifyCSSCalc(testCases[i].input, testCases[i].output, testCases[i].valid, data.defaultFontSize, d… in TEST()
DMediaQueryTokenizerTest.cpp27 TestCase testCases[] = { in TEST() local
63 for (int i = 0; testCases[i].input; ++i) { in TEST()
65 MediaQueryTokenizer::tokenize(testCases[i].input, tokens); in TEST()
69 ASSERT_STREQ(testCases[i].output, output.toString().ascii().data()); in TEST()
75 BlockTestCase testCases[] = { in TEST() local
104 for (int i = 0; testCases[i].input; ++i) { in TEST()
106 MediaQueryTokenizer::tokenize(testCases[i].input, tokens); in TEST()
116 ASSERT_EQ(testCases[i].maxLevel, maxLevel); in TEST()
117 ASSERT_EQ(testCases[i].finalLevel, level); in TEST()
DSizesAttributeParserTest.cpp23 TestCase testCases[] = { in TEST() local
84 for (unsigned i = 0; testCases[i].input; ++i) { in TEST()
85 SizesAttributeParser parser(mediaValues, testCases[i].input); in TEST()
86 ASSERT_EQ(testCases[i].effectiveSize, parser.length()); in TEST()
87 ASSERT_EQ(testCases[i].viewportDependant, parser.viewportDependant()); in TEST()
DMediaConditionTest.cpp28 TestCase testCases[] = { in TEST() local
41 for (unsigned i = 0; testCases[i].input; ++i) { in TEST()
43 MediaQueryTokenizer::tokenize(testCases[i].input, tokens); in TEST()
50 ASSERT_STREQ(testCases[i].output, queryText.ascii().data()); in TEST()
DBisonCSSParserTest.cpp39 } testCases[] = { in TEST() local
50 for (unsigned i = 0; i < ARRAY_SIZE(testCases); ++i) { in TEST()
51 … RefPtrWillBeRawPtr<StyleRuleBase> rule = parser.parseRule(nullptr, String(testCases[i].input)); in TEST()
54 … testMediaQuery(testCases[i].output, *static_cast<StyleRuleMedia*>(rule.get())->mediaQueries()); in TEST()
/external/icu/icu4c/source/test/cintltst/
Dcg7coll.c68 const static UChar testCases[][MAX_TOKEN_LEN] = { variable
190 doTest(myCollation, testCases[results[i][j]], testCases[results[i][n]], UCOL_LESS); in TestG7Locales()
222 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], UCOL_LESS); in TestDemo1()
252 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], UCOL_LESS); in TestDemo2()
282 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], UCOL_LESS); in TestDemo3()
311 doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], UCOL_LESS); in TestDemo4()
Dputiltst.c305 const char *testCases[] = { in TestCompareVersions() local
320 for(j=0;testCases[j]!=NULL;j+=3) { in TestCompareVersions()
321 v1str = testCases[j+0]; in TestCompareVersions()
322 opstr = testCases[j+1]; in TestCompareVersions()
323 v2str = testCases[j+2]; in TestCompareVersions()
550 } testCases[] = { in toolutil_findBasename() local
568 int32_t count=(sizeof(testCases)/sizeof(testCases[0])); in toolutil_findBasename()
575 const char *input = STRNULL(testCases[i].inBuf); in toolutil_findBasename()
576 const char *expect = STRNULL(testCases[i].expectResult); in toolutil_findBasename()
578 result = STRNULL(findBasename(testCases[i].inBuf)); in toolutil_findBasename()
[all …]
Dcloctst.c1677 } testCases[] = { in TestKeywordVariants() local
1716 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestKeywordVariants()
1719 keywords = uloc_openKeywords(testCases[i].localeID, &status); in TestKeywordVariants()
1721 if(status != testCases[i].expectedStatus) { in TestKeywordVariants()
1723 testCases[i].localeID, in TestKeywordVariants()
1724 u_errorName(testCases[i].expectedStatus), u_errorName(status)); in TestKeywordVariants()
1728 if((keyCount = uenum_count(keywords, &status)) != testCases[i].numKeywords) { in TestKeywordVariants()
1729 … log_err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount); in TestKeywordVariants()
1734 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1735 … log_err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
[all …]
/external/chromium_org/third_party/icu/source/test/cintltst/
Dcg7coll.c67 const static UChar testCases[][MAX_TOKEN_LEN] = { variable
178 doTest(tblColl1, testCases[results[i][j]], testCases[results[i][n]], UCOL_LESS); in TestG7Locales()
211 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], UCOL_LESS); in TestDemo1()
241 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], UCOL_LESS); in TestDemo2()
271 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], UCOL_LESS); in TestDemo3()
300 doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], UCOL_LESS); in TestDemo4()
Dputiltst.c305 const char *testCases[] = { in TestCompareVersions() local
320 for(j=0;testCases[j]!=NULL;j+=3) { in TestCompareVersions()
321 v1str = testCases[j+0]; in TestCompareVersions()
322 opstr = testCases[j+1]; in TestCompareVersions()
323 v2str = testCases[j+2]; in TestCompareVersions()
550 } testCases[] = { in toolutil_findBasename() local
568 int32_t count=(sizeof(testCases)/sizeof(testCases[0])); in toolutil_findBasename()
575 const char *input = STRNULL(testCases[i].inBuf); in toolutil_findBasename()
576 const char *expect = STRNULL(testCases[i].expectResult); in toolutil_findBasename()
578 result = STRNULL(findBasename(testCases[i].inBuf)); in toolutil_findBasename()
[all …]
Dcloctst.c1676 } testCases[] = { in TestKeywordVariants() local
1715 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) { in TestKeywordVariants()
1718 keywords = uloc_openKeywords(testCases[i].localeID, &status); in TestKeywordVariants()
1720 if(status != testCases[i].expectedStatus) { in TestKeywordVariants()
1722 testCases[i].localeID, in TestKeywordVariants()
1723 u_errorName(testCases[i].expectedStatus), u_errorName(status)); in TestKeywordVariants()
1727 if((keyCount = uenum_count(keywords, &status)) != testCases[i].numKeywords) { in TestKeywordVariants()
1728 … log_err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount); in TestKeywordVariants()
1733 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1734 … log_err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
[all …]
/external/chromium_org/third_party/icu/source/test/intltest/
Dg7coll.cpp19 static const UChar testCases[][G7CollationTest::MAX_TOKEN_LEN] = { variable
149 … doTest(tblColl1, testCases[results[i][j]], testCases[results[i][n]], Collator::LESS); in TestG7Locales()
184 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS); in TestDemo1()
218 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], Collator::LESS); in TestDemo2()
252 … doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], Collator::LESS); in TestDemo3()
281 … doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], Collator::LESS); in TestDemo4()
Dloctest.cpp1597 } testCases[] = { in TestKeywordVariants() local
1627 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) { in TestKeywordVariants()
1629 Locale l(testCases[i].localeID); in TestKeywordVariants()
1632 if(status != testCases[i].expectedStatus) { in TestKeywordVariants()
1634 u_errorName(testCases[i].expectedStatus), u_errorName(status)); in TestKeywordVariants()
1638 if((keyCount = keywords->count(status)) != testCases[i].numKeywords) { in TestKeywordVariants()
1639 err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount); in TestKeywordVariants()
1647 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1648 … err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
1654 if(*keywordString != UnicodeString(testCases[i].expectedKeywords[j], "")) { in TestKeywordVariants()
[all …]
/external/icu/icu4c/source/test/intltest/
Dg7coll.cpp20 static const UChar testCases[][G7CollationTest::MAX_TOKEN_LEN] = { variable
142 …doTest(myCollation.getAlias(), testCases[results[i][j]], testCases[results[i][n]], Collator::LESS); in TestG7Locales()
174 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS); in TestDemo1()
208 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], Collator::LESS); in TestDemo2()
242 … doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], Collator::LESS); in TestDemo3()
271 … doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], Collator::LESS); in TestDemo4()
Dloctest.cpp1597 } testCases[] = { in TestKeywordVariants() local
1627 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) { in TestKeywordVariants()
1629 Locale l(testCases[i].localeID); in TestKeywordVariants()
1632 if(status != testCases[i].expectedStatus) { in TestKeywordVariants()
1634 u_errorName(testCases[i].expectedStatus), u_errorName(status)); in TestKeywordVariants()
1638 if((keyCount = keywords->count(status)) != testCases[i].numKeywords) { in TestKeywordVariants()
1639 err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount); in TestKeywordVariants()
1647 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1648 … err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
1654 if(*keywordString != UnicodeString(testCases[i].expectedKeywords[j], "")) { in TestKeywordVariants()
[all …]
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
DPhoneNumberMatcherTest.java542 List<NumberTest> testCases = new ArrayList<NumberTest>(); in testMatchesWithPossibleLeniency() local
543 testCases.addAll(Arrays.asList(STRICT_GROUPING_CASES)); in testMatchesWithPossibleLeniency()
544 testCases.addAll(Arrays.asList(EXACT_GROUPING_CASES)); in testMatchesWithPossibleLeniency()
545 testCases.addAll(Arrays.asList(VALID_CASES)); in testMatchesWithPossibleLeniency()
546 testCases.addAll(Arrays.asList(POSSIBLE_ONLY_CASES)); in testMatchesWithPossibleLeniency()
547 doTestNumberMatchesForLeniency(testCases, Leniency.POSSIBLE); in testMatchesWithPossibleLeniency()
551 List<NumberTest> testCases = new ArrayList<NumberTest>(); in testNonMatchesWithPossibleLeniency() local
552 testCases.addAll(Arrays.asList(IMPOSSIBLE_CASES)); in testNonMatchesWithPossibleLeniency()
553 doTestNumberNonMatchesForLeniency(testCases, Leniency.POSSIBLE); in testNonMatchesWithPossibleLeniency()
557 List<NumberTest> testCases = new ArrayList<NumberTest>(); in testMatchesWithValidLeniency() local
[all …]
/external/deqp/execserver/tools/
DxsTest.cpp205 void runCases (const std::vector<TestCase*>& testCases);
221 void TestExecutor::runCases (const std::vector<TestCase*>& testCases) in runCases() argument
224 int numCases = (int)testCases.size(); in runCases()
226 for (std::vector<TestCase*>::const_iterator i = testCases.begin(); i != testCases.end(); i++) in runCases()
891 std::vector<TestCase*> testCases; in runExecServerTests() local
892 testCases.push_back(new ConnectTest(testCtx)); in runExecServerTests()
893 testCases.push_back(new HelloTest(testCtx)); in runExecServerTests()
894 testCases.push_back(new ExecFailTest(testCtx)); in runExecServerTests()
895 testCases.push_back(new SimpleExecTest(testCtx)); in runExecServerTests()
896 testCases.push_back(new InfoTest(testCtx)); in runExecServerTests()
[all …]
/external/chromium_org/ui/webui/resources/js/
Dwebui_resource_test.js126 var testCases = [];
147 testCases.push(name);
149 if (!testCases.length) {
170 if (testCases.length > 0) {
171 var fn = testCases.pop();
/external/deqp/android/scripts/
DGenAndroidCTSXMLFromTestList.py9 self.testCases = []
37 for test in self.testCases:
43 for test in self.testCases:
49 return len(self.testCases) != 0
55 return self.testCases
66 self.parent.testCases.append(self)
DGenAndroidCTSXML.py9 self.testCases = {}
31 return testName in self.testCases
34 return self.testCases[testName]
37 return len(self.testCases) != 0
43 return self.testCases.values()
53 assert not name in self.parent.testCases
54 self.parent.testCases[name] = self
/external/chromium_org/third_party/WebKit/Source/core/html/parser/
DHTMLSrcsetParserTest.cpp34 TestCase testCases[] = { in TEST() local
100 for (unsigned i = 0; testCases[i].srcInput; ++i) { in TEST()
101 TestCase test = testCases[i]; in TEST()

123