Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 27) sorted by relevance

12

/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger.tests/src/com/android/ide/eclipse/gltrace/format/
DGLMessageFormatterTest.java66 String expected = String.format("glBindBuffer(target = %s, buffer = %s)", in testBindBuffer() local
71 assertEquals(expected, actual); in testBindBuffer()
83 String expected = String.format("%s(name = %s) = (const GLchar*) %s", Function.glGetString, in testGlGetString() local
87 assertEquals(expected, actual); in testGlGetString()
98 String expected = "eglBindAPI(arg = GL_POINTS) = (GLenum) GL_NO_ERROR"; in testGLEnum0() local
101 assertEquals(expected, actual); in testGLEnum0()
111 String expected = "glTexImage2D(level = 1, width = 2, pixels = 0xbadc0ffe)"; in testMessageWithPointer() local
114 assertEquals(expected, actual); in testMessageWithPointer()
124 String expected = "glMultMatrixf(m = 0xbadc0ffe)"; in testMessageWithMismatchedPointer() local
127 assertEquals(expected, actual); in testMessageWithMismatchedPointer()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/transforms/
DPredicates.java23 public IntegerPropertyEqualsPredicate(Integer expected) { in IntegerPropertyEqualsPredicate() argument
24 mExpected = expected.intValue(); in IntegerPropertyEqualsPredicate()
33 public static IPredicate matchesInteger(int expected) { in matchesInteger() argument
34 return new IntegerPropertyEqualsPredicate(expected); in matchesInteger()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DSwtUtilsTest.java71 RGB expected = inPalette.getRGB( inImage.getRGB( x, y)); in testImageConvertNoAlpha() local
73 assertEquals(expected, actual); in testImageConvertNoAlpha()
125 RGB expected = inPalette.getRGB( inImage.getRGB( x, y)); in testImageConvertGlobalAlpha() local
127 assertEquals(expected, actual); in testImageConvertGlobalAlpha()
155 RGB expected = inPalette.getRGB( inImage.getRGB( x, y)); in testImageConvertAlpha() local
157 assertEquals(expected, actual); in testImageConvertAlpha()
192 RGB expected = inPalette.getRGB( inImage.getRGB( x, y)); in testImageConvertAlphaMultiplied() local
194 assertEquals(expected, actual); in testImageConvertAlphaMultiplied()
258 RGB expected = new RGB(r, g, 0); in testCrop1() local
260 assertEquals(expected, actual); in testCrop1()
[all …]
DSimpleElementTest.java36 private static void assertArrayEquals(Object[] expected, Object[] actual) { in assertArrayEquals() argument
37 if (!Arrays.equals(expected, actual)) { in assertArrayEquals()
40 String strExpected = expected == null ? "(null)" : Arrays.toString(expected); in assertArrayEquals()
45 expected == null ? 0 : expected.length, in assertArrayEquals()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/refactorings/renamepackage/
DApplicationPackageNameRefactoringTest.java108 @NonNull String expected) throws Exception { in renamePackage() argument
110 renamePackage(project, newName, expected); in renamePackage()
116 @NonNull String expected) throws Exception { in renamePackage() argument
126 checkRefactoring(refactoring, expected); in renamePackage()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/formatting/
DEclipseXmlPrettyPrinterTest.java49 String expected, String delimiter, String startNodeName, in checkFormat() argument
80 if (!expected.equals(formatted)) { in checkFormat()
83 assertEquals(expected, formatted); in checkFormat()
116 String expected, String delimiter) throws Exception { in checkFormat() argument
117 checkFormat(prefs, baseLocation, xml, expected, delimiter, null, false, null); in checkFormat()
121 String expected) throws Exception { in checkFormat() argument
122 checkFormat(prefs, baseLocation, xml, expected, "\n"); //$NON-NLS-1$ in checkFormat()
124 private void checkFormat(String baseLocation, String xml, String expected) in checkFormat() argument
127 checkFormat(prefs, baseLocation, xml, expected); in checkFormat()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/refactorings/core/
DRenameResourceParticipantTest.java342 @NonNull String expected) throws Exception { in renameResource() argument
343 renameResource(testData, resource, updateReferences, newName, expected, null); in renameResource()
351 @NonNull String expected, in renameResource() argument
354 renameResource(project, resource, updateReferences, newName, expected, expectedWarnings); in renameResource()
362 @NonNull String expected, in renameResource() argument
400 checkRefactoring(refactoring, expected, expectedWarnings); in renameResource()
DAndroidPackageRenameParticipantTest.java207 @NonNull String expected, in renamePackage() argument
212 renamePackage(project, renameSubpackages, updateReferences, newName, expected, in renamePackage()
221 @NonNull String expected, in renamePackage() argument
235 checkRefactoring(refactoring, expected, expectedWarnings); in renamePackage()
DRefactoringTestBase.java54 protected void checkRefactoring(Refactoring refactoring, String expected) throws Exception { in checkRefactoring() argument
55 checkRefactoring(refactoring, expected, null); in checkRefactoring()
63 protected void checkRefactoring(Refactoring refactoring, String expected, in checkRefactoring() argument
87 if (!expected.trim().equals(explanation.trim())) { // allow trimming endlines in expected in checkRefactoring()
88 assertEquals(expected, explanation); in checkRefactoring()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/formatting/
DAndroidXmlFormattingStrategyTest.java32 String expected, XmlFormatPreferences prefs) in check() argument
61 assertEquals(expected, contents); in check()
67 String before, String insert, String expected, in check() argument
78 check(before, replaceStart, replaceEnd, insert, expected, prefs); in check()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/wizards/templates/
DFmEscapeXmlTextMethodTest.java29 private void check(String s, String expected) throws TemplateModelException { in check() argument
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmExtractLettersMethodTest.java29 private void check(String s, String expected) throws TemplateModelException { in check() argument
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmActivityToLayoutMethodTest.java29 private void check(String s, String expected) throws TemplateModelException { in check() argument
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmEscapeXmlAttributeMethodTest.java29 private void check(String s, String expected) throws TemplateModelException { in check() argument
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmSlashedPackageNameMethodTest.java29 private void check(String s, String expected) throws TemplateModelException { in check() argument
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmCamelCaseToUnderscoreMethodTest.java29 private void check(String s, String expected) throws TemplateModelException { in check() argument
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmLayoutToActivityMethodTest.java29 private void check(String s, String expected) throws TemplateModelException { in check() argument
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmUnderscoreToCamelCaseMethodTest.java29 private void check(String s, String expected) throws TemplateModelException { in check() argument
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmEscapeXmlStringMethodTest.java29 private void check(String s, String expected) throws TemplateModelException { in check() argument
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmClassNameToResourceMethodTest.java29 private void check(String s, String expected) throws TemplateModelException { in check() argument
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/
DAndroidDoubleClickStrategyTest.java54 private void checkWord(String before, String expected) throws Exception { in checkWord() argument
69 assertEquals(expected, after); in checkWord()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/refactorings/core/
DAndroidTypeRenameParticipantTest.java141 @NonNull String expected) throws Exception { in renameType() argument
158 checkRefactoring(refactoring, expected); in renameType()
DAndroidTypeMoveParticipantTest.java105 @NonNull String expected) throws Exception { in moveType() argument
133 checkRefactoring(refactoring, expected); in moveType()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DLayoutTestBase.java165 public static void assertContainsSame(Collection<String> expected, Collection<String> actual) { in assertContainsSame() argument
166 if (expected.size() != actual.size()) { in assertContainsSame()
167 fail("Collection sizes differ; expected " + expected.size() + " but was " in assertContainsSame()
173 List<String> expectedList = new ArrayList<String>(expected); in assertContainsSame()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/properties/
DValueCompleterTest.java42 List<String> expected) { in checkCompletion() argument
55 assertEquals(expected.toString(), actual.toString()); in checkCompletion()

12