Upstream version 7.36.149.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         'video/loopback.cc',
24         'test/test_main.cc',
25       ],
26       'dependencies': [
27         '<(DEPTH)/testing/gtest.gyp:gtest',
28         'test/webrtc_test_common.gyp:webrtc_test_common',
29         'webrtc',
30       ],
31     },
32     {
33       'target_name': 'video_engine_tests',
34       'type': '<(gtest_target_type)',
35       'sources': [
36         'video/bitrate_estimator_tests.cc',
37         'video/call_tests.cc',
38         'video/send_statistics_proxy_unittest.cc',
39         'video/video_send_stream_tests.cc',
40         'test/common_unittest.cc',
41         'test/testsupport/metrics/video_metrics_unittest.cc',
42         'test/test_main.cc',
43       ],
44       'dependencies': [
45         '<(DEPTH)/testing/gtest.gyp:gtest',
46         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
47         'modules/modules.gyp:rtp_rtcp',
48         'test/metrics.gyp:metrics',
49         'test/webrtc_test_common.gyp:webrtc_test_common',
50         'webrtc',
51       ],
52     },
53     {
54       'target_name': 'webrtc_perf_tests',
55       'type': '<(gtest_target_type)',
56       'sources': [
57         'modules/audio_coding/neteq4/test/neteq_performance_unittest.cc',
58         'test/test_main.cc',
59         'video/call_perf_tests.cc',
60         'video/full_stack.cc',
61         'video/rampup_tests.cc',
62       ],
63       'dependencies': [
64         '<(DEPTH)/testing/gtest.gyp:gtest',
65         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
66         'modules/modules.gyp:neteq_test_support',  # Needed by neteq_performance_unittest.
67         'modules/modules.gyp:rtp_rtcp',
68         'test/webrtc_test_common.gyp:webrtc_test_common',
69         'webrtc',
70       ],
71     },
72   ],
73   'conditions': [
74     # TODO(henrike): remove build_with_chromium==1 when the bots are using
75     # Chromium's buildbots.
76     ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
77       'targets': [
78         {
79           'target_name': 'video_engine_tests_apk_target',
80           'type': 'none',
81           'dependencies': [
82             '<(apk_tests_path):video_engine_tests_apk',
83           ],
84         },
85         {
86           'target_name': 'webrtc_perf_tests_apk_target',
87           'type': 'none',
88           'dependencies': [
89             '<(apk_tests_path):webrtc_perf_tests_apk',
90           ],
91         },
92       ],
93     }],
94     ['test_isolation_mode != "noop"', {
95       'targets': [
96         {
97           'target_name': 'video_engine_tests_run',
98           'type': 'none',
99           'dependencies': [
100             'video_engine_tests',
101           ],
102           'includes': [
103             'build/isolate.gypi',
104             'video_engine_tests.isolate',
105           ],
106           'sources': [
107             'video_engine_tests.isolate',
108           ],
109         },
110         {
111           'target_name': 'webrtc_perf_tests_run',
112           'type': 'none',
113           'dependencies': [
114             'webrtc_perf_tests',
115           ],
116           'includes': [
117             'build/isolate.gypi',
118             'webrtc_perf_tests.isolate',
119           ],
120           'sources': [
121             'webrtc_perf_tests.isolate',
122           ],
123         },
124       ],
125     }],
126   ],
127 }