test: Replace the C++ MOCK_METHOD<n> macros with the new MOCK_METHOD
Change-Id: I5099c727e9e918f19fa61acc91ef75250ebc6fa6
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/tools/test/data_interface_mock.hpp b/tools/test/data_interface_mock.hpp
index 0ee799b..c69de72 100644
--- a/tools/test/data_interface_mock.hpp
+++ b/tools/test/data_interface_mock.hpp
@@ -13,8 +13,10 @@
public:
virtual ~DataInterfaceMock() = default;
- MOCK_METHOD2(sendContents, bool(const std::string&, std::uint16_t));
- MOCK_CONST_METHOD0(supportedType, ipmi_flash::FirmwareFlags::UpdateFlags());
+ MOCK_METHOD(bool, sendContents, (const std::string&, std::uint16_t),
+ (override));
+ MOCK_METHOD(ipmi_flash::FirmwareFlags::UpdateFlags, supportedType, (),
+ (const, override));
};
} // namespace host_tool