Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / webrtc_tests.gypi
1 # 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     {
11       'target_name': 'webrtc_tests',
12       'type': 'none',
13       'dependencies': [
14         'video_engine_tests',
15         'video_loopback',
16         'video_replay',
17         'webrtc_perf_tests',
18       ],
19     },
20     {
21       'target_name': 'video_loopback',
22       'type': 'executable',
23       'sources': [
24         'test/mac/run_test.mm',
25         'test/run_test.cc',
26         'test/run_test.h',
27         'video/loopback.cc',
28       ],
29       'conditions': [
30         ['OS=="mac"', {
31           'sources!': [
32             'test/run_test.cc',
33           ],
34         }],
35       ],
36       'dependencies': [
37         '<(DEPTH)/testing/gtest.gyp:gtest',
38         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
39         'test/webrtc_test_common.gyp:webrtc_test_common',
40         'test/webrtc_test_common.gyp:webrtc_test_renderer',
41         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:field_trial_default',
42         'webrtc',
43       ],
44     },
45     {
46       'target_name': 'video_replay',
47       'type': 'executable',
48       'sources': [
49         'test/mac/run_test.mm',
50         'test/run_test.cc',
51         'test/run_test.h',
52         'video/replay.cc',
53       ],
54       'conditions': [
55         ['OS=="mac"', {
56           'sources!': [
57             'test/run_test.cc',
58           ],
59         }],
60       ],
61       'dependencies': [
62         '<(DEPTH)/testing/gtest.gyp:gtest',
63         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
64         'system_wrappers/source/system_wrappers.gyp:field_trial_default',
65         'test/webrtc_test_common.gyp:webrtc_test_common',
66         'test/webrtc_test_common.gyp:webrtc_test_renderer',
67         'webrtc',
68       ],
69     },
70     {
71       'target_name': 'video_engine_tests',
72       'type': '<(gtest_target_type)',
73       'sources': [
74         'video/bitrate_estimator_tests.cc',
75         'video/end_to_end_tests.cc',
76         'video/send_statistics_proxy_unittest.cc',
77         'video/video_send_stream_tests.cc',
78         'test/common_unittest.cc',
79         'test/testsupport/metrics/video_metrics_unittest.cc',
80       ],
81       'dependencies': [
82         '<(DEPTH)/testing/gtest.gyp:gtest',
83         'modules/modules.gyp:rtp_rtcp',
84         'test/metrics.gyp:metrics',
85         'test/webrtc_test_common.gyp:webrtc_test_common',
86         'test/test.gyp:test_main',
87         'test/webrtc_test_common.gyp:webrtc_test_video_render_dependencies',
88         'webrtc',
89       ],
90       'conditions': [
91         # TODO(henrike): remove build_with_chromium==1 when the bots are
92         # using Chromium's buildbots.
93         ['build_with_chromium==1 and OS=="android"', {
94           'dependencies': [
95             '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
96           ],
97         }],
98       ],
99     },
100     {
101       'target_name': 'webrtc_perf_tests',
102       'type': '<(gtest_target_type)',
103       'sources': [
104         'modules/audio_coding/neteq/test/neteq_performance_unittest.cc',
105         'video/call_perf_tests.cc',
106         'video/full_stack.cc',
107         'video/rampup_tests.cc',
108         'video/rampup_tests.h',
109       ],
110       'dependencies': [
111         '<(DEPTH)/testing/gtest.gyp:gtest',
112         'modules/modules.gyp:neteq_test_support',  # Needed by neteq_performance_unittest.
113         'modules/modules.gyp:rtp_rtcp',
114         'test/webrtc_test_common.gyp:webrtc_test_common',
115         'test/test.gyp:test_main',
116         'test/webrtc_test_common.gyp:webrtc_test_video_render_dependencies',
117         'webrtc',
118       ],
119       'conditions': [
120         # TODO(henrike): remove build_with_chromium==1 when the bots are
121         # using Chromium's buildbots.
122         ['build_with_chromium==1 and OS=="android"', {
123           'dependencies': [
124             '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
125           ],
126         }],
127       ],
128     },
129   ],
130   'conditions': [
131     # TODO(henrike): remove build_with_chromium==1 when the bots are using
132     # Chromium's buildbots.
133     ['build_with_chromium==1 and OS=="android"', {
134       'targets': [
135         {
136           'target_name': 'video_engine_tests_apk_target',
137           'type': 'none',
138           'dependencies': [
139             '<(apk_tests_path):video_engine_tests_apk',
140           ],
141         },
142         {
143           'target_name': 'webrtc_perf_tests_apk_target',
144           'type': 'none',
145           'dependencies': [
146             '<(apk_tests_path):webrtc_perf_tests_apk',
147           ],
148         },
149       ],
150     }],
151     ['test_isolation_mode != "noop"', {
152       'targets': [
153         {
154           'target_name': 'video_engine_tests_run',
155           'type': 'none',
156           'dependencies': [
157             'video_engine_tests',
158           ],
159           'includes': [
160             'build/isolate.gypi',
161             'video_engine_tests.isolate',
162           ],
163           'sources': [
164             'video_engine_tests.isolate',
165           ],
166         },
167         {
168           'target_name': 'webrtc_perf_tests_run',
169           'type': 'none',
170           'dependencies': [
171             'webrtc_perf_tests',
172           ],
173           'includes': [
174             'build/isolate.gypi',
175             'webrtc_perf_tests.isolate',
176           ],
177           'sources': [
178             'webrtc_perf_tests.isolate',
179           ],
180         },
181       ],
182     }],
183   ],
184 }