1 #pragma once 2 3 #include "firmware_handler.hpp" 4 #include "triggerable_mock.hpp" 5 6 #include <memory> 7 #include <string> 8 9 #include <gmock/gmock.h> 10 #include <gtest/gtest.h> 11 12 namespace ipmi_flash 13 { 14 ActionMap CreateActionMap(const std::string& blobPath) 15 { 16 std::unique_ptr<ActionPack> actionPack = std::make_unique<ActionPack>(); 17 actionPack->preparation = CreateTriggerMock(); 18 actionPack->verification = CreateTriggerMock(); 19 actionPack->update = CreateTriggerMock(); 20 21 ActionMap map; 22 map[blobPath] = std::move(actionPack); 23 return map; 24 } 25 26 } // namespace ipmi_flash 27