Changing usage of gtest_main target, to use test_support_main instead.

Review URL: http://webrtc-codereview.appspot.com/252002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@884 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
kjellander@webrtc.org
2011-11-03 23:28:47 +00:00
parent 89088b963e
commit 1a8d08ad76
7 changed files with 34 additions and 67 deletions

View File

@@ -18,7 +18,7 @@
'dependencies': [
'<(webrtc_root)/../testing/gtest.gyp:gtest',
],
'direct_dependent_settings': {
'all_dependent_settings': {
'include_dirs': [
'.',
],
@@ -30,15 +30,26 @@
'testsupport/fileutils.cc',
],
},
{
# Depend on this target when you want to have test_support but also the
# main method needed for gtest to execute!
'target_name': 'test_support_main',
'type': 'static_library',
'dependencies': [
'test_support',
],
'sources': [
'run_all_unittests.cc',
],
},
{
'target_name': 'test_support_unittests',
'type': 'executable',
'dependencies': [
'test_support',
'test_support_main',
'<(webrtc_root)/../testing/gtest.gyp:gtest',
],
'sources': [
'run_all_unittests.cc',
'sources': [
'testsupport/fileutils_unittest.cc',
],
},