Make the gmock generator work with the 'override' keyword. Also pull in gtest 680.

This commit is contained in:
kosak
2014-03-12 23:27:35 +00:00
parent b6a348862b
commit c26f969579
3 changed files with 17 additions and 2 deletions

View File

@@ -60,6 +60,17 @@ class Foo {
public:
virtual int Bar();
};
"""
self.assertEqualIgnoreLeadingWhitespace(
'MOCK_METHOD0(Bar,\nint());',
self.GenerateMethodSource(source))
def testSimpleOverrideMethod(self):
source = """
class Foo {
public:
int Bar() override;
};
"""
self.assertEqualIgnoreLeadingWhitespace(
'MOCK_METHOD0(Bar,\nint());',