1f92157deSopenharmony_ci
2f92157deSopenharmony_ciThe Google Mock class generator is an application that is part of cppclean.
3f92157deSopenharmony_ciFor more information about cppclean, visit http://code.google.com/p/cppclean/
4f92157deSopenharmony_ci
5f92157deSopenharmony_ciThe mock generator requires Python 2.3.5 or later.  If you don't have Python
6f92157deSopenharmony_ciinstalled on your system, you will also need to install it.  You can download
7f92157deSopenharmony_ciPython from:  http://www.python.org/download/releases/
8f92157deSopenharmony_ci
9f92157deSopenharmony_ciTo use the Google Mock class generator, you need to call it
10f92157deSopenharmony_cion the command line passing the header file and class for which you want
11f92157deSopenharmony_cito generate a Google Mock class.
12f92157deSopenharmony_ci
13f92157deSopenharmony_ciMake sure to install the scripts somewhere in your path.  Then you can
14f92157deSopenharmony_cirun the program.
15f92157deSopenharmony_ci
16f92157deSopenharmony_ci  gmock_gen.py header-file.h [ClassName]...
17f92157deSopenharmony_ci
18f92157deSopenharmony_ciIf no ClassNames are specified, all classes in the file are emitted.
19f92157deSopenharmony_ci
20f92157deSopenharmony_ciTo change the indentation from the default of 2, set INDENT in
21f92157deSopenharmony_cithe environment.  For example to use an indent of 4 spaces:
22f92157deSopenharmony_ci
23f92157deSopenharmony_ciINDENT=4 gmock_gen.py header-file.h ClassName
24f92157deSopenharmony_ci
25f92157deSopenharmony_ciThis version was made from SVN revision 281 in the cppclean repository.
26f92157deSopenharmony_ci
27f92157deSopenharmony_ciKnown Limitations
28f92157deSopenharmony_ci-----------------
29f92157deSopenharmony_ciNot all code will be generated properly.  For example, when mocking templated
30f92157deSopenharmony_ciclasses, the template information is lost.  You will need to add the template
31f92157deSopenharmony_ciinformation manually.
32f92157deSopenharmony_ci
33f92157deSopenharmony_ciNot all permutations of using multiple pointers/references will be rendered
34f92157deSopenharmony_ciproperly.  These will also have to be fixed manually.
35