Lines Matching defs:mock
73 static int* PQIndex(Mock* const& mock) { return &mock->fIndex; }
91 Mock* mock = array.append();
92 mock->fPriority = random.nextS();
93 mock->fValue = random.nextS();
94 mock->fIndex = -1;
95 if (*mock == kSentinel) {
101 // Stick the mock objects in the pqueue.
164 Mock *mock = testArray.append();
165 mock->fPriority = random.nextS();
166 mock->fValue = random.nextS();
167 mock->fIndex = -1;
171 // Stick equivalent mock objects into the control queue.
175 Mock *mock = controlArray.append();
176 mock->fPriority = testArray[i].fPriority;
177 mock->fValue = testArray[i].fValue;
178 mock->fIndex = -1;