summaryrefslogtreecommitdiffstats
path: root/testing/gmock.gyp
diff options
context:
space:
mode:
authorajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 06:02:56 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 06:02:56 +0000
commit5290aaa39b51aa27d3f64fba3bc5fff6a08e3a26 (patch)
tree3d8b2b8c80612b8c4f5666ab9bb4fb0f4440cb02 /testing/gmock.gyp
parent6718396a176de7efdab274a06df93dcd03d84088 (diff)
downloadchromium_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/gmock.gyp')
-rw-r--r--testing/gmock.gyp78
1 files changed, 78 insertions, 0 deletions
diff --git a/testing/gmock.gyp b/testing/gmock.gyp
new file mode 100644
index 0000000..e6f50db
--- /dev/null
+++ b/testing/gmock.gyp
@@ -0,0 +1,78 @@
+# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'includes': [
+ '../build/common.gypi',
+ ],
+ 'targets': [
+ {
+ 'target_name': 'gmock',
+ 'type': '<(library)',
+ 'msvs_guid': 'F9D886ED-B09F-4b74-932F-D8E4691E6B7F',
+ 'dependencies': [
+ 'gtest.gyp:gtest',
+ ],
+ 'sources': [
+ 'gmock/include/gmock/gmock-actions.h',
+ 'gmock/include/gmock/gmock-cardinalities.h',
+ 'gmock/include/gmock/gmock-generated-actions.h',
+ 'gmock/include/gmock/gmock-generated-function-mockers.h',
+ 'gmock/include/gmock/gmock-generated-matchers.h',
+ 'gmock/include/gmock/gmock-generated-nice-strict.h',
+ 'gmock/include/gmock/gmock-matchers.h',
+ 'gmock/include/gmock/gmock-printers.h',
+ 'gmock/include/gmock/gmock-spec-builders.h',
+ 'gmock/include/gmock/gmock.h',
+ 'gmock/include/gmock/internal/gmock-generated-internal-utils.h',
+ 'gmock/include/gmock/internal/gmock-internal-utils.h',
+ 'gmock/include/gmock/internal/gmock-port.h',
+ 'gmock/src/gmock-all.cc',
+ 'gmock/src/gmock-cardinalities.cc',
+ 'gmock/src/gmock-internal-utils.cc',
+ 'gmock/src/gmock-matchers.cc',
+ 'gmock/src/gmock-printers.cc',
+ 'gmock/src/gmock-spec-builders.cc',
+ 'gmock/src/gmock.cc',
+ ],
+ 'sources!': [
+ 'gmock/src/gmock-all.cc', # Not needed by our build.
+ ],
+ 'include_dirs': [
+ 'gmock',
+ 'gmock/include',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ 'gmock/include', # So that gmock headers can find themselves.
+ ],
+ },
+ 'export_dependent_settings': [
+ 'gtest.gyp:gtest',
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'dependencies': [
+ '../third_party/boost/boost.gyp:boost_tuple',
+ ],
+ 'export_dependent_settings': [
+ '../third_party/boost/boost.gyp:boost_tuple',
+ ]
+ }],
+ ],
+ },
+ {
+ # Note that calling this "gmock_main" confuses the scons build,
+ # which uses "_main" on scons files to produce special behavior.
+ 'target_name': 'gmockmain',
+ 'type': '<(library)',
+ 'dependencies': [
+ 'gmock',
+ ],
+ 'sources': [
+ 'gmock/src/gmock_main.cc',
+ ],
+ },
+ ],
+}