39 while ((ptr = iter.
next())) {
49 while ((ptr = iter.
prev())) {
60 for (
int i = 0;
i < deq.
count()/2 && (ptr = iter.
next());
i++) {
65 while ((ptr = iter.
prev())) {
88 if (0 == deq.
count()) {
91 int expected = (deq.
count() + allocCount - 1) / allocCount;
101 SkDeque deq(
sizeof(
int), allocCount);
107 for (
i = 1;
i <= 10;
i++) {
114 for (
i = 0;
i < 5;
i++) {
121 for (
i = 0;
i < 5;
i++) {
129 for (
i = 10;
i >= 1; --
i) {
136 for (
i = 0;
i < 5;
i++) {
143 for (
i = 0;
i < 5;
i++) {
static void assert_count(skiatest::Reporter *reporter, const SkDeque &deq, int count)
static void assert_iter(skiatest::Reporter *reporter, const SkDeque &deq, int max, int min)
static void TestSub(skiatest::Reporter *reporter, int allocCount)
static void assert_blocks(skiatest::Reporter *reporter, const SkDeque &deq, int allocCount)
DEF_TEST(Deque, reporter)
#define REPORTER_ASSERT(r, cond,...)
DequeUnitTestHelper(const SkDeque &deq)
void reset(const SkDeque &d, IterStart startLoc)
const void * front() const
const void * back() const
static float max(float r, float g, float b)
static float min(float r, float g, float b)