summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-21 05:55:06 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-21 05:55:06 +0000
commitc5549061295b9aa5a88ab68d8252611a89834927 (patch)
tree1f00bfdfb910cf4cc81c1bd8fa76b06163e765c6 /base
parente14c6de76c4d54d1c9fb9cfc7cc06a85eef8db19 (diff)
downloadchromium_src-c5549061295b9aa5a88ab68d8252611a89834927.zip
chromium_src-c5549061295b9aa5a88ab68d8252611a89834927.tar.gz
chromium_src-c5549061295b9aa5a88ab68d8252611a89834927.tar.bz2
Add a new 'run_all_unittests' target in base
Make all the places that include run_all_unittests.cc manually depend on this target instead. BUG= TEST= Review URL: http://codereview.chromium.org/9691067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127911 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/base.gyp16
1 files changed, 13 insertions, 3 deletions
diff --git a/base/base.gyp b/base/base.gyp
index e7d8624..08461d7 100644
--- a/base/base.gyp
+++ b/base/base.gyp
@@ -139,13 +139,22 @@
}
],
},
+ # Include this target for a main() function that simply instantiates
+ # and runs a base::TestSuite.
+ {
+ 'target_name': 'run_all_unittests',
+ 'type': 'static_library',
+ 'dependencies': [
+ 'test_support_base',
+ ],
+ 'sources': [
+ 'test/run_all_unittests.cc',
+ ],
+ },
{
'target_name': 'base_unittests',
'type': 'executable',
'sources': [
- # Infrastructure files.
- 'test/run_all_unittests.cc',
-
# Tests.
'android/jni_android_unittest.cc',
'android/scoped_java_ref_unittest.cc',
@@ -295,6 +304,7 @@
'base',
'base_i18n',
'base_static',
+ 'run_all_unittests',
'test_support_base',
'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../testing/gmock.gyp:gmock',