Arquivos
ajwong@chromium.org 85c4afb00a Upgrade gtest to r267 and gmock to r173.
This is step1 into removing the boost + tr1 dependency in windows.  It also includes a hack to avoid brining in tr1/functional on gcc, which will move us closer to enabling -fno-rtti.

This CL has passed the try servers.  I've also tried compiling gmock, gmock_main, base, base_unittests, and webcore modules in vs2008 express editions.

Review URL: http://codereview.chromium.org/140003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18923 0039d316-1c4b-4281-b951-d872f2087c98
2009-06-22 18:32:21 +00:00

40 linhas
1.3 KiB
Plaintext

We include a snapshot of gmock from http://googlemock.googlecode.com/svn/trunk
with chromium.patch applied.
Current revision: 173
-- 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 --
Starting with r173, gmock began distributing a pared down version of tr1 tuple
that can be used on compilers without TR1. This means that we will no longer
need TR1 or boost on windows.
Recreating this package is now just exporting the wanted revision.
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.