Lines Matching defs:flag
27 void CancelHelper(CancellationFlag* flag) {
29 ASSERT_DEBUG_DEATH(flag->Set(), "");
34 CancellationFlag flag;
35 ASSERT_FALSE(flag.IsSet());
36 flag.Set();
37 ASSERT_TRUE(flag.IsSet());
41 CancellationFlag flag;
42 ASSERT_FALSE(flag.IsSet());
43 flag.Set();
44 ASSERT_TRUE(flag.IsSet());
45 flag.Set();
46 ASSERT_TRUE(flag.IsSet());
59 CancellationFlag flag;
60 t.task_runner()->PostTask(FROM_HERE, base::Bind(&CancelHelper, &flag));