blob: 8238e2fb76f9dd41f2166d233660b0d59cd9156a [file] [log] [blame]
Patrick Venture1d66fe62019-06-03 14:57:27 -07001#pragma once
2
Patrick Venturefa06a5f2019-07-01 09:22:38 -07003#include "firmware_handler.hpp"
Jason Ling84bff8b2020-11-06 13:45:09 -08004#include "triggerable_mock.hpp"
Patrick Venture1d66fe62019-06-03 14:57:27 -07005
Patrick Venturefa06a5f2019-07-01 09:22:38 -07006#include <memory>
7#include <string>
8
Patrick Ventureda4d4a42020-09-28 11:41:05 -07009#include <gmock/gmock.h>
Patrick Venture1d66fe62019-06-03 14:57:27 -070010#include <gtest/gtest.h>
11
12namespace ipmi_flash
13{
Patrick Venturefa06a5f2019-07-01 09:22:38 -070014ActionMap CreateActionMap(const std::string& blobPath)
15{
16 std::unique_ptr<ActionPack> actionPack = std::make_unique<ActionPack>();
Patrick Ventureda4d4a42020-09-28 11:41:05 -070017 actionPack->preparation = CreateTriggerMock();
18 actionPack->verification = CreateTriggerMock();
19 actionPack->update = CreateTriggerMock();
Patrick Venturefa06a5f2019-07-01 09:22:38 -070020
21 ActionMap map;
22 map[blobPath] = std::move(actionPack);
23 return map;
24}
25
Patrick Venture1d66fe62019-06-03 14:57:27 -070026} // namespace ipmi_flash