Home
last modified time | relevance | path

Searched refs:assertSuccess (Results 1 – 25 of 46) sorted by relevance

12

/external/selinux/python/semanage/
Dtest-semanage.py24 def assertSuccess(self, status, err): member in SemanageTests
35 self.assertSuccess(p.returncode, err)
41 self.assertSuccess(p.returncode, err)
45 self.assertSuccess(p.returncode, err)
49 self.assertSuccess(p.returncode, err)
53 self.assertSuccess(p.returncode, err)
57 self.assertSuccess(p.returncode, err)
61 self.assertSuccess(p.returncode, err)
70 self.assertSuccess(p.returncode, err)
79 self.assertSuccess(p.returncode, err)
[all …]
/external/selinux/python/sepolicy/
Dtest_sepolicy.py22 def assertSuccess(self, status, err): member in SepolicyTests
30 self.assertSuccess(p.returncode, err)
36 self.assertSuccess(p.returncode, err)
42 self.assertSuccess(p.returncode, err)
48 self.assertSuccess(p.returncode, err)
54 self.assertSuccess(p.returncode, err)
60 self.assertSuccess(p.returncode, err)
66 self.assertSuccess(p.returncode, err)
72 self.assertSuccess(p.returncode, err)
78 self.assertSuccess(p.returncode, err)
[all …]
/external/icu/icu4c/source/test/intltest/
Dscientificnumberformattertest.cpp58 if (!assertSuccess("Can't create ScientificNumberFormatter", status)) { in TestBasic()
72 if (!assertSuccess("Can't create ScientificNumberFormatter2", status)) { in TestBasic()
96 assertSuccess("", status); in TestBasic()
106 if (!assertSuccess("Can't create ScientificNumberFormatter", status)) { in TestFarsi()
115 assertSuccess("", status); in TestFarsi()
126 if (!assertSuccess("", status)) { in TestPlusSignInExponentMarkup()
133 if (!assertSuccess("Can't create ScientificNumberFormatter", status)) { in TestPlusSignInExponentMarkup()
142 assertSuccess("", status); in TestPlusSignInExponentMarkup()
153 if (!assertSuccess("", status)) { in TestPlusSignInExponentSuperscript()
160 if (!assertSuccess("Can't create ScientificNumberFormatter", status)) { in TestPlusSignInExponentSuperscript()
[all …]
Dtufmtts.cpp112 if (!assertSuccess("TimeUnitFormat(full)", status, TRUE)) return; in testBasic()
114 if (!assertSuccess("TimeUnitFormat(short)", status)) return; in testBasic()
133 if (!assertSuccess("TimeUnitAmount()", status)) return; in testBasic()
138 if (!assertSuccess("format()", status)) return; in testBasic()
146 if (!assertSuccess("parseObject()", status)) return; in testBasic()
153 if (!assertSuccess("parseObject()", status)) return; in testBasic()
172 if (!assertSuccess("TimeUnit::createInstance", status)) return; in testAPI()
197 if (!assertSuccess("TimeUnit::createInstance", status)) return; in testAPI()
203 if (!assertSuccess("TimeUnit::createInstance", status)) return; in testAPI()
224 if (!assertSuccess("TimeUnitAmount(formattable...)", status)) return; in testAPI()
[all …]
Dsimpleformattertest.cpp87 assertSuccess("Status", status); in TestNoArguments()
103 if (!assertSuccess("Status", status)) { in TestOneArgument()
129 assertSuccess("Status", status); in TestOneArgument()
135 if (!assertSuccess("Status", status)) { in TestBigArgument()
147 assertSuccess("Status", status); in TestBigArgument()
155 if (!assertSuccess("Status", status)) { in TestManyArguments()
176 if (!assertSuccess("Status", status)) { in TestManyArguments()
244 assertSuccess("Status", status); in TestManyArguments()
285 assertSuccess("", status); in TestBadArguments()
342 if (!assertSuccess("Status", status)) { in TestFormatReplaceNoOptimization()
[all …]
Dnumberformat2test.cpp414 assertSuccess("", status); in TestQuantize()
809 assertSuccess("", status); in TestDigitFormatterDefaultCtor()
824 if (!assertSuccess("", status)) { in TestDigitFormatterMonetary()
838 if (!assertSuccess("", status)) { in TestDigitFormatterMonetary()
865 if (!assertSuccess("", status)) { in TestDigitFormatter()
875 if (!assertSuccess("", status)) { in TestDigitFormatter()
922 if (!assertSuccess("", status)) { in TestDigitFormatter()
939 if (!assertSuccess("", status)) { in TestDigitFormatter()
967 if (!assertSuccess("", status)) { in TestDigitFormatter()
995 if (!assertSuccess("", status)) { in TestDigitFormatter()
[all …]
Ddtifmtts.cpp1072 if (!assertSuccess("parse 1st data in expect", ec)) return; in expect()
1074 if (!assertSuccess("parse 2nd data in expect", ec)) return; in expect()
1080 if (!assertSuccess("createInstance(skeleton) in expect", ec)) return; in expect()
1083 if (!assertSuccess("format in expect", ec)) return; in expect()
1270 if (!assertSuccess("parse in expectUserDII", ec)) return; in expectUserDII()
1272 if (!assertSuccess("parse in expectUserDII", ec)) return; in expectUserDII()
1280 if (!assertSuccess("DateIntervalInfo::setIntervalPattern", ec)) return; in expectUserDII()
1282 if (!assertSuccess("DateIntervalInfo::setIntervalPattern", ec)) return; in expectUserDII()
1285 if (!assertSuccess("createInstance(skeleton,dtitvinf) in expectUserDII", ec)) return; in expectUserDII()
1288 if (!assertSuccess("format in expectUserDII", ec)) return; in expectUserDII()
[all …]
Dunifiedcachetest.cpp123 assertSuccess("", status); in TestEvictionPolicy()
167 assertSuccess("", status); in TestEvictionPolicy()
184 assertSuccess("", status); in TestBounded()
293 assertSuccess("", status); in TestBounded()
300 assertSuccess("", status); in TestBasic()
325 assertSuccess("", status); in TestBasic()
349 assertSuccess("", status); in TestBasic()
355 assertSuccess("", status); in TestError()
Dmeasfmttest.cpp220 assertSuccess("", status); in TestCompatible53_1()
347 assertSuccess("", status); in TestCompatible54_1()
475 assertSuccess("", status); in TestCompatible55_1()
610 assertSuccess("", status); in TestCompatible56_1()
750 assertSuccess("", status); in TestCompatible57_1()
894 assertSuccess("", status); in TestCompatible58_1()
999 if (!assertSuccess("Error creating formatters", status)) { in TestExamplesInDocs()
1013 if (!assertSuccess("Error creating measurements.", status)) { in TestExamplesInDocs()
1147 if (!assertSuccess("Error creating Measure objects", status)) { in TestFormatPeriodEn()
1220 if (!assertSuccess("Error creating measure format en WIDE", status)) { in TestFormatPeriodEn()
[all …]
Dsvccoll.cpp492 assertSuccess("count", ec); in checkStringEnumeration()
497 if (!assertSuccess("snext", ec) || s == NULL) in checkStringEnumeration()
523 if (!assertSuccess("unext", ec) || s == NULL) in checkStringEnumeration()
571 if (!assertSuccess("getKeywords", ec)) return; in TestSeparateTree()
577 if (!assertSuccess("getKeywordValues", ec)) return; in TestSeparateTree()
585 assertSuccess("getFunctionalEquivalent", ec); in TestSeparateTree()
593 assertSuccess("getFunctionalEquivalent", ec); in TestSeparateTree()
601 assertSuccess("getFunctionalEquivalent", ec); in TestSeparateTree()
609 assertSuccess("getFunctionalEquivalent", ec); in TestSeparateTree()
Dnumfmtspectest.cpp204 assertSuccess("", status); in TestPadding()
222 assertSuccess("", status); in TestPadding()
241 assertSuccess("", status); in TestPadding()
268 assertSuccess("", status); in assertPatternFr()
Dnumfmtst.cpp2314 assertSuccess("ucurr_getName", ec); in TestCurrencyNames()
2354 assertSuccess("CurrencyUnit", ec); in TestCurrencyUnit()
2369 assertSuccess("CurrencyUnit", ec); in TestCurrencyUnit()
2374 assertSuccess("CurrencyUnit", ec); in TestCurrencyUnit()
2392 assertSuccess("CurrencyAmount", ec); in TestCurrencyAmount()
2538 if (!assertSuccess("DecimalFormat ct", ec)) return; in TestPerMill()
2546 if (!assertSuccess("setup", ec)) return; in TestPerMill()
2697 assertSuccess("parse", ec); in TestCases()
2700 assertSuccess("format", ec); in TestCases()
2704 assertSuccess("parse", ec); in TestCases()
[all …]
Dintltest.h138 assertSuccess(#x, (x), FALSE, __FILE__, __LINE__)
295 …UBool assertSuccess(const char* message, UErrorCode ec, UBool possibleDataError=FALSE, const char …
313 UBool assertSuccess(const UnicodeString& message, UErrorCode ec);
Ddtfmttst.cpp2038 if (!assertSuccess("parse", ec)) return; in expect()
2045 if (!assertSuccess("parse", ec)) return; in expect()
2047 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) { in expect()
2059 if (!assertSuccess("parse", ec)) return; in expect()
2061 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) { in expect()
2077 if (!assertSuccess("parse", ec)) return; in expect()
2083 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) { in expect()
2139 if (!assertSuccess("parse", ec)) return; in expectFormat()
4719 if (!assertSuccess("SimpleDateFormat with pattern MM d", status)) { in TestNumberFormatOverride()
4726 assertSuccess("NumberFormat en_US", status); in TestNumberFormatOverride()
[all …]
Ditutil.cpp160 errorCode.assertSuccess(); in TestErrorCode()
211 errorCode.assertSuccess(); in TestSubclass()
219 errorCode.assertSuccess(); in TestSubclass()
227 errorCode.assertSuccess(); in TestSubclass()
240 errorCode.assertSuccess(); in TestSubclass()
Ddatadrivennumberformattestsuite.cpp29 if (!assertSuccess("Can't create previous formatters", status)) { in run()
36 if (!assertSuccess("Can't open data file", status)) { in run()
/external/selinux/python/audit2allow/
Dtest_audit2allow.py22 def assertSuccess(self, cmd, status, err): member in Audit2allowTests
32 self.assertSuccess("sepolgen-ifgen", p.returncode, err)
40 self.assertSuccess("audit2allow", p.returncode, err)
48 self.assertSuccess("audit2why", p.returncode, err)
/external/selinux/sandbox/
Dtest_sandbox.py23 def assertSuccess(self, status, err): member in SandboxTests
76 self.assertSuccess(p.returncode, err)
82 self.assertSuccess(p.returncode, err)
90 self.assertSuccess(p.returncode, err)
98 self.assertSuccess(p.returncode, err)
105 self.assertSuccess(p.returncode, err)
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAbstractChainedListenableFutureTest.java76 listener.assertSuccess(getSuccessfulResult()); in testAddListenerAfterCallback()
82 listener.assertSuccess(getSuccessfulResult()); in testFutureBeforeCallback()
/external/icu/icu4c/source/common/
Derrorcode.cpp32 void ErrorCode::assertSuccess() const { in assertSuccess() function in ErrorCode
/external/icu/icu4c/source/common/unicode/
Derrorcode.h113 void assertSuccess() const;
/external/icu/icu4c/source/test/cintltst/
Dcdattst.c1227 if (!assertSuccess("udat_format", ec)) return FALSE; in _aux1ExtremeDates()
1631 if (!assertSuccess("udat_open()", &status)) { in TestOverrideNumberFormat()
1639 assertSuccess("unum_open()", &status); in TestOverrideNumberFormat()
1642 assertSuccess("udat_setNumberFormatForField()", &status); in TestOverrideNumberFormat()
1652 assertSuccess("unum_open()", &status); in TestOverrideNumberFormat()
1664 assertSuccess("udat_open() with en_US", &status); in TestOverrideNumberFormat()
1667 assertSuccess("unum_open() in loop", &status); in TestOverrideNumberFormat()
1680 assertSuccess("unum_open() in mixed", &status); in TestOverrideNumberFormat()
1683 assertSuccess("udat_setNumberFormatForField() in mixed", &status); in TestOverrideNumberFormat()
1695 assertSuccess("udat_setNumberFormatForField() in loop", &status); in TestOverrideNumberFormat()
[all …]
Dcintltst.h119 U_CFUNC UBool assertSuccess(const char* msg, UErrorCode* ec);
Dcldrtest.c1159 if (!assertSuccess("ures_openAvailableLocales", &ec)) goto END; in TestExemplarSet()
1161 if (!assertSuccess("uenum_count", &ec)) goto END; in TestExemplarSet()
1165 if (!assertSuccess("uset_openPattern", &ec)) goto END; in TestExemplarSet()
1169 if (!assertSuccess("uenum_next", &ec)) goto END; in TestExemplarSet()
1178 if (!assertSuccess("ulocaledata_getExemplarSet", &ec)) goto END; in TestExemplarSet()
1187 if (!assertSuccess("uscript_getCode", &ec)) goto END; in TestExemplarSet()
1204 if (!assertSuccess("uset_openPattern", &ec)) goto END; in TestExemplarSet()
1212 if (!assertSuccess("uset_getItem", &ec)) goto END; in TestExemplarSet()
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DMockFutureListener.java60 public void assertSuccess(Object expectedData) throws Throwable { in assertSuccess() method in MockFutureListener

12