Patrick Venture | 1d66fe6 | 2019-06-03 14:57:27 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Patrick Venture | fa06a5f | 2019-07-01 09:22:38 -0700 | [diff] [blame] | 3 | #include "firmware_handler.hpp" |
Jason Ling | 84bff8b | 2020-11-06 13:45:09 -0800 | [diff] [blame^] | 4 | #include "triggerable_mock.hpp" |
Patrick Venture | 1d66fe6 | 2019-06-03 14:57:27 -0700 | [diff] [blame] | 5 | |
Patrick Venture | fa06a5f | 2019-07-01 09:22:38 -0700 | [diff] [blame] | 6 | #include <memory> |
| 7 | #include <string> |
| 8 | |
Patrick Venture | da4d4a4 | 2020-09-28 11:41:05 -0700 | [diff] [blame] | 9 | #include <gmock/gmock.h> |
Patrick Venture | 1d66fe6 | 2019-06-03 14:57:27 -0700 | [diff] [blame] | 10 | #include <gtest/gtest.h> |
| 11 | |
| 12 | namespace ipmi_flash |
| 13 | { |
Patrick Venture | fa06a5f | 2019-07-01 09:22:38 -0700 | [diff] [blame] | 14 | ActionMap CreateActionMap(const std::string& blobPath) |
| 15 | { |
| 16 | std::unique_ptr<ActionPack> actionPack = std::make_unique<ActionPack>(); |
Patrick Venture | da4d4a4 | 2020-09-28 11:41:05 -0700 | [diff] [blame] | 17 | actionPack->preparation = CreateTriggerMock(); |
| 18 | actionPack->verification = CreateTriggerMock(); |
| 19 | actionPack->update = CreateTriggerMock(); |
Patrick Venture | fa06a5f | 2019-07-01 09:22:38 -0700 | [diff] [blame] | 20 | |
| 21 | ActionMap map; |
| 22 | map[blobPath] = std::move(actionPack); |
| 23 | return map; |
| 24 | } |
| 25 | |
Patrick Venture | 1d66fe6 | 2019-06-03 14:57:27 -0700 | [diff] [blame] | 26 | } // namespace ipmi_flash |