diff options
author | Patrick Venture <venture@google.com> | 2019-05-20 17:39:31 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-05-20 18:03:39 -0700 |
commit | 27ac582357dfaeb028d41620600aad62650f7c30 (patch) | |
tree | e4dca87c7c2c59fc7b784c7c0f82d9c74ccd9a6e /test/bmc_update_mock.hpp | |
parent | 6f81b16580c9d2e08296c0c0954e77b318f36881 (diff) | |
download | phosphor-ipmi-flash-27ac582357dfaeb028d41620600aad62650f7c30.tar.gz phosphor-ipmi-flash-27ac582357dfaeb028d41620600aad62650f7c30.zip |
bmc: firmware handler owns update mechanism
The firmware handler owns the update mechanism object. The update
mechanism is currently unused.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I5051ee6597f66de941ad7c1f209f6cb7e3d5a835
Diffstat (limited to 'test/bmc_update_mock.hpp')
-rw-r--r-- | test/bmc_update_mock.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/bmc_update_mock.hpp b/test/bmc_update_mock.hpp index 5331b50..3db9221 100644 --- a/test/bmc_update_mock.hpp +++ b/test/bmc_update_mock.hpp @@ -6,7 +6,7 @@ #include <memory> #include <vector> -#include <gtest/gtest.h> +#include <gmock/gmock.h> namespace ipmi_flash { @@ -19,4 +19,9 @@ class UpdateMock : public UpdateInterface MOCK_METHOD0(status, UpdateStatus()); }; +std::unique_ptr<UpdateInterface> CreateUpdateMock() +{ + return std::make_unique<UpdateMock>(); +} + } // namespace ipmi_flash |