Home | History | Annotate | Download | only in tests

Lines Matching refs:Dummy

67 struct Dummy {
72 static bool LessP(Dummy* const& a, Dummy* const& b) { return a->fPriority < b->fPriority; }
73 static int* PQIndex(Dummy* const& dummy) { return &dummy->fIndex; }
75 bool operator== (const Dummy& that) const {
78 bool operator!= (const Dummy& that) const { return !(*this == that); }
83 static const Dummy kSentinel = {-1, -1, -1};
86 // Create a random set of Dummy objects.
88 SkTDArray<Dummy> array;
91 Dummy* dummy = array.append();
92 dummy->fPriority = random.nextS();
93 dummy->fValue = random.nextS();
94 dummy->fIndex = -1;
95 if (*dummy == kSentinel) {
101 // Stick the dummy objects in the pqueue.
102 SkTDPQueue<Dummy*, Dummy::LessP, Dummy::PQIndex> pq;
115 Dummy* top = pq.peek();
124 Dummy* top = pq.peek();