Lines Matching refs:cancelable

43   CancelableClosure cancelable(  in TEST()  local
46 base::Closure callback = cancelable.callback(); in TEST()
53 cancelable.Cancel(); in TEST()
64 CancelableClosure cancelable( in TEST() local
67 base::Closure callback1 = cancelable.callback(); in TEST()
68 base::Closure callback2 = cancelable.callback(); in TEST()
69 cancelable.Cancel(); in TEST()
78 cancelable.Cancel(); in TEST()
81 base::Closure callback3 = cancelable.callback(); in TEST()
92 CancelableClosure cancelable( in TEST() local
95 callback = cancelable.callback(); in TEST()
110 CancelableClosure cancelable(base::Bind(RefCountedParam, ref_counted)); in TEST() local
111 EXPECT_FALSE(cancelable.IsCancelled()); in TEST()
116 cancelable.Cancel(); in TEST()
117 EXPECT_TRUE(cancelable.IsCancelled()); in TEST()
127 CancelableClosure cancelable( in TEST() local
130 base::Closure callback = cancelable.callback(); in TEST()
137 cancelable.Reset( in TEST()
139 EXPECT_FALSE(cancelable.IsCancelled()); in TEST()
148 base::Closure callback2 = cancelable.callback(); in TEST()
158 CancelableClosure cancelable; in TEST() local
159 EXPECT_TRUE(cancelable.IsCancelled()); in TEST()
162 cancelable.Reset(base::Bind(&Increment, in TEST()
164 EXPECT_FALSE(cancelable.IsCancelled()); in TEST()
166 cancelable.Cancel(); in TEST()
167 EXPECT_TRUE(cancelable.IsCancelled()); in TEST()
176 CancelableClosure cancelable(base::Bind(&Increment, in TEST() local
179 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, cancelable.callback()); in TEST()
184 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, cancelable.callback()); in TEST()
187 cancelable.Cancel(); in TEST()