Todd Lipcon pointed out that in code review google::FlagSaver already saves the state of all flags at time of construction and restores all of them on destruction. Currently, we rely on ScopedFlagSetter to save and restore modified flags in BE tests. We need to define a ScopedFlagSetter object per modified flags.
It seems less clumsy for BE tests if all of them inherit from a base class which has google::FlagSaver as a class member. In this way, all modified flags in BE tests will be automatically restored and there is no need for a separate ScopedFlagSetter per modified flag.