Home
last modified time | relevance | path

Searched refs:TestUtils (Results 1 – 25 of 50) sorted by relevance

12

/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
DTrustAnchor_ImplTest.java35 import org.apache.harmony.security.tests.support.cert.TestUtils;
61 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testTrustAnchorX509CertificatebyteArray01()
93 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testTrustAnchorX509CertificatebyteArray02()
112 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testTrustAnchorX509CertificatebyteArray03()
140 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testTrustAnchorX509CertificatebyteArray04()
161 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testTrustAnchorX509CertificatebyteArray05()
271 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testTrustAnchorX509CertificatebyteArray06()
292 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testTrustAnchorX509CertificatebyteArray07()
319 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testTrustAnchorX509CertificatebyteArray08()
365 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testTrustAnchorX509CertificatebyteArray09()
[all …]
DPKIXBuilderParameters_ImplTest.java32 import org.apache.harmony.security.tests.support.cert.TestUtils;
54 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testPKIXBuilderParametersKeyStoreCertSelector01()
77 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testPKIXBuilderParametersKeyStoreCertSelector02()
102 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED_AND_UNTRUSTED); in testPKIXBuilderParametersKeyStoreCertSelector03()
120 KeyStore ks = TestUtils.getKeyStore(false, 0); in testPKIXBuilderParametersKeyStoreCertSelector05()
141 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.UNTRUSTED); in testPKIXBuilderParametersKeyStoreCertSelector06()
166 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testGetMaxPathLength01()
186 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testSetMaxPathLength01()
212 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testSetMaxPathLength02()
237 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED_AND_UNTRUSTED); in testToString()
DPKIXParameters_ImplTest.java40 import org.apache.harmony.security.tests.support.cert.TestUtils;
60 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testPKIXParametersKeyStore01()
82 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED_AND_UNTRUSTED); in testPKIXParametersKeyStore02()
99 KeyStore ks = TestUtils.getKeyStore(false, 0); in testPKIXParametersKeyStore04()
119 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.UNTRUSTED); in testPKIXParametersKeyStore05()
143 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testSetTrustAnchors05()
171 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testClone01()
190 p1.setCertStores(TestUtils.getCollectionCertStoresList()); in testClone01()
192 PKIXCertPathChecker cpc = TestUtils.getTestCertPathChecker(); in testClone01()
247 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testClone02()
[all …]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
DPKIXParametersTest.java42 import org.apache.harmony.security.tests.support.cert.TestUtils;
80 Set taSet = TestUtils.getTrustAnchorSet(); in testPKIXParametersSet01()
99 Set taSet = TestUtils.getTrustAnchorSet(); in testPKIXParametersSet02()
151 Set taSet = TestUtils.getTrustAnchorSet(); in testPKIXParametersSet05()
193 Set taSet = TestUtils.getTrustAnchorSet(); in testGetPolicyQualifiersRejected()
211 Set taSet = TestUtils.getTrustAnchorSet(); in testSetPolicyQualifiersRejected()
234 Set taSet = TestUtils.getTrustAnchorSet(); in testIsAnyPolicyInhibited()
252 Set taSet = TestUtils.getTrustAnchorSet(); in testSetAnyPolicyInhibited()
274 Set taSet = TestUtils.getTrustAnchorSet(); in testIsExplicitPolicyRequired()
291 Set taSet = TestUtils.getTrustAnchorSet(); in testSetExplicitPolicyRequired()
[all …]
DPKIXCertPathValidatorResultTest.java33 import org.apache.harmony.security.tests.support.cert.TestUtils;
81 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathValidatorResult01()
87 TestUtils.getPolicyTree(), in testPKIXCertPathValidatorResult01()
102 TestUtils.getPolicyTree(), in testPKIXCertPathValidatorResult02()
116 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathValidatorResult03()
124 TestUtils.getPolicyTree(), in testPKIXCertPathValidatorResult03()
137 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathValidatorResult04()
156 TrustAnchor ta = TestUtils.getTrustAnchor(); in testGetTrustAnchor()
180 TrustAnchor ta = TestUtils.getTrustAnchor(); in testGetPublicKey()
207 TrustAnchor ta = TestUtils.getTrustAnchor(); in testGetPolicyTree01()
[all …]
DPKIXCertPathBuilderResultTest.java33 import org.apache.harmony.security.tests.support.cert.TestUtils;
90 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathBuilderResult01()
98 TestUtils.getPolicyTree(), in testPKIXCertPathBuilderResult01()
114 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathBuilderResult02()
134 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathBuilderResult03()
144 TestUtils.getPolicyTree(), in testPKIXCertPathBuilderResult03()
163 TestUtils.getPolicyTree(), in testPKIXCertPathBuilderResult04()
177 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathBuilderResult05()
187 TestUtils.getPolicyTree(), in testPKIXCertPathBuilderResult05()
197 TrustAnchor ta = TestUtils.getTrustAnchor(); in test_clone()
[all …]
DPKIXCertPathCheckerTest.java29 import org.apache.harmony.security.tests.support.cert.TestUtils;
52 PKIXCertPathChecker pc1 = TestUtils.getTestCertPathChecker(); in testClone()
64 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker(); in testIsForwardCheckingSupported()
70 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker(); in testInit()
75 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker(); in testGetSupportedExtensions()
81 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker(); in testCheck()
DPKIXBuilderParametersTest.java32 import org.apache.harmony.security.tests.support.cert.TestUtils;
61 Set taSet = TestUtils.getTrustAnchorSet(); in testPKIXBuilderParametersSetCertSelector01()
82 Set taSet = TestUtils.getTrustAnchorSet(); in testPKIXBuilderParametersSetCertSelector02()
103 Set taSet = TestUtils.getTrustAnchorSet(); in testPKIXBuilderParametersSetCertSelector03()
159 Set taSet = TestUtils.getTrustAnchorSet(); in testPKIXBuilderParametersSetCertSelector06()
DCertificateFactory3Test.java38 import org.apache.harmony.security.tests.support.cert.TestUtils;
93 TestUtils.getEncodedX509Certificate())); in testGenerateCertificate()
107 .generateCertificate(new ByteArrayInputStream(TestUtils in testeGnerateCertificates()
112 TestUtils.getEncodedX509Certificate())); in testeGnerateCertificates()
128 .generateCertificate(new ByteArrayInputStream(TestUtils in testGenerateCertPath01()
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/analysis/
DCommonSuperclassTest.java59 TestUtils.makeClassDef("Ljava/lang/Object;", null), in CommonSuperclassTest()
60 TestUtils.makeClassDef("Ltest/one;", "Ljava/lang/Object;"), in CommonSuperclassTest()
61 TestUtils.makeClassDef("Ltest/two;", "Ljava/lang/Object;"), in CommonSuperclassTest()
62 TestUtils.makeClassDef("Ltest/onetwo;", "Ltest/one;"), in CommonSuperclassTest()
63 TestUtils.makeClassDef("Ltest/onetwothree;", "Ltest/onetwo;"), in CommonSuperclassTest()
64 TestUtils.makeClassDef("Ltest/onethree;", "Ltest/one;"), in CommonSuperclassTest()
65 TestUtils.makeClassDef("Ltest/fivetwo;", "Ltest/five;"), in CommonSuperclassTest()
66 TestUtils.makeClassDef("Ltest/fivetwothree;", "Ltest/fivetwo;"), in CommonSuperclassTest()
67 TestUtils.makeClassDef("Ltest/fivethree;", "Ltest/five;"), in CommonSuperclassTest()
68 TestUtils.makeInterfaceDef("Ljava/lang/Cloneable;"), in CommonSuperclassTest()
[all …]
/external/chromium-trace/catapult/third_party/vinn/third_party/parse5/test/fixtures/
Dparser_test.js7 TestUtils = require('../test_utils'); variable
10 TestUtils.generateTestsForEachTreeAdapter(module.exports, function (_test, treeAdapter) {
32 TestUtils.loadTreeConstructionTestData([
44 actual = TestUtils.serializeToTestDataFormat(result, treeAdapter),
45 msg = TestUtils.prettyPrintParserAssertionArgs(actual, test.expected);
53TestUtils.loadSerializationTestData(path.join(__dirname, '../data/serialization')).forEach(functio…
77 expected = TestUtils.removeNewLines(expected);
78 actual = TestUtils.removeNewLines(actual);
81 assert.ok(actual === expected, TestUtils.getStringDiffMsg(actual, expected));
89 expectedStartTag = TestUtils.removeNewLines(expectedStartTag);
[all …]
Djsdom_parser_test.js6 TestUtils = require('../test_utils'); variable
52 assert.ok(actual === docHtml1, TestUtils.getStringDiffMsg(actual, docHtml1));
62 assert.ok(actual === fragment, TestUtils.getStringDiffMsg(actual, fragment));
71 assert.ok(actual === docHtml2, TestUtils.getStringDiffMsg(actual, docHtml2));
80 TestUtils.generateTestsForEachTreeAdapter(module.exports, function (_test, treeAdapter) {
123 TestUtils.loadTreeConstructionTestData([
129 var actual = TestUtils.serializeToTestDataFormat(result, treeAdapter),
130 msg = TestUtils.prettyPrintParserAssertionArgs(actual, test.expected);
Dserializer_test.js6 TestUtils = require('../test_utils'); variable
130 TestUtils.generateTestsForEachTreeAdapter(module.exports, function (_test, treeAdapter) {
138 TestUtils.loadSerializationTestData(testDataDir).forEach(function (test) {
143 serializedResult = TestUtils.removeNewLines(serializer.serialize(document)),
144 expected = TestUtils.removeNewLines(test.expected);
147 … assert.ok(serializedResult === expected, TestUtils.getStringDiffMsg(serializedResult, expected));
Dsimple_api_parser_test.js4 TestUtils = require('../test_utils'); variable
11 return TestUtils.removeNewLines(str)
69 assert.ok(actual === expected, TestUtils.getStringDiffMsg(actual, expected));
73 TestUtils.loadSerializationTestData(path.join(__dirname, '../data/simple_api_parsing'))
/external/sfntly/cpp/src/test/
Dtest_utils_test.cc32 UConverter* conv = TestUtils::GetEncoder("utf8"); in TestEncoding()
41 int32_t encoded = TestUtils::EncodeOneChar(conv, (int16_t)from[i]); in TestEncoding()
61 result = TestUtils::Extension("../data/ext/tuffy.ttf"); in TestExtension()
65 result = TestUtils::Extension("tuffy.ttf.fake"); in TestExtension()
69 result = TestUtils::Extension("tuffy"); in TestExtension()
73 result = TestUtils::Extension("tuffy."); in TestExtension()
81 TEST(TestUtils, All) { in TEST() argument
Dtest_utils.cc30 TestUtils::TestUtils() {} in TestUtils() function in sfntly::TestUtils
41 int32_t TestUtils::EncodeOneChar(UConverter* encoder, int16_t uchar) { in EncodeOneChar()
72 UConverter* TestUtils::GetEncoder(const char* charset_name) { in GetEncoder()
84 const char* TestUtils::Extension(const char* file_path) { in Extension()
Dcmap_test.cc131 encoder1_ = TestUtils::GetEncoder(GetParam().first_charset_name()); in CommonSetUp()
132 encoder2_ = TestUtils::GetEncoder(GetParam().second_charset_name()); in CommonSetUp()
149 c1 = TestUtils::EncodeOneChar(encoder1_, (int16_t)uchar); in CompareCMaps()
152 c2 = TestUtils::EncodeOneChar(encoder2_, (int16_t)uchar); in CompareCMaps()
Dtest_utils.h31 class TestUtils {
32 TestUtils();
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/analysis/util/
DSuperclassChainTest.java40 import org.jf.dexlib2.analysis.TestUtils;
52 ClassDef objectClassDef = TestUtils.makeClassDef("Ljava/lang/Object;", null); in testGetSuperclassChain()
53 ClassDef oneClassDef = TestUtils.makeClassDef("Ltest/one;", "Ljava/lang/Object;"); in testGetSuperclassChain()
54 ClassDef twoClassDef = TestUtils.makeClassDef("Ltest/two;", "Ltest/one;"); in testGetSuperclassChain()
55 ClassDef threeClassDef = TestUtils.makeClassDef("Ltest/three;", "Ltest/two;"); in testGetSuperclassChain()
88 ClassDef twoClassDef = TestUtils.makeClassDef("Ltest/two;", "Ltest/one;"); in testGetSuperclassChain_Unresolved()
89 ClassDef threeClassDef = TestUtils.makeClassDef("Ltest/three;", "Ltest/two;"); in testGetSuperclassChain_Unresolved()
/external/conscrypt/src/test/java/org/conscrypt/
DTestUtils.java24 public class TestUtils { class
25 private TestUtils() {} in TestUtils() method in TestUtils
28 InputStream is = TestUtils.class.getResourceAsStream("/" + name); in openTestFile()
/external/opencv3/modules/ts/include/opencv2/ts/
Docl_test.hpp94 EXPECT_LE(TestUtils::checkNorm1(mat), eps) \
102 EXPECT_LE(TestUtils::checkNorm2(mat1, mat2), eps) \
111 EXPECT_LE(TestUtils::checkNormRelative(mat1, mat2), eps) \
131 EXPECT_LE(TestUtils::checkNorm2(name ## _roi, u ## name ## _roi), eps) \
140 EXPECT_LE(TestUtils::checkNorm2(name, u ## name, _mask), eps) \
149 EXPECT_LE(TestUtils::checkNormRelative(name ## _roi, u ## name ## _roi), eps) \
158 EXPECT_LE(TestUtils::checkNormRelative(name, u ## name, _mask), eps) \
168 EXPECT_LE(TestUtils::checkNormRelativeSparse(name ## _roi, u ## name ## _roi), eps) \
177 EXPECT_LE(TestUtils::checkNormRelativeSparse(name, u ## name, _mask), eps) \
195 struct CV_EXPORTS TestUtils struct
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/inference/
DTestUtils.java35 public class TestUtils { class
55 protected TestUtils() { in TestUtils() method in TestUtils
68 TestUtils.tTest = chiSquareTest; in setChiSquareTest()
91 TestUtils.chiSquareTest = chiSquareTest; in setChiSquareTest()
114 TestUtils.unknownDistributionChiSquareTest = unknownDistributionChiSquareTest; in setUnknownDistributionChiSquareTest()
137 TestUtils.oneWayAnova = oneWayAnova; in setOneWayAnova()
/external/opencv3/modules/ts/src/
Docl_test.cpp220 Mat TestUtils::readImage(const String &fileName, int flags) in readImage()
225 Mat TestUtils::readImageType(const String &fname, int type) in readImageType()
238 double TestUtils::checkNorm1(InputArray m, InputArray mask) in checkNorm1()
243 double TestUtils::checkNorm2(InputArray m1, InputArray m2, InputArray mask) in checkNorm2()
248 double TestUtils::checkSimilarity(InputArray m1, InputArray m2) in checkSimilarity()
255 double TestUtils::checkRectSimilarity(const Size & sz, std::vector<Rect>& ob1, std::vector<Rect>& o… in checkRectSimilarity()
298 void TestUtils::showDiff(InputArray _src, InputArray _gold, InputArray _actual, double eps, bool al… in showDiff()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/serialization/
DCertificateTest.java32 import org.apache.harmony.security.tests.support.cert.TestUtils;
51 TestUtils.getEncodedX509Certificate())); in testSerializationSelf()
64 TestUtils.getEncodedX509Certificate())); in testSerializationCompatibility()
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
DTestUtils.java29 public class TestUtils { class
34 private TestUtils() { in TestUtils() method in TestUtils

12