Searched refs:RunOnDestruction (Results 1 – 2 of 2) sorted by relevance
406 class RunOnDestruction { class408 explicit RunOnDestruction(Fn fn) : fn_(fn) {} in RunOnDestruction() function in fuzzer::RunOnDestruction409 ~RunOnDestruction() { fn_(); } in ~RunOnDestruction()416 RunOnDestruction<Fn> at_scope_exit(Fn fn) { in at_scope_exit()417 return RunOnDestruction<Fn>(fn); in at_scope_exit()
1026 class RunOnDestruction {1028 explicit RunOnDestruction(Fn fn) : fn_(fn) {} in RunOnDestruction() function1029 ~RunOnDestruction() { fn_(); } in ~RunOnDestruction()1038 RunOnDestruction<Fn> at_scope_exit(Fn fn) { in at_scope_exit()1039 return RunOnDestruction<Fn>(fn); in at_scope_exit()