Lines Matching refs:foo
121 IFoo* foo = (IFoo*)(aArray->ElementAt(index));
123 index, aElementIDs[index], foo->ID(), foo, foo->RefCnt() - 1,
124 AssertEqual(foo->ID(), aElementIDs[index]));
125 foo->Release();
133 nsCOMPtr<IFoo> foo = new Foo(index);
134 aArray->AppendElement(foo);
150 IFoo* foo = (IFoo*)array->ElementAt(3);
151 foo->Release(); // pre-release to fix ref count for dumps
152 array->InsertElementAt(foo, 5);
157 array->InsertElementAt(foo, 0);
161 array->AppendElement(foo);
169 PRInt32 index = array->IndexOf(foo);
170 fprintf(stdout, "IndexOf(foo): %d=%d %s\n", index, expectedIndex[count],
174 index = array->IndexOfStartingAt(foo, index + 1);
176 fprintf(stdout, "IndexOf(foo): %d=%d %s\n", index, expectedIndex[count],
179 index = array->LastIndexOf(foo);
181 fprintf(stdout, "LastIndexOf(foo): %d=%d %s\n", index, expectedIndex[count],
186 array->ReplaceElementAt(foo, 8);
199 fprintf(stdout, "RemoveElement(foo):\n");
200 array->RemoveElement(foo);
203 fprintf(stdout, "RemoveLastElement(foo):\n");
204 array->RemoveLastElement(foo);