/external/libbrillo/brillo/ |
D | value_conversion_unittest.cc | 45 #define EXPECT_JSON_EQ(expected, actual) \ argument 46 EXPECT_PRED2(IsEqualValue, *ParseValue(expected), actual) 51 int actual; in TEST() local 52 EXPECT_TRUE(FromValue(*ParseValue("123"), &actual)); in TEST() 53 EXPECT_EQ(123, actual); in TEST() 55 EXPECT_TRUE(FromValue(*ParseValue("-123"), &actual)); in TEST() 56 EXPECT_EQ(-123, actual); in TEST() 58 EXPECT_FALSE(FromValue(*ParseValue("true"), &actual)); in TEST() 62 bool actual; in TEST() local 63 EXPECT_TRUE(FromValue(*ParseValue("false"), &actual)); in TEST() [all …]
|
/external/vogar/src/junit/framework/ |
D | Assert.java | 25 public static void assertEquals(String message, boolean expected, boolean actual) { in assertEquals() argument 26 if (actual != expected) { in assertEquals() 27 fail(message, "expected " + expected + " but was " + actual); in assertEquals() 31 public static void assertEquals(boolean expected, boolean actual) { in assertEquals() argument 32 assertEquals("", expected, actual); in assertEquals() 35 public static void assertEquals(String message, byte expected, byte actual) { in assertEquals() argument 36 if (actual != expected) { in assertEquals() 37 fail(message, "expected " + expected + " but was " + actual); in assertEquals() 41 public static void assertEquals(byte expected, byte actual) { in assertEquals() argument 42 assertEquals("", expected, actual); in assertEquals() [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/junit/framework/ |
D | Assert.java | 62 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 …]
|
/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/v8/build/android/pylib/utils/ |
D | proguard_test.py | 15 actual = proguard.Parse( 28 self.assertEquals(expected, actual) 31 actual = proguard.Parse( 50 self.assertEquals(expected, actual) 53 actual = proguard.Parse( 79 self.assertEquals(expected, actual) 82 actual = proguard.Parse( 111 self.assertEquals(expected, actual) 114 actual = proguard.Parse( 159 self.assertEquals(expected, actual) [all …]
|
/external/junit/src/org/junit/ |
D | Assert.java | 118 Object actual) { in assertEquals() argument 119 if (expected == null && actual == null) in assertEquals() 121 if (expected != null && isEquals(expected, actual)) in assertEquals() 123 else if (expected instanceof String && actual instanceof String) { in assertEquals() 126 (String) actual); in assertEquals() 128 failNotEquals(message, expected, actual); in assertEquals() 131 private static boolean isEquals(Object expected, Object actual) { in isEquals() argument 132 return expected.equals(actual); in isEquals() 146 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument 147 assertEquals(null, expected, actual); in assertEquals() [all …]
|
/external/mockito/src/org/mockito/internal/matchers/ |
D | ArrayEquals.java | 21 public boolean matches(Object actual) { in matches() argument 23 if (wanted == null || actual == null) { in matches() 24 return super.matches(actual); in matches() 25 } else if (wanted instanceof boolean[] && actual instanceof boolean[]) { in matches() 26 return Arrays.equals((boolean[]) wanted, (boolean[]) actual); in matches() 27 } else if (wanted instanceof byte[] && actual instanceof byte[]) { in matches() 28 return Arrays.equals((byte[]) wanted, (byte[]) actual); in matches() 29 } else if (wanted instanceof char[] && actual instanceof char[]) { in matches() 30 return Arrays.equals((char[]) wanted, (char[]) actual); in matches() 31 } else if (wanted instanceof double[] && actual instanceof double[]) { in matches() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | compactdecimalformattest.cpp | 290 UnicodeString actual; in TestSignificantDigits() local 291 cdf->format(123456.0, actual); in TestSignificantDigits() 294 if (actual != expected) { in TestSignificantDigits() 295 errln(UnicodeString("Fail: Expected: ") + expected + UnicodeString(" Got: ") + actual); in TestSignificantDigits() 306 UnicodeString actual; in TestAPIVariants() local 312 actual.remove(); in TestAPIVariants() 315 cdf->format((double)123456.0, actual, pos); in TestAPIVariants() 316 if (actual != expected || pos.getEndIndex() != 3) { in TestAPIVariants() 318 … "Got: \"" + actual + "\", pos " + pos.getEndIndex()); in TestAPIVariants() 321 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/chromium-trace/catapult/third_party/vinn/third_party/parse5/test/fixtures/ |
D | simple_api_parser_test.js | 21 var actual = '', 24 actual += '<!DOCTYPE ' + name; 27 actual += ' PUBLIC "' + publicId + '"'; 30 actual += ' SYSTEM'; 33 actual += ' "' + systemId + '"'; 36 actual += '>'; 40 actual += '<' + tagName; 44 actual += ' ' + attrs[i].name + '="' + attrs[i].value + '"'; 47 actual += selfClosing ? '/>' : '>'; 51 actual += '</' + tagName + '>'; [all …]
|
/external/v8/test/promises-aplus/lib/ |
D | assert.js | 34 function fail(actual, expected, message, operator) { argument 36 ': (' + actual + ' ' + operator + ' ' + expected + ') should hold'); 47 function equal(actual, expected, message) { argument 48 if (!(expected == actual)) { 49 fail(actual, expected, message, '=='); 53 function notEqual(actual, expected, message) { argument 54 if (!(expected != actual)) { 55 fail(actual, expected, message, '!='); 59 function strictEqual(actual, expected, message) { argument 60 if (!(expected === actual)) { [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | imager.c | 66 ssize_t actual; in ext2fs_image_inode_write() local 113 actual = write(fd, cp, fs->blocksize * d); in ext2fs_image_inode_write() 114 if (actual == -1) { in ext2fs_image_inode_write() 118 if (actual != (ssize_t) (fs->blocksize * d)) { in ext2fs_image_inode_write() 145 ssize_t actual; in ext2fs_image_inode_read() local 163 actual = read(fd, buf, fs->blocksize * c); in ext2fs_image_inode_read() 164 if (actual == -1) { in ext2fs_image_inode_read() 168 if (actual != (ssize_t) (fs->blocksize * c)) { in ext2fs_image_inode_read() 194 ssize_t actual; in ext2fs_image_super_write() local 206 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/chromium-trace/catapult/third_party/gsutil/gslib/tests/ |
D | test_naming.py | 95 actual = list(self._test_wildcard_iterator( 97 self.assertEqual(1, len(actual)) 98 self.assertEqual('f0', actual[0].root_object.name) 107 actual = set(str(u) for u in self._test_wildcard_iterator( 113 self.assertEqual(expected, actual) 130 actual = set(str(u) for u in self._test_wildcard_iterator( 136 self.assertEqual(expected, actual) 145 actual = set(str(u) for u in self._test_wildcard_iterator( 153 self.assertEqual(expected, actual) 161 actual = set(str(u) for u in self._test_wildcard_iterator( [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/autotest/client/site_tests/security_AccountsBaseline/ |
D | security_AccountsBaseline.py | 17 def match_passwd(expected, actual): argument 20 if expected[1:4] != actual[1:4]: 23 tuple(expected[1:4]), expected[0], tuple(actual[1:4])) 29 def match_group(expected, actual): argument 33 if expected[1:3] != actual[1:3]: 37 tuple(expected[1:3]), expected[0], tuple(actual[1:3])) 38 if set(expected[3].split(',')) != set(actual[3].split(',')): 42 expected[3], expected[0], actual[3]) 82 for actual in actual_entries: 83 expected = [x for x in expected_entries if x[0] == actual[0]] [all …]
|
/external/v8/build/android/pylib/gtest/ |
D | gtest_test_instance_test.py | 22 actual = gtest_test_instance.ParseGTestListTests(raw_output) 29 self.assertEqual(expected, actual) 37 actual = gtest_test_instance.ParseGTestListTests(raw_output) 42 self.assertEqual(expected, actual) 50 actual = gtest_test_instance.ParseGTestListTests(raw_output) 55 self.assertEqual(expected, actual) 63 actual = gtest_test_instance.ParseGTestListTests(raw_output) 68 self.assertEqual(expected, actual) 76 actual = gtest_test_instance.ParseGTestListTests(raw_output) 81 self.assertEqual(expected, actual)
|
/external/lldb/test/unittest2/ |
D | util.py | 25 def sorted_list_difference(expected, actual): argument 39 a = actual[j] 48 while actual[j] == a: 57 while actual[j] == a: 61 unexpected.extend(actual[j:]) 65 def unorderable_list_difference(expected, actual, ignore_duplicate=False): argument 77 actual.remove(item) 81 for lst in expected, actual: 88 while actual: 89 item = actual.pop() [all …]
|
/external/libchrome/base/ |
D | md5_unittest.cc | 27 std::string actual = MD5DigestToBase16(digest); in TEST() local 30 EXPECT_EQ(expected, actual); in TEST() 145 std::string actual = MD5String(""); in TEST() local 147 EXPECT_EQ(expected, actual); in TEST() 151 std::string actual = MD5String("a"); in TEST() local 153 EXPECT_EQ(expected, actual); in TEST() 157 std::string actual = MD5String("abc"); in TEST() local 159 EXPECT_EQ(expected, actual); in TEST() 163 std::string actual = MD5String("message digest"); in TEST() local 165 EXPECT_EQ(expected, actual); in TEST() [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 …]
|
/external/embunit/inc/ |
D | AssertImpl.h | 44 void assertImplementationInt(int expected,int actual, long line, const char *file); 45 void assertImplementationCStr(const char *expected,const char *actual, long line, const char *file); 47 #define TEST_ASSERT_EQUAL_STRING(expected,actual)\ argument 48 …if (expected && actual && (stdimpl_strcmp(expected,actual)==0)) {} else {assertImplementationCStr(… 50 #define TEST_ASSERT_EQUAL_INT(expected,actual)\ argument 51 …if (expected == actual) {} else {assertImplementationInt(expected,actual,__LINE__,__FILE__);return…
|