Home
last modified time | relevance | path

Searched refs:expectedValue (Results 1 – 25 of 77) sorted by relevance

1234

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DTypedValueTest.java62 TypedValue expectedValue = new TypedValue(); in testSetTo() local
63 expectedValue.assetCookie = 1; in testSetTo()
64 expectedValue.data = 3; in testSetTo()
65 expectedValue.density = 4; in testSetTo()
66 expectedValue.resourceId = 5; in testSetTo()
67 expectedValue.string = "string"; in testSetTo()
68 expectedValue.type = 6; in testSetTo()
71 actualValue.setTo(expectedValue); in testSetTo()
73 assertThat(expectedValue.assetCookie, equalTo(actualValue.assetCookie)); in testSetTo()
74 assertThat(expectedValue.data, equalTo(actualValue.data)); in testSetTo()
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadReference/
DForceEarlyReturnTest.java52 static Value expectedValue; field in ForceEarlyReturnTest
110 forceEarlyReturnPacket.setNextValueAsValue(expectedValue); in RunTestForceEarlyReturn()
128 if (!actualValue.equals(toString(expectedValue))) { in RunTestForceEarlyReturn()
131 + " expected:<" + expectedValue.toString() + "> but was:<" in RunTestForceEarlyReturn()
153 expectedValue = new Value(EXPECTED_INT); in testForceEarlyReturn_ReturnInt()
169 expectedValue = new Value(EXPECTED_SHORT); in testForceEarlyReturn_ReturnShort()
185 expectedValue = new Value(EXPECTED_BYTE); in testForceEarlyReturn_ReturnByte()
201 expectedValue = new Value(EXPECTED_CHAR); in testForceEarlyReturn_ReturnChar()
217 expectedValue = new Value(EXPECTED_BOOLEAN); in testForceEarlyReturn_ReturnBoolean()
231 expectedValue = new Value(Tag.VOID_TAG, 0); in testForceEarlyReturn_NotSuspended()
[all …]
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/dexbacked/
DBaseDexReaderTest.java69 private void performSizedIntTest(int expectedValue, byte[] buf) { in performSizedIntTest() argument
72 Assert.assertEquals(expectedValue, reader.readSizedInt(buf.length)); in performSizedIntTest()
124 private void performSizedSmallUintTest(int expectedValue, byte[] buf) { in performSizedSmallUintTest() argument
127 Assert.assertEquals(expectedValue, reader.readSizedSmallUint(buf.length)); in performSizedSmallUintTest()
194 private void performSizedRightExtendedIntTest(int expectedValue, byte[] buf) { in performSizedRightExtendedIntTest() argument
197 Assert.assertEquals(expectedValue, reader.readSizedRightExtendedInt(buf.length)); in performSizedRightExtendedIntTest()
303 private void performSizedRightExtendedLongTest(long expectedValue, byte[] buf) { in performSizedRightExtendedLongTest() argument
306 Assert.assertEquals(expectedValue, reader.readSizedRightExtendedLong(buf.length)); in performSizedRightExtendedLongTest()
412 private void performSizedLongTest(long expectedValue, byte[] buf) { in performSizedLongTest() argument
415 Assert.assertEquals(expectedValue, reader.readSizedLong(buf.length)); in performSizedLongTest()
DBaseDexReaderSleb128Test.java251 private void performTest(int expectedValue, byte[] buf) { in performTest() argument
252 performTest(expectedValue, buf, buf.length); in performTest()
255 private void performTest(int expectedValue, byte[] buf, int expectedLength) { in performTest() argument
258 Assert.assertEquals(expectedValue, reader.readSleb128()); in performTest()
DBaseDexReaderLeb128Test.java244 private void performTest(int expectedValue, byte[] buf) { in performTest() argument
245 performTest(expectedValue, buf, buf.length); in performTest()
248 private void performTest(int expectedValue, byte[] buf, int expectedLength) { in performTest() argument
251 Assert.assertEquals(expectedValue, reader.readSmallUleb128()); in performTest()
/external/icu/icu4c/source/test/intltest/
Dustrtest.cpp66 UnicodeString expectedValue; in TestBasicManipulation() local
71 expectedValue = "Now is the time for all good men to come swiftly to the aid of the party.\n"; in TestBasicManipulation()
72 if (test1 != expectedValue) in TestBasicManipulation()
73 errln("insert() failed: expected \"" + expectedValue + "\"\n,got \"" + test1 + "\""); in TestBasicManipulation()
76 if(*c != expectedValue) { in TestBasicManipulation()
77 errln("clone()->insert() failed: expected \"" + expectedValue + "\"\n,got \"" + *c + "\""); in TestBasicManipulation()
82 expectedValue = "Now is the time for all good men to come to the aid of the party.\n"; in TestBasicManipulation()
83 if (test1 != expectedValue) in TestBasicManipulation()
84 errln("remove() failed: expected \"" + expectedValue + "\"\n,got \"" + test1 + "\""); in TestBasicManipulation()
87 expectedValue = "Now is the time for all good men to come to the aid of their country.\n"; in TestBasicManipulation()
[all …]
/external/icu/icu4c/source/tools/toolutil/
Ddenseranges.cpp123 int32_t expectedValue=minValue; in uprv_makeDenseRanges() local
125 ++expectedValue; in uprv_makeDenseRanges()
127 if(expectedValue!=actualValue) { in uprv_makeDenseRanges()
128 gaps.add(expectedValue, (int64_t)actualValue-(int64_t)expectedValue); in uprv_makeDenseRanges()
129 expectedValue=actualValue; in uprv_makeDenseRanges()
/external/icu/icu4c/source/test/cintltst/
Dchashtst.c37 int32_t expectedValue);
41 int32_t expectedValue);
357 int32_t expectedValue) { in _get() argument
363 } else if (value != expectedValue) { in _get()
365 key, value, expectedValue); in _get()
374 int32_t expectedValue) { in _remove() argument
376 if (value != expectedValue) { in _remove()
378 key, value, expectedValue); in _remove()
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DResultSetMetaDataTest.java66 Object expectedValue = thePublicStatics.get(fieldName); in testPublicStatics() local
67 if (expectedValue == null) { in testPublicStatics()
71 expectedValue, fieldValue); in testPublicStatics()
DConnectionTest.java71 Object expectedValue = thePublicStatics.get(fieldName); in testPublicStatics() local
72 if (expectedValue == null) { in testPublicStatics()
76 expectedValue, fieldValue); in testPublicStatics()
DStatementTest.java74 Object expectedValue = thePublicStatics.get(fieldName); in testPublicStatics() local
75 if (expectedValue == null) { in testPublicStatics()
79 expectedValue, fieldValue); in testPublicStatics()
DParameterMetaDataTest.java76 Object expectedValue = thePublicStatics.get(fieldName); in testPublicStatics() local
77 if (expectedValue == null) { in testPublicStatics()
81 expectedValue, fieldValue); in testPublicStatics()
DResultSetTest.java84 Object expectedValue = thePublicStatics.get(fieldName); in testPublicStatics() local
85 if (expectedValue == null) { in testPublicStatics()
89 expectedValue, fieldValue); in testPublicStatics()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUTF16Test.java1229 String expectedValue = in TestReplace() local
1231 if (!result.equals(expectedValue)) { in TestReplace()
1232 errln("findAndReplace failed: expected \"" + expectedValue + in TestReplace()
1236 expectedValue = test1; in TestReplace()
1237 if (!result.equals(expectedValue)) { in TestReplace()
1238 errln("findAndReplace failed: expected \"" + expectedValue + in TestReplace()
1243 expectedValue = "One potatoe two potatoe three potatoe four\n"; in TestReplace()
1244 if (!result.equals(expectedValue)) { in TestReplace()
1245 errln("findAndReplace failed: expected \"" + expectedValue + in TestReplace()
1250expectedValue = "One potato\ud800\udc00 two potato\ud800\udc00 three potato\ud800\udc00 four\n"; in TestReplace()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUTF16Test.java1233 String expectedValue = in TestReplace() local
1235 if (!result.equals(expectedValue)) { in TestReplace()
1236 errln("findAndReplace failed: expected \"" + expectedValue + in TestReplace()
1240 expectedValue = test1; in TestReplace()
1241 if (!result.equals(expectedValue)) { in TestReplace()
1242 errln("findAndReplace failed: expected \"" + expectedValue + in TestReplace()
1247 expectedValue = "One potatoe two potatoe three potatoe four\n"; in TestReplace()
1248 if (!result.equals(expectedValue)) { in TestReplace()
1249 errln("findAndReplace failed: expected \"" + expectedValue + in TestReplace()
1254expectedValue = "One potato\ud800\udc00 two potato\ud800\udc00 three potato\ud800\udc00 four\n"; in TestReplace()
[all …]
/external/nanohttpd/webserver/src/test/java/fi/iki/elonen/
DTestCorsHttpServer.java139 final String expectedValue = "origin"; in testAccessControlAllowHeaderUsesSystemPropertyWhenSet() local
140 … System.setProperty(SimpleWebServer.ACCESS_CONTROL_ALLOW_HEADER_PROPERTY_NAME, expectedValue); in testAccessControlAllowHeaderUsesSystemPropertyWhenSet()
147 …s("Cors should have added a header: Access-Control-Allow-Headers: " + expectedValue, expectedValue, in testAccessControlAllowHeaderUsesSystemPropertyWhenSet()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StackFrame/
DGetValues002Test.java51 Value expectedValue = new Value(StackTrace002Debuggee.BYTE_PARAM_VALUE); in testGetValues002_Byte() local
53 suspensionMethodInfo.addVariable("param", expectedValue); in testGetValues002_Byte()
55 methodInfo.addVariable("param", expectedValue); in testGetValues002_Byte()
67 Value expectedValue = new Value(StackTrace002Debuggee.CHAR_PARAM_VALUE); in testGetValues003_Char() local
69 suspensionMethodInfo.addVariable("param", expectedValue); in testGetValues003_Char()
71 methodInfo.addVariable("param", expectedValue); in testGetValues003_Char()
DJDWPStackFrameAccessTest.java259 Value expectedValue; in checkStackFrame() local
261 expectedValue = variableInfo.getValueOnFirstSuspension(); in checkStackFrame()
263 expectedValue = variableInfo.getValueOnSecondSuspension(); in checkStackFrame()
265 …Writer.println("Check variable \"" + variableName + "\" contains value \"" + expectedValue + "\""); in checkStackFrame()
267 testVarInfo.getSlot(), expectedValue.getTag()); in checkStackFrame()
270 expectedValue, actual); in checkStackFrame()
/external/smali/smalidea/src/test/java/org/jf/smalidea/
DSmaliLiteralTest.java41 private void doTest(long expectedValue, String literalValue) { in doTest() argument
57 Assert.assertEquals(expectedValue, literalElement.getIntegralValue()); in doTest()
/external/guava/guava-tests/test/com/google/common/collect/
DImmutableRangeMapTest.java108 Integer expectedValue = null; in testGet() local
110 expectedValue = 1; in testGet()
112 expectedValue = 2; in testGet()
115 assertEquals(expectedValue, rangeMap.get(i)); in testGet()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DListenableFutureTester.java67 public void testCompletedFuture(@Nullable Object expectedValue) in testCompletedFuture() argument
76 assertEquals(expectedValue, future.get()); in testCompletedFuture()
/external/mockftpserver/tags/2.0-rc1/src/test/groovy/org/mockftpserver/fake/command/
DAcctCommandHandlerTest.groovy81 def expectedValue = isAccountNameInSession ? ACCOUNT_NAME : null
82 assert session.getAttribute(SessionKeys.ACCOUNT_NAME) == expectedValue
/external/mockftpserver/tags/2.0.2/src/test/groovy/org/mockftpserver/fake/command/
DAcctCommandHandlerTest.groovy81 def expectedValue = isAccountNameInSession ? ACCOUNT_NAME : null
82 assert session.getAttribute(SessionKeys.ACCOUNT_NAME) == expectedValue
/external/mockftpserver/tags/2.0.1/src/test/groovy/org/mockftpserver/fake/command/
DAcctCommandHandlerTest.groovy81 def expectedValue = isAccountNameInSession ? ACCOUNT_NAME : null
82 assert session.getAttribute(SessionKeys.ACCOUNT_NAME) == expectedValue
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/
DAcctCommandHandlerTest.groovy81 def expectedValue = isAccountNameInSession ? ACCOUNT_NAME : null
82 assert session.getAttribute(SessionKeys.ACCOUNT_NAME) == expectedValue

1234