Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: testing/gmock/scripts/generator/README

Issue 140003: Upgrade gtest to r267 and gmock to r173. (Closed)
Patch Set: final fileset. Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « testing/gmock/msvc/gmock_config.vsprops ('k') | testing/gmock/scripts/generator/cpp/ast.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 The Google Mock class generator is an application that is part of cppclean. 2 The Google Mock class generator is an application that is part of cppclean.
3 For more information about cppclean, see the README.cppclean file or 3 For more information about cppclean, see the README.cppclean file or
4 visit http://code.google.com/p/cppclean/ 4 visit http://code.google.com/p/cppclean/
5 5
6 cppclean requires Python 2.3.5 or later. If you don't have Python installed 6 cppclean requires Python 2.3.5 or later. If you don't have Python installed
7 on your system, you will also need to install it. You can download Python 7 on your system, you will also need to install it. You can download Python
8 from: http://www.python.org/download/releases/ 8 from: http://www.python.org/download/releases/
9 9
10 To use the Google Mock class generator, you need to call it 10 To use the Google Mock class generator, you need to call it
11 on the command line passing the header file and class for which you want 11 on the command line passing the header file and class for which you want
12 to generate a Google Mock class. 12 to generate a Google Mock class.
13 13
14 Make sure to install the scripts somewhere in your path. Then you can 14 Make sure to install the scripts somewhere in your path. Then you can
15 run the program. 15 run the program.
16 16
17 gmock_gen.py header-file.h [ClassName]... 17 gmock_gen.py header-file.h [ClassName]...
18 18
19 If no ClassNames are specified, all classes in the file are emitted. 19 If no ClassNames are specified, all classes in the file are emitted.
20 20
21 To change the indentation from the default of 2, set INDENT in 21 To change the indentation from the default of 2, set INDENT in
22 the environment. For example to use an indent of 4 spaces: 22 the environment. For example to use an indent of 4 spaces:
23 23
24 INDENT=4 gmock_gen.py header-file.h ClassName 24 INDENT=4 gmock_gen.py header-file.h ClassName
25 25
26 This version was made from SVN revision 279 in the cppclean repository. 26 This version was made from SVN revision 281 in the cppclean repository.
27 27
28 Known Limitations 28 Known Limitations
29 ----------------- 29 -----------------
30 Not all code will be generated properly. For example, when mocking templated 30 Not all code will be generated properly. For example, when mocking templated
31 classes, the template information is lost. You will need to add the template 31 classes, the template information is lost. You will need to add the template
32 information manually. 32 information manually.
33 33
34 Not all permutations of using multiple pointers/references will be rendered 34 Not all permutations of using multiple pointers/references will be rendered
35 properly. These will also have to be fixed manually. 35 properly. These will also have to be fixed manually.
OLDNEW
« no previous file with comments | « testing/gmock/msvc/gmock_config.vsprops ('k') | testing/gmock/scripts/generator/cpp/ast.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698