Added empty unit tests to get code coverage measured.

In order to get code coverage recorded, there must be an executing test that is linked to the code to measure.
These projects are currently not showing up in the code coverage.

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1010 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
kjellander@webrtc.org 2011-11-24 07:20:00 +00:00
parent 55d81ea517
commit d492f72e43
8 changed files with 144 additions and 3 deletions

View File

@ -41,7 +41,26 @@
'time_scheduler.h',
],
},
], # targets
'conditions': [
['build_with_chromium==0', {
'targets': [
{
'target_name': 'audio_conference_mixer_unittests',
'type': 'executable',
'dependencies': [
'audio_conference_mixer',
'<(webrtc_root)/../testing/gtest.gyp:gtest',
'<(webrtc_root)/../test/test.gyp:test_support_main',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
],
'sources': [
'audio_conference_mixer_unittest.cc',
],
}, # audio_conference_mixer_unittests
], # targets
}], # build_with_chromium
], # conditions
}
# Local Variables:

View File

@ -0,0 +1,17 @@
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
/*
* Empty test just to get code coverage metrics for this dir.
*/
#include "audio_conference_mixer.h"
#include "gtest/gtest.h"
TEST(AudioConferenceMixerTest, EmptyTestToGetCodeCoverage) {}

View File

@ -39,7 +39,25 @@
'media_file_utility.h',
], # source
},
], # targets
'conditions': [
['build_with_chromium==0', {
'targets': [
{
'target_name': 'media_file_unittests',
'type': 'executable',
'dependencies': [
'media_file',
'<(webrtc_root)/../testing/gtest.gyp:gtest',
'<(webrtc_root)/../test/test.gyp:test_support_main',
],
'sources': [
'media_file_unittest.cc',
],
}, # media_file_unittests
], # targets
}], # build_with_chromium
], # conditions
}
# Local Variables:

View File

@ -0,0 +1,17 @@
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
/*
* Empty test just to get code coverage metrics for this dir.
*/
#include "media_file.h"
#include "gtest/gtest.h"
TEST(MediaFileTest, EmptyTestToGetCodeCoverage) {}

View File

@ -93,6 +93,24 @@
] # conditions
},
], # targets
'conditions': [
['build_with_chromium==0', {
'targets': [
{
'target_name': 'udp_transport_unittests',
'type': 'executable',
'dependencies': [
'udp_transport',
'<(webrtc_root)/../testing/gtest.gyp:gtest',
'<(webrtc_root)/../test/test.gyp:test_support_main',
],
'sources': [
'udp_transport_unittest.cc',
],
}, # udp_transport_unittests
], # targets
}], # build_with_chromium
], # conditions
}
# Local Variables:

View File

@ -0,0 +1,17 @@
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
/*
* Empty test just to get code coverage metrics for this dir.
*/
#include "udp_transport.h"
#include "gtest/gtest.h"
TEST(UDPTransportTest, EmptyTestToGetCodeCoverage) {}

View File

@ -0,0 +1,17 @@
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
/*
* Empty test just to get code coverage metrics for this dir.
*/
#include "file_player.h"
#include "gtest/gtest.h"
TEST(FilePlayerTest, EmptyTestToGetCodeCoverage) {}

View File

@ -65,7 +65,25 @@
}],
],
},
], # targets
'conditions': [
['build_with_chromium==0', {
'targets': [
{
'target_name': 'webrtc_utility_unittests',
'type': 'executable',
'dependencies': [
'webrtc_utility',
'<(webrtc_root)/../testing/gtest.gyp:gtest',
'<(webrtc_root)/../test/test.gyp:test_support_main',
],
'sources': [
'file_player_unittest.cc',
],
}, # webrtc_utility_unittests
], # targets
}], # build_with_chromium
], # conditions
}
# Local Variables: