README revision 13481
111308Santhony.gutierrez@amd.com 211308Santhony.gutierrez@amd.comThe Google Mock class generator is an application that is part of cppclean. 311308Santhony.gutierrez@amd.comFor more information about cppclean, see the README.cppclean file or 411308Santhony.gutierrez@amd.comvisit http://code.google.com/p/cppclean/ 511308Santhony.gutierrez@amd.com 611308Santhony.gutierrez@amd.comcppclean requires Python 2.3.5 or later. If you don't have Python installed 711308Santhony.gutierrez@amd.comon your system, you will also need to install it. You can download Python 811308Santhony.gutierrez@amd.comfrom: http://www.python.org/download/releases/ 911308Santhony.gutierrez@amd.com 1011308Santhony.gutierrez@amd.comTo use the Google Mock class generator, you need to call it 1111308Santhony.gutierrez@amd.comon the command line passing the header file and class for which you want 1211308Santhony.gutierrez@amd.comto generate a Google Mock class. 1311308Santhony.gutierrez@amd.com 1411308Santhony.gutierrez@amd.comMake sure to install the scripts somewhere in your path. Then you can 1511308Santhony.gutierrez@amd.comrun the program. 1611308Santhony.gutierrez@amd.com 1712697Santhony.gutierrez@amd.com gmock_gen.py header-file.h [ClassName]... 1812697Santhony.gutierrez@amd.com 1912697Santhony.gutierrez@amd.comIf no ClassNames are specified, all classes in the file are emitted. 2011308Santhony.gutierrez@amd.com 2111308Santhony.gutierrez@amd.comTo change the indentation from the default of 2, set INDENT in 2211308Santhony.gutierrez@amd.comthe environment. For example to use an indent of 4 spaces: 2311308Santhony.gutierrez@amd.com 2411308Santhony.gutierrez@amd.comINDENT=4 gmock_gen.py header-file.h ClassName 2511308Santhony.gutierrez@amd.com 2611308Santhony.gutierrez@amd.comThis version was made from SVN revision 281 in the cppclean repository. 2711308Santhony.gutierrez@amd.com 2811308Santhony.gutierrez@amd.comKnown Limitations 2911308Santhony.gutierrez@amd.com----------------- 3011308Santhony.gutierrez@amd.comNot all code will be generated properly. For example, when mocking templated 3111308Santhony.gutierrez@amd.comclasses, the template information is lost. You will need to add the template 3211308Santhony.gutierrez@amd.cominformation manually. 3312697Santhony.gutierrez@amd.com 3412697Santhony.gutierrez@amd.comNot all permutations of using multiple pointers/references will be rendered 3511308Santhony.gutierrez@amd.comproperly. These will also have to be fixed manually. 3612697Santhony.gutierrez@amd.com