OLD | NEW |
1 We include a snapshot of gmock from http://googlemock.googlecode.com/svn/trunk | 1 We include a snapshot of gmock from http://googlemock.googlecode.com/svn/trunk. |
2 with chromium.patch applied. | 2 (Why not pull from it directly via DEPS? Because it uses svn:externals, which |
| 3 confuses gclient.) |
3 | 4 |
4 Current revision: 222 | 5 Current revision: 254 |
5 | 6 |
6 | 7 |
7 -- HOW TO USE -- | 8 -- HOW TO USE -- |
8 | 9 |
9 If you are unfamiliar with gmock, there is an example of how to write a test | 10 If you are unfamiliar with gmock, there is an example of how to write a test |
10 based on gmock in base/gmock_unittest.cc. To use gmock, just add a dependency | 11 based on gmock in base/gmock_unittest.cc. To use gmock, just add a dependency |
11 onto testing/gmock.gyp:gmock in your gyp target. | 12 onto testing/gmock.gyp:gmock in your gyp target. |
12 | 13 |
13 For more general informaiton, there is a lot of good documentation availble on | 14 For more general informaiton, there is a lot of good documentation availble on |
14 the googlemock website: | 15 the googlemock website: |
15 | 16 |
16 http://code.google.com/p/googlemock/ | 17 http://code.google.com/p/googlemock/ |
17 | 18 |
18 In particular, the "For Dummies" guide is a good place to start. The | 19 In particular, the "For Dummies" guide is a good place to start. The |
19 "CheatSheet" and "CookBook" are better as references. | 20 "CheatSheet" and "CookBook" are better as references. |
20 | 21 |
21 | 22 |
22 -- RECREATING PACKAGE -- | 23 -- RECREATING PACKAGE -- |
23 | 24 |
24 Starting with r173, gmock began distributing a pared down version of tr1 tuple | |
25 that can be used on compilers without TR1. This means that we will no longer | |
26 need TR1 or boost on windows. | |
27 | |
28 Recreating this package is now just exporting the wanted revision. | |
29 Example: | 25 Example: |
30 | 26 |
31 svn export --ignore-externals \ | 27 svn export --ignore-externals \ |
32 http://googlemock.googlecode.com/svn/trunk/ gmock | 28 http://googlemock.googlecode.com/svn/trunk/ gmock |
33 | 29 |
34 When checking out a copy from svn, --ignore-externals should be used to avoid | 30 When checking out a copy from svn, --ignore-externals should be used to avoid |
35 getting an extra copy of gtest. | 31 getting an extra copy of gtest. |
36 | 32 |
37 This command will grab the head of trunk. Optionally, -r [revision number] to | 33 This command will grab the head of trunk. Optionally, -r [revision number] to |
38 can be passed to svn export if you want a specific revision. The current | 34 can be passed to svn export if you want a specific revision. The current |
39 revision of the source is listed at the top of the README. | 35 revision of the source is listed at the top of the README. |
OLD | NEW |