You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
execute gmock_gen.py on a class containing the following type of method:
class AbstractObject{
public:
virtual const char* getObject() const = 0;
};
file MockBug.h containing a class with this type of method is attached.
What is the expected output?
MOCK_CONST_METHOD0(getObject, const char*() );
What do you see instead?
MOCK_CONST_METHOD0(getObject, char*() );
file mock_test_output.txt is attached.
What version of the product are you using? On what operating system?
googlemock 1.1.0
python 2.6
windows xp
Used this googlemock cookbook example as a reference that const should be
included:
for method in the cookbook: virtual const Bar& GetBar() const;
cookbook example: MOCK_CONST_METHOD0(GetBar, const Bar&());
Original issue reported on code.google.com by marlena....@gmail.com on 28 Apr 2009 at 9:18
Committed revision 145. You can use the upgraded script by downloading it
here:
http://googlemock.googlecode.com/svn/trunk/scripts/generator/cpp/gmock_class.py
Install that file over top of the existing gmock_class.py file and that should
fix
this problem. Let me know if you have more issues.
Thanks again for the bug report.
Original comment by nnorw...@gmail.com on 6 May 2009 at 5:04
Original issue reported on code.google.com by
marlena....@gmail.com
on 28 Apr 2009 at 9:18Attachments:
The text was updated successfully, but these errors were encountered: