Update Flash plugin metadata version to latest versions.
[chromium-blink-merge.git] / chromecast / chromecast_tests.gypi
blob200d3cd329be272114381b66a78ff02cbbcdf4bb
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         ['OS!="android"', {
55           'dependencies': [
56             'cast_shell_browser_test',
57           ],
58           'variables': {
59             'filters': [
60               'cast_shell_browser_test --no-sandbox --disable-gpu',
61             ],
62           },
63         }],
64       ],
65       'includes': ['build/tests/test_list.gypi'],
66     },
67     # Builds all tests and the output lists of build/run targets for those tests.
68     # Note: producing a predetermined list of dependent inputs on which to
69     # regenerate this output is difficult with GYP. This file is not
70     # guaranteed to be regenerated outside of a clean build.
71     {
72       'target_name': 'cast_test_lists',
73       'type': 'none',
74       'dependencies': [
75         'cast_tests',
76       ],
77       'variables': {
78         'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
79         'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
80         'test_additional_options': '--ozone-platform=test'
81       },
82       'actions': [
83         {
84           'action_name': 'generate_combined_test_build_list',
85           'message': 'Generating combined test build list',
86           'inputs': ['<(test_generator_py)'],
87           'outputs': ['<(PRODUCT_DIR)/tests/build_test_list.txt'],
88           'action': [
89             'python', '<(test_generator_py)',
90             '-t', '<(test_inputs_dir)',
91             '-o', '<@(_outputs)',
92             'pack_build',
93           ],
94         },
95         {
96           'action_name': 'generate_combined_test_run_list',
97           'message': 'Generating combined test run list',
98           'inputs': ['<(test_generator_py)'],
99           'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'],
100           'action': [
101             'python', '<(test_generator_py)',
102             '-t', '<(test_inputs_dir)',
103             '-o', '<@(_outputs)',
104             '-a', '<(test_additional_options)',
105             'pack_run',
106           ],
107         }
108       ],
109     },
110     {
111       'target_name': 'cast_metrics_test_support',
112       'type': '<(component)',
113       'dependencies': [
114         'cast_base',
115       ],
116       'sources': [
117         'base/metrics/cast_metrics_test_helper.cc',
118         'base/metrics/cast_metrics_test_helper.h',
119       ],
120     },  # end of target 'cast_metrics_test_support'
121   ],  # end of targets
122   'conditions': [
123     ['OS=="android"', {
124       'targets': [
125         {
126           'target_name': 'cast_android_tests',
127           'type': 'none',
128           'dependencies': [
129             '../base/base.gyp:base_unittests_apk',
130             '../cc/cc_tests.gyp:cc_unittests_apk',
131             '../ipc/ipc.gyp:ipc_tests_apk',
132             '../media/media.gyp:media_unittests_apk',
133             '../net/net.gyp:net_unittests_apk',
134             '../sandbox/sandbox.gyp:sandbox_linux_jni_unittests_apk',
135             '../sql/sql.gyp:sql_unittests_apk',
136             '../sync/sync.gyp:sync_unit_tests_apk',
137             '../ui/events/events.gyp:events_unittests_apk',
138             '../ui/gfx/gfx_tests.gyp:gfx_unittests_apk',
139           ],
140           'includes': ['build/tests/test_list.gypi'],
141         },
142         {
143           'target_name': 'cast_android_test_lists',
144           'type': 'none',
145           'dependencies': [
146             'cast_android_tests',
147           ],
148           'variables': {
149             'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
150             'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
151           },
152           'actions': [
153             {
154               'action_name': 'generate_combined_test_build_list',
155               'message': 'Generating combined test build list',
156               'inputs': ['<(test_generator_py)'],
157               'outputs': ['<(PRODUCT_DIR)/tests/build_test_list_android.txt'],
158               'action': [
159                 'python', '<(test_generator_py)',
160                 '-t', '<(test_inputs_dir)',
161                 '-o', '<@(_outputs)',
162                 'pack_build',
163               ],
164             },
165           ],
166         },
167       ],  # end of targets
168     }, {  # OS!="android"
169       'targets': [
170         {
171           'target_name': 'cast_shell_test_support',
172           'type': '<(component)',
173           'defines': [
174             'HAS_OUT_OF_PROC_TEST_RUNNER',
175           ],
176           'dependencies': [
177             'cast_shell_core',
178             '../content/content_shell_and_tests.gyp:content_browser_test_support',
179             '../testing/gtest.gyp:gtest',
180             '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
181           ],
182           'sources': [
183             'browser/test/chromecast_browser_test.cc',
184             'browser/test/chromecast_browser_test.h',
185             'browser/test/chromecast_browser_test_runner.cc',
186           ],
187         },  # end of target 'cast_shell_test_support'
188         {
189           'target_name': 'cast_shell_browser_test',
190           'type': '<(gtest_target_type)',
191           'dependencies': [
192             'cast_shell_test_support',
193             '../testing/gtest.gyp:gtest',
194           ],
195           'defines': [
196             'HAS_OUT_OF_PROC_TEST_RUNNER',
197           ],
198           'sources': [
199             'browser/test/chromecast_shell_browser_test.cc',
200           ],
201         },
202       ],  # end of targets
203     }],
204   ],  # end of conditions