Lines Matching refs:Mock
67 struct Mock { struct
72 static bool LessP(Mock* const& a, Mock* const& b) { return a->fPriority < b->fPriority; } in LessP() argument
73 static int* PQIndex(Mock* const& mock) { return &mock->fIndex; } in PQIndex() argument
75 bool operator== (const Mock& that) const { in operator ==() argument
78 bool operator!= (const Mock& that) const { return !(*this == that); } in operator !=() argument
83 static const Mock kSentinel = {-1, -1, -1}; in random_test()
88 SkTDArray<Mock> array; in random_test()
91 Mock* mock = array.append(); in random_test()
102 SkTDPQueue<Mock*, Mock::LessP, Mock::PQIndex> pq; in random_test()
115 Mock* top = pq.peek(); in random_test()
124 Mock* top = pq.peek(); in random_test()
156 SkTDPQueue<Mock *, Mock::LessP, Mock::PQIndex> pqTest; in sort_test()
157 SkTDPQueue<Mock *, Mock::LessP, Mock::PQIndex> pqControl; in sort_test()
161 SkTDArray<Mock> testArray; in sort_test()
164 Mock *mock = testArray.append(); in sort_test()
172 SkTDArray<Mock> controlArray; in sort_test()
175 Mock *mock = controlArray.append(); in sort_test()