/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/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/skia/tests/ |
D | MatrixClipCollapseTest.cpp | 142 DrawOpType draw, SkTDArray<DrawType>* expected, 146 SkTDArray<DrawType>* expected, int accumulatedClips); 149 SkTDArray<DrawType>* expected); 194 static void add_clip(ClipType clip, MatType mat, SkTDArray<DrawType>* expected) { in add_clip() argument 195 if (NULL == expected) { in add_clip() 204 *expected->append() = CONCAT; in add_clip() 205 *expected->append() = CLIP_RECT; in add_clip() 208 *expected->append() = CONCAT; in add_clip() 209 *expected->append() = CLIP_RRECT; in add_clip() 212 *expected->append() = CONCAT; in add_clip() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | PreconditionsTest.java | 40 } catch (IllegalArgumentException expected) { in testCheckArgument_simple_failure() 52 } catch (IllegalArgumentException expected) { in testCheckArgument_simpleMessage_failure() 53 verifySimpleMessage(expected); in testCheckArgument_simpleMessage_failure() 61 } catch (IllegalArgumentException expected) { in testCheckArgument_nullMessage_failure() 62 assertEquals("null", expected.getMessage()); in testCheckArgument_nullMessage_failure() 74 } catch (IllegalArgumentException expected) { in testCheckArgument_complexMessage_failure() 75 verifyComplexMessage(expected); in testCheckArgument_complexMessage_failure() 87 } catch (IllegalStateException expected) { in testCheckState_simple_failure() 99 } catch (IllegalStateException expected) { in testCheckState_simpleMessage_failure() 100 verifySimpleMessage(expected); in testCheckState_simpleMessage_failure() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | PreconditionsTest.java | 42 } catch (IllegalArgumentException expected) { in testCheckArgument_simple_failure() 54 } catch (IllegalArgumentException expected) { in testCheckArgument_simpleMessage_failure() 55 verifySimpleMessage(expected); in testCheckArgument_simpleMessage_failure() 63 } catch (IllegalArgumentException expected) { in testCheckArgument_nullMessage_failure() 64 assertEquals("null", expected.getMessage()); in testCheckArgument_nullMessage_failure() 76 } catch (IllegalArgumentException expected) { in testCheckArgument_complexMessage_failure() 77 verifyComplexMessage(expected); in testCheckArgument_complexMessage_failure() 89 } catch (IllegalStateException expected) { in testCheckState_simple_failure() 101 } catch (IllegalStateException expected) { in testCheckState_simpleMessage_failure() 102 verifySimpleMessage(expected); in testCheckState_simpleMessage_failure() [all …]
|
/external/clang/test/Analysis/ |
D | global_region_invalidation.mm | 12 clang_analyzer_eval(p == 0); // expected-warning{{TRUE}} 20 clang_analyzer_eval(globalIntRef == 42); // expected-warning{{UNKNOWN}} 31 clang_analyzer_eval(globalInt == 42); // expected-warning{{UNKNOWN}} 32 clang_analyzer_eval(globalStruct.value == 43); // expected-warning{{UNKNOWN}} 38 clang_analyzer_eval(globalInt == 42); // expected-warning{{TRUE}} 39 clang_analyzer_eval(globalStruct.value == 43); // expected-warning{{TRUE}} 42 clang_analyzer_eval(globalInt == 42); // expected-warning{{UNKNOWN}} 43 clang_analyzer_eval(globalStruct.value == 43); // expected-warning{{UNKNOWN}} 50 clang_analyzer_eval(globalInt == 42); // expected-warning{{TRUE}} 51 clang_analyzer_eval(globalStruct.value == 43); // expected-warning{{TRUE}} [all …]
|
D | ctor.mm | 22 *(char *)0 = 1; // expected-warning{{Dereference of null pointer}} 35 clang_analyzer_eval(b.x == 42); // expected-warning{{TRUE}} 49 clang_analyzer_eval(b.x == 42); // expected-warning{{TRUE}} 87 clang_analyzer_eval(a == 1); // expected-warning{{TRUE}} 88 clang_analyzer_eval(b == 2); // expected-warning{{TRUE}} 89 clang_analyzer_eval(c == 3); // expected-warning{{TRUE}} 91 clang_analyzer_eval(obj.get() == 3); // expected-warning{{TRUE}} 95 clang_analyzer_eval(base->get() == 3); // expected-warning{{TRUE}} 103 clang_analyzer_checkInlined(true); // expected-warning{{TRUE}} 126 clang_analyzer_eval(result); // expected-warning{{TRUE}} [all …]
|
D | ivars.m | 15 clang_analyzer_eval(savedID == obj->uniqueID); // expected-warning{{TRUE}} 18 clang_analyzer_eval(savedID == obj->uniqueID); // expected-warning{{UNKNOWN}} 28 clang_analyzer_eval(savedID == self->uniqueID); // expected-warning{{TRUE}} 31 clang_analyzer_eval(savedID == self->uniqueID); // expected-warning{{UNKNOWN}} 61 clang_analyzer_eval(s.a == 1); // expected-warning{{TRUE}} 62 clang_analyzer_eval(s.b == 2); // expected-warning{{TRUE}} 63 clang_analyzer_eval(c == 3); // expected-warning{{TRUE}} 64 clang_analyzer_eval(d == 4); // expected-warning{{TRUE}} 68 clang_analyzer_eval(s.a == 1); // expected-warning{{TRUE}} 69 clang_analyzer_eval(s.b == 2); // expected-warning{{TRUE}} [all …]
|
/external/strace/tests/ |
D | uid.awk | 4 expected = "getuid" 15 if (expected == "getuid") { 17 expected = "setuid" 19 } else if (expected == "setuid") { 20 expected = "getresuid" 22 } else if (expected == "getresuid") { 23 expected = "setreuid" 25 } else if (expected == "setreuid") { 26 expected = "setresuid" 28 } else if (expected == "setresuid") { [all …]
|
/external/clang/test/SemaOpenCL/ |
D | invalid-logical-ops-1.1.cl | 10 int flaf = 0.0f && 0.0f; // expected-error {{invalid operands}} 11 int flof = 0.0f || 0.0f; // expected-error {{invalid operands}} 12 float fbaf = 0.0f & 0.0f; // expected-error {{invalid operands}} 13 float fbof = 0.0f | 0.0f; // expected-error {{invalid operands}} 14 float fbxf = 0.0f ^ 0.0f; // expected-error {{invalid operands}} 15 int flai = 0.0f && 0; // expected-error {{invalid operands}} 16 int floi = 0.0f || 0; // expected-error {{invalid operands}} 17 float ibaf = 0 & 0.0f; // expected-error {{invalid operands}} 18 float ibof = 0 | 0.0f; // expected-error {{invalid operands}} 19 float bnf = ~0.0f; // expected-error {{invalid argument type}} [all …]
|
/external/clang/test/Parser/ |
D | objcxx0x-lambda-expressions.mm | 10 [foo,+] {}; // expected-error {{expected expression}} 12 []; // expected-error {{expected body of lambda expression}} 13 [=,foo+] {}; // expected-error {{expected ',' or ']' in lambda capture list}} 14 [&this] {}; // expected-error {{cannot take the address of an rvalue of type 'C *'}} 24 …[foo{bar}] () {}; // expected-error {{<initializer_list>}} expected-warning {{will change meaning}} 25 [foo = {bar}] () {}; // expected-error {{<initializer_list>}} 27 [foo(bar) baz] () {}; // expected-error {{called object type 'int' is not a function}} 30 …[foo = bar baz]; // expected-warning {{receiver type 'int'}} expected-warning {{instance method '-… 32 [get(bar) baz]; // expected-warning {{instance method '-baz'}} 33 [get(bar), baz]; // expected-error {{expected body of lambda}} [all …]
|
D | objc-recover.mm | 5 int 123 // expected-error{{expected unqualified-id}} 9 int 123 // expected-error{{expected unqualified-id}} 15 int 123 // expected-error{{expected unqualified-id}} 16 - (void)foo; // expected-note{{here}} 17 int 456 // expected-error{{expected unqualified-id}} 18 + (void)bar; // expected-note{{here}} 22 int 123 // expected-error{{expected unqualified-id}} 23 - (id)foo {} // expected-warning{{conflicting return type}} 24 int 456 // expected-error{{expected unqualified-id}} 25 + (id)bar {} // expected-warning{{conflicting return type}} [all …]
|
/external/deqp/framework/delibs/decpp/ |
D | deRandom.cpp | 54 …static const bool expected[] = { true, false, false, false, true, true, false, false, false, false… in Random_selfTest() local 56 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++) in Random_selfTest() 57 DE_TEST_ASSERT(expected[i] == rnd.getBool()); in Random_selfTest() 63 static const int expected[] = { -6628, -6483, 802, -7758, -8463, 3165, 9216, 3107, 1851, 8707 }; in Random_selfTest() local 65 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++) in Random_selfTest() 66 DE_TEST_ASSERT(expected[i] == rnd.getInt(-10000, 10000)); in Random_selfTest() 72 …static const deUint32 expected[] = { 3694588092u, 3135240271u, 882874943u, 2108407657u, 376640368u… in Random_selfTest() local 74 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++) in Random_selfTest() 75 DE_TEST_ASSERT(expected[i] == rnd.getUint32()); in Random_selfTest() 81 …static const deUint64 expected[] = { 15868135030466279503ull, 3791919008751271785ull, 161765806430… in Random_selfTest() local [all …]
|
/external/easymock/src/org/easymock/internal/matchers/ |
D | ArrayEquals.java | 26 public ArrayEquals(Object expected) { in ArrayEquals() argument 27 super(expected); in ArrayEquals() 32 Object expected = getExpected(); in matches() local 33 if (expected instanceof boolean[] in matches() 35 return Arrays.equals((boolean[]) expected, (boolean[]) actual); in matches() 36 } else if (expected instanceof byte[] in matches() 38 return Arrays.equals((byte[]) expected, (byte[]) actual); in matches() 39 } else if (expected instanceof char[] in matches() 41 return Arrays.equals((char[]) expected, (char[]) actual); in matches() 42 } else if (expected instanceof double[] in matches() [all …]
|
/external/chromium-trace/trace-viewer/tracing/third_party/closure_linter/closure_linter/ |
D | fixjsstyle_test.py | 71 expected = open(golden_filename, 'r') 73 self.assertEqual(actual.readlines(), expected.readlines()) 87 expected = [ 97 self._AssertFixes(original, expected) 111 expected = [ 121 self._AssertFixes(original, expected) 133 expected = [ 143 self._AssertFixes(original, expected) 155 expected = [ 165 self._AssertFixes(original, expected) [all …]
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | CharSequenceReaderTest.java | 79 } catch (IndexOutOfBoundsException expected) { in testIllegalArguments() 85 } catch (IndexOutOfBoundsException expected) { in testIllegalArguments() 91 } catch (IndexOutOfBoundsException expected) { in testIllegalArguments() 97 } catch (IndexOutOfBoundsException expected) { in testIllegalArguments() 103 } catch (IndexOutOfBoundsException expected) { in testIllegalArguments() 109 } catch (IndexOutOfBoundsException expected) { in testIllegalArguments() 115 } catch (IllegalArgumentException expected) { in testIllegalArguments() 121 } catch (IllegalArgumentException expected) { in testIllegalArguments() 132 } catch (IOException expected) { in testMethodsThrowWhenClosed() 138 } catch (IOException expected) { in testMethodsThrowWhenClosed() [all …]
|
/external/clang/test/SemaObjC/ |
D | objcbridge-attribute-arc.m | 4 typedef struct __attribute__ ((objc_bridge(NSError))) __CFErrorRef * CFErrorRef; // expected-note 5… 6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no… 8 typedef struct __attribute__((objc_bridge(12))) __CFMyColor *CFMyColorRef; // expected-error {{par… 10 typedef struct __attribute__ ((objc_bridge)) __CFArray *CFArrayRef; // expected-error {{'objc_bridg… 12 typedef void * __attribute__ ((objc_bridge(NSURL))) CFURLRef; // expected-error {{parameter of 'o… 14 typedef void * CFStringRef __attribute__ ((objc_bridge(NSString))); // expected-error {{parameter o… 16 typedef struct __attribute__((objc_bridge(NSLocale, NSError))) __CFLocale *CFLocaleRef;// expected-… 18 typedef struct __CFData __attribute__((objc_bridge(NSData))) CFDataRef; // expected-error {{paramet… 22 typedef struct __CFSetRef * CFSetRef __attribute__((objc_bridge(NSSet))); // expected-error {{param… 24 typedef union __CFUColor __attribute__((objc_bridge(NSUColor))) * CFUColorRef; // expected-error {{… [all …]
|
D | arc-unbridged-cast.m | 46 …x = (id) unauditedString(); // expected-error {{requires a bridged cast}} expected-note {{use __br… 47 …nauditedString() : (void*) 0); // expected-error {{requires a bridged cast}} expected-note {{use _… 48 …auditedString() : kUserConst); // expected-error {{requires a bridged cast}} expected-note {{use _… 49 …void*) 0 : unauditedString()); // expected-error {{requires a bridged cast}} expected-note {{use _… 50 … @"help" : unauditedString()); // expected-error {{requires a bridged cast}} expected-note {{use _… 52 …x = (id) auditedCreateString(); // expected-error {{requires a bridged cast}} expected-note {{use … 53 …id) (cond ? auditedCreateString() : (void*) 0); // expected-error {{requires a bridged cast}} expe… 54 …id) (cond ? (void*) 0 : auditedCreateString()); // expected-error {{requires a bridged cast}} expe… 55 …(CFStringRef) @"help" : auditedCreateString()); // expected-error {{requires a bridged cast}} expe… 82 …serConst : [object newString]); // expected-error{{requires a bridged cast}} expected-note{{use __… [all …]
|
D | circular-container.m | 46 NSMutableArray *_array; // expected-note {{'_array' declared here}} 47 NSMutableDictionary *_dictionary; // expected-note {{'_dictionary' declared here}} 48 NSMutableSet *_set; // expected-note {{'_set' declared here}} 49 NSCountedSet *_countedSet; // expected-note {{'_countedSet' declared here}} 50 NSMutableOrderedSet *_orderedSet; // expected-note {{'_orderedSet' declared here}} 57 …[_array addObject:_array]; // expected-warning {{adding '_array' to '_array' might cause circular … 58 …[_dictionary setObject:_dictionary forKey:@"key"]; // expected-warning {{adding '_dictionary' to '… 59 …[_set addObject:_set]; // expected-warning {{adding '_set' to '_set' might cause circular dependen… 60 …[_countedSet addObject:_countedSet]; // expected-warning {{adding '_countedSet' to '_countedSet' m… 61 …[_orderedSet addObject:_orderedSet]; // expected-warning {{adding '_orderedSet' to '_orderedSet' m… [all …]
|
/external/clang/test/SemaObjCXX/ |
D | objcbridge-attribute.mm | 4 typedef struct __attribute__ ((objc_bridge(NSError))) __CFErrorRef * CFErrorRef; // expected-note 5… 6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no… 8 typedef struct __attribute__((objc_bridge(12))) __CFMyColor *CFMyColorRef; // expected-error {{par… 10 typedef struct __attribute__ ((objc_bridge)) __CFArray *CFArrayRef; // expected-error {{'objc_bridg… 12 typedef struct __attribute__((objc_bridge(NSLocale, NSError))) __CFLocale *CFLocaleRef;// expected-… 27 typedef struct __attribute__((objc_bridge(NSTesting))) __CFError *CFTestingRef; // expected-note {{… 30 …return (NSString *)cf; // expected-error {{CF object of type 'CFTestingRef' (aka '__CFError *') is… 31 …// expected-error {{cast of C pointer type 'CFTestingRef' (aka '__CFError *') to Objective-C point… 32 … // expected-note {{use __bridge to convert directly (no change in ownership)}} \ 33 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFTestingRef' (aka '__CFEr… [all …]
|
D | objcbridge-attribute-arc.mm | 4 typedef struct __attribute__ ((objc_bridge(NSError))) __CFErrorRef * CFErrorRef; // expected-note 5… 6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no… 8 typedef struct __attribute__((objc_bridge(12))) __CFMyColor *CFMyColorRef; // expected-error {{par… 10 typedef struct __attribute__ ((objc_bridge)) __CFArray *CFArrayRef; // expected-error {{'objc_bridg… 12 typedef struct __attribute__((objc_bridge(NSLocale, NSError))) __CFLocale *CFLocaleRef;// expected-… 27 typedef struct __attribute__((objc_bridge(NSTesting))) __CFError *CFTestingRef; // expected-note {{… 30 …return (NSString *)cf; // expected-error {{CF object of type 'CFTestingRef' (aka '__CFError *') is… 31 …// expected-error {{cast of C pointer type 'CFTestingRef' (aka '__CFError *') to Objective-C point… 32 … // expected-note {{use __bridge to convert directly (no change in ownership)}} \ 33 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFTestingRef' (aka '__CFEr… [all …]
|
/external/clang/test/SemaCXX/ |
D | warn-memsize-comparison.cpp | 20 expected-warning{{size argument in 'memset' call is a comparison}} \ in f() 21 expected-note {{did you mean to compare}} \ in f() 22 expected-note {{explicitly cast the argument}} in f() 26 expected-warning{{size argument in 'memmove' call is a comparison}} \ in f() 27 expected-note {{did you mean to compare}} \ in f() 28 expected-note {{explicitly cast the argument}} in f() 32 expected-warning{{size argument in 'memcpy' call is a comparison}} \ in f() 33 expected-note {{did you mean to compare}} \ in f() 34 expected-note {{explicitly cast the argument}} in f() 38 expected-warning{{size argument in 'memcmp' call is a comparison}} \ in f() [all …]
|
/external/v8/src/base/ |
D | logging.h | 46 const char* expected_source, int expected, in CheckEqualsHelper() argument 48 if (expected != value) { in CheckEqualsHelper() 51 expected_source, value_source, expected, value); in CheckEqualsHelper() 60 int64_t expected, in CheckEqualsHelper() argument 63 if (expected != value) { in CheckEqualsHelper() 70 static_cast<uint32_t>(expected >> 32), in CheckEqualsHelper() 71 static_cast<uint32_t>(expected), in CheckEqualsHelper() 98 const char* expected, in CheckEqualsHelper() argument 101 if ((expected == NULL && value != NULL) || in CheckEqualsHelper() 102 (expected != NULL && value == NULL) || in CheckEqualsHelper() [all …]
|
/external/clang/test/ARCMT/ |
D | checking.m | 47 - (id)retain; // expected-note {{'retain' has been explicitly marked unavailable here}} 48 - (id)retainCount; // expected-note {{'retainCount' has been explicitly marked unavailable here}} 49 - (id)autorelease; // expected-note 2 {{'autorelease' has been explicitly marked unavailable here}} 65 - (id)retain { return self; } // expected-error {{ARC forbids implementation}} 66 - (id)retainCount { return self; } // expected-error {{ARC forbids implementation}} 67 - (id)autorelease { return self; } // expected-error {{ARC forbids implementation}} 68 - (oneway void)release { } // expected-error {{ARC forbids implementation}} 76 …[[a delegate] release]; // expected-error {{it is not safe to remove 'retain' message on the resul… 77 // expected-error {{ARC forbids explicit message send}} 78 …[a.delegate release]; // expected-error {{it is not safe to remove 'retain' message on the result … [all …]
|
/external/jemalloc/test/unit/ |
D | stats.c | 7 int expected = config_stats ? 0 : ENOENT; in TEST_BEGIN() local 10 assert_d_eq(mallctl("stats.cactive", &cactive, &sz, NULL, 0), expected, in TEST_BEGIN() 15 expected, "Unexpected mallctl() result"); in TEST_BEGIN() 16 assert_d_eq(mallctl("stats.active", &active, &sz, NULL, 0), expected, in TEST_BEGIN() 18 assert_d_eq(mallctl("stats.mapped", &mapped, &sz, NULL, 0), expected, in TEST_BEGIN() 39 int expected = config_stats ? 0 : ENOENT; in TEST_BEGIN() local 49 NULL, 0), expected, "Unexpected mallctl() result"); in TEST_BEGIN() 52 0), expected, "Unexpected mallctl() result"); in TEST_BEGIN() 54 0), expected, "Unexpected mallctl() result"); in TEST_BEGIN() 56 NULL, 0), expected, "Unexpected mallctl() result"); in TEST_BEGIN() [all …]
|