Lines Matching refs:count
20 int* count = (int*)ctx;
21 *count += 1;
24 static void busy_wait_for_callback(int* count, int expectedValue, GrDirectContext* dContext,
32 } while (*count != expectedValue && (end - begin) < std::chrono::seconds(1));
33 if (*count != expectedValue) {
34 ERRORF(reporter, "Expected count failed to reach %d within 1 second of busy waiting.",
53 int count = 0;
57 flushInfoFinishedProc.fFinishedContext = (void*)&count;
61 REPORTER_ASSERT(reporter, count == 0 || count == 1);
63 busy_wait_for_callback(&count, 1, dContext, reporter);
80 REPORTER_ASSERT(reporter, count == 1 || count == 2);
82 REPORTER_ASSERT(reporter, count == 2);
86 REPORTER_ASSERT(reporter, count == 2);
95 REPORTER_ASSERT(reporter, count == 2 || count == 3);
97 REPORTER_ASSERT(reporter, count == 3);
101 REPORTER_ASSERT(reporter, count == 3);
110 REPORTER_ASSERT(reporter, count == 3 || count == 4);
112 REPORTER_ASSERT(reporter, count == 4);
116 REPORTER_ASSERT(reporter, count == 4);
121 REPORTER_ASSERT(reporter, count == 4 || count == 5);
122 busy_wait_for_callback(&count, 5, dContext, reporter);
124 count = 0;
134 REPORTER_ASSERT(reporter, count <= 1 && count2 <= count);
139 REPORTER_ASSERT(reporter, count == 1);
140 REPORTER_ASSERT(reporter, count == count2);