blob: a3ba784ba6238dc530a66a2c50e76f748037951a [file] [log] [blame]
shiqiane35fdd92008-12-10 05:08:54 +00001
2The Google Mock class generator is an application that is part of cppclean.
3For more information about cppclean, see the README.cppclean file or
4visit http://code.google.com/p/cppclean/
5
6cppclean requires Python 2.4 or later. If you don't have Python installed
7on your system, you will also need to install it. You can download Python
8from: http://www.python.org/download/releases/
9
10To use the Google Mock class generator, you need to call it
11on the command line passing the header file and class for which you want
12to generate a Google Mock class.
13
14Make sure to install the scripts somewhere in your path. Then you can
15run the program.
16
17 gmock_gen.py header-file.h ClassName
18
19To change the indentation from the default of 2, set INDENT in
20the environment. For example to use an indent of 4 spaces:
21
22INDENT=4 gmock_gen.py header-file.h ClassName
23
24This version was made from SVN revision 279 in the cppclean repository.
25
26Known Limitations
27-----------------
28Not all code will be generated properly. For example, when mocking templated
29classes, the template information is lost. You will need to add the template
30information manually.
31
32Not all permutations of using multiple pointers/references will be rendered
33properly. These will also have to be fixed manually.