Lines Matching refs:event

20   WaitableEvent event(WaitableEvent::ResetPolicy::MANUAL,  in TEST()  local
23 EXPECT_FALSE(event.IsSignaled()); in TEST()
25 event.Signal(); in TEST()
26 EXPECT_TRUE(event.IsSignaled()); in TEST()
27 EXPECT_TRUE(event.IsSignaled()); in TEST()
29 event.Reset(); in TEST()
30 EXPECT_FALSE(event.IsSignaled()); in TEST()
31 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
33 event.Signal(); in TEST()
34 event.Wait(); in TEST()
35 EXPECT_TRUE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
39 WaitableEvent event(WaitableEvent::ResetPolicy::MANUAL, in TEST() local
42 EXPECT_TRUE(event.IsSignaled()); in TEST()
43 EXPECT_TRUE(event.IsSignaled()); in TEST()
45 event.Reset(); in TEST()
47 EXPECT_FALSE(event.IsSignaled()); in TEST()
48 EXPECT_FALSE(event.IsSignaled()); in TEST()
50 event.Signal(); in TEST()
52 event.Wait(); in TEST()
53 EXPECT_TRUE(event.IsSignaled()); in TEST()
54 EXPECT_TRUE(event.IsSignaled()); in TEST()
58 WaitableEvent event(WaitableEvent::ResetPolicy::AUTOMATIC, in TEST() local
61 EXPECT_FALSE(event.IsSignaled()); in TEST()
63 event.Signal(); in TEST()
64 EXPECT_TRUE(event.IsSignaled()); in TEST()
65 EXPECT_FALSE(event.IsSignaled()); in TEST()
67 event.Reset(); in TEST()
68 EXPECT_FALSE(event.IsSignaled()); in TEST()
69 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
71 event.Signal(); in TEST()
72 event.Wait(); in TEST()
73 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
75 event.Signal(); in TEST()
76 EXPECT_TRUE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
80 WaitableEvent event(WaitableEvent::ResetPolicy::AUTOMATIC, in TEST() local
83 EXPECT_TRUE(event.IsSignaled()); in TEST()
84 EXPECT_FALSE(event.IsSignaled()); in TEST()
86 event.Signal(); in TEST()
88 EXPECT_TRUE(event.IsSignaled()); in TEST()
89 EXPECT_FALSE(event.IsSignaled()); in TEST()
153 WaitableEventSignaler(TimeDelta delay, WaitableEvent* event) in WaitableEventSignaler() argument
155 event_(event) { in WaitableEventSignaler()