Searched refs:RunOnDestruction (Results 1 – 2 of 2) sorted by relevance
456 class RunOnDestruction { class458 explicit RunOnDestruction(Fn fn) : fn_(fn) {} in RunOnDestruction() function in fuzzer::RunOnDestruction459 ~RunOnDestruction() { fn_(); } in ~RunOnDestruction()466 RunOnDestruction<Fn> at_scope_exit(Fn fn) { in at_scope_exit()467 return RunOnDestruction<Fn>(fn); in at_scope_exit()
1048 class RunOnDestruction {1050 explicit RunOnDestruction(Fn fn) : fn_(fn) {} in RunOnDestruction() function1051 ~RunOnDestruction() { fn_(); } in ~RunOnDestruction()1060 RunOnDestruction<Fn> at_scope_exit(Fn fn) { in at_scope_exit()1061 return RunOnDestruction<Fn>(fn); in at_scope_exit()