Add a qcms_profile_get_description() api
[chromium-blink-merge.git] / chromecast / chromecast_tests.gypi
blob65414759a15b3c941c1caecb4bb6db60f6590867
1 # Copyright (c) 2014 Google Inc. All Rights Reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'targets': [
7     {
8       'target_name': 'cast_tests',
9       'type': 'none',
10       'dependencies': [
11         'cast_test_generator',
12       ],
13       'conditions': [
14         ['chromecast_branding=="Chrome"', {
15           'dependencies': [
16             '<(cast_internal_gyp):cast_tests_internal',
17           ],
18         }],
19       ],
20     },
21     # This target only depends on targets that generate test binaries.
22     {
23       'target_name': 'cast_test_generator',
24       'type': 'none',
25       'dependencies': [
26         'media/media.gyp:cast_media_unittests',
27         '../base/base.gyp:base_unittests',
28         '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_unittests',
29         '../content/content_shell_and_tests.gyp:content_unittests',
30         '../crypto/crypto.gyp:crypto_unittests',
31         '../ipc/ipc.gyp:ipc_tests',
32         '../jingle/jingle.gyp:jingle_unittests',
33         '../media/media.gyp:media_unittests',
34         '../net/net.gyp:net_unittests',
35         '../sandbox/sandbox.gyp:sandbox_linux_unittests',
36         '../sql/sql.gyp:sql_unittests',
37         '../sync/sync.gyp:sync_unit_tests',
38         '../ui/base/ui_base_tests.gyp:ui_base_unittests',
39         '../url/url.gyp:url_unittests',
40       ],
41       'variables': {
42         'filters': [
43           # Disable OutOfMemoryDeathTest.ViaSharedLibraries due to gTrusty eglibc incompatibility
44           # See: crbug/428211
45           'base_unittests --gtest_filter=-OutOfMemoryDeathTest.ViaSharedLibraries',
46         ],
47       },
48       'conditions': [
49         ['disable_display==0', {
50           'dependencies': [
51             '../gpu/gpu.gyp:gpu_unittests',
52           ],
53         }],
54       ],
55       'conditions': [
56         ['OS!="android"', {
57           'dependencies': [
58             'cast_shell_browser_test',
59           ],
60           'variables': {
61             'filters': [
62               'cast_shell_browser_test --no-sandbox',
63             ],
64           },
65         }],
66       ],
67       'includes': ['build/tests/test_list.gypi'],
68     },
69     # Builds all tests and the output lists of build/run targets for those tests.
70     # Note: producing a predetermined list of dependent inputs on which to
71     # regenerate this output is difficult with GYP. This file is not
72     # guaranteed to be regenerated outside of a clean build.
73     {
74       'target_name': 'cast_test_lists',
75       'type': 'none',
76       'dependencies': [
77         'cast_tests',
78       ],
79       'variables': {
80         'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
81         'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
82         'test_additional_options': '--ozone-platform=test'
83       },
84       'actions': [
85         {
86           'action_name': 'generate_combined_test_build_list',
87           'message': 'Generating combined test build list',
88           'inputs': ['<(test_generator_py)'],
89           'outputs': ['<(PRODUCT_DIR)/tests/build_test_list.txt'],
90           'action': [
91             'python', '<(test_generator_py)',
92             '-t', '<(test_inputs_dir)',
93             '-o', '<@(_outputs)',
94             'pack_build',
95           ],
96         },
97         {
98           'action_name': 'generate_combined_test_run_list',
99           'message': 'Generating combined test run list',
100           'inputs': ['<(test_generator_py)'],
101           'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'],
102           'action': [
103             'python', '<(test_generator_py)',
104             '-t', '<(test_inputs_dir)',
105             '-o', '<@(_outputs)',
106             '-a', '<(test_additional_options)',
107             'pack_run',
108           ],
109         }
110       ],
111     },
112     {
113       'target_name': 'cast_metrics_test_support',
114       'type': '<(component)',
115       'dependencies': [
116         'cast_base',
117       ],
118       'sources': [
119         'base/metrics/cast_metrics_test_helper.cc',
120         'base/metrics/cast_metrics_test_helper.h',
121       ],
122     },  # end of target 'cast_metrics_test_support'
123   ],  # end of targets
124   'conditions': [
125     ['OS=="android"', {
126       'targets': [
127         {
128           'target_name': 'cast_android_tests',
129           'type': 'none',
130           'dependencies': [
131             '../base/base.gyp:base_unittests_apk',
132             '../cc/cc_tests.gyp:cc_unittests_apk',
133             '../ipc/ipc.gyp:ipc_tests_apk',
134             '../media/media.gyp:media_unittests_apk',
135             '../net/net.gyp:net_unittests_apk',
136             '../sandbox/sandbox.gyp:sandbox_linux_jni_unittests_apk',
137             '../sql/sql.gyp:sql_unittests_apk',
138             '../sync/sync.gyp:sync_unit_tests_apk',
139             '../ui/events/events.gyp:events_unittests_apk',
140             '../ui/gfx/gfx_tests.gyp:gfx_unittests_apk',
141           ],
142           'includes': ['build/tests/test_list.gypi'],
143         },
144         {
145           'target_name': 'cast_android_test_lists',
146           'type': 'none',
147           'dependencies': [
148             'cast_android_tests',
149           ],
150           'variables': {
151             'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
152             'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
153           },
154           'actions': [
155             {
156               'action_name': 'generate_combined_test_build_list',
157               'message': 'Generating combined test build list',
158               'inputs': ['<(test_generator_py)'],
159               'outputs': ['<(PRODUCT_DIR)/tests/build_test_list_android.txt'],
160               'action': [
161                 'python', '<(test_generator_py)',
162                 '-t', '<(test_inputs_dir)',
163                 '-o', '<@(_outputs)',
164                 'pack_build',
165               ],
166             },
167           ],
168         },
169       ],  # end of targets
170     }, {  # OS!="android"
171       'targets': [
172         {
173           'target_name': 'cast_shell_test_support',
174           'type': '<(component)',
175           'defines': [
176             'HAS_OUT_OF_PROC_TEST_RUNNER',
177           ],
178           'dependencies': [
179             'cast_shell_core',
180             '../content/content_shell_and_tests.gyp:content_browser_test_support',
181             '../testing/gtest.gyp:gtest',
182           ],
183           'sources': [
184             'browser/test/chromecast_browser_test.cc',
185             'browser/test/chromecast_browser_test.h',
186             'browser/test/chromecast_browser_test_runner.cc',
187           ],
188         },  # end of target 'cast_shell_test_support'
189         {
190           'target_name': 'cast_shell_browser_test',
191           'type': '<(gtest_target_type)',
192           'dependencies': [
193             'cast_shell_test_support',
194             '../testing/gtest.gyp:gtest',
195           ],
196           'defines': [
197             'HAS_OUT_OF_PROC_TEST_RUNNER',
198           ],
199           'sources': [
200             'browser/test/chromecast_shell_browser_test.cc',
201           ],
202         },
203       ],  # end of targets
204     }],
205   ],  # end of conditions