Lines Matching refs:stolen
35 std::vector<int> stolen; in test_basic_runqueue() local
36 VERIFY_IS_EQUAL(0u, q.PopBackHalf(&stolen)); in test_basic_runqueue()
37 VERIFY_IS_EQUAL(0u, stolen.size()); in test_basic_runqueue()
66 VERIFY_IS_EQUAL(1u, q.PopBackHalf(&stolen)); in test_basic_runqueue()
67 VERIFY_IS_EQUAL(1u, stolen.size()); in test_basic_runqueue()
68 VERIFY_IS_EQUAL(7, stolen[0]); in test_basic_runqueue()
70 stolen.clear(); in test_basic_runqueue()
83 VERIFY_IS_EQUAL(2u, q.PopBackHalf(&stolen)); in test_basic_runqueue()
84 VERIFY_IS_EQUAL(2u, stolen.size()); in test_basic_runqueue()
85 VERIFY_IS_EQUAL(10, stolen[0]); in test_basic_runqueue()
86 VERIFY_IS_EQUAL(11, stolen[1]); in test_basic_runqueue()
88 stolen.clear(); in test_basic_runqueue()
89 VERIFY_IS_EQUAL(1u, q.PopBackHalf(&stolen)); in test_basic_runqueue()
90 VERIFY_IS_EQUAL(1u, stolen.size()); in test_basic_runqueue()
91 VERIFY_IS_EQUAL(9, stolen[0]); in test_basic_runqueue()
93 stolen.clear(); in test_basic_runqueue()
94 VERIFY_IS_EQUAL(1u, q.PopBackHalf(&stolen)); in test_basic_runqueue()
95 VERIFY_IS_EQUAL(1u, stolen.size()); in test_basic_runqueue()
96 VERIFY_IS_EQUAL(8, stolen[0]); in test_basic_runqueue()
97 stolen.clear(); in test_basic_runqueue()
98 VERIFY_IS_EQUAL(0u, q.PopBackHalf(&stolen)); in test_basic_runqueue()
99 VERIFY_IS_EQUAL(0u, stolen.size()); in test_basic_runqueue()
127 std::vector<int> stolen; in test_empty_runqueue() local
137 if (q.PopBackHalf(&stolen) == 1) { in test_empty_runqueue()
138 stolen.clear(); in test_empty_runqueue()
141 VERIFY_IS_EQUAL(0u, stolen.size()); in test_empty_runqueue()
202 std::vector<int> stolen; in test_stress_runqueue() local
204 if (q.PopBackHalf(&stolen) == 0) { in test_stress_runqueue()
208 while (stolen.size() && j < kEvents) { in test_stress_runqueue()
209 int v = stolen.back(); in test_stress_runqueue()
210 stolen.pop_back(); in test_stress_runqueue()
216 while (stolen.size()) { in test_stress_runqueue()
217 int v = stolen.back(); in test_stress_runqueue()
218 stolen.pop_back(); in test_stress_runqueue()