/external/libbrillo/brillo/ |
D | value_conversion_unittest.cc | 44 #define EXPECT_JSON_EQ(expected, actual) \ argument 45 EXPECT_PRED2(IsEqualValue, *ParseValue(expected), actual) 50 int actual; in TEST() local 51 EXPECT_TRUE(FromValue(*ParseValue("123"), &actual)); in TEST() 52 EXPECT_EQ(123, actual); in TEST() 54 EXPECT_TRUE(FromValue(*ParseValue("-123"), &actual)); in TEST() 55 EXPECT_EQ(-123, actual); in TEST() 57 EXPECT_FALSE(FromValue(*ParseValue("true"), &actual)); in TEST() 61 bool actual; in TEST() local 62 EXPECT_TRUE(FromValue(*ParseValue("false"), &actual)); in TEST() [all …]
|
/external/testng/src/main/java/org/testng/asserts/ |
D | Assertion.java | 70 private final T actual; field in Assertion.SimpleAssert 78 public SimpleAssert(T actual, T expected) { in SimpleAssert() argument 79 this(actual, expected, null); in SimpleAssert() 82 public SimpleAssert(T actual, T expected, String message) { in SimpleAssert() argument 83 this.actual = actual; in SimpleAssert() 95 return actual; in getActual() 171 public <T> void assertEquals(final T actual, final T expected, final String message) { in assertEquals() argument 172 doAssert(new SimpleAssert<T>(actual, expected, message) { in assertEquals() 175 org.testng.Assert.assertEquals(actual, expected, message); in assertEquals() 180 public <T> void assertEquals(final T actual, final T expected) { in assertEquals() argument [all …]
|
/external/testng/src/main/java/org/testng/ |
D | AssertJUnit.java | 73 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument 74 if((expected == null) && (actual == null)) { in assertEquals() 77 if((expected != null) && expected.equals(actual)) { in assertEquals() 80 failNotEquals(message, expected, actual); in assertEquals() 87 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument 88 assertEquals(null, expected, actual); in assertEquals() 94 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument 95 if((expected == null) && (actual == null)) { in assertEquals() 98 if((expected != null) && expected.equals(actual)) { in assertEquals() 101 throw new AssertionError(format(message, expected, actual)); in assertEquals() [all …]
|
D | Assert.java | 111 static public void assertEquals(Object actual, Object expected, String message) { in assertEquals() argument 113 assertArrayEquals(actual, expected, message); in assertEquals() 116 assertEqualsImpl(actual, expected, message); in assertEquals() 124 private static void assertEqualsImpl(Object actual, Object expected, in assertEqualsImpl() argument 126 if((expected == null) && (actual == null)) { in assertEqualsImpl() 129 if(expected == null ^ actual == null) { in assertEqualsImpl() 130 failNotEquals(actual, expected, message); in assertEqualsImpl() 132 if (expected.equals(actual) && actual.equals(expected)) { in assertEqualsImpl() 135 failNotEquals(actual, expected, message); in assertEqualsImpl() 138 private static void assertArrayEquals(Object actual, Object expected, String message) { in assertArrayEquals() argument [all …]
|
/external/junit/src/main/java/junit/framework/ |
D | Assert.java | 71 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument 72 if (expected == null && actual == null) { in assertEquals() 75 if (expected != null && expected.equals(actual)) { in assertEquals() 78 failNotEquals(message, expected, actual); in assertEquals() 85 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument 86 assertEquals(null, expected, actual); in assertEquals() 92 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument 93 if (expected == null && actual == null) { in assertEquals() 96 if (expected != null && expected.equals(actual)) { in assertEquals() 100 throw new ComparisonFailure(cleanMessage, expected, actual); in assertEquals() [all …]
|
D | TestCase.java | 243 public static void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument 244 Assert.assertEquals(message, expected, actual); in assertEquals() 252 public static void assertEquals(Object expected, Object actual) { in assertEquals() argument 253 Assert.assertEquals(expected, actual); in assertEquals() 260 public static void assertEquals(String message, String expected, String actual) { in assertEquals() argument 261 Assert.assertEquals(message, expected, actual); in assertEquals() 268 public static void assertEquals(String expected, String actual) { in assertEquals() argument 269 Assert.assertEquals(expected, actual); in assertEquals() 278 public static void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() argument 279 Assert.assertEquals(message, expected, actual, delta); in assertEquals() [all …]
|
/external/easymock/src/org/easymock/internal/matchers/ |
D | ArrayEquals.java | 31 public boolean matches(Object actual) { in matches() argument 34 && (actual == null || actual instanceof boolean[])) { in matches() 35 return Arrays.equals((boolean[]) expected, (boolean[]) actual); in matches() 37 && (actual == null || actual instanceof byte[])) { in matches() 38 return Arrays.equals((byte[]) expected, (byte[]) actual); in matches() 40 && (actual == null || actual instanceof char[])) { in matches() 41 return Arrays.equals((char[]) expected, (char[]) actual); in matches() 43 && (actual == null || actual instanceof double[])) { in matches() 44 return Arrays.equals((double[]) expected, (double[]) actual); in matches() 46 && (actual == null || actual instanceof float[])) { in matches() [all …]
|
/external/junit/src/main/java/org/junit/ |
D | Assert.java | 110 Object actual) { in assertEquals() argument 111 if (equalsRegardingNull(expected, actual)) { in assertEquals() 113 } else if (expected instanceof String && actual instanceof String) { in assertEquals() 116 (String) actual); in assertEquals() 118 failNotEquals(message, expected, actual); in assertEquals() 122 private static boolean equalsRegardingNull(Object expected, Object actual) { in equalsRegardingNull() argument 124 return actual == null; in equalsRegardingNull() 127 return isEquals(expected, actual); in equalsRegardingNull() 130 private static boolean isEquals(Object expected, Object actual) { in isEquals() argument 131 return expected.equals(actual); in isEquals() [all …]
|
D | ComparisonFailure.java | 36 public ComparisonFailure(String message, String expected, String actual) { in ComparisonFailure() argument 39 this.fActual = actual; in ComparisonFailure() 81 private final String actual; field in ComparisonFailure.ComparisonCompactor 89 public ComparisonCompactor(int contextLength, String expected, String actual) { in ComparisonCompactor() argument 92 this.actual = actual; in ComparisonCompactor() 96 if (expected == null || actual == null || expected.equals(actual)) { in compact() 97 return Assert.format(message, expected, actual); in compact() 109 int end = Math.min(expected.length(), actual.length()); in sharedPrefix() 111 if (expected.charAt(i) != actual.charAt(i)) { in sharedPrefix() 121 actual.length() - prefix.length()) - 1; in sharedSuffix() [all …]
|
/external/mockito/src/main/java/org/mockito/internal/matchers/ |
D | ArrayEquals.java | 17 public boolean matches(Object actual) { in matches() argument 19 if (wanted == null || actual == null) { in matches() 20 return super.matches(actual); in matches() 21 } else if (wanted instanceof boolean[] && actual instanceof boolean[]) { in matches() 22 return Arrays.equals((boolean[]) wanted, (boolean[]) actual); in matches() 23 } else if (wanted instanceof byte[] && actual instanceof byte[]) { in matches() 24 return Arrays.equals((byte[]) wanted, (byte[]) actual); in matches() 25 } else if (wanted instanceof char[] && actual instanceof char[]) { in matches() 26 return Arrays.equals((char[]) wanted, (char[]) actual); in matches() 27 } else if (wanted instanceof double[] && actual instanceof double[]) { in matches() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | compactdecimalformattest.cpp | 292 UnicodeString actual; in TestSignificantDigits() local 293 cdf->format(123456.0, actual); in TestSignificantDigits() 296 if (actual != expected) { in TestSignificantDigits() 297 errln(UnicodeString("Fail: Expected: ") + expected + UnicodeString(" Got: ") + actual); in TestSignificantDigits() 308 UnicodeString actual; in TestAPIVariants() local 314 actual.remove(); in TestAPIVariants() 317 cdf->format((double)123456.0, actual, pos); in TestAPIVariants() 318 if (actual != expected || pos.getEndIndex() != 3) { in TestAPIVariants() 320 … "Got: \"" + actual + "\", pos " + pos.getEndIndex()); in TestAPIVariants() 323 actual.remove(); in TestAPIVariants() [all …]
|
/external/testng/src/test/java/org/testng/ |
D | AssertTest.java | 20 Object[] actual= null; in nullObjectArrayAssertEquals() local 21 Assert.assertEquals(actual, expected); in nullObjectArrayAssertEquals() 27 Object[] actual= null; in nullObjectArrayAssertNoOrder() local 28 Assert.assertEqualsNoOrder(actual, expected); in nullObjectArrayAssertNoOrder() 34 Collection actual = null; in nullCollectionAssertEquals() local 35 Assert.assertEquals(actual, expected); in nullCollectionAssertEquals() 41 Set actual = null; in nullSetAssertEquals() local 42 Assert.assertEquals(actual, expected); in nullSetAssertEquals() 48 Map actual = null; in nullMapAssertEquals() local 49 Assert.assertEquals(actual, expected); in nullMapAssertEquals() [all …]
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/io/ |
D | FileMatchers.java | 41 @Override protected Long featureValueOf(File actual) { return actual.length(); } in aFileWithSize() 47 @Override protected String featureValueOf(File actual) { return actual.getName(); } 53 @Override protected String featureValueOf(File actual) { 55 return actual.getCanonicalPath(); 65 … @Override protected String featureValueOf(File actual) { return actual.getAbsolutePath(); } 70 boolean check(File actual); 74 @Override public boolean check(File actual) { return actual.canWrite(); } 77 @Override public boolean check(File actual) { return actual.canRead(); } 81 @Override public boolean check(File actual) { return actual.isFile(); } 85 @Override public boolean check(File actual) { return actual.isDirectory(); } [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_dictcomps.py | 14 actual = {k: k + 10 for k in range(10)} 15 self.assertEqual(actual, expected) 18 actual = {k: v for k in range(10) for v in range(10) if k == v} 19 self.assertEqual(actual, expected) 26 actual = {k: None for k in range(10)} 27 self.assertEqual(actual, expected) 36 actual = {k: v for v in range(10) for k in range(v * 9, v * 10)} 38 self.assertEqual(actual, expected) 43 actual = {g: None for g in range(10)} 44 self.assertEqual(actual, expected) [all …]
|
/external/pdfium/testing/ |
D | gtest_mac.mm | 23 id<NSObject> actual) { 24 if (expected == actual || [expected isEqual:actual]) { 29 std::string(StringDescription(actual)), false); 36 id<NSObject> actual) { 37 if (expected != actual && ![expected isEqual:actual]) { 42 << "), actual: " << StringDescription(expected) << " vs " 43 << StringDescription(actual); 50 const NSRect& actual) { 51 if (NSEqualRects(expected, actual)) { 56 [NSStringFromRect(actual) UTF8String], false); [all …]
|
/external/pdfium/core/fdrm/crypto/ |
D | fx_crypt_unittest.cpp | 41 std::string actual = CRYPT_ToBase16(data); in TEST() local 44 EXPECT_EQ(expected, actual); in TEST() 141 std::string actual = CRYPT_MD5String(""); in TEST() local 143 EXPECT_EQ(expected, actual); in TEST() 147 std::string actual = CRYPT_MD5String("a"); in TEST() local 149 EXPECT_EQ(expected, actual); in TEST() 153 std::string actual = CRYPT_MD5String("abc"); in TEST() local 155 EXPECT_EQ(expected, actual); in TEST() 159 std::string actual = CRYPT_MD5String("message digest"); in TEST() local 161 EXPECT_EQ(expected, actual); in TEST() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | imager.c | 67 ssize_t actual; in ext2fs_image_inode_write() local 114 actual = write(fd, cp, fs->blocksize * d); in ext2fs_image_inode_write() 115 if (actual == -1) { in ext2fs_image_inode_write() 119 if (actual != (ssize_t) (fs->blocksize * d)) { in ext2fs_image_inode_write() 146 ssize_t actual; in ext2fs_image_inode_read() local 164 actual = read(fd, buf, fs->blocksize * c); in ext2fs_image_inode_read() 165 if (actual == -1) { in ext2fs_image_inode_read() 169 if (actual != (ssize_t) (fs->blocksize * c)) { in ext2fs_image_inode_read() 195 ssize_t actual; in ext2fs_image_super_write() local 207 actual = write(fd, buf, fs->blocksize); in ext2fs_image_super_write() [all …]
|
/external/autotest/server/cros/ap_configurators/ |
D | ap_configurator_factory_unittest.py | 157 actual = self.factory.get_ap_configurators_by_spec(spec=spec) 158 self.assertEquals([self.mock_ap1, self.mock_ap2].sort(), actual.sort()) 161 actual = self.factory.get_ap_configurators_by_spec(spec=spec) 162 self.assertEquals([self.mock_ap2], actual) 170 actual = self.factory.get_ap_configurators_by_spec(spec=spec) 171 self.assertEquals([self.mock_ap1, self.mock_ap2].sort(), actual.sort()) 174 actual = self.factory.get_ap_configurators_by_spec(spec=spec) 175 self.assertEquals([self.mock_ap2], actual) 182 actual = self.factory.get_ap_configurators_by_spec(spec=spec) 183 self.assertEquals([self.mock_ap1], actual) [all …]
|
/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
D | matrix_test_helpers.h | 31 const Matrix<T>& actual) { in ValidateMatrixEquality() argument 32 EXPECT_EQ(expected.num_rows(), actual.num_rows()); in ValidateMatrixEquality() 33 EXPECT_EQ(expected.num_columns(), actual.num_columns()); in ValidateMatrixEquality() 36 const T* const* actual_elements = actual.elements(); in ValidateMatrixEquality() 45 const Matrix<float>& actual) { in ValidateMatrixEqualityFloat() argument 46 EXPECT_EQ(expected.num_rows(), actual.num_rows()); in ValidateMatrixEqualityFloat() 47 EXPECT_EQ(expected.num_columns(), actual.num_columns()); in ValidateMatrixEqualityFloat() 50 const float* const* actual_elements = actual.elements(); in ValidateMatrixEqualityFloat() 60 const Matrix<complex<float> >& actual) { in ValidateMatrixEqualityComplexFloat() 61 EXPECT_EQ(expected.num_rows(), actual.num_rows()); in ValidateMatrixEqualityComplexFloat() [all …]
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | LittleEndianDataOutputStreamTest.java | 129 byte[] actual = new byte[12]; in testWriteChars() 130 in.readFully(actual); in testWriteChars() 131 assertEquals('r', actual[0]); in testWriteChars() 132 assertEquals(0, actual[1]); in testWriteChars() 133 assertEquals((byte) 0xC9, actual[2]); in testWriteChars() local 134 assertEquals(0, actual[3]); in testWriteChars() 135 assertEquals('s', actual[4]); in testWriteChars() 136 assertEquals(0, actual[5]); in testWriteChars() 137 assertEquals('u', actual[6]); in testWriteChars() 138 assertEquals(0, actual[7]); in testWriteChars() [all …]
|
/external/minijail/ |
D | syscall_filter_unittest.cc | 1053 struct sock_fprog actual; in TEST() local 1063 int res = compile_filter(policy_file, &actual, USE_RET_KILL, NO_LOGGING); in TEST() 1072 EXPECT_EQ(actual.len, 13); in TEST() 1073 EXPECT_ARCH_VALIDATION(actual.filter); in TEST() 1074 EXPECT_EQ_STMT(actual.filter + ARCH_VALIDATION_LEN, in TEST() 1077 EXPECT_ALLOW_SYSCALL(actual.filter + ARCH_VALIDATION_LEN + 1, __NR_read); in TEST() 1078 EXPECT_ALLOW_SYSCALL(actual.filter + ARCH_VALIDATION_LEN + 3, __NR_write); in TEST() 1079 EXPECT_ALLOW_SYSCALL(actual.filter + ARCH_VALIDATION_LEN + 5, in TEST() 1081 EXPECT_ALLOW_SYSCALL(actual.filter + ARCH_VALIDATION_LEN + 7, __NR_exit); in TEST() 1082 EXPECT_EQ_STMT(actual.filter + ARCH_VALIDATION_LEN + 9, in TEST() [all …]
|
/external/flatbuffers/tests/FlatBuffers.Test/ |
D | Assert.cs | 30 public AssertFailedException(object expected, object actual) in AssertFailedException() argument 33 _actual = actual; in AssertFailedException() 48 public AssertArrayFailedException(int index, object expected, object actual) in AssertArrayFailedException() argument 52 _actual = actual; in AssertArrayFailedException() 78 public static void AreEqual<T>(T expected, T actual) in AreEqual() argument 80 if (!expected.Equals(actual)) in AreEqual() 82 throw new AssertFailedException(expected, actual); in AreEqual() 86 public static void ArrayEqual<T>(T[] expected, T[] actual) in ArrayEqual() argument 88 if (expected.Length != actual.Length) in ArrayEqual() 90 throw new AssertFailedException(expected, actual); in ArrayEqual() [all …]
|
/external/autotest/client/site_tests/security_AccountsBaseline/ |
D | security_AccountsBaseline.py | 61 def match_passwd(expected, actual): argument 64 if expected[1:4] != actual[1:4]: 67 tuple(expected[1:4]), expected[0], tuple(actual[1:4])) 73 def match_group(expected, actual): argument 77 if expected[1:3] != actual[1:3]: 81 tuple(expected[1:3]), expected[0], tuple(actual[1:3])) 82 if set(expected[3].split(',')) != set(actual[3].split(',')): 86 expected[3], expected[0], actual[3]) 123 for actual in actual_entries: 125 if entry[0] == actual[0]] [all …]
|
/external/python/cpython2/Lib/unittest/ |
D | util.py | 21 def sorted_list_difference(expected, actual): argument 35 a = actual[j] 44 while actual[j] == a: 53 while actual[j] == a: 57 unexpected.extend(actual[j:]) 62 def unorderable_list_difference(expected, actual, ignore_duplicate=False): argument 74 actual.remove(item) 78 for lst in expected, actual: 85 while actual: 86 item = actual.pop() [all …]
|
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/bsdiff/ |
D | BsPatchTest.java | 88 byte[] actual = newData.toByteArray(); in testTransformBytes() 89 Assert.assertArrayEquals(expectedNewData, actual); in testTransformBytes() 177 String actual = expected.getMessage(); in testApplyPatch_BadSignature() 178 Assert.assertEquals("bad signature", actual); in testApplyPatch_BadSignature() 200 String actual = expected.getMessage(); in testApplyPatch_NewLengthNegative() 201 Assert.assertEquals("bad newSize", actual); in testApplyPatch_NewLengthNegative() 224 String actual = expected.getMessage(); in testApplyPatch_NewLengthTooLarge() 225 Assert.assertEquals("bad newSize", actual); in testApplyPatch_NewLengthTooLarge() 247 String actual = expected.getMessage(); in testApplyPatch_DiffSegmentLengthNegative() 248 Assert.assertEquals("bad diffSegmentLength", actual); in testApplyPatch_DiffSegmentLengthNegative() [all …]
|