kookie424 / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

gmock_gen.py does not behave correctly for functions that return "unsigned int" #179

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run gmock_gen.py on a class that has a function that returns an 
"unsigned int"
2. gmock_gen will produce a MOCK function that returns an "int"
3.

What is the expected output? What do you see instead?

Expected output:
MOCK_CONST_METHOD1(GetId, 
     unsigned int(const std::string & key)); 

What I saw instead:
MOCK_CONST_METHOD1(GetId, 
     int(const std::string & key)); 

What version of the product are you using? On what operating system?
protobuf-2.1.0
Fedora Core 10

Please provide any additional information below.

Chandler had some additional insight about this:
http://groups.google.com/group/googlemock/browse_thread/thread/e483d9c7141e
f4bb#

Original issue reported on code.google.com by jeungs...@gmail.com on 6 Aug 2009 at 5:50

GoogleCodeExporter commented 9 years ago
This is a Google Mock bug, not a Google Test one.  It has been fixed in Google 
Mock's
SVN trunk in r161.

Original comment by zhanyong...@gmail.com on 7 Aug 2009 at 3:53