51198f1c68
Checks for: - No iostream includes in headers - No use of FRIEND_TEST for gtest - Verifies that all C/C++ code passes cpplint.py check. - Verifies that BUG= is present in commit message - Verifies that TEST= is present in commit message For more details, see Chrome's PRESUBMIT.py at http://src.chromium.org/viewvc/chrome/trunk/src/PRESUBMIT.py?revision=113979&view=markup and the canned checks at http://src.chromium.org/viewvc/chrome/trunk/tools/depot_tools/presubmit_canned_checks.py?view=markup BUG= TEST= Review URL: https://webrtc-codereview.appspot.com/317011 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1737 4adac7df-926f-26a2-2b94-8c16560cd09d
80 lines
2.3 KiB
Python
80 lines
2.3 KiB
Python
# 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.
|
|
|
|
# TODO(andrew): consider moving test_support to src/base/test.
|
|
{
|
|
'includes': [
|
|
'../src/build/common.gypi',
|
|
],
|
|
'targets': [
|
|
{
|
|
'target_name': 'test_support',
|
|
'type': 'static_library',
|
|
'include_dirs': [
|
|
'.',
|
|
],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [
|
|
'.', # Some includes are hierarchical
|
|
],
|
|
},
|
|
'dependencies': [
|
|
'<(webrtc_root)/../testing/gtest.gyp:gtest',
|
|
'<(webrtc_root)/../testing/gmock.gyp:gmock',
|
|
],
|
|
'all_dependent_settings': {
|
|
'include_dirs': [
|
|
'.',
|
|
],
|
|
},
|
|
'sources': [
|
|
'test_suite.cc',
|
|
'test_suite.h',
|
|
'testsupport/fileutils.h',
|
|
'testsupport/fileutils.cc',
|
|
'testsupport/frame_reader.h',
|
|
'testsupport/frame_reader.cc',
|
|
'testsupport/frame_writer.h',
|
|
'testsupport/frame_writer.cc',
|
|
'testsupport/gtest_prod_util.h',
|
|
'testsupport/packet_reader.h',
|
|
'testsupport/packet_reader.cc',
|
|
'testsupport/mock/mock_frame_reader.h',
|
|
'testsupport/mock/mock_frame_writer.h',
|
|
],
|
|
},
|
|
{
|
|
# 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_main',
|
|
'<(webrtc_root)/../testing/gtest.gyp:gtest',
|
|
],
|
|
'sources': [
|
|
'testsupport/unittest_utils.h',
|
|
'testsupport/fileutils_unittest.cc',
|
|
'testsupport/frame_reader_unittest.cc',
|
|
'testsupport/frame_writer_unittest.cc',
|
|
'testsupport/packet_reader_unittest.cc',
|
|
],
|
|
},
|
|
],
|
|
}
|