Home | History | Annotate | Download | only in base

Lines Matching refs:cb

49   Callback0<void> cb;
50 EXPECT_TRUE(cb.empty());
51 cb(); // Executing an empty callback should not crash.
52 cb = Callback0<void>(&f);
53 EXPECT_FALSE(cb.empty());
54 cb();
58 Callback0<int> cb;
59 EXPECT_TRUE(cb.empty());
60 cb = Callback0<int>(&g);
61 EXPECT_FALSE(cb.empty());
62 EXPECT_EQ(42, cb());
63 EXPECT_EQ(42, cb());
102 Callback0<void> cb = KeepRefUntilDone(&t);
104 cb();
106 cb();
117 Callback0<void> cb = KeepRefUntilDone(&t);
119 cb2 = cb;
131 Callback0<void> cb = KeepRefUntilDone(t_scoped_ref);
134 cb();