Update tests to use recommended MOCK_METHOD (#3395)

This commit is contained in:
Kevin Hwang
2023-04-20 13:16:21 -07:00
committed by GitHub
parent 18e7a2532b
commit e7d6eb6794
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ TEST(ostream_test, write_to_ostream_max_size) {
} buffer(max_size);
struct mock_streambuf : std::streambuf {
MOCK_METHOD2(xsputn, std::streamsize(const void* s, std::streamsize n));
MOCK_METHOD(std::streamsize, xsputn, (const void*, std::streamsize));
auto xsputn(const char* s, std::streamsize n) -> std::streamsize override {
const void* v = s;
return xsputn(v, n);