blob: 296b513f88ac18e99b12465c33403ece4e6118f2 [file] [log] [blame]
Patrick Venture8e801e12019-05-20 13:42:45 -07001#pragma once
2
3#include "status.hpp"
4#include "update.hpp"
5
6#include <memory>
7#include <vector>
8
Patrick Venture27ac5822019-05-20 17:39:31 -07009#include <gmock/gmock.h>
Patrick Venture8e801e12019-05-20 13:42:45 -070010
11namespace ipmi_flash
12{
13
14class UpdateMock : public UpdateInterface
15{
16 public:
17 MOCK_METHOD0(triggerUpdate, bool());
18 MOCK_METHOD0(abortUpdate, void());
Patrick Ventureda66fd82019-06-03 11:11:24 -070019 MOCK_METHOD0(status, ActionStatus());
Patrick Venture8e801e12019-05-20 13:42:45 -070020};
21
Patrick Venture27ac5822019-05-20 17:39:31 -070022std::unique_ptr<UpdateInterface> CreateUpdateMock()
23{
24 return std::make_unique<UpdateMock>();
25}
26
Patrick Venture8e801e12019-05-20 13:42:45 -070027} // namespace ipmi_flash