/art/test/021-string2/src/junit/framework/ |
D | Assert.java | 59 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument 60 if (expected == null && actual == null) in assertEquals() 62 if (expected != null && expected.equals(actual)) in assertEquals() 64 failNotEquals(message, expected, actual); in assertEquals() 70 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument 71 assertEquals(null, expected, actual); in assertEquals() 76 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument 77 if (expected == null && actual == null) in assertEquals() 79 if (expected != null && expected.equals(actual)) in assertEquals() 81 throw new ComparisonFailure(message, expected, actual); in assertEquals() [all …]
|
D | ComparisonFailure.java | 18 public ComparisonFailure (String message, String expected, String actual) { in ComparisonFailure() argument 20 fExpected= expected; in ComparisonFailure() 47 String actual, expected; in getMessage() local 51 expected= fExpected; in getMessage() 54 expected= fExpected.substring(i, j+1); in getMessage() 57 expected= "..."+expected; in getMessage() 62 expected= expected+"..."; in getMessage() 66 return Assert.format(super.getMessage(), expected, actual); in getMessage()
|
/art/test/082-inline-execute/src/junit/framework/ |
D | Assert.java | 59 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument 60 if (expected == null && actual == null) in assertEquals() 62 if (expected != null && expected.equals(actual)) in assertEquals() 64 failNotEquals(message, expected, actual); in assertEquals() 70 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument 71 assertEquals(null, expected, actual); in assertEquals() 76 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument 77 if (expected == null && actual == null) in assertEquals() 79 if (expected != null && expected.equals(actual)) in assertEquals() 81 throw new ComparisonFailure(message, expected, actual); in assertEquals() [all …]
|
D | ComparisonFailure.java | 18 public ComparisonFailure (String message, String expected, String actual) { in ComparisonFailure() argument 20 fExpected= expected; in ComparisonFailure() 47 String actual, expected; in getMessage() local 51 expected= fExpected; in getMessage() 54 expected= fExpected.substring(i, j+1); in getMessage() 57 expected= "..."+expected; in getMessage() 62 expected= expected+"..."; in getMessage() 66 return Assert.format(super.getMessage(), expected, actual); in getMessage()
|
/art/test/407-arrays/src/ |
D | TestCase.java | 24 public static void assertSame(Object expected, Object value) { in assertSame() argument 25 if (expected != value) { in assertSame() 27 String.valueOf(expected) + ", got " + String.valueOf(value)); in assertSame() 31 public static void assertNotSame(Object expected, Object value) { in assertNotSame() argument 32 if (expected == value) { in assertNotSame() 34 "Objects are the same: " + String.valueOf(expected)); in assertNotSame() 38 public static void assertEquals(String message, int expected, int actual) { in assertEquals() argument 39 if (expected != actual) { in assertEquals() 44 public static void assertEquals(int expected, int actual) { in assertEquals() argument 45 if (expected != actual) { in assertEquals() [all …]
|
/art/test/406-fields/src/ |
D | TestCase.java | 24 public static void assertSame(Object expected, Object value) { in assertSame() argument 25 if (expected != value) { in assertSame() 27 String.valueOf(expected) + ", got " + String.valueOf(value)); in assertSame() 31 public static void assertNotSame(Object expected, Object value) { in assertNotSame() argument 32 if (expected == value) { in assertNotSame() 34 "Objects are the same: " + String.valueOf(expected)); in assertNotSame() 38 public static void assertEquals(String message, int expected, int actual) { in assertEquals() argument 39 if (expected != actual) { in assertEquals() 44 public static void assertEquals(int expected, int actual) { in assertEquals() argument 45 if (expected != actual) { in assertEquals() [all …]
|
/art/test/041-narrowing/ |
D | expected.txt | 9 (byte) Double.NaN = 00 expected: 00 10 (short) Double.NaN = 0000 expected: 0000 11 (int) Double.NaN = 00000000 expected: 00000000 12 (long) Double.NaN = 0000000000000000 expected: 0000000000000000 14 (byte) Float.NaN = 00 expected: 00 15 (short) Float.NaN = 0000 expected: 0000 16 (int) Float.NaN = 00000000 expected: 00000000 17 (long) Float.NaN = 0000000000000000 expected: 0000000000000000 19 (byte) Double.POSITIVE_INFINITY = ff expected: ff 20 (short) Double.POSITIVE_INFINITY = ffff expected: ffff [all …]
|
/art/compiler/optimizing/ |
D | pretty_printer_test.cc | 30 static void TestCode(const uint16_t* data, const char* expected) { in TestCode() argument 39 ASSERT_STREQ(expected, printer.str().c_str()); in TestCode() 46 const char* expected = in TEST() local 54 TestCode(data, expected); in TEST() 58 const char* expected = in TEST() local 73 TestCode(data, expected); in TEST() 77 const char* expected = in TEST() local 94 TestCode(data, expected); in TEST() 98 const char* expected = in TEST() local 115 TestCode(data1, expected); in TEST() [all …]
|
D | ssa_test.cc | 78 static void TestCode(const uint16_t* data, const char* expected) { in TestCode() argument 100 ASSERT_STREQ(expected, printer.str().c_str()); in TestCode() 105 const char* expected = in TEST() local 128 TestCode(data, expected); in TEST() 134 const char* expected = in TEST() local 159 TestCode(data, expected); in TEST() 165 const char* expected = in TEST() local 192 TestCode(data, expected); in TEST() 197 const char* expected = in TEST() local 223 TestCode(data, expected); in TEST() [all …]
|
D | liveness_test.cc | 42 static void TestCode(const uint16_t* data, const char* expected) { in TestCode() argument 68 ASSERT_STREQ(expected, buffer.str().c_str()); in TestCode() 72 const char* expected = in TEST() local 91 TestCode(data, expected); in TEST() 95 const char* expected = in TEST() local 113 TestCode(data, expected); in TEST() 117 const char* expected = in TEST() local 142 TestCode(data, expected); in TEST() 156 const char* expected = in TEST() local 190 TestCode(data, expected); in TEST() [all …]
|
D | live_interval_test.cc | 167 const size_t expected[][2], in RangesEquals() 175 if (expected[i][0] != current->GetStart()) { in RangesEquals() 178 if (expected[i][1] != current->GetEnd()) { in RangesEquals() 199 static constexpr size_t expected[][2] = {{0, 1}}; in TEST() local 200 ASSERT_TRUE(RangesEquals(interval, expected, arraysize(expected))); in TEST() 210 static constexpr size_t expected[][2] = {{0, 3}}; in TEST() local 211 ASSERT_TRUE(RangesEquals(interval, expected, arraysize(expected))); in TEST() 221 static constexpr size_t expected[][2] = {{0, 1}}; in TEST() local 222 ASSERT_TRUE(RangesEquals(interval, expected, arraysize(expected))); in TEST() 232 static constexpr size_t expected[][2] = {{0, 4}}; in TEST() local [all …]
|
/art/test/075-verification-error/ |
D | expected.txt | 1 Got expected InstantationError 2 Got expected NoSuchFieldError 3 Got expected NoSuchFieldError 4 Got expected NoSuchMethodError 5 Got expected NoSuchMethodError 6 Got expected IllegalAccessError (ifield) 7 Got expected IllegalAccessError (sfield) 8 Got expected IllegalAccessError (method) 9 Got expected IllegalAccessError (smethod) 10 Got expected IllegalAccessError (meth-class) [all …]
|
/art/test/042-new-instance/ |
D | expected.txt | 2 Got expected PackageAccess complaint 4 Got expected InstantationError 5 Cons LocalClass failed as expected 9 Cons got expected PackageAccess complaint 10 Cons got expected InstantationException 11 Cons got expected PackageAccess2 complaint
|
/art/test/044-proxy/ |
D | expected.txt | 48 Got expected ioobe 51 Got expected ie 58 Dupe threw expected exception 59 Clash threw expected exception 60 Clash2 threw expected exception 61 Clash3 threw expected exception 62 Clash4 threw expected exception 65 Got expected UTE 68 Got expected IOE 71 Got expected IOE [all …]
|
/art/runtime/gc/accounting/ |
D | card_table-inl.h | 137 byte expected, new_value; in ModifyCardsAtomic() local 139 expected = *card_cur; in ModifyCardsAtomic() 140 new_value = visitor(expected); in ModifyCardsAtomic() 141 } while (expected != new_value && UNLIKELY(!byte_cas(expected, new_value, card_cur))); in ModifyCardsAtomic() 142 if (expected != new_value) { in ModifyCardsAtomic() 143 modified(card_cur, expected, new_value); in ModifyCardsAtomic() 151 byte expected, new_value; in ModifyCardsAtomic() local 153 expected = *card_end; in ModifyCardsAtomic() 154 new_value = visitor(expected); in ModifyCardsAtomic() 155 } while (expected != new_value && UNLIKELY(!byte_cas(expected, new_value, card_end))); in ModifyCardsAtomic() [all …]
|
/art/test/201-built-in-exception-detail-messages/src/ |
D | Main.java | 33 private static void assertEquals(String expected, String actual) { in assertEquals() argument 34 if (expected == null && actual == null) { in assertEquals() 37 if (expected != null && expected.equals(actual)) { in assertEquals() 41 "expected: " + expected + "\n" + in assertEquals() 360 } catch (IllegalArgumentException expected) { in reflection() 361 … assertEquals("field A.b has type java.lang.String, got java.lang.Integer", expected.getMessage()); in reflection() 369 } catch (IllegalArgumentException expected) { in reflection() 370 assertEquals("field A.i has type int, got null", expected.getMessage()); in reflection() 378 } catch (IllegalArgumentException expected) { in reflection() 379 assertEquals("field A.i has type int, got java.lang.String", expected.getMessage()); in reflection() [all …]
|
/art/test/084-class-init/ |
D | expected.txt | 2 Got expected EIIE for FIELD0 3 Got expected NCDFE for FIELD0 4 Got expected NCDFE for FIELD1 5 Got expected 'hello!' from Exploder
|
/art/runtime/ |
D | utils_test.cc | 239 std::vector<std::string> expected; in TEST_F() local 241 expected.clear(); in TEST_F() 245 EXPECT_EQ(expected, actual); in TEST_F() 249 EXPECT_EQ(expected, actual); in TEST_F() 251 expected.clear(); in TEST_F() 252 expected.push_back("foo"); in TEST_F() 256 EXPECT_EQ(expected, actual); in TEST_F() 260 EXPECT_EQ(expected, actual); in TEST_F() 264 EXPECT_EQ(expected, actual); in TEST_F() 266 expected.push_back("bar"); in TEST_F() [all …]
|
/art/test/068-classloader/ |
D | expected.txt | 3 Got expected access exception #1 4 Got expected CNFE/IAE #2 5 Got expected CNFE/IAE #3 6 Got expected LinkageError on DE
|
/art/test/046-reflect/ |
D | expected.txt | 32 Invoke got expected exception: 44 got expected illegal obj store exc 45 got the other expected access exc 46 got expected arg exc 58 got expected long->int failure 59 got expected long->int failure 60 got expected string->int failure 61 got expected int->short failure 72 got expected double->long failure 73 as expected: aPrivateInt not found [all …]
|
/art/test/202-thread-oome/src/ |
D | Main.java | 22 } catch (OutOfMemoryError expected) { in main() 24 if (!expected.getMessage().startsWith("pthread_create (3GB stack) failed: ")) { in main() 25 throw new AssertionError(expected); in main()
|
/art/test/070-nio-buffer/ |
D | expected.txt | 2 Got expected buffer overflow exception 3 Got expected out-of-bounds exception 4 Got expected buffer overflow exception
|
/art/test/004-UnsafeTest/src/ |
D | Main.java | 25 private static void check(int actual, int expected, String msg) { in check() argument 26 if (actual != expected) { in check() 27 System.out.println(msg + " : " + actual + " != " + expected); in check() 32 private static void check(long actual, long expected, String msg) { in check() argument 33 if (actual != expected) { in check() 34 System.out.println(msg + " : " + actual + " != " + expected); in check()
|
/art/compiler/ |
D | output_stream_test.cc | 29 void CheckOffset(off_t expected) { in CheckOffset() argument 31 EXPECT_EQ(expected, actual); in CheckOffset() 53 uint8_t expected[] = { in CheckTestOutput() local 56 EXPECT_EQ(sizeof(expected), actual.size()); in CheckTestOutput() 57 EXPECT_EQ(0, memcmp(expected, &actual[0], actual.size())); in CheckTestOutput()
|
/art/runtime/base/ |
D | histogram_test.cc | 125 …std::string expected("UpdateRange:\tSum: 2.654ms 99% C.I. 15us-212us Avg: 126.380us Max: 212us\n"); in TEST() local 128 EXPECT_EQ(expected, stream.str()); in TEST() 168 std::string expected("Reset:\tSum: 2.654ms 99% C.I. 15us-212us Avg: 126.380us Max: 212us\n"); in TEST() local 171 EXPECT_EQ(expected, stream.str()); in TEST() 207 …std::string expected("MultipleCreateHist:\tSum: 2.654ms 99% C.I. 15us-212us Avg: 126.380us Max: 21… in TEST() local 210 EXPECT_EQ(expected, stream.str()); in TEST() 222 std::string expected = "SingleValue:\tSum: 1us 99% C.I. 1us-1us Avg: 1us Max: 1us\n"; in TEST() local 224 EXPECT_EQ(expected, stream.str()); in TEST() 265 …std::string expected = "SpikyValues:\tSum: 14.350ms 99% C.I. 0.089us-2541.825us Avg: 95.033us Max:… in TEST() local 267 EXPECT_EQ(expected, stream.str()); in TEST()
|