diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-28 06:02:56 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-28 06:02:56 +0000 |
commit | 5290aaa39b51aa27d3f64fba3bc5fff6a08e3a26 (patch) | |
tree | 3d8b2b8c80612b8c4f5666ab9bb4fb0f4440cb02 /testing/chromium.patch | |
parent | 6718396a176de7efdab274a06df93dcd03d84088 (diff) | |
download | chromium_src-5290aaa39b51aa27d3f64fba3bc5fff6a08e3a26.zip chromium_src-5290aaa39b51aa27d3f64fba3bc5fff6a08e3a26.tar.gz chromium_src-5290aaa39b51aa27d3f64fba3bc5fff6a08e3a26.tar.bz2 |
Retry to checkin a version of gmock, modified to use our boost_tuple in VS2005.
This checkin adds gmock, and a small example of how to write a gmock-based unittest.
Original Review URL: http://codereview.chromium.org/113807
Review URL: http://codereview.chromium.org/115846
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17066 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'testing/chromium.patch')
-rw-r--r-- | testing/chromium.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/chromium.patch b/testing/chromium.patch new file mode 100644 index 0000000..26b5662 --- /dev/null +++ b/testing/chromium.patch @@ -0,0 +1,20 @@ +diff -ru gmock.orig/include/gmock/internal/gmock-port.h gmock/include/gmock/internal/gmock-port.h +--- gmock.orig/include/gmock/internal/gmock-port.h 2009-05-22 23:58:41.000000000 -0700 ++++ gmock/include/gmock/internal/gmock-port.h 2009-05-23 00:49:01.000000000 -0700 +@@ -54,9 +54,14 @@ + // GCC 4.0+ implements tr1/tuple in the <tr1/tuple> header. This does + // not conform to the TR1 spec, which requires the header to be <tuple>. + #include <tr1/tuple> ++#elif defined(_MSC_VER) && _MSC_VER < 1500 ++// For Visual Studio older than 2008, we redirect directly to boost tuple ++// searching from boost's root. This is to avoid extra dirtying of the ++// compiler include paths. ++#include "boost/tr1/tr1/tuple" + #else +-// If the compiler is not GCC 4.0+, we assume the user is using a +-// spec-conforming TR1 implementation. ++// If the compiler is neither GCC 4.0+, nor Visual Studio 2008, we assume the ++// user is using a spec-conforming TR1 implementation. + #include <tuple> + #endif // __GNUC__ + |