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