Lines Matching refs:cb
56 Callback0<void> cb; in TEST() local
57 EXPECT_TRUE(cb.empty()); in TEST()
58 cb(); // Executing an empty callback should not crash. in TEST()
59 cb = Callback0<void>(&f); in TEST()
60 EXPECT_FALSE(cb.empty()); in TEST()
61 cb(); in TEST()
65 Callback0<int> cb; in TEST() local
66 EXPECT_TRUE(cb.empty()); in TEST()
67 cb = Callback0<int>(&g); in TEST()
68 EXPECT_FALSE(cb.empty()); in TEST()
69 EXPECT_EQ(42, cb()); in TEST()
70 EXPECT_EQ(42, cb()); in TEST()
109 Callback0<void> cb = KeepRefUntilDone(&t); in TEST() local
111 cb(); in TEST()
113 cb(); in TEST()
124 Callback0<void> cb = KeepRefUntilDone(&t); in TEST() local
126 cb2 = cb; in TEST()
138 Callback0<void> cb = KeepRefUntilDone(t_scoped_ref); in TEST() local
141 cb(); in TEST()