summaryrefslogtreecommitdiffstats
path: root/testing/README.chromium
blob: d6642cac3e0a975c4860b4aad24207a2c1fe31f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
We include a snapshot of gmock from http://googlemock.googlecode.com/svn/trunk.
(Why not pull from it directly via DEPS?  Because it uses svn:externals, which
confuses gclient.)

Current revision: 282


-- HOW TO USE --

If you are unfamiliar with gmock, there is an example of how to write a test
based on gmock in base/gmock_unittest.cc.  To use gmock, just add a dependency
onto testing/gmock.gyp:gmock in your gyp target.

For more general informaiton, there is a lot of good documentation availble on
the googlemock website:

  http://code.google.com/p/googlemock/

In particular, the "For Dummies" guide is a good place to start.  The
"CheatSheet" and "CookBook" are better as references.


-- RECREATING PACKAGE --

Example:

    svn export --ignore-externals \
        http://googlemock.googlecode.com/svn/trunk/ gmock

When checking out a copy from svn, --ignore-externals should be used to avoid
getting an extra copy of gtest.

This command will grab the head of trunk. Optionally, -r [revision number] to
can be passed to svn export if you want a specific revision.  The current
revision of the source is listed at the top of the README.