Patrick Venture | 54c3b53 | 2018-08-01 11:45:49 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Patrick Venture | 1aedab2 | 2018-09-10 14:41:45 -0700 | [diff] [blame] | 3 | #include "flash-ipmi.hpp" |
| 4 | |
Patrick Venture | 79e131f | 2018-08-01 13:34:35 -0700 | [diff] [blame] | 5 | #include <vector> |
Patrick Venture | 54c3b53 | 2018-08-01 11:45:49 -0700 | [diff] [blame] | 6 | |
Patrick Venture | 1aedab2 | 2018-09-10 14:41:45 -0700 | [diff] [blame] | 7 | #include <gmock/gmock.h> |
Patrick Venture | 54c3b53 | 2018-08-01 11:45:49 -0700 | [diff] [blame] | 8 | |
| 9 | class UpdaterMock : public UpdateInterface |
| 10 | { |
| 11 | public: |
| 12 | virtual ~UpdaterMock() = default; |
| 13 | |
| 14 | MOCK_METHOD1(start, bool(uint32_t)); |
Patrick Venture | 79e131f | 2018-08-01 13:34:35 -0700 | [diff] [blame] | 15 | MOCK_METHOD2(flashData, bool(uint32_t, const std::vector<uint8_t>&)); |
Patrick Venture | 2c1205d | 2018-08-03 10:23:14 -0700 | [diff] [blame] | 16 | MOCK_METHOD0(flashFinish, bool()); |
Patrick Venture | 8d9f732 | 2018-08-03 10:39:13 -0700 | [diff] [blame] | 17 | MOCK_METHOD1(startHash, bool(uint32_t)); |
Patrick Venture | cfe6687 | 2018-08-03 13:32:33 -0700 | [diff] [blame] | 18 | MOCK_METHOD2(hashData, bool(uint32_t, const std::vector<uint8_t>&)); |
Patrick Venture | fbc7d19 | 2018-08-03 13:54:21 -0700 | [diff] [blame] | 19 | MOCK_METHOD0(hashFinish, bool()); |
Patrick Venture | 1cb87d2 | 2018-08-03 18:22:09 -0700 | [diff] [blame] | 20 | MOCK_METHOD0(startDataVerification, bool()); |
Patrick Venture | 5c251ca | 2018-08-03 18:31:01 -0700 | [diff] [blame] | 21 | MOCK_METHOD0(abortUpdate, bool()); |
Patrick Venture | fdc65b2 | 2018-08-07 14:37:58 -0700 | [diff] [blame] | 22 | MOCK_METHOD0(checkVerify, VerifyCheckResponse()); |
Patrick Venture | 54c3b53 | 2018-08-01 11:45:49 -0700 | [diff] [blame] | 23 | }; |