Lines Matching refs:vec
214 std::vector<int> vec; in TEST_F() local
225 fdevent_run_on_main_thread([i, &vec]() { in TEST_F()
227 vec.push_back(i); in TEST_F()
233 ASSERT_EQ(1000000u, vec.size()); in TEST_F()
235 ASSERT_EQ(i, vec[i]); in TEST_F()
239 static std::function<void()> make_appender(std::vector<int>* vec, int value) { in make_appender() argument
240 return [vec, value]() { in make_appender()
246 vec->push_back(value); in make_appender()
247 fdevent_run_on_main_thread(make_appender(vec, value + 1)); in make_appender()
252 std::vector<int> vec; in TEST_F() local
255 fdevent_run_on_main_thread(make_appender(&vec, 0)); in TEST_F()
258 ASSERT_EQ(100u, vec.size()); in TEST_F()
260 ASSERT_EQ(i, vec[i]); in TEST_F()