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