/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/ |
D | ANTLRxxxxStreamFixture.cs | 79 Assert.AreEqual(0, inputStream.Count); in TestSizeOnEmptyANTLRInputStream() 90 Assert.AreEqual(grammarStr.Length, inputStream.Count); in TestSizeOnANTLRInputStream() 101 Assert.AreEqual(0, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream() 104 Assert.AreEqual(1, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream() 107 Assert.AreEqual(2, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream() 113 Assert.AreEqual(inputStream.Index, inputStream.Count); in TestConsumeAndIndexOnANTLRInputStream() 129 Assert.AreEqual(inputStream.Index, inputStream.Count); in TestConsumeAllCharactersInAnANTLRInputStream() 140 Assert.AreEqual(0, inputStream.Index); in TestConsumeOnANTLRInputStream() 141 Assert.AreEqual(0, inputStream.CharPositionInLine); in TestConsumeOnANTLRInputStream() 142 Assert.AreEqual(1, inputStream.Line); in TestConsumeOnANTLRInputStream() [all …]
|
D | RewriteRuleXxxxStreamFixture.cs | 100 Assert.IsFalse(tokenTest.HasNext, "tokenTest has to give back false here."); in CheckRRTokenStreamBehaviourWhileEmpty1() 101 Assert.AreEqual(description.ToString(), tokenTest.Description, in CheckRRTokenStreamBehaviourWhileEmpty1() 103 Assert.AreEqual(0, tokenTest.Count, "The number of elements should be zero."); in CheckRRTokenStreamBehaviourWhileEmpty1() 105 Assert.IsTrue(true, "Reset() shouldn't make any problems here."); in CheckRRTokenStreamBehaviourWhileEmpty1() 106 Assert.AreEqual(0, tokenTest.Count, in CheckRRTokenStreamBehaviourWhileEmpty1() 119 Assert.IsFalse(subtreeTest.HasNext, "HasNext has to give back false here."); in CheckRRSubtreeStreamBehaviourWhileEmpty1() 120 Assert.AreEqual(description.ToString(), subtreeTest.Description, in CheckRRSubtreeStreamBehaviourWhileEmpty1() 122 Assert.AreEqual(0, subtreeTest.Count, "The number of elements should be zero."); in CheckRRSubtreeStreamBehaviourWhileEmpty1() 124 Assert.IsTrue(true, "Reset() shouldn't make any problems here."); in CheckRRSubtreeStreamBehaviourWhileEmpty1() 125 Assert.AreEqual(0, subtreeTest.Count, in CheckRRSubtreeStreamBehaviourWhileEmpty1() [all …]
|
/external/testng/src/test/java/test/mannotation/ |
D | MAnnotationSampleTest.java | 3 import org.testng.Assert; 35 Assert.assertTrue(test1.getEnabled()); in verifyTestClassLevel() 36 Assert.assertEquals(test1.getGroups(), new String[] { "group1", "group2" }); in verifyTestClassLevel() 37 Assert.assertTrue(test1.getAlwaysRun()); in verifyTestClassLevel() 38 Assert.assertEquals(test1.getParameters(), new String[] { "param1", "param2" }); in verifyTestClassLevel() 39 …Assert.assertEqualsNoOrder(test1.getDependsOnGroups(), new String[] { "dg1", "dg2" }, "depends on… in verifyTestClassLevel() 40 Assert.assertEqualsNoOrder( test1.getDependsOnMethods(), new String[] { "dm1", "dm2" }); in verifyTestClassLevel() 41 Assert.assertEquals(test1.getTimeOut(), 42); in verifyTestClassLevel() 42 Assert.assertEquals(test1.getInvocationCount(), 43); in verifyTestClassLevel() 43 Assert.assertEquals(test1.getSuccessPercentage(), 44); in verifyTestClassLevel() [all …]
|
/external/smali/util/src/test/java/org/jf/util/ |
D | NumberUtilsTest.java | 34 import junit.framework.Assert; 40 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1.23f))); in isLikelyFloatTest() 41 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1.0f))); in isLikelyFloatTest() 42 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.NaN))); in isLikelyFloatTest() 43 … Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.NEGATIVE_INFINITY))); in isLikelyFloatTest() 44 … Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.POSITIVE_INFINITY))); in isLikelyFloatTest() 45 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1e-30f))); in isLikelyFloatTest() 46 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1000f))); in isLikelyFloatTest() 47 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1f))); in isLikelyFloatTest() 48 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(-1f))); in isLikelyFloatTest() [all …]
|
D | AbstractForwardSequentialListTest.java | 34 import junit.framework.Assert; 78 Assert.assertFalse(iter.hasPrevious()); in testForwardIterationImpl() 81 Assert.assertEquals(i, iter.nextIndex()); in testForwardIterationImpl() 82 Assert.assertEquals(i-1, iter.previousIndex()); in testForwardIterationImpl() 84 Assert.assertTrue(iter.hasNext()); in testForwardIterationImpl() 86 Assert.assertEquals(i, iter.next().intValue()); in testForwardIterationImpl() 87 Assert.assertTrue(iter.hasPrevious()); in testForwardIterationImpl() 90 Assert.assertFalse(iter.hasNext()); in testForwardIterationImpl() 91 Assert.assertEquals(iter.nextIndex(), 100); in testForwardIterationImpl() 92 Assert.assertEquals(iter.previousIndex(), 99); in testForwardIterationImpl() [all …]
|
/external/smali/smalidea/src/test/java/org/jf/smalidea/ |
D | SmaliFieldTest.java | 43 import org.junit.Assert; 52 Assert.assertEquals("my.pkg.blah", smaliClass.getQualifiedName()); in testBasicField() 55 Assert.assertEquals(1, fields.length); in testBasicField() 56 Assert.assertEquals("myField", fields[0].getName()); in testBasicField() 57 Assert.assertTrue(fields[0].getType() instanceof PsiPrimitiveType); in testBasicField() 58 Assert.assertEquals("int", fields[0].getType().getCanonicalText()); in testBasicField() 60 Assert.assertNotNull("I", typeElement); in testBasicField() 61 Assert.assertEquals("I", typeElement.getText()); in testBasicField() 64 Assert.assertNotNull(modifierList); in testBasicField() 65 Assert.assertEquals(AccessFlags.PUBLIC.getValue(), modifierList.getAccessFlags()); in testBasicField() [all …]
|
D | SmaliAnnotationTest.java | 40 import org.junit.Assert; 81 Assert.assertEquals("my.pkg.blah", smaliClass.getQualifiedName()); in testClassAnnotation() 123 Assert.assertEquals("my.pkg.blah", smaliClass.getQualifiedName()); in testFieldAnnotation() 166 Assert.assertEquals("my.pkg.blah", smaliClass.getQualifiedName()); in testMethodAnnotation() 173 Assert.assertEquals(2, annotationOwner.getAnnotations().length); in doTest() 175 … Assert.assertEquals("my.TestAnnotation", annotationOwner.getAnnotations()[0].getQualifiedName()); in doTest() 177 Assert.assertNotNull(annotationNameRef); in doTest() 179 Assert.assertNotNull(smaliAnnotationClass); in doTest() 180 Assert.assertEquals("my.TestAnnotation", smaliAnnotationClass.getQualifiedName()); in doTest() 182 … Assert.assertEquals("my.TestAnnotation2", annotationOwner.getAnnotations()[1].getQualifiedName()); in doTest() [all …]
|
D | SmaliImplementsExtendsTest.java | 40 import org.junit.Assert; 57 Assert.assertEquals(1, extendsList.getReferencedTypes().length); in testNormalClass() 58 Assert.assertEquals("my.pkg.base", extendsList.getReferencedTypes()[0].getCanonicalText()); in testNormalClass() 59 Assert.assertEquals(1, extendsList.getReferenceNames().length); in testNormalClass() 60 Assert.assertEquals("my.pkg.base", extendsList.getReferenceNames()[0]); in testNormalClass() 61 Assert.assertEquals(1, smaliClass.getExtendsListTypes().length); in testNormalClass() 62 Assert.assertEquals("my.pkg.base", smaliClass.getExtendsListTypes()[0].getCanonicalText()); in testNormalClass() 65 Assert.assertNotNull(resolvedSuper); in testNormalClass() 66 Assert.assertEquals("my.pkg.base", resolvedSuper.getQualifiedName()); in testNormalClass() 69 Assert.assertEquals(2, implementsList.getReferencedTypes().length); in testNormalClass() [all …]
|
D | SmaliMethodTest.java | 40 import org.junit.Assert; 57 Assert.assertNotNull(leafElement); in testMethodRegisters() 59 Assert.assertNotNull(methodElement); in testMethodRegisters() 61 Assert.assertEquals(123, methodElement.getRegisterCount()); in testMethodRegisters() 62 Assert.assertEquals(1, methodElement.getParameterRegisterCount()); in testMethodRegisters() 77 Assert.assertNotNull(leafElement); in testMethodRegisters2() 79 Assert.assertNotNull(methodElement); in testMethodRegisters2() 81 Assert.assertEquals(128, methodElement.getRegisterCount()); in testMethodRegisters2() 82 Assert.assertEquals(5, methodElement.getParameterRegisterCount()); in testMethodRegisters2() 97 Assert.assertEquals(127, smaliMethod.getRegisterCount()); in testStaticRegisterCount() [all …]
|
D | SmaliClassModifierListTest.java | 42 import org.junit.Assert; 53 Assert.assertEquals(AccessFlags.PUBLIC.getValue() | in testAllClassAccessFlags() 62 Assert.assertTrue(modifierList.hasModifierProperty("public")); in testAllClassAccessFlags() 63 Assert.assertTrue(modifierList.hasModifierProperty("final")); in testAllClassAccessFlags() 64 Assert.assertTrue(modifierList.hasModifierProperty("interface")); in testAllClassAccessFlags() 65 Assert.assertTrue(modifierList.hasModifierProperty("abstract")); in testAllClassAccessFlags() 66 Assert.assertTrue(modifierList.hasModifierProperty("synthetic")); in testAllClassAccessFlags() 67 Assert.assertTrue(modifierList.hasModifierProperty("enum")); in testAllClassAccessFlags() 68 Assert.assertTrue(modifierList.hasModifierProperty("annotation")); in testAllClassAccessFlags() 70 Assert.assertTrue(modifierList.hasExplicitModifier("public")); in testAllClassAccessFlags() [all …]
|
D | MethodReferenceTest.java | 40 import org.junit.Assert; 58 Assert.assertNotNull(methodReference); in testJavaReferenceFromSmali() 59 Assert.assertEquals("nanoTime", methodReference.getName()); in testJavaReferenceFromSmali() 62 Assert.assertNotNull(resolvedMethod); in testJavaReferenceFromSmali() 63 Assert.assertEquals("nanoTime", resolvedMethod.getName()); in testJavaReferenceFromSmali() 64 Assert.assertNotNull(resolvedMethod.getContainingClass()); in testJavaReferenceFromSmali() 65 … Assert.assertEquals("java.lang.System", resolvedMethod.getContainingClass().getQualifiedName()); in testJavaReferenceFromSmali() 66 Assert.assertEquals(0, resolvedMethod.getParameterList().getParametersCount()); in testJavaReferenceFromSmali() 67 Assert.assertNotNull(resolvedMethod.getReturnType()); in testJavaReferenceFromSmali() 68 Assert.assertEquals("long", resolvedMethod.getReturnType().getCanonicalText()); in testJavaReferenceFromSmali() [all …]
|
D | SmaliClassTest.java | 51 import org.junit.Assert; 59 Assert.assertEquals("my.pkg.blah", smaliClass.getQualifiedName()); in testName() 60 Assert.assertEquals("my.pkg", smaliClass.getPackageName()); in testName() 61 Assert.assertEquals("blah", smaliClass.getName()); in testName() 69 Assert.assertEquals("blah", smaliClass.getQualifiedName()); in testEmptyPackageName() 70 Assert.assertEquals("", smaliClass.getPackageName()); in testEmptyPackageName() 84 Assert.assertEquals("blah", smaliClass.getQualifiedName()); in testGetSuperclass() 86 Assert.assertNotNull(superClass); in testGetSuperclass() 87 Assert.assertEquals("base", smaliClass.getSuperClass().getQualifiedName()); in testGetSuperclass() 89 Assert.assertEquals(2, smaliClass.getSupers().length); in testGetSuperclass() [all …]
|
D | FieldReferenceTest.java | 40 import org.junit.Assert; 57 Assert.assertNotNull(fieldReference); in testJavaReferenceFromSmali() 58 Assert.assertEquals("out", fieldReference.getName()); in testJavaReferenceFromSmali() 59 Assert.assertNotNull(fieldReference.getFieldType()); in testJavaReferenceFromSmali() 60 …Assert.assertEquals("java.io.PrintStream", fieldReference.getFieldType().getType().getCanonicalTex… in testJavaReferenceFromSmali() 63 Assert.assertNotNull(resolvedField); in testJavaReferenceFromSmali() 64 Assert.assertEquals("out", resolvedField.getName()); in testJavaReferenceFromSmali() 65 Assert.assertNotNull(resolvedField.getContainingClass()); in testJavaReferenceFromSmali() 66 … Assert.assertEquals("java.lang.System", resolvedField.getContainingClass().getQualifiedName()); in testJavaReferenceFromSmali() 67 Assert.assertEquals("java.io.PrintStream", resolvedField.getType().getCanonicalText()); in testJavaReferenceFromSmali() [all …]
|
/external/protobuf/java/src/test/java/com/google/protobuf/ |
D | TestUtil.java | 256 import junit.framework.Assert; 540 Assert.assertTrue(message.hasOptionalInt32 ()); in assertAllFieldsSet() 541 Assert.assertTrue(message.hasOptionalInt64 ()); in assertAllFieldsSet() 542 Assert.assertTrue(message.hasOptionalUint32 ()); in assertAllFieldsSet() 543 Assert.assertTrue(message.hasOptionalUint64 ()); in assertAllFieldsSet() 544 Assert.assertTrue(message.hasOptionalSint32 ()); in assertAllFieldsSet() 545 Assert.assertTrue(message.hasOptionalSint64 ()); in assertAllFieldsSet() 546 Assert.assertTrue(message.hasOptionalFixed32 ()); in assertAllFieldsSet() 547 Assert.assertTrue(message.hasOptionalFixed64 ()); in assertAllFieldsSet() 548 Assert.assertTrue(message.hasOptionalSfixed32()); in assertAllFieldsSet() [all …]
|
/external/smali/smalidea/src/test/java/org/jf/smalidea/dexlib/ |
D | SmalideaMethodTest.java | 51 import org.junit.Assert; 95 Assert.assertEquals("Lmy/pkg/blah;", method.getDefiningClass()); in testSmalideaMethod() 96 Assert.assertEquals("someMethodName", method.getName()); in testSmalideaMethod() 97 Assert.assertEquals("I", method.getReturnType()); in testSmalideaMethod() 100 Assert.assertEquals(1, parameterTypes.size()); in testSmalideaMethod() 101 Assert.assertEquals("I", parameterTypes.get(0)); in testSmalideaMethod() 104 Assert.assertEquals(1, parameters.size()); in testSmalideaMethod() 105 Assert.assertEquals("I", parameters.get(0).getType()); in testSmalideaMethod() 106 Assert.assertEquals("edge", parameters.get(0).getName()); in testSmalideaMethod() 108 Assert.assertEquals(AccessFlags.PUBLIC.getValue(), method.getAccessFlags()); in testSmalideaMethod() [all …]
|
/external/smali/smali/src/test/java/ |
D | ByteLiteralTest.java | 30 import org.junit.Assert; 39 Assert.assertTrue(LiteralTools.parseByte("0x0T") == 0x0); in SuccessHexTests() 40 Assert.assertTrue(LiteralTools.parseByte("0x00") == 0x0); in SuccessHexTests() 41 Assert.assertTrue(LiteralTools.parseByte("0x1T") == 0x1); in SuccessHexTests() 42 Assert.assertTrue(LiteralTools.parseByte("0x12") == 0x12); in SuccessHexTests() 43 Assert.assertTrue(LiteralTools.parseByte("0x7fT") == 0x7f); in SuccessHexTests() 44 Assert.assertTrue(LiteralTools.parseByte("0x80t") == Byte.MIN_VALUE); in SuccessHexTests() 45 Assert.assertTrue(LiteralTools.parseByte("0xFFt") == -1); in SuccessHexTests() 47 Assert.assertTrue(LiteralTools.parseByte("-0x00") == 0); in SuccessHexTests() 48 Assert.assertTrue(LiteralTools.parseByte("-0x01") == -1); in SuccessHexTests() [all …]
|
D | ShortLiteralTest.java | 30 import org.junit.Assert; 39 Assert.assertTrue(LiteralTools.parseShort("0x0") == 0x0); in SuccessHexTests() 40 Assert.assertTrue(LiteralTools.parseShort("0x00") == 0x0); in SuccessHexTests() 41 Assert.assertTrue(LiteralTools.parseShort("0x1") == 0x1); in SuccessHexTests() 42 Assert.assertTrue(LiteralTools.parseShort("0x1234") == 0x1234); in SuccessHexTests() 43 Assert.assertTrue(LiteralTools.parseShort("0x7fff") == 0x7fff); in SuccessHexTests() 44 Assert.assertTrue(LiteralTools.parseShort("0x8000") == Short.MIN_VALUE); in SuccessHexTests() 45 Assert.assertTrue(LiteralTools.parseShort("0xFFFF") == -1); in SuccessHexTests() 47 Assert.assertTrue(LiteralTools.parseShort("-0x00") == 0); in SuccessHexTests() 48 Assert.assertTrue(LiteralTools.parseShort("-0x01") == -1); in SuccessHexTests() [all …]
|
D | LongLiteralTest.java | 30 import org.junit.Assert; 37 Assert.assertTrue(LiteralTools.parseLong("0x0L") == 0x0); in SuccessHexTests() 38 Assert.assertTrue(LiteralTools.parseLong("0x00L") == 0x0); in SuccessHexTests() 39 Assert.assertTrue(LiteralTools.parseLong("0x1L") == 0x1); in SuccessHexTests() 40 Assert.assertTrue(LiteralTools.parseLong("0x1234567890123456L") == 0x1234567890123456L); in SuccessHexTests() 41 Assert.assertTrue(LiteralTools.parseLong("0x7fffffffffffffffL") == 0x7fffffffffffffffL); in SuccessHexTests() 42 Assert.assertTrue(LiteralTools.parseLong("0x8000000000000000L") == Long.MIN_VALUE); in SuccessHexTests() 43 Assert.assertTrue(LiteralTools.parseLong("0xFFFFFFFFFFFFFFFFL") == -1); in SuccessHexTests() 45 Assert.assertTrue(LiteralTools.parseLong("-0x00L") == 0); in SuccessHexTests() 46 Assert.assertTrue(LiteralTools.parseLong("-0x01L") == -1); in SuccessHexTests() [all …]
|
D | ImplicitReferenceTest.java | 34 import junit.framework.Assert; 80 Assert.assertNotNull(mainMethod); in testImplicitMethodReference() 83 Assert.assertNotNull(methodImpl); in testImplicitMethodReference() 88 Assert.assertNotNull(instruction); in testImplicitMethodReference() 89 Assert.assertEquals(Opcode.INVOKE_STATIC, instruction.getOpcode()); in testImplicitMethodReference() 91 Assert.assertEquals(classDef.getType(), method.getDefiningClass()); in testImplicitMethodReference() 92 Assert.assertEquals("toString", method.getName()); in testImplicitMethodReference() 95 Assert.assertNotNull(instruction); in testImplicitMethodReference() 96 Assert.assertEquals(Opcode.INVOKE_STATIC, instruction.getOpcode()); in testImplicitMethodReference() 98 Assert.assertEquals(classDef.getType(), method.getDefiningClass()); in testImplicitMethodReference() [all …]
|
D | IntLiteralTest.java | 30 import org.junit.Assert; 38 Assert.assertTrue(LiteralTools.parseInt("0x0") == 0x0); in SuccessHexTests() 39 Assert.assertTrue(LiteralTools.parseInt("0x00") == 0x0); in SuccessHexTests() 40 Assert.assertTrue(LiteralTools.parseInt("0x1") == 0x1); in SuccessHexTests() 41 Assert.assertTrue(LiteralTools.parseInt("0x12345678") == 0x12345678); in SuccessHexTests() 42 Assert.assertTrue(LiteralTools.parseInt("0x7fffffff") == 0x7fffffff); in SuccessHexTests() 43 Assert.assertTrue(LiteralTools.parseInt("0x80000000") == Integer.MIN_VALUE); in SuccessHexTests() 44 Assert.assertTrue(LiteralTools.parseInt("0xFFFFFFFF") == -1); in SuccessHexTests() 46 Assert.assertTrue(LiteralTools.parseInt("-0x00") == 0); in SuccessHexTests() 47 Assert.assertTrue(LiteralTools.parseInt("-0x01") == -1); in SuccessHexTests() [all …]
|
/external/testng/src/test/java/test/invokedmethodlistener/ |
D | InvokedMethodListenerTest.java | 3 import org.testng.Assert; 26 Assert.assertEquals(l.getBeforeCount(), 9); in assertMethodCount() 27 Assert.assertEquals(l.getAfterCount(), 9); in assertMethodCount() 42 Assert.assertEquals(l.getSuiteStatus(), ITestResult.FAILURE); in withFailure() 43 Assert.assertTrue(null != l.getSuiteThrowable()); in withFailure() 44 Assert.assertTrue(l.getSuiteThrowable().getClass() == RuntimeException.class); in withFailure() 46 Assert.assertEquals(l.getMethodStatus(), ITestResult.FAILURE); in withFailure() 47 Assert.assertTrue(null != l.getMethodThrowable()); in withFailure() 48 Assert.assertTrue(l.getMethodThrowable().getClass() == IllegalArgumentException.class); in withFailure() 65 Assert.assertFalse(beforeSuite.getTestMethod().isAfterMethodConfiguration()); in sameMethodInvokedMultipleTimesShouldHaveDifferentTimeStamps() [all …]
|
/external/testng/src/test/java/test/name/ |
D | NameTest.java | 3 import org.testng.Assert; 26 Assert.assertTrue(adapter.getFailedTests().isEmpty()); in itestTest() 27 Assert.assertTrue(adapter.getSkippedTests().isEmpty()); in itestTest() 28 Assert.assertEquals(adapter.getPassedTests().size(), 1); in itestTest() 30 Assert.assertEquals(result.getMethod().getMethodName(), "test"); in itestTest() 31 Assert.assertEquals(result.getName(), "NAME"); in itestTest() 32 Assert.assertEquals(result.getTestName(), "NAME"); in itestTest() 43 Assert.assertTrue(adapter.getFailedTests().isEmpty()); in itestTestWithXml() 44 Assert.assertTrue(adapter.getSkippedTests().isEmpty()); in itestTestWithXml() 45 Assert.assertEquals(adapter.getPassedTests().size(), 1); in itestTestWithXml() [all …]
|
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/dexbacked/ |
D | BaseDexBufferTest.java | 34 import junit.framework.Assert; 46 Assert.assertEquals(0x44332211, dexBuf.readSmallUint(0)); in testReadSmallUintSuccess() 49 Assert.assertEquals(0, dexBuf.readSmallUint(0)); in testReadSmallUintSuccess() 52 Assert.assertEquals(0x7fffffff, dexBuf.readSmallUint(0)); in testReadSmallUintSuccess() 76 Assert.assertEquals(0x44332211, dexBuf.readSmallUint(0)); in testReadOptionalUintSuccess() 79 Assert.assertEquals(0, dexBuf.readSmallUint(0)); in testReadOptionalUintSuccess() 82 Assert.assertEquals(0x7fffffff, dexBuf.readSmallUint(0)); in testReadOptionalUintSuccess() 85 Assert.assertEquals(-1, dexBuf.readOptionalUint(0)); in testReadOptionalUintSuccess() 109 Assert.assertEquals(dexBuf.readUshort(0), 0x2211); in testReadUshort() 112 Assert.assertEquals(dexBuf.readUshort(0), 0); in testReadUshort() [all …]
|
/external/llvm/lib/IR/ |
D | Verifier.cpp | 442 #define Assert(C, ...) \ macro 447 Assert(I.getOperand(i) != nullptr, "Operand is null", &I); in visit() 453 Assert(!GV.isDeclaration() || GV.hasExternalLinkage() || in visitGlobalValue() 457 Assert(GV.getAlignment() <= Value::MaximumAlignment, in visitGlobalValue() 459 Assert(!GV.hasAppendingLinkage() || isa<GlobalVariable>(GV), in visitGlobalValue() 464 Assert(GVar && GVar->getValueType()->isArrayTy(), in visitGlobalValue() 469 Assert(!GV.hasComdat(), "Declaration may not be in a Comdat!", &GV); in visitGlobalValue() 474 Assert(GV.getInitializer()->getType() == GV.getType()->getElementType(), in visitGlobalVariable() 482 Assert(GV.getInitializer()->isNullValue(), in visitGlobalVariable() 484 Assert(!GV.isConstant(), "'common' global may not be marked constant!", in visitGlobalVariable() [all …]
|
/external/testng/src/test/java/test/hook/ |
D | HookableTest.java | 3 import org.testng.Assert; 46 Assert.assertTrue(HookSuccessTest.m_hook); in hookSuccess() 47 Assert.assertTrue(HookSuccessTest.m_testWasRun); in hookSuccess() 48 Assert.assertEquals(HookSuccessTest.m_parameter, "foo"); in hookSuccess() 57 Assert.assertTrue(HookSuccess599Test.m_hook); in issue599() 58 Assert.assertTrue(HookSuccess599Test.m_testWasRun); in issue599() 59 Assert.assertEquals(HookSuccess599Test.m_parameter, "foo"); in issue599() 76 Assert.assertTrue(HookListener.m_hook); in hookSuccessWithListener() 87 Assert.assertTrue(HookFailureTest.m_hook); in hookFailure() 88 Assert.assertFalse(HookFailureTest.m_testWasRun); in hookFailure() [all …]
|