MCPcopy Create free account
hub / github.com/apache/brpc / TEST

Function TEST

test/thread_checker_unittest.cc:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84} // namespace
85
86TEST(ThreadCheckerTest, CallsAllowedOnSameThread) {
87 scoped_ptr<ThreadCheckerClass> thread_checker_class(
88 new ThreadCheckerClass);
89
90 // Verify that DoStuff doesn't assert.
91 thread_checker_class->DoStuff();
92
93 // Verify that the destructor doesn't assert.
94 thread_checker_class.reset();
95}
96
97TEST(ThreadCheckerTest, DestructorAllowedOnDifferentThread) {
98 scoped_ptr<ThreadCheckerClass> thread_checker_class(

Callers

nothing calls this directly

Calls 7

DoStuffMethod · 0.45
resetMethod · 0.45
releaseMethod · 0.45
StartMethod · 0.45
JoinMethod · 0.45
DetachFromThreadMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected