| 15 | } |
| 16 | |
| 17 | TEST(BindHelpersTest, TestScopedClosureRunnerExitScope) { |
| 18 | int run_count = 0; |
| 19 | { |
| 20 | butil::ScopedClosureRunner runner(butil::Bind(&Increment, &run_count)); |
| 21 | EXPECT_EQ(0, run_count); |
| 22 | } |
| 23 | EXPECT_EQ(1, run_count); |
| 24 | } |
| 25 | |
| 26 | TEST(BindHelpersTest, TestScopedClosureRunnerRelease) { |
| 27 | int run_count = 0; |