Add IPMI interface for CustomAccel service
Change-Id: I28a8976e382b457233ac521e9ab71f75abe029d1
Signed-off-by: Steve Foreman <foremans@google.com>
diff --git a/test/handler_mock.hpp b/test/handler_mock.hpp
index d393bde..2fb8e2a 100644
--- a/test/handler_mock.hpp
+++ b/test/handler_mock.hpp
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
#include <cstddef>
#include <cstdint>
#include <string>
+#include <string_view>
#include <tuple>
#include <gmock/gmock.h>
@@ -53,6 +54,14 @@
MOCK_METHOD((std::tuple<std::uint32_t, std::string>), getI2cEntry,
(unsigned int), (const, override));
MOCK_METHOD(void, hostPowerOffDelay, (std::uint32_t), (const, override));
+
+ MOCK_METHOD(uint32_t, accelOobDeviceCount, (), (const, override));
+ MOCK_METHOD(std::string, accelOobDeviceName, (size_t), (const, override));
+ MOCK_METHOD(uint64_t, accelOobRead, (std::string_view, uint64_t, uint8_t),
+ (const, override));
+ MOCK_METHOD(void, accelOobWrite,
+ (std::string_view, uint64_t, uint8_t, uint64_t),
+ (const, override));
};
} // namespace ipmi