Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 1386) sorted by relevance

12345678910>>...56

/external/webkit/Source/WebKit/chromium/tests/
DIDBKeyPathTest.cpp40 IDBKeyPathElement expected; in ExpectedToken() local
42 expected.type = IDBKeyPathElement::IsIndexed; in ExpectedToken()
43 expected.index = index; in ExpectedToken()
45 expected.type = IDBKeyPathElement::IsNamed; in ExpectedToken()
46 expected.identifier = identifier; in ExpectedToken()
48 return expected; in ExpectedToken()
51 void checkKeyPath(const String& keyPath, const Vector<IDBKeyPathElement>& expected, int parserError) in checkKeyPath() argument
60 ASSERT_EQ(expected.size(), idbKeyPathElements.size()); in checkKeyPath()
61 for (size_t i = 0; i < expected.size(); ++i) { in checkKeyPath()
62 ASSERT_TRUE(expected[i].type == idbKeyPathElements[i].type) << i; in checkKeyPath()
[all …]
/external/junit/src/junit/framework/
DAssert.java59 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 …]
/external/llvm/unittests/ADT/
DStringRefTest.cpp139 SmallVector<StringRef, 5> expected; in TEST() local
141 expected.push_back("ab"); expected.push_back("c"); in TEST()
143 EXPECT_TRUE(parts == expected); in TEST()
145 expected.clear(); parts.clear(); in TEST()
146 expected.push_back(""); expected.push_back("ab"); expected.push_back(""); in TEST()
147 expected.push_back("c"); expected.push_back(""); in TEST()
149 EXPECT_TRUE(parts == expected); in TEST()
151 expected.clear(); parts.clear(); in TEST()
152 expected.push_back(""); in TEST()
154 EXPECT_TRUE(parts == expected); in TEST()
[all …]
/external/easymock/src/org/easymock/internal/matchers/
DArrayEquals.java26 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 …]
DEquals.java27 private final Object expected; field in Equals
29 public Equals(Object expected) { in Equals() argument
30 this.expected = expected; in Equals()
34 if (this.expected == null) { in matches()
37 return expected.equals(actual); in matches()
41 ArgumentToString.appendArgument(expected, buffer); in appendTo()
45 return expected; in getExpected()
53 return this.expected == null && other.expected == null in equals()
54 || this.expected != null in equals()
55 && this.expected.equals(other.expected); in equals()
/external/chromium/base/
Dlinked_list_unittest.cc81 const int expected[] = {1}; in TEST() local
82 ExpectListContents(list, arraysize(expected), expected); in TEST()
91 const int expected[] = {1, 2}; in TEST() local
92 ExpectListContents(list, arraysize(expected), expected); in TEST()
101 const int expected[] = {1, 2, 3}; in TEST() local
102 ExpectListContents(list, arraysize(expected), expected); in TEST()
124 const int expected[] = {1, 2, 3, 4, 5}; in TEST() local
125 ExpectListContents(list, arraysize(expected), expected); in TEST()
134 const int expected[] = {1, 2, 4, 5}; in TEST() local
135 ExpectListContents(list, arraysize(expected), expected); in TEST()
[all …]
/external/chromium/chrome/browser/safe_browsing/
Dmalware_details_unittest.cc232 std::vector<const ClientMalwareReportRequest::Resource*> expected; in VerifyResults() local
236 expected.push_back(&resource); in VerifyResults()
238 std::sort(expected.begin(), expected.end(), in VerifyResults()
241 for (uint32 i = 0; i < expected.size(); ++i) { in VerifyResults()
242 VerifyResource(resources[i], expected[i]); in VerifyResults()
249 const ClientMalwareReportRequest::Resource* expected) { in VerifyResource() argument
250 EXPECT_EQ(expected->id(), resource->id()); in VerifyResource()
251 EXPECT_EQ(expected->url(), resource->url()); in VerifyResource()
252 EXPECT_EQ(expected->parent_id(), resource->parent_id()); in VerifyResource()
253 ASSERT_EQ(expected->child_ids_size(), resource->child_ids_size()); in VerifyResource()
[all …]
/external/webkit/LayoutTests/fast/xpath/
Dxpath-test-pre.js1 function checkSnapshot(comment, actual, expected) { argument
2 if (actual.snapshotLength != expected.length) {
3 …testFailed(comment + " incorrect length (expected " + expected.length + ", actual " + actual.snaps…
8 if (actual.snapshotItem(i) != expected[i]) {
9 …testFailed(comment + " item " + i + " incorrect (expected " + expected[i].nodeName + ", actual " +…
17 function test(doc, context, expr, expected, nsResolver) argument
22 if (typeof(expected) == "object") {
24 checkSnapshot(expr, result, expected);
27 if (typeof(expected) == "number") {
28 if (result.numberValue == expected)
[all …]
/external/clang/test/SemaObjC/
Darc.m18 SEL s = @selector(retain); // expected-error {{ARC forbids use of 'retain' in a @selector}}
19 s = @selector(release); // expected-error {{ARC forbids use of 'release' in a @selector}}
20 s = @selector(autorelease); // expected-error {{ARC forbids use of 'autorelease' in a @selector}}
21 s = @selector(dealloc); // expected-error {{ARC forbids use of 'dealloc' in a @selector}}
22 [a dealloc]; // expected-error {{ARC forbids explicit message send of 'dealloc'}}
23 [a retain]; // expected-error {{ARC forbids explicit message send of 'retain'}}
24 [a retainCount]; // expected-error {{ARC forbids explicit message send of 'retainCount'}}
25 [a release]; // expected-error {{ARC forbids explicit message send of 'release'}}
26 [a autorelease]; // expected-error {{ARC forbids explicit message send of 'autorelease'}}
35 [super dealloc]; // expected-error {{ARC forbids explicit message send of 'dealloc'}}
[all …]
Dscope-check.m6 goto L; // expected-error{{illegal goto into protected scope}}
7 goto L2; // expected-error{{illegal goto into protected scope}}
8 goto L3; // expected-error{{illegal goto into protected scope}}
9 @try { // expected-note {{jump bypasses initialization of @try block}}
11 } @catch (A *x) { // expected-note {{jump bypasses initialization of @catch block}}
15 } @finally {// expected-note {{jump bypasses initialization of @finally block}}
20 goto L4; // expected-error{{illegal goto into protected scope}}
21 goto L5; // expected-error{{illegal goto into protected scope}}
22 } @catch (C *c) { // expected-note {{jump bypasses initialization of @catch block}}
24 goto L6; // expected-error{{illegal goto into protected scope}}
[all …]
Dcomptypes-7.m27 …obj = i; // expected-warning {{incompatible integer to pointer conversion assigning to 'id' from '…
28 obj = j; // expected-warning {{incompatible pointer types assigning to 'id' from 'int *'}}
30 …obj_p = i; // expected-warning {{incompatible integer to pointer conversion assigning to 'id<MyPro…
31 …obj_p = j; // expected-warning {{ incompatible pointer types assigning to 'id<MyProtocol>' from 'i…
33 …obj_c = i; // expected-warning {{ incompatible integer to pointer conversion assigning to 'MyClass…
34 …obj_c = j; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'int *'}}
36 …obj_C = i; // expected-warning {{incompatible integer to pointer conversion assigning to 'Class' f…
37 obj_C = j; // expected-warning {{incompatible pointer types assigning to 'Class' from 'int *'}}
39 …i = obj; // expected-warning {{incompatible pointer to integer conversion assigning to 'int' fro…
40 …i = obj_p; // expected-warning {{incompatible pointer to integer conversion assigning to 'int' fro…
[all …]
Dcrash-label.m3 - (NSDictionary*) _executeScript:(NSString *)source { // expected-error 2 {{expected a type}} \
4 // expected-error {{missing context for method declaration}}
5 Exit: [nilArgs release]; // expected-error {{use of undeclared identifier}}
7 - (NSDictionary *) _setupKernelStandardMode:(NSString *)source { // expected-error 2 {{expected a t…
8 expected-error {{missing context for method declaration}} \
9 expected-note{{to match this '{'}}
10 …uccess ) { // expected-error {{use of undeclared identifier}} // expected-error 2 {{expected}} exp…
Dcheck-dup-objc-decls-1.m3 @interface Foo // expected-note {{previous definition is here}}
6 float Foo; // expected-error {{redefinition of 'Foo' as different kind of symbol}}
8 @class Bar; // expected-note {{previous definition is here}}
10 typedef int Bar; // expected-error {{redefinition of 'Bar' as different kind of symbol}}
12 @implementation FooBar // expected-warning {{cannot find interface declaration for 'FooBar'}}
16 typedef int OBJECT; // expected-note {{previous definition is here}}
18 @class OBJECT ; // expected-error {{redefinition of 'OBJECT' as different kind of symbol}}
21 typedef int Gorf; // expected-note {{previous definition is here}}
23 @interface Gorf @end // expected-error {{redefinition of 'Gorf' as different kind of symbol}} expec…
25 void Gorf() // expected-error {{redefinition of 'Gorf' as different kind of symbol}}
[all …]
Dproperty-10.m6 @property(readonly, readwrite) int p0; // expected-error {{property attributes 'readonly' and 'read…
8 @property(retain) int p1; // expected-error {{property with 'retain (or strong)' attribute must be …
9 @property(strong) int s1; // expected-error {{property with 'retain (or strong)' attribute must be …
11 @property(copy) int p2; // expected-error {{property with 'copy' attribute must be of object type}}
13 @property(assign, copy) id p3_0; // expected-error {{property attributes 'assign' and 'copy' are mu…
14 @property(assign, retain) id p3_1; // expected-error {{property attributes 'assign' and 'retain' ar…
15 @property(assign, strong) id s3_1; // expected-error {{property attributes 'assign' and 'strong' ar…
16 @property(copy, retain) id p3_2; // expected-error {{property attributes 'copy' and 'retain' are mu…
17 @property(copy, strong) id s3_2; // expected-error {{property attributes 'copy' and 'strong' are mu…
18 …ign, copy, retain) id p3_3; // expected-error {{property attributes 'assign' and 'copy' are mutual…
[all …]
Dundef-protocol-methods-1.m4 - (void) P1proto; // expected-note {{method declared here}}
5 + (void) ClsP1Proto; // expected-note {{method declared here}}
9 - (void) P2proto; // expected-note {{method declared here}}
10 + (void) ClsP2Proto; // expected-note {{method declared here}}
14 - (void) P3proto; // expected-note {{method declared here}}
15 + (void) ClsP3Proto; // expected-note {{method declared here}}
20 - (void) meth; // expected-note {{method declared here}}
21 - (void) meth : (int) arg1; // expected-note {{method declared here}}
22 + (void) cls_meth : (int) arg1; // expected-note {{method declared here}}
25 @interface INTF <PROTO> // expected-note 3 {{required for direct or indirect protocol 'PROTO'}} \
[all …]
Dproperty.m5 int IVAR; // expected-note{{ivar is declared here}}
9 …perty id prop_id; // expected-warning {{no 'assign', 'retain', or 'copy' attribute is specified -…
14 @property int d1; // expected-warning {{property 'd1' requires method 'd1' to be defined }} \
15 // expected-warning {{property 'd1' requires method 'setD1:' to be defined }}
19 @synthesize d1; // expected-error {{synthesized property 'd1' must either be named the same as}}
20 @dynamic bad; // expected-error {{property implementation must have its declaration in interface…
21 @synthesize prop_id; // expected-error {{synthesized property 'prop_id' must either be named the sa…
22 …ize prop_id = IVAR; // expected-error {{type of property 'prop_id' ('id') does not match type of i…
26 @implementation I(CAT) // expected-note 2 {{implementation is here}}
27 @synthesize d1; // expected-error {{@synthesize not allowed in a category's implementation}}
[all …]
/external/chromium/chrome/browser/bookmarks/
Dbookmark_model_test_utils.cc11 void BookmarkModelTestUtils::AssertNodesEqual(const BookmarkNode* expected, in AssertNodesEqual() argument
14 ASSERT_TRUE(expected); in AssertNodesEqual()
17 EXPECT_EQ(expected->id(), actual->id()); in AssertNodesEqual()
18 EXPECT_EQ(expected->GetTitle(), actual->GetTitle()); in AssertNodesEqual()
19 EXPECT_EQ(expected->type(), actual->type()); in AssertNodesEqual()
20 EXPECT_TRUE(expected->date_added() == actual->date_added()); in AssertNodesEqual()
21 if (expected->type() == BookmarkNode::URL) { in AssertNodesEqual()
22 EXPECT_EQ(expected->GetURL(), actual->GetURL()); in AssertNodesEqual()
24 EXPECT_TRUE(expected->date_folder_modified() == in AssertNodesEqual()
26 ASSERT_EQ(expected->child_count(), actual->child_count()); in AssertNodesEqual()
[all …]
/external/clang/test/Analysis/
Dretain-release-path-notes.m42 …id leaked = [[NSObject alloc] init]; // expected-warning{{leak}} expected-note{{Method returns an …
43 …return; // expected-note{{Object leaked: object allocated and stored into 'leaked' is not referenc…
47 …CFTypeRef leaked = CFCreateSomething(); // expected-warning{{leak}} expected-note{{Call to functio…
48 …return; // expected-note{{Object leaked: object allocated and stored into 'leaked' is not referenc…
52 …id leaked = [foo methodWithValue]; // expected-warning{{leak}} expected-note{{Method returns an Ob…
53 …[leaked retain]; // expected-note{{Reference count incremented. The object now has a +1 retain cou…
54 …[leaked retain]; // expected-note{{Reference count incremented. The object now has a +2 retain cou…
55 …[leaked release]; // expected-note{{Reference count decremented. The object now has a +1 retain co…
56 …return; // expected-note{{Object leaked: object allocated and stored into 'leaked' is not referenc…
60 …id leaked = foo.propertyValue; // expected-warning{{leak}} expected-note{{Property returns an Obje…
[all …]
/external/v8/src/
Dchecks.h72 const char* expected_source, int expected, in CheckEqualsHelper() argument
74 if (expected != value) { in CheckEqualsHelper()
77 expected_source, value_source, expected, value); in CheckEqualsHelper()
86 int64_t expected, in CheckEqualsHelper() argument
89 if (expected != value) { in CheckEqualsHelper()
96 static_cast<uint32_t>(expected >> 32), in CheckEqualsHelper()
97 static_cast<uint32_t>(expected), in CheckEqualsHelper()
124 const char* expected, in CheckEqualsHelper() argument
127 if ((expected == NULL && value != NULL) || in CheckEqualsHelper()
128 (expected != NULL && value == NULL) || in CheckEqualsHelper()
[all …]
/external/chromium/chrome/browser/sync/sessions/
Dordered_commit_set_unittest.cc28 vector<syncable::Id> expected; in TEST_F() local
30 expected.push_back(ids_.NewLocalId()); in TEST_F()
33 commit_set1.AddCommitItem(0, expected[0], syncable::BOOKMARKS); in TEST_F()
34 commit_set1.AddCommitItem(1, expected[1], syncable::BOOKMARKS); in TEST_F()
35 commit_set1.AddCommitItem(2, expected[2], syncable::PREFERENCES); in TEST_F()
37 commit_set1.AddCommitItem(2, expected[2], syncable::PREFERENCES); in TEST_F()
38 commit_set1.AddCommitItem(3, expected[3], syncable::TOP_LEVEL_FOLDER); in TEST_F()
39 commit_set1.AddCommitItem(4, expected[4], syncable::TOP_LEVEL_FOLDER); in TEST_F()
40 commit_set2.AddCommitItem(7, expected[7], syncable::AUTOFILL); in TEST_F()
41 commit_set2.AddCommitItem(6, expected[6], syncable::AUTOFILL); in TEST_F()
[all …]
/external/clang/test/ARCMT/
Dchecking.m34 - (id)retain { return self; } // expected-error {{ARC forbids implementation}}
35 - (id)retainCount { return self; } // expected-error {{ARC forbids implementation}}
36 - (id)autorelease { return self; } // expected-error {{ARC forbids implementation}}
37 - (oneway void)release { } // expected-error {{ARC forbids implementation}}
45 …[[a delegate] release]; // expected-error {{it is not safe to remove 'retain' message on the resul…
46 // expected-error {{ARC forbids explicit message send}}
47 …[a.delegate release]; // expected-error {{it is not safe to remove 'retain' message on the result …
48 // expected-error {{ARC forbids explicit message send}}
49 …[unsafeS->unsafeObj retain]; // expected-error {{it is not safe to remove 'retain' message on an _…
50 // expected-error {{ARC forbids explicit message send}}
[all …]
/external/clang/test/FixIt/
Dtypo.m7 @interface NSString // expected-note 2{{'NSString' declared here}}
12 …NSstring *str = @"A string"; // expected-error{{unknown type name 'NSstring'; did you mean 'NSStri…
17 @property int *sprop; // expected-note{{'sprop' declared here}}
22 int his_ivar; // expected-note 2{{'his_ivar' declared here}}
27 @property int his_prop; // expected-note{{'his_prop' declared here}}
32 int her_ivar; // expected-note 2{{'her_ivar' declared here}}
35 @property int her_prop; // expected-note{{'her_prop' declared here}}
50 herivar = a; // expected-error{{use of undeclared identifier 'herivar'; did you mean 'her_ivar'?}}
51 hisivar = a; // expected-error{{use of undeclared identifier 'hisivar'; did you mean 'his_ivar'?}}
52 …self->herivar = a; // expected-error{{'B' does not have a member named 'herivar'; did you mean 'he…
[all …]
/external/clang/test/Parser/
Dobjc-messaging-1.m7 [a ii]; // expected-warning{{not found}}
8 [a if: 1 :2]; // expected-warning{{not found}}
9 [a inout: 1 :2 another:(2,3,4)]; // expected-warning{{not found}} \
10 // expected-warning 2{{expression result unused}}
11 [a inout: 1 :2 another:(2,3,4), 6,6,8]; // expected-warning{{not found}} \
12 // expected-warning 2{{expression result unused}}
13 [a inout: 1 :2 another:(2,3,4), (6,4,5),6,8]; // expected-warning{{not found}} \
14 // expected-warning 4{{expression result unused}}
15 [a inout: 1 :2 another:(i+10), (i,j-1,5),6,8]; // expected-warning{{not found}} \
16 // expected-warning 2{{expression result unused}}
[all …]
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/
DCharSinkTester.java82 private static void assertArrayEquals(char[] expected, char[] actual) { in assertArrayEquals() argument
83 Assert.assertEquals(Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals()
93 char[] expected = new char[] {}; in sinkTestNoWriting() local
97 assertArrayEquals(expected, getChars()); in sinkTestNoWriting()
101 char[] expected = new char[] {}; in sinkTestWriteZeroChars() local
110 assertArrayEquals(expected, getChars()); in sinkTestWriteZeroChars()
114 char[] expected = "EFGCDECBA".toCharArray(); in sinkTestWriteCharByChar() local
117 for (char c : expected) { in sinkTestWriteCharByChar()
122 assertArrayEquals(expected, getChars()); in sinkTestWriteCharByChar()
126 char[] expected = "EFGCDECBA".toCharArray(); in sinkTestWriteArray() local
[all …]
DSinkTester.java83 private static void assertArrayEquals(byte[] expected, byte[] actual) { in assertArrayEquals() argument
84 Assert.assertEquals(Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals()
94 byte[] expected = new byte[] {}; in sinkTestNoWriting()
98 assertArrayEquals(expected, getBytes()); in sinkTestNoWriting()
102 byte[] expected = new byte[] {}; in sinkTestWriteZeroBytes()
111 assertArrayEquals(expected, getBytes()); in sinkTestWriteZeroBytes()
115 byte[] expected = new byte[] { 5, 6, 7, 3, 4, 5, 3, 2, 1 }; in sinkTestWriteByteByByte()
118 for (byte b : expected) { in sinkTestWriteByteByByte()
123 assertArrayEquals(expected, getBytes()); in sinkTestWriteByteByByte()
127 byte[] expected = new byte[] { in sinkTestWriteArray()
[all …]

12345678910>>...56