17 #include "gtest/gtest.h" 23 void TestHook(
int x) { value = x; }
25 TEST(AtomicHookTest, NoDefaultFunction) {
30 EXPECT_TRUE(hook.Load() ==
nullptr);
37 EXPECT_TRUE(hook.Load() == TestHook);
44 EXPECT_TRUE(hook.Load() == TestHook);
50 TEST(AtomicHookTest, WithDefaultFunction) {
57 EXPECT_TRUE(hook.Load() == TestHook);
64 EXPECT_TRUE(hook.Load() == TestHook);
TEST(Symbolize, Unimplemented)