Lines Matching defs:index
113 PRInt32 index;
120 for (index = 0; (index < count) && (index < aExpectedCount); index++) {
121 IFoo* foo = (IFoo*)(aArray->ElementAt(index));
123 index, aElementIDs[index], foo->ID(), foo, foo->RefCnt() - 1,
124 AssertEqual(foo->ID(), aElementIDs[index]));
131 PRInt32 index;
132 for (index = 0; index < aCount; index++) {
133 nsCOMPtr<IFoo> foo = new Foo(index);
169 PRInt32 index = array->IndexOf(foo);
170 fprintf(stdout, "IndexOf(foo): %d=%d %s\n", index, expectedIndex[count],
171 AssertEqual(index, expectedIndex[count]));
172 while (-1 != index) {
174 index = array->IndexOfStartingAt(foo, index + 1);
175 if (-1 != index)
176 fprintf(stdout, "IndexOf(foo): %d=%d %s\n", index, expectedIndex[count],
177 AssertEqual(index, expectedIndex[count]));
179 index = array->LastIndexOf(foo);
181 fprintf(stdout, "LastIndexOf(foo): %d=%d %s\n", index, expectedIndex[count],
182 AssertEqual(index, expectedIndex[count]));