Lines Matching refs:embedder
21 class Embedder {
23 Embedder()
42 Embedder embedder;
44 ASSERT_FALSE(embedder.timer_fired());
45 ASSERT_FALSE(embedder.timer()->IsRunning());
47 embedder.timer()->Start(
50 base::Bind(&Embedder::OnTimerFired, base::Unretained(&embedder)));
52 ASSERT_TRUE(embedder.timer()->IsRunning());
53 embedder.timer()->Reset();
54 ASSERT_TRUE(embedder.timer()->IsRunning());
58 ASSERT_TRUE(embedder.timer_fired());
64 // Run message loop after embedder is already deleted to make sure callback
67 Embedder embedder;
69 ASSERT_FALSE(embedder.timer_fired());
70 ASSERT_FALSE(embedder.timer()->IsRunning());
72 embedder.timer()->Start(
75 base::Bind(&Embedder::OnTimerFired, base::Unretained(&embedder)));
77 ASSERT_TRUE(embedder.timer()->IsRunning());
81 // embedder is gone.