blob: 75849543e8042a18984bf1badd859ac3cacc5834 [file] [log] [blame]
pbos@webrtc.org24e20892013-10-28 16:32:011# Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8{
9 'targets': [
10 {
henrike@webrtc.org51b64e42014-09-10 17:28:1911 'target_name': 'rtc_unittests',
12 'type': 'executable',
13 'dependencies': [
14 'base/base.gyp:rtc_base',
15 'base/base_tests.gyp:rtc_base_tests_utils',
16 'base/base_tests.gyp:rtc_base_tests',
17 '<(DEPTH)/testing/gtest.gyp:gtest',
18 ],
19 },
20 {
pbos@webrtc.org24e20892013-10-28 16:32:0121 'target_name': 'webrtc_tests',
22 'type': 'none',
23 'dependencies': [
24 'video_engine_tests',
25 'video_loopback',
pbos@webrtc.orgac772a42014-08-06 16:26:5626 'video_replay',
pbos@webrtc.orgf94ccd42013-12-13 12:48:0527 'webrtc_perf_tests',
pbos@webrtc.org24e20892013-10-28 16:32:0128 ],
29 },
30 {
31 'target_name': 'video_loopback',
32 'type': 'executable',
33 'sources': [
mflodman@webrtc.org59a001f2014-06-05 09:32:5134 'test/mac/run_test.mm',
35 'test/run_test.cc',
36 'test/run_test.h',
pbos@webrtc.orgd05597a2013-12-05 12:11:4737 'video/loopback.cc',
pbos@webrtc.org24e20892013-10-28 16:32:0138 ],
mflodman@webrtc.org59a001f2014-06-05 09:32:5139 'conditions': [
40 ['OS=="mac"', {
41 'sources!': [
42 'test/run_test.cc',
43 ],
44 }],
45 ],
pbos@webrtc.org24e20892013-10-28 16:32:0146 'dependencies': [
47 '<(DEPTH)/testing/gtest.gyp:gtest',
pbos@webrtc.org11de5072014-05-13 11:26:4048 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
pbos@webrtc.org24e20892013-10-28 16:32:0149 'test/webrtc_test_common.gyp:webrtc_test_common',
mflodman@webrtc.org59a001f2014-06-05 09:32:5150 'test/webrtc_test_common.gyp:webrtc_test_renderer',
andresp@webrtc.org0b8a1c42014-05-14 12:24:0451 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:field_trial_default',
pbos@webrtc.org24e20892013-10-28 16:32:0152 'webrtc',
53 ],
54 },
55 {
pbos@webrtc.orgac772a42014-08-06 16:26:5656 'target_name': 'video_replay',
57 'type': 'executable',
58 'sources': [
59 'test/mac/run_test.mm',
60 'test/run_test.cc',
61 'test/run_test.h',
62 'video/replay.cc',
63 ],
64 'conditions': [
65 ['OS=="mac"', {
66 'sources!': [
67 'test/run_test.cc',
68 ],
69 }],
70 ],
71 'dependencies': [
72 '<(DEPTH)/testing/gtest.gyp:gtest',
73 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
74 'system_wrappers/source/system_wrappers.gyp:field_trial_default',
75 'test/webrtc_test_common.gyp:webrtc_test_common',
76 'test/webrtc_test_common.gyp:webrtc_test_renderer',
77 'webrtc',
78 ],
79 },
80 {
pbos@webrtc.org24e20892013-10-28 16:32:0181 'target_name': 'video_engine_tests',
82 'type': '<(gtest_target_type)',
83 'sources': [
pbos@webrtc.org46f72882013-12-16 12:24:4484 'video/bitrate_estimator_tests.cc',
pbos@webrtc.orgeb67a6b2014-06-27 08:47:5285 'video/end_to_end_tests.cc',
sprang@webrtc.org49812e62014-01-07 09:54:3486 'video/send_statistics_proxy_unittest.cc',
pbos@webrtc.org24e20892013-10-28 16:32:0187 'video/video_send_stream_tests.cc',
pbos@webrtc.orgd05597a2013-12-05 12:11:4788 'test/common_unittest.cc',
pbos@webrtc.orgf64791e2013-12-13 14:31:4789 'test/testsupport/metrics/video_metrics_unittest.cc',
pbos@webrtc.org24e20892013-10-28 16:32:0190 ],
91 'dependencies': [
92 '<(DEPTH)/testing/gtest.gyp:gtest',
pbos@webrtc.org24e20892013-10-28 16:32:0193 'modules/modules.gyp:rtp_rtcp',
pbos@webrtc.orgf64791e2013-12-13 14:31:4794 'test/metrics.gyp:metrics',
pbos@webrtc.org24e20892013-10-28 16:32:0195 'test/webrtc_test_common.gyp:webrtc_test_common',
andresp@webrtc.org0b8a1c42014-05-14 12:24:0496 'test/test.gyp:test_main',
mflodman@webrtc.org59a001f2014-06-05 09:32:5197 'test/webrtc_test_common.gyp:webrtc_test_video_render_dependencies',
pbos@webrtc.org24e20892013-10-28 16:32:0198 'webrtc',
99 ],
fischman@webrtc.org487dfb02014-05-27 18:44:59100 'conditions': [
kjellander@webrtc.org606c1cd2014-09-02 08:40:39101 ['OS=="android"', {
fischman@webrtc.org487dfb02014-05-27 18:44:59102 'dependencies': [
103 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
104 ],
105 }],
106 ],
pbos@webrtc.org24e20892013-10-28 16:32:01107 },
pbos@webrtc.orgf94ccd42013-12-13 12:48:05108 {
109 'target_name': 'webrtc_perf_tests',
110 'type': '<(gtest_target_type)',
111 'sources': [
henrik.lundin@webrtc.orge5abc852014-06-09 08:10:28112 'modules/audio_coding/neteq/test/neteq_performance_unittest.cc',
pbos@webrtc.orgf94ccd42013-12-13 12:48:05113 'video/call_perf_tests.cc',
114 'video/full_stack.cc',
115 'video/rampup_tests.cc',
stefan@webrtc.org49927ed2014-07-08 13:59:46116 'video/rampup_tests.h',
kjellander@webrtc.org79426b92014-09-02 15:13:55117 # Needed to make the test binary pass since all tests are disabled on
118 # Android (webrtc:3770).
119 'test/testsupport/always_passing_unittest.cc',
pbos@webrtc.orgf94ccd42013-12-13 12:48:05120 ],
121 'dependencies': [
122 '<(DEPTH)/testing/gtest.gyp:gtest',
henrik.lundin@webrtc.orgab81d852014-04-24 13:19:04123 'modules/modules.gyp:neteq_test_support', # Needed by neteq_performance_unittest.
pbos@webrtc.orgf94ccd42013-12-13 12:48:05124 'modules/modules.gyp:rtp_rtcp',
125 'test/webrtc_test_common.gyp:webrtc_test_common',
andresp@webrtc.org0b8a1c42014-05-14 12:24:04126 'test/test.gyp:test_main',
mflodman@webrtc.org59a001f2014-06-05 09:32:51127 'test/webrtc_test_common.gyp:webrtc_test_video_render_dependencies',
pbos@webrtc.orgf94ccd42013-12-13 12:48:05128 'webrtc',
129 ],
pbos@webrtc.org858611f2014-05-30 12:42:10130 'conditions': [
kjellander@webrtc.orgb9d6b2b2014-09-01 11:06:37131 ['OS=="android"', {
pbos@webrtc.org858611f2014-05-30 12:42:10132 'dependencies': [
133 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
134 ],
135 }],
136 ],
pbos@webrtc.orgf94ccd42013-12-13 12:48:05137 },
pbos@webrtc.org24e20892013-10-28 16:32:01138 ],
139 'conditions': [
kjellander@webrtc.orgb9d6b2b2014-09-01 11:06:37140 ['OS=="android"', {
pbos@webrtc.org24e20892013-10-28 16:32:01141 'targets': [
142 {
kjellander@webrtc.org51917302014-09-03 14:34:46143 'target_name': 'video_engine_tests_apk_target',
pbos@webrtc.org24e20892013-10-28 16:32:01144 'type': 'none',
145 'dependencies': [
kjellander@webrtc.org51917302014-09-03 14:34:46146 '<(apk_tests_path):video_engine_tests_apk',
pbos@webrtc.org24e20892013-10-28 16:32:01147 ],
148 },
pbos@webrtc.orgf94ccd42013-12-13 12:48:05149 {
kjellander@webrtc.org51917302014-09-03 14:34:46150 'target_name': 'webrtc_perf_tests_apk_target',
pbos@webrtc.orgf94ccd42013-12-13 12:48:05151 'type': 'none',
152 'dependencies': [
kjellander@webrtc.org51917302014-09-03 14:34:46153 '<(apk_tests_path):webrtc_perf_tests_apk',
pbos@webrtc.orgf94ccd42013-12-13 12:48:05154 ],
155 },
pbos@webrtc.org24e20892013-10-28 16:32:01156 ],
157 }],
158 ['test_isolation_mode != "noop"', {
159 'targets': [
160 {
161 'target_name': 'video_engine_tests_run',
162 'type': 'none',
163 'dependencies': [
164 'video_engine_tests',
165 ],
166 'includes': [
pbos@webrtc.org800bc1a2013-10-28 18:10:29167 'build/isolate.gypi',
pbos@webrtc.org24e20892013-10-28 16:32:01168 'video_engine_tests.isolate',
169 ],
170 'sources': [
171 'video_engine_tests.isolate',
172 ],
173 },
pbos@webrtc.orgf94ccd42013-12-13 12:48:05174 {
175 'target_name': 'webrtc_perf_tests_run',
176 'type': 'none',
177 'dependencies': [
178 'webrtc_perf_tests',
179 ],
180 'includes': [
181 'build/isolate.gypi',
182 'webrtc_perf_tests.isolate',
183 ],
184 'sources': [
185 'webrtc_perf_tests.isolate',
186 ],
187 },
pbos@webrtc.org24e20892013-10-28 16:32:01188 ],
189 }],
190 ],
191}