Home
last modified time | relevance | path

Searched refs:actual (Results 1 – 25 of 73) sorted by relevance

123

/art/libartbase/base/
Dutils_test.cc45 std::vector<std::string> actual; in TEST_F() local
50 actual.clear(); in TEST_F()
51 Split("", ':', &actual); in TEST_F()
52 EXPECT_EQ(expected, actual); in TEST_F()
54 actual.clear(); in TEST_F()
55 Split(":", ':', &actual); in TEST_F()
56 EXPECT_EQ(expected, actual); in TEST_F()
61 actual.clear(); in TEST_F()
62 Split(":foo", ':', &actual); in TEST_F()
63 EXPECT_EQ(expected, actual); in TEST_F()
[all …]
Dmem_map.cc194 uintptr_t actual = reinterpret_cast<uintptr_t>(actual_ptr); in CheckMapRequest() local
224 actual, expected); in CheckMapRequest()
264 void* actual = TargetMMap(ptr, page_aligned_byte_count, prot, flags, fd, offset); in TryMemMapLow4GB() local
265 if (actual != MAP_FAILED) { in TryMemMapLow4GB()
268 if (reinterpret_cast<uintptr_t>(actual) + page_aligned_byte_count >= 4 * GB) { in TryMemMapLow4GB()
269 TargetMUnmap(actual, page_aligned_byte_count); in TryMemMapLow4GB()
270 actual = MAP_FAILED; in TryMemMapLow4GB()
273 return actual; in TryMemMapLow4GB()
344 void* actual = MapInternal(addr, in MapAnonymous() local
353 if (actual == MAP_FAILED) { in MapAnonymous()
[all …]
/art/test/412-new-array/src/
DTestCase.java38 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()
46 throw new AssertionError("Expected " + expected + " got " + actual); in assertEquals()
70 public static void assertEquals(Object expected, Object actual) { in assertEquals() argument
71 if (!expected.equals(actual)) { in assertEquals()
72 String msg = "Expected \"" + expected + "\" but got \"" + actual + "\""; in assertEquals()
77 public static void assertNotEquals(int expected, int actual) { in assertNotEquals() argument
78 if (expected == actual) { in assertNotEquals()
[all …]
/art/test/406-fields/src/
DTestCase.java38 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()
46 throw new AssertionError("Expected " + expected + " got " + actual); in assertEquals()
70 public static void assertEquals(Object expected, Object actual) { in assertEquals() argument
71 if (!expected.equals(actual)) { in assertEquals()
72 String msg = "Expected \"" + expected + "\" but got \"" + actual + "\""; in assertEquals()
77 public static void assertNotEquals(int expected, int actual) { in assertNotEquals() argument
78 if (expected == actual) { in assertNotEquals()
[all …]
/art/test/407-arrays/src/
DTestCase.java38 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()
46 throw new AssertionError("Expected " + expected + " got " + actual); in assertEquals()
70 public static void assertEquals(Object expected, Object actual) { in assertEquals() argument
71 if (!expected.equals(actual)) { in assertEquals()
72 String msg = "Expected \"" + expected + "\" but got \"" + actual + "\""; in assertEquals()
77 public static void assertNotEquals(int expected, int actual) { in assertNotEquals() argument
78 if (expected == actual) { in assertNotEquals()
[all …]
/art/test/414-static-fields/src/
DTestCase.java38 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()
46 throw new AssertionError("Expected " + expected + " got " + actual); in assertEquals()
70 public static void assertEquals(Object expected, Object actual) { in assertEquals() argument
71 if (!expected.equals(actual)) { in assertEquals()
72 String msg = "Expected \"" + expected + "\" but got \"" + actual + "\""; in assertEquals()
77 public static void assertNotEquals(int expected, int actual) { in assertNotEquals() argument
78 if (expected == actual) { in assertNotEquals()
[all …]
/art/test/021-string2/src/junit/framework/
DAssert.java62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
63 if (expected == null && actual == null) in assertEquals()
65 if (expected != null && expected.equals(actual)) in assertEquals()
67 failNotEquals(message, expected, actual); in assertEquals()
73 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument
74 assertEquals(null, expected, actual); in assertEquals()
79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument
80 if (expected == null && actual == null) in assertEquals()
82 if (expected != null && expected.equals(actual)) in assertEquals()
85 throw new ComparisonFailure(cleanMessage, expected, actual); in assertEquals()
[all …]
DComparisonCompactor.java19 public ComparisonCompactor(int contextLength, String expected, String actual) { in ComparisonCompactor() argument
22 fActual= actual; in ComparisonCompactor()
34 String actual= compactString(fActual); in compact() local
36 return format(message, expected, actual); in compact()
81 private static String format(String message, Object expected, Object actual) { in format() argument
85 return formatted+"expected:<"+expected+"> but was:<"+actual+">"; in format()
/art/test/082-inline-execute/src/junit/framework/
DAssert.java62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
63 if (expected == null && actual == null) in assertEquals()
65 if (expected != null && expected.equals(actual)) in assertEquals()
67 failNotEquals(message, expected, actual); in assertEquals()
73 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument
74 assertEquals(null, expected, actual); in assertEquals()
79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument
80 if (expected == null && actual == null) in assertEquals()
82 if (expected != null && expected.equals(actual)) in assertEquals()
85 throw new ComparisonFailure(cleanMessage, expected, actual); in assertEquals()
[all …]
DComparisonCompactor.java19 public ComparisonCompactor(int contextLength, String expected, String actual) { in ComparisonCompactor() argument
22 fActual= actual; in ComparisonCompactor()
34 String actual= compactString(fActual); in compact() local
36 return format(message, expected, actual); in compact()
81 private static String format(String message, Object expected, Object actual) { in format() argument
85 return formatted+"expected:<"+expected+"> but was:<"+actual+">"; in format()
/art/test/712-varhandle-invocations/src/
DVarHandleUnitTest.java53 public final void assertEquals(boolean expected, boolean actual) { in assertEquals() argument
54 assertEquals(Boolean.valueOf(expected), Boolean.valueOf(actual)); in assertEquals()
57 public final void assertEquals(byte expected, byte actual) { in assertEquals() argument
58 assertEquals(Byte.valueOf(expected), Byte.valueOf(actual)); in assertEquals()
61 public final void assertEquals(char expected, char actual) { in assertEquals() argument
62 assertEquals(Character.valueOf(expected), Character.valueOf(actual)); in assertEquals()
65 public final void assertEquals(short expected, short actual) { in assertEquals() argument
66 assertEquals(Short.valueOf(expected), Short.valueOf(actual)); in assertEquals()
69 public final void assertEquals(int expected, int actual) { in assertEquals() argument
70 assertEquals(Integer.valueOf(expected), Integer.valueOf(actual)); in assertEquals()
[all …]
/art/compiler/linker/
Doutput_stream_test.cc32 off_t actual = output_stream_->Seek(0, kSeekCurrent); in CheckOffset() local
33 EXPECT_EQ(expected, actual); in CheckOffset()
56 void CheckTestOutput(const std::vector<uint8_t>& actual) { in CheckTestOutput() argument
60 EXPECT_EQ(sizeof(expected), actual.size()); in CheckTestOutput()
61 EXPECT_EQ(0, memcmp(expected, &actual[0], actual.size())); in CheckTestOutput()
74 std::vector<uint8_t> actual(in->GetLength()); in TEST_F() local
75 bool readSuccess = in->ReadFully(&actual[0], actual.size()); in TEST_F()
77 CheckTestOutput(actual); in TEST_F()
89 std::vector<uint8_t> actual(in->GetLength()); in TEST_F() local
90 bool readSuccess = in->ReadFully(&actual[0], actual.size()); in TEST_F()
[all …]
/art/test/631-checker-get-class/src/
DMain.java99 int actual = bar(new Main()); in main() local
100 if (actual != 42) { in main()
101 throw new Error("Expected 42, got " + actual); in main()
103 actual = bar(new SubMain()); in main()
104 if (actual != 4) { in main()
105 throw new Error("Expected 4, got " + actual); in main()
/art/test/566-checker-codegen-select/src/
DMain.java79 public static void assertIntEquals(int expected, int actual) { in assertIntEquals() argument
80 if (expected != actual) { in assertIntEquals()
81 throw new Error(expected + " != " + actual); in assertIntEquals()
85 public static void assertLongEquals(long expected, long actual) { in assertLongEquals() argument
86 if (expected != actual) { in assertLongEquals()
87 throw new Error(expected + " != " + actual); in assertLongEquals()
/art/test/671-npe-field-opts/src/
DMain.java74 static void assertEquals(Object expected, Object actual) { in assertEquals() argument
75 if (!expected.equals(actual)) { in assertEquals()
76 String msg = "Expected \"" + expected + "\" but got \"" + actual + "\""; in assertEquals()
81 static void assertEquals(int expected, int actual) { in assertEquals() argument
82 if (expected != actual) { in assertEquals()
83 throw new AssertionError("Expected " + expected + " got " + actual); in assertEquals()
/art/test/140-field-packing/src/
DGapOrder.java54 int actual = -1; in CheckField() local
57 actual = (Integer)getOffset.invoke(field); in CheckField()
63 if (actual != expected) { in CheckField()
66 fieldName, actual, expected)); in CheckField()
/art/test/561-divrem/src/
DMain.java18 public static void assertEquals(int expected, int actual) { in assertEquals() argument
19 if (expected != actual) { in assertEquals()
20 throw new Error("Expected " + expected + ", got " + actual); in assertEquals()
24 public static void assertEquals(long expected, long actual) { in assertEquals() argument
25 if (expected != actual) { in assertEquals()
26 throw new Error("Expected " + expected + ", got " + actual); in assertEquals()
/art/test/410-floats/src/
DMain.java129 public static void assertEquals(float expected, float actual) { in assertEquals() argument
130 if (expected != actual) { in assertEquals()
131 throw new AssertionError("Expected " + expected + " got " + actual); in assertEquals()
135 public static void assertEquals(double expected, double actual) { in assertEquals() argument
136 if (expected != actual) { in assertEquals()
137 throw new AssertionError("Expected " + expected + " got " + actual); in assertEquals()
/art/test/004-UnsafeTest/src/
DMain.java21 private static void check(int actual, int expected, String msg) { in check() argument
22 if (actual != expected) { in check()
23 System.out.println(msg + " : " + actual + " != " + expected); in check()
28 private static void check(long actual, long expected, String msg) { in check() argument
29 if (actual != expected) { in check()
30 System.out.println(msg + " : " + actual + " != " + expected); in check()
35 private static void check(float actual, float expected, String msg) { in check() argument
36 if (actual != expected) { in check()
37 System.out.println(msg + " : " + actual + " != " + expected); in check()
42 private static void check(double actual, double expected, String msg) { in check() argument
[all …]
/art/test/550-checker-regression-wide-store/src/
DMain.java31 private static void assertEquals(int expected, int actual) { in assertEquals() argument
32 if (expected != actual) { in assertEquals()
33 throw new Error("Wrong result: " + expected + " != " + actual); in assertEquals()
/art/test/552-checker-primitive-typeprop/src/
DMain.java24 private static void assertEquals(int expected, int actual) { in assertEquals() argument
25 if (expected != actual) { in assertEquals()
26 throw new Error("Wrong result, expected=" + expected + ", actual=" + actual); in assertEquals()
/art/test/566-polymorphic-inlining/src/
DMain.java24 public static void assertEquals(Object expected, Object actual) { in assertEquals() argument
25 if (expected != actual) { in assertEquals()
26 throw new Error("Expected " + expected + ", got " + actual); in assertEquals()
30 public static void assertEquals(int expected, int actual) { in assertEquals() argument
31 if (expected != actual) { in assertEquals()
32 throw new Error("Expected " + expected + ", got " + actual); in assertEquals()
/art/cmdline/
Dcmdline_parser_test.cc34 bool UsuallyEquals(double expected, double actual);
48 bool UsuallyEquals(double expected, double actual) { in UsuallyEquals() argument
52 FloatingPoint act(actual); in UsuallyEquals()
59 bool UsuallyEquals(const T& expected, const T& actual, in UsuallyEquals() argument
62 return expected == actual; in UsuallyEquals()
67 const ParseStringList<Separator>& actual) { in UsuallyEquals() argument
68 return expected == static_cast<std::vector<std::string>>(actual); in UsuallyEquals()
79 bool UsuallyEquals(const T& expected, const T& actual, in UsuallyEquals() argument
84 return memcmp(std::addressof(expected), std::addressof(actual), sizeof(T)) == 0; in UsuallyEquals()
87 bool UsuallyEquals(const XGcOption& expected, const XGcOption& actual) { in UsuallyEquals() argument
[all …]
/art/test/610-arraycopy/src/
DMain.java32 public static void expectEquals(int expected, int actual) { in expectEquals() argument
33 if (expected != actual) { in expectEquals()
34 throw new Error("Expected " + expected + ", got " + actual); in expectEquals()
/art/test/979-const-method-handle/src/
DMain.java41 private static void assertEquals(Object expected, Object actual) { in assertEquals() argument
42 if (!expected.equals(actual)) { in assertEquals()
43 throw new AssertionError("Assertion failure: " + expected + " != " + actual); in assertEquals()
80 MethodType actual = methodType0(); in repeatConstMethodType0() local
81 assertEquals(expected, actual); in repeatConstMethodType0()
90 MethodType actual = methodType1(); in repeatConstMethodType1() local
91 assertEquals(expected, actual); in repeatConstMethodType1()
198 String actual = (String) getNameHandle().invokeExact(); in repeatConstMethodHandle() local
199 assertEquals(value, actual); in repeatConstMethodHandle()

123