Home
last modified time | relevance | path

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

12

/external/selinux/policycoreutils/semanage/
Dtest-semanage.py27 def assertSuccess(self, status, err): member in SemanageTests
38 self.assertSuccess(p.returncode, err)
44 self.assertSuccess(p.returncode, err)
48 self.assertSuccess(p.returncode, err)
52 self.assertSuccess(p.returncode, err)
56 self.assertSuccess(p.returncode, err)
60 self.assertSuccess(p.returncode, err)
64 self.assertSuccess(p.returncode, err)
73 self.assertSuccess(p.returncode, err)
82 self.assertSuccess(p.returncode, err)
[all …]
/external/selinux/policycoreutils/sepolicy/
Dtest_sepolicy.py22 def assertSuccess(self, status, err): member in SepolicyTests
31 self.assertSuccess(p.returncode, err)
37 self.assertSuccess(p.returncode, err)
43 self.assertSuccess(p.returncode, err)
49 self.assertSuccess(p.returncode, err)
55 self.assertSuccess(p.returncode, err)
61 self.assertSuccess(p.returncode, err)
67 self.assertSuccess(p.returncode, err)
73 self.assertSuccess(p.returncode, err)
79 self.assertSuccess(p.returncode, err)
[all …]
/external/icu/icu4c/source/test/intltest/
Dscientificnumberformattertest.cpp56 if (!assertSuccess("Can't create ScientificNumberFormatter", status)) { in TestBasic()
70 if (!assertSuccess("Can't create ScientificNumberFormatter2", status)) { in TestBasic()
94 assertSuccess("", status); in TestBasic()
104 if (!assertSuccess("Can't create ScientificNumberFormatter", status)) { in TestFarsi()
113 assertSuccess("", status); in TestFarsi()
124 if (!assertSuccess("", status)) { in TestPlusSignInExponentMarkup()
131 if (!assertSuccess("Can't create ScientificNumberFormatter", status)) { in TestPlusSignInExponentMarkup()
140 assertSuccess("", status); in TestPlusSignInExponentMarkup()
151 if (!assertSuccess("", status)) { in TestPlusSignInExponentSuperscript()
158 if (!assertSuccess("Can't create ScientificNumberFormatter", status)) { in TestPlusSignInExponentSuperscript()
[all …]
Dtufmtts.cpp110 if (!assertSuccess("TimeUnitFormat(full)", status, TRUE)) return; in testBasic()
112 if (!assertSuccess("TimeUnitFormat(short)", status)) return; in testBasic()
131 if (!assertSuccess("TimeUnitAmount()", status)) return; in testBasic()
136 if (!assertSuccess("format()", status)) return; in testBasic()
144 if (!assertSuccess("parseObject()", status)) return; in testBasic()
151 if (!assertSuccess("parseObject()", status)) return; in testBasic()
170 if (!assertSuccess("TimeUnit::createInstance", status)) return; in testAPI()
195 if (!assertSuccess("TimeUnit::createInstance", status)) return; in testAPI()
201 if (!assertSuccess("TimeUnit::createInstance", status)) return; in testAPI()
222 if (!assertSuccess("TimeUnitAmount(formattable...)", status)) return; in testAPI()
[all …]
Dsimplepatternformattertest.cpp85 assertSuccess("Status", status); in TestNoPlaceholders()
101 if (!assertSuccess("Status", status)) { in TestOnePlaceholder()
127 assertSuccess("Status", status); in TestOnePlaceholder()
133 if (!assertSuccess("Status", status)) { in TestBigPlaceholder()
145 assertSuccess("Status", status); in TestBigPlaceholder()
153 if (!assertSuccess("Status", status)) { in TestManyPlaceholders()
174 if (!assertSuccess("Status", status)) { in TestManyPlaceholders()
242 assertSuccess("Status", status); in TestManyPlaceholders()
283 assertSuccess("", status); in TestBadArguments()
340 if (!assertSuccess("Status", status)) { in TestFormatReplaceNoOptimization()
[all …]
Dnumberformat2test.cpp412 assertSuccess("", status); in TestQuantize()
807 assertSuccess("", status); in TestDigitFormatterDefaultCtor()
822 if (!assertSuccess("", status)) { in TestDigitFormatterMonetary()
836 if (!assertSuccess("", status)) { in TestDigitFormatterMonetary()
863 if (!assertSuccess("", status)) { in TestDigitFormatter()
873 if (!assertSuccess("", status)) { in TestDigitFormatter()
920 if (!assertSuccess("", status)) { in TestDigitFormatter()
937 if (!assertSuccess("", status)) { in TestDigitFormatter()
965 if (!assertSuccess("", status)) { in TestDigitFormatter()
993 if (!assertSuccess("", status)) { in TestDigitFormatter()
[all …]
Ddtifmtts.cpp1074 if (!assertSuccess("parse 1st data in expect", ec)) return; in expect()
1076 if (!assertSuccess("parse 2nd data in expect", ec)) return; in expect()
1082 if (!assertSuccess("createInstance(skeleton) in expect", ec)) return; in expect()
1085 if (!assertSuccess("format in expect", ec)) return; in expect()
1283 if (!assertSuccess("parse in expectUserDII", ec)) return; in expectUserDII()
1285 if (!assertSuccess("parse in expectUserDII", ec)) return; in expectUserDII()
1293 if (!assertSuccess("DateIntervalInfo::setIntervalPattern", ec)) return; in expectUserDII()
1295 if (!assertSuccess("DateIntervalInfo::setIntervalPattern", ec)) return; in expectUserDII()
1298 if (!assertSuccess("createInstance(skeleton,dtitvinf) in expectUserDII", ec)) return; in expectUserDII()
1301 if (!assertSuccess("format in expectUserDII", ec)) return; in expectUserDII()
[all …]
Dmeasfmttest.cpp198 assertSuccess("", status); in TestCompatible53_1()
325 assertSuccess("", status); in TestCompatible54_1()
453 assertSuccess("", status); in TestCompatible55_1()
588 assertSuccess("", status); in TestCompatible56_1()
693 if (!assertSuccess("Error creating formatters", status)) { in TestExamplesInDocs()
707 if (!assertSuccess("Error creating measurements.", status)) { in TestExamplesInDocs()
841 if (!assertSuccess("Error creating Measure objects", status)) { in TestFormatPeriodEn()
914 if (!assertSuccess("Error creating measure format en WIDE", status)) { in TestFormatPeriodEn()
931 if (!assertSuccess("Error creating measure format en SHORT", status)) { in TestFormatPeriodEn()
936 if (!assertSuccess("Error creating measure format en NARROW", status)) { in TestFormatPeriodEn()
[all …]
Dunifiedcachetest.cpp121 assertSuccess("", status); in TestEvictionPolicy()
165 assertSuccess("", status); in TestEvictionPolicy()
182 assertSuccess("", status); in TestBounded()
291 assertSuccess("", status); in TestBounded()
298 assertSuccess("", status); in TestBasic()
323 assertSuccess("", status); in TestBasic()
347 assertSuccess("", status); in TestBasic()
353 assertSuccess("", status); in TestError()
Dsvccoll.cpp489 assertSuccess("count", ec); in checkStringEnumeration()
494 if (!assertSuccess("snext", ec) || s == NULL) in checkStringEnumeration()
520 if (!assertSuccess("unext", ec) || s == NULL) in checkStringEnumeration()
568 if (!assertSuccess("getKeywords", ec)) return; in TestSeparateTree()
574 if (!assertSuccess("getKeywordValues", ec)) return; in TestSeparateTree()
582 assertSuccess("getFunctionalEquivalent", ec); in TestSeparateTree()
590 assertSuccess("getFunctionalEquivalent", ec); in TestSeparateTree()
598 assertSuccess("getFunctionalEquivalent", ec); in TestSeparateTree()
606 assertSuccess("getFunctionalEquivalent", ec); in TestSeparateTree()
Dnumfmtspectest.cpp202 assertSuccess("", status); in TestPadding()
220 assertSuccess("", status); in TestPadding()
239 assertSuccess("", status); in TestPadding()
266 assertSuccess("", status); in assertPatternFr()
Dnumfmtst.cpp2313 assertSuccess("ucurr_getName", ec); in TestCurrencyNames()
2353 assertSuccess("CurrencyUnit", ec); in TestCurrencyUnit()
2368 assertSuccess("CurrencyUnit", ec); in TestCurrencyUnit()
2373 assertSuccess("CurrencyUnit", ec); in TestCurrencyUnit()
2391 assertSuccess("CurrencyAmount", ec); in TestCurrencyAmount()
2536 if (!assertSuccess("DecimalFormat ct", ec)) return; in TestPerMill()
2544 if (!assertSuccess("setup", ec)) return; in TestPerMill()
2695 assertSuccess("parse", ec); in TestCases()
2698 assertSuccess("format", ec); in TestCases()
2702 assertSuccess("parse", ec); in TestCases()
[all …]
Ddtfmttst.cpp2025 if (!assertSuccess("parse", ec)) return; in expect()
2032 if (!assertSuccess("parse", ec)) return; in expect()
2034 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) { in expect()
2046 if (!assertSuccess("parse", ec)) return; in expect()
2048 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) { in expect()
2064 if (!assertSuccess("parse", ec)) return; in expect()
2070 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) { in expect()
2126 if (!assertSuccess("parse", ec)) return; in expectFormat()
4645 if (!assertSuccess("SimpleDateFormat with pattern MM d", status)) { in TestNumberFormatOverride()
4652 assertSuccess("NumberFormat en_US", status); in TestNumberFormatOverride()
[all …]
Dintltest.h136 assertSuccess(#x, (x), FALSE, __FILE__, __LINE__)
269 …UBool assertSuccess(const char* message, UErrorCode ec, UBool possibleDataError=FALSE, const char …
287 UBool assertSuccess(const UnicodeString& message, UErrorCode ec);
Ditutil.cpp158 errorCode.assertSuccess(); in TestErrorCode()
209 errorCode.assertSuccess(); in TestSubclass()
217 errorCode.assertSuccess(); in TestSubclass()
225 errorCode.assertSuccess(); in TestSubclass()
238 errorCode.assertSuccess(); in TestSubclass()
Ddatadrivennumberformattestsuite.cpp27 if (!assertSuccess("Can't create previous formatters", status)) { in run()
34 if (!assertSuccess("Can't open data file", status)) { in run()
/external/selinux/policycoreutils/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/policycoreutils/sandbox/
Dtest_sandbox.py22 def assertSuccess(self, status, err): member in SandboxTests
74 self.assertSuccess(p.returncode, err)
80 self.assertSuccess(p.returncode, err)
88 self.assertSuccess(p.returncode, err)
96 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.cpp30 void ErrorCode::assertSuccess() const { in assertSuccess() function in ErrorCode
/external/icu/icu4c/source/common/unicode/
Derrorcode.h111 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.h117 U_CFUNC UBool assertSuccess(const char* msg, UErrorCode* ec);
Dcldrtest.c1156 if (!assertSuccess("ures_openAvailableLocales", &ec)) goto END; in TestExemplarSet()
1158 if (!assertSuccess("uenum_count", &ec)) goto END; in TestExemplarSet()
1162 if (!assertSuccess("uset_openPattern", &ec)) goto END; in TestExemplarSet()
1166 if (!assertSuccess("uenum_next", &ec)) goto END; in TestExemplarSet()
1175 if (!assertSuccess("ulocaledata_getExemplarSet", &ec)) goto END; in TestExemplarSet()
1184 if (!assertSuccess("uscript_getCode", &ec)) goto END; in TestExemplarSet()
1201 if (!assertSuccess("uset_openPattern", &ec)) goto END; in TestExemplarSet()
1209 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