12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #include <string>
- #include "update_engine/common/action.h"
- #include "update_engine/common/boot_control_interface.h"
- #include <gtest/gtest_prod.h>
- namespace chromeos_update_engine {
- class UpdateBootFlagsAction : public AbstractAction {
- public:
- explicit UpdateBootFlagsAction(BootControlInterface* boot_control)
- : boot_control_(boot_control) {}
- void PerformAction() override;
- void TerminateProcessing() override;
- static std::string StaticType() { return "UpdateBootFlagsAction"; }
- std::string Type() const override { return StaticType(); }
- void CompleteUpdateBootFlags(bool successful);
- private:
- FRIEND_TEST(UpdateBootFlagsActionTest, SimpleTest);
- FRIEND_TEST(UpdateBootFlagsActionTest, DoubleActionTest);
-
-
-
-
-
-
-
- static bool updated_boot_flags_;
-
- static bool is_running_;
-
- BootControlInterface* boot_control_;
- DISALLOW_COPY_AND_ASSIGN(UpdateBootFlagsAction);
- };
- }
|