Lines Matching refs:guarded_var
25 bool guarded_var = true; in TEST() local
27 auto scopeguard = android::base::make_scope_guard([&guarded_var] { guarded_var = false; }); in TEST()
29 ASSERT_FALSE(guarded_var); in TEST()
33 bool guarded_var = true; in TEST() local
35 auto scopeguard = android::base::make_scope_guard([&guarded_var] { guarded_var = false; }); in TEST()
38 ASSERT_TRUE(guarded_var); in TEST()
42 int guarded_var = true; in TEST() local
43 auto scopeguard = android::base::make_scope_guard([&guarded_var] { guarded_var = false; }); in TEST()
46 ASSERT_FALSE(guarded_var); in TEST()
50 int guarded_var = 0; in TEST() local
54 std::bind([](int& guarded_var) { guarded_var++; }, std::ref(guarded_var)))); in TEST() argument
56 std::bind([](int& guarded_var) { guarded_var++; }, std::ref(guarded_var)))); in TEST() argument
58 ASSERT_EQ(guarded_var, 2); in TEST()