Add phone number to wallet addresses
[chromium-blink-merge.git] / chromecast / chromecast_tests.gypi
bloba3171b398d3cf6a84c4d7db583896799afc3720c
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       'conditions': [
42         ['target_arch=="arm" and OS!="android"', {
43           'variables': {
44             'filters': [
45               # Run net_unittests first to avoid random failures due to slow python startup
46               # KeygenHandlerTest.SmokeTest and KeygenHandlerTest.ConcurrencyTest fail due to
47               # readonly certdb (b/8153161)
48               # Disable EndToEndTests/EndToEndTest (b/19100148)
49              'net_unittests --gtest_filter=-KeygenHandlerTest.SmokeTest:KeygenHandlerTest.ConcurrencyTest:EndToEndTests/EndToEndTest.*',
50               # Disable OutOfMemoryDeathTest.ViaSharedLibraries due to gTrusty eglibc incompatibility (crbug/428211)
51               # Disable ProcessMetricsTest.GetNumberOfThreads (b/15610509)
52               # Disable ProcessUtilTest.* (need to define OS_ANDROID)
53               # Disable StackContainer.BufferAlignment (don't support 16-byte alignment)
54               # Disable SystemMetrics2Test.GetSystemMemoryInfo (buffers>0 can't be guaranteed)
55               'base_unittests --gtest_filter=-OutOfMemoryDeathTest.ViaSharedLibraries:ProcessMetricsTest.GetNumberOfThreads:ProcessUtilTest.*:StackContainer.BufferAlignment:SystemMetrics2Test.GetSystemMemoryInfo',
56               # DesktopCaptureDeviceTest.*: No capture device on Eureka
57               # Disable PepperGamepadHostTest.WaitForReply (pepper not supported on Eureka)
58               # Disable GpuDataManagerImplPrivateTest.SetGLStrings and
59               # RenderWidgetHostTest.Background because we disable the blacklist to enable WebGL (b/16142554)
60               'content_unittests --gtest_filter=-DOMStorageDatabaseTest.TestCanOpenAndReadWebCoreDatabase:DesktopCaptureDeviceTest.Capture:GamepadProviderTest.PollingAccess:GpuDataManagerImplPrivateTest.SetGLStrings:PepperGamepadHostTest.WaitForReply:RenderWidgetHostTest.Background',
61               # Disable VP9 related tests (b/18593324)
62               #   PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM
63               #   PipelineIntegrationTest.BasicPlayback_VideoOnly_VP9_WebM
64               #   PipelineIntegrationTest.BasicPlayback_VP9*
65               #   PipelineIntegrationTest.P444_VP9_WebM
66               # Disable VP8A tests (b/18593324)
67               #   PipelineIntegrationTest.BasicPlayback_VP8A*
68               # Disable OpusAudioDecoderTest/AudioDecoderTest.ProduceAudioSamples/0 (unit
69               # test fails when Opus decoder uses fixed-point)
70               # Due to b/16456550, disable the following four test cases:
71               #   AudioOutputControllerTest.PlayDivertSwitchDeviceRevertClose
72               #   AudioOutputControllerTest.PlaySwitchDeviceClose
73               #   AudioStreamHandlerTest.Play
74               #   SoundsManagerTest.Play
75               # Disable AudioStreamHandlerTest.ConsecutivePlayRequests (b/16539293)
76               'media_unittests --gtest_filter=-AudioOutputControllerTest.PlayDivertSwitchDeviceRevertClose:AudioOutputControllerTest.PlaySwitchDeviceClose:AudioStreamHandlerTest.Play:AudioStreamHandlerTest.ConsecutivePlayRequests:PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM:PipelineIntegrationTest.BasicPlayback_VideoOnly_VP9_WebM:PipelineIntegrationTest.BasicPlayback_VP9*:PipelineIntegrationTest.P444_VP9_WebM:PipelineIntegrationTest.BasicPlayback_VP8A*:OpusAudioDecoderTest/AudioDecoderTest.ProduceAudioSamples/0:SoundsManagerTest.Play',
77               'sync_unit_tests --gtest_filter=-SyncHttpBridgeTest.*',
78               # DoAppendUTF8Invalid fails because of dcheck_always_on flag in Eng builds
79               'url_unittests --gtest_filter=-URLCanonTest.DoAppendUTF8Invalid',
80             ],
81           },
82         }, { # else "x86" or "android"
83           'variables': {
84             'filters': [
85               # Disable OutOfMemoryDeathTest.ViaSharedLibraries due to gTrusty eglibc incompatibility
86               # See: crbug/428211
87               'base_unittests --gtest_filter=-OutOfMemoryDeathTest.ViaSharedLibraries',
88               # Disable PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM (not supported)
89               'media_unittests --gtest_filter=-PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM',
90             ],
91           }
92         }],
93         ['disable_display==0', {
94           'dependencies': [
95             '../gpu/gpu.gyp:gpu_unittests',
96           ],
97         }],
98         ['OS!="android"', {
99           'dependencies': [
100             'cast_shell_browser_test',
101           ],
102           'variables': {
103             'filters': [
104               'cast_shell_browser_test --no-sandbox --disable-gpu',
105             ],
106           },
107         }],
108       ],
109       'includes': ['build/tests/test_list.gypi'],
110     },
111     # Builds all tests and the output lists of build/run targets for those tests.
112     # Note: producing a predetermined list of dependent inputs on which to
113     # regenerate this output is difficult with GYP. This file is not
114     # guaranteed to be regenerated outside of a clean build.
115     {
116       'target_name': 'cast_test_lists',
117       'type': 'none',
118       'dependencies': [
119         'cast_tests',
120       ],
121       'variables': {
122         'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
123         'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
124         'test_additional_options': '--ozone-platform=test'
125       },
126       'actions': [
127         {
128           'action_name': 'generate_combined_test_build_list',
129           'message': 'Generating combined test build list',
130           'inputs': ['<(test_generator_py)'],
131           'outputs': ['<(PRODUCT_DIR)/tests/build_test_list.txt'],
132           'action': [
133             'python', '<(test_generator_py)',
134             '-t', '<(test_inputs_dir)',
135             '-o', '<@(_outputs)',
136             'pack_build',
137           ],
138         },
139         {
140           'action_name': 'generate_combined_test_run_list',
141           'message': 'Generating combined test run list',
142           'inputs': ['<(test_generator_py)'],
143           'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'],
144           'action': [
145             'python', '<(test_generator_py)',
146             '-t', '<(test_inputs_dir)',
147             '-o', '<@(_outputs)',
148             '-a', '<(test_additional_options)',
149             'pack_run',
150           ],
151         }
152       ],
153     },
154     {
155       'target_name': 'cast_metrics_test_support',
156       'type': '<(component)',
157       'dependencies': [
158         'cast_base',
159       ],
160       'sources': [
161         'base/metrics/cast_metrics_test_helper.cc',
162         'base/metrics/cast_metrics_test_helper.h',
163       ],
164     },  # end of target 'cast_metrics_test_support'
165   ],  # end of targets
166   'conditions': [
167     ['OS=="android"', {
168       'targets': [
169         {
170           'target_name': 'cast_android_tests',
171           'type': 'none',
172           'dependencies': [
173             '../base/base.gyp:base_unittests_apk',
174             '../cc/cc_tests.gyp:cc_unittests_apk',
175             '../ipc/ipc.gyp:ipc_tests_apk',
176             '../media/media.gyp:media_unittests_apk',
177             '../net/net.gyp:net_unittests_apk',
178             '../sandbox/sandbox.gyp:sandbox_linux_jni_unittests_apk',
179             '../sql/sql.gyp:sql_unittests_apk',
180             '../sync/sync.gyp:sync_unit_tests_apk',
181             '../ui/events/events.gyp:events_unittests_apk',
182             '../ui/gfx/gfx_tests.gyp:gfx_unittests_apk',
183           ],
184           'includes': ['build/tests/test_list.gypi'],
185         },
186         {
187           'target_name': 'cast_android_test_lists',
188           'type': 'none',
189           'dependencies': [
190             'cast_android_tests',
191           ],
192           'variables': {
193             'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
194             'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
195           },
196           'actions': [
197             {
198               'action_name': 'generate_combined_test_build_list',
199               'message': 'Generating combined test build list',
200               'inputs': ['<(test_generator_py)'],
201               'outputs': ['<(PRODUCT_DIR)/tests/build_test_list_android.txt'],
202               'action': [
203                 'python', '<(test_generator_py)',
204                 '-t', '<(test_inputs_dir)',
205                 '-o', '<@(_outputs)',
206                 'pack_build',
207               ],
208             },
209           ],
210         },
211       ],  # end of targets
212     }, {  # OS!="android"
213       'targets': [
214         {
215           'target_name': 'cast_shell_test_support',
216           'type': '<(component)',
217           'defines': [
218             'HAS_OUT_OF_PROC_TEST_RUNNER',
219           ],
220           'dependencies': [
221             'cast_shell_core',
222             '../content/content_shell_and_tests.gyp:content_browser_test_support',
223             '../testing/gtest.gyp:gtest',
224             '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
225           ],
226           'sources': [
227             'browser/test/chromecast_browser_test.cc',
228             'browser/test/chromecast_browser_test.h',
229             'browser/test/chromecast_browser_test_runner.cc',
230           ],
231         },  # end of target 'cast_shell_test_support'
232         {
233           'target_name': 'cast_shell_browser_test',
234           'type': '<(gtest_target_type)',
235           'dependencies': [
236             'cast_shell_test_support',
237             '../testing/gtest.gyp:gtest',
238           ],
239           'defines': [
240             'HAS_OUT_OF_PROC_TEST_RUNNER',
241           ],
242           'sources': [
243             'browser/test/chromecast_shell_browser_test.cc',
244           ],
245         },
246       ],  # end of targets
247     }],
248   ],  # end of conditions