From b3028967515e94f498463ec46821ed758e6ab16f Mon Sep 17 00:00:00 2001 From: ChristophStrehle Date: Tue, 17 Mar 2020 14:25:07 +0100 Subject: [PATCH] Define the MOCK_METHOD macro (#2571) Without the macro defined the following would yield a syntax error: struct IFoo { virtual GetInt(const std::string& name) = 0; }; struct MockFoo : IFoo { MOCK_METHOD(int32_t, GetInt, (const std::wstring &name), (override, const)); }; Co-authored-by: Christoph Strehle --- cfg/googletest.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/cfg/googletest.cfg b/cfg/googletest.cfg index 33709c470..73e658d3f 100644 --- a/cfg/googletest.cfg +++ b/cfg/googletest.cfg @@ -54,4 +54,5 @@ +