Update tests to use recommended MOCK_METHOD (#3395)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user