MCPcopy Create free account
hub / github.com/chen3feng/toft / TEST

Function TEST

system/threading/event_test.cpp:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace toft {
11
12TEST(AutoResetEvent, SetAndWait)
13{
14 AutoResetEvent event;
15 EXPECT_FALSE(event.TryWait());
16 event.Set();
17 EXPECT_TRUE(event.TryWait());
18 EXPECT_FALSE(event.TryWait());
19}
20
21TEST(AutoResetEvent, TimedWait)
22{

Callers

nothing calls this directly

Calls 5

TryWaitMethod · 0.80
SetMethod · 0.45
TimedWaitMethod · 0.45
ResetMethod · 0.45
WaitMethod · 0.45

Tested by

no test coverage detected