100 {
101 SkDeque deq(
sizeof(
int), allocCount);
103
104
105
107 for (
i = 1;
i <= 10;
i++) {
108 *(
int*)deq.push_front() =
i;
109 }
113
114 for (
i = 0;
i < 5;
i++) {
115 deq.pop_front();
116 }
120
121 for (
i = 0;
i < 5;
i++) {
122 deq.pop_front();
123 }
126
127
128
129 for (
i = 10;
i >= 1; --
i) {
130 *(
int*)deq.push_back() =
i;
131 }
135
136 for (
i = 0;
i < 5;
i++) {
137 deq.pop_back();
138 }
142
143 for (
i = 0;
i < 5;
i++) {
144 deq.pop_back();
145 }
148
149
150
151 *(int*)deq.push_front() = 5;
152 *(int*)deq.push_back() = 4;
153 *(int*)deq.push_front() = 6;
154 *(int*)deq.push_back() = 3;
155 *(int*)deq.push_front() = 7;
156 *(int*)deq.push_back() = 2;
157 *(int*)deq.push_front() = 8;
158 *(int*)deq.push_back() = 1;
162}
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 assert_blocks(skiatest::Reporter *reporter, const SkDeque &deq, int allocCount)