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/io_mock.hpp b/tools/test/io_mock.hpp
index eddd6ff..f7d25c5 100644
--- a/tools/test/io_mock.hpp
+++ b/tools/test/io_mock.hpp
@@ -12,10 +12,11 @@
public:
~HostIoInterfaceMock() = default;
- MOCK_METHOD3(read, bool(const std::size_t, const std::size_t, void* const));
-
- MOCK_METHOD3(write,
- bool(const std::size_t, const std::size_t, const void* const));
+ MOCK_METHOD(bool, read, (const std::size_t, const std::size_t, void* const),
+ (override));
+ MOCK_METHOD(bool, write,
+ (const std::size_t, const std::size_t, const void* const),
+ (override));
};
} // namespace host_tool