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.
11 'target_name': 'cast_base_unittests',
12 'type': '<(gtest_target_type)',
14 'chromecast.gyp:cast_base',
15 '../base/base.gyp:run_all_unittests',
16 '../testing/gtest.gyp:gtest',
19 'base/error_codes_unittest.cc',
20 'base/path_utils_unittest.cc',
21 'base/process_utils_unittest.cc',
22 'base/serializers_unittest.cc',
24 }, # end of cast_base_unittests
26 'target_name': 'cast_crash_unittests',
27 'type': '<(gtest_target_type)',
29 'chromecast.gyp:cast_crash',
30 '../base/base.gyp:run_all_unittests',
31 '../testing/gmock.gyp:gmock',
32 '../testing/gtest.gyp:gtest',
38 'crash/cast_crashdump_uploader_unittest.cc',
39 'crash/linux/dummy_minidump_generator_unittest.cc',
40 'crash/linux/dump_info_unittest.cc',
41 'crash/linux/synchronized_minidump_manager_unittest.cc',
42 'crash/linux/minidump_writer_unittest.cc',
44 }, # end of cast_crash_unittests
46 'target_name': 'cast_tests',
49 'cast_test_generator',
52 ['chromecast_branding=="Chrome"', {
54 'internal/chromecast_internal.gyp:cast_tests_internal',
59 # This target only depends on targets that generate test binaries.
61 'target_name': 'cast_test_generator',
64 'cast_base_unittests',
65 'cast_crash_unittests',
66 '../base/base.gyp:base_unittests',
67 '../content/content_shell_and_tests.gyp:content_unittests',
68 '../crypto/crypto.gyp:crypto_unittests',
69 '../ipc/ipc.gyp:ipc_tests',
70 '../jingle/jingle.gyp:jingle_unittests',
71 '../media/media.gyp:media_unittests',
72 '../media/midi/midi.gyp:midi_unittests',
73 '../net/net.gyp:net_unittests',
74 '../sandbox/sandbox.gyp:sandbox_linux_unittests',
75 '../sql/sql.gyp:sql_unittests',
76 '../sync/sync.gyp:sync_unit_tests',
77 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_unittests',
78 '../ui/base/ui_base_tests.gyp:ui_base_unittests',
79 '../url/url.gyp:url_unittests',
82 ['target_arch=="arm" and OS!="android"', {
85 # Run net_unittests first to avoid random failures due to slow python startup
86 # KeygenHandlerTest.SmokeTest and KeygenHandlerTest.ConcurrencyTest fail due to
87 # readonly certdb (b/8153161)
88 # URLRequestTestHTTP.GetTest_ManyCookies takes roughly 55s to run. Increase
89 # timeout to 75s from 45s to allow it to pass (b/19821476)
90 # ProxyScriptFetcherImplTest.HttpMimeType is flaking (b/19848784)
91 'net_unittests --gtest_filter=-KeygenHandlerTest.SmokeTest:KeygenHandlerTest.ConcurrencyTest:ProxyScriptFetcherImplTest.HttpMimeType --test-launcher-timeout=75000',
92 # Disable ProcessMetricsTest.GetNumberOfThreads (b/15610509)
93 # Disable ProcessUtilTest.* (need to define OS_ANDROID)
94 # Disable StackContainer.BufferAlignment (don't support 16-byte alignment)
95 # Disable SystemMetrics2Test.GetSystemMemoryInfo (buffers>0 can't be guaranteed)
96 'base_unittests --gtest_filter=-ProcessMetricsTest.GetNumberOfThreads:ProcessUtilTest.*:StackContainer.BufferAlignment:SystemMetrics2Test.GetSystemMemoryInfo',
97 # DesktopCaptureDeviceTest.*: No capture device on Eureka
98 # Disable PepperGamepadHostTest.WaitForReply (pepper not supported on Eureka)
99 # Disable GpuDataManagerImplPrivateTest.SetGLStrings and
100 # RenderWidgetHostTest.Background because we disable the blacklist to enable WebGL (b/16142554)
101 'content_unittests --gtest_filter=-DOMStorageDatabaseTest.TestCanOpenAndReadWebCoreDatabase:DesktopCaptureDeviceTest.Capture:GamepadProviderTest.PollingAccess:GpuDataManagerImplPrivateTest.SetGLStrings:PepperGamepadHostTest.WaitForReply:RenderWidgetHostTest.Background',
102 # Disable VP9 related tests (b/18593324)
103 # PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM
104 # PipelineIntegrationTest.BasicPlayback_VideoOnly_VP9_WebM
105 # PipelineIntegrationTest.BasicPlayback_VP9*
106 # PipelineIntegrationTest.P444_VP9_WebM
107 # Disable VP8A tests (b/18593324)
108 # PipelineIntegrationTest.BasicPlayback_VP8A*
109 # Disable OpusAudioDecoderTest/AudioDecoderTest.ProduceAudioSamples/0 (unit
110 # test fails when Opus decoder uses fixed-point)
111 # Due to b/16456550, disable the following four test cases:
112 # AudioOutputControllerTest.PlayDivertSwitchDeviceRevertClose
113 # AudioOutputControllerTest.PlaySwitchDeviceClose
114 # AudioStreamHandlerTest.Play
115 # SoundsManagerTest.Play
116 # Disable AudioStreamHandlerTest.ConsecutivePlayRequests (b/16539293)
117 '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',
118 'sync_unit_tests --gtest_filter=-SyncHttpBridgeTest.*',
119 # DoAppendUTF8Invalid fails because of dcheck_always_on flag in Eng builds
120 'url_unittests --gtest_filter=-URLCanonTest.DoAppendUTF8Invalid',
123 }, { # else "x86" or "android"
126 # Disable PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM (not supported)
127 'media_unittests --gtest_filter=-PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM',
131 ['disable_display==0', {
133 '../gpu/gpu.gyp:gpu_unittests',
138 'cast_shell_unittests',
139 'cast_shell_browser_test',
140 'media/media.gyp:cast_media_unittests',
144 'cast_shell_browser_test --no-sandbox --disable-gpu',
148 ['disable_display==1', {
151 # These are not supported by the backend right now. b/21737919
152 'cast_media_unittests --gtest_filter=-AudioVideoPipelineDeviceTest.VorbisPlayback:AudioVideoPipelineDeviceTest.WebmPlayback',
156 ['enable_plugins==1', {
158 '../ppapi/ppapi_internal.gyp:ppapi_unittests',
162 'includes': ['build/tests/test_list.gypi'],
164 # Builds all tests and the output lists of build/run targets for those tests.
165 # Note: producing a predetermined list of dependent inputs on which to
166 # regenerate this output is difficult with GYP. This file is not
167 # guaranteed to be regenerated outside of a clean build.
169 'target_name': 'cast_test_lists',
175 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
176 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
177 'test_additional_options': '--ozone-platform=test'
181 'action_name': 'generate_combined_test_build_list',
182 'message': 'Generating combined test build list',
183 'inputs': ['<(test_generator_py)'],
184 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list.txt'],
186 'python', '<(test_generator_py)',
187 '-t', '<(test_inputs_dir)',
188 '-o', '<@(_outputs)',
193 'action_name': 'generate_combined_test_run_list',
194 'message': 'Generating combined test run list',
195 'inputs': ['<(test_generator_py)'],
196 'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'],
198 'python', '<(test_generator_py)',
199 '-t', '<(test_inputs_dir)',
200 '-o', '<@(_outputs)',
201 '-a', '<(test_additional_options)',
208 'target_name': 'cast_metrics_test_support',
209 'type': '<(component)',
214 'base/metrics/cast_metrics_test_helper.cc',
215 'base/metrics/cast_metrics_test_helper.h',
217 }, # end of target 'cast_metrics_test_support'
223 'target_name': 'cast_android_tests',
226 '../base/base.gyp:base_unittests_apk',
227 '../cc/cc_tests.gyp:cc_unittests_apk',
228 '../ipc/ipc.gyp:ipc_tests_apk',
229 '../media/media.gyp:media_unittests_apk',
230 '../media/midi/midi.gyp:midi_unittests_apk',
231 '../net/net.gyp:net_unittests_apk',
232 '../sandbox/sandbox.gyp:sandbox_linux_jni_unittests_apk',
233 '../sql/sql.gyp:sql_unittests_apk',
234 '../sync/sync.gyp:sync_unit_tests_apk',
235 '../ui/events/events.gyp:events_unittests_apk',
236 '../ui/gfx/gfx_tests.gyp:gfx_unittests_apk',
238 'includes': ['build/tests/test_list.gypi'],
241 'target_name': 'cast_android_test_lists',
244 'cast_android_tests',
247 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
248 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
252 'action_name': 'generate_combined_test_build_list',
253 'message': 'Generating combined test build list',
254 'inputs': ['<(test_generator_py)'],
255 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list_android.txt'],
257 'python', '<(test_generator_py)',
258 '-t', '<(test_inputs_dir)',
259 '-o', '<@(_outputs)',
269 'target_name': 'cast_shell_test_support',
270 'type': '<(component)',
272 'HAS_OUT_OF_PROC_TEST_RUNNER',
276 '../content/content_shell_and_tests.gyp:content_browser_test_support',
277 '../testing/gtest.gyp:gtest',
278 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
281 'browser/test/chromecast_browser_test.cc',
282 'browser/test/chromecast_browser_test.h',
283 'browser/test/chromecast_browser_test_runner.cc',
285 }, # end of target 'cast_shell_test_support'
287 'target_name': 'cast_shell_browser_test',
288 'type': '<(gtest_target_type)',
290 'cast_shell_test_support',
291 '../testing/gtest.gyp:gtest',
294 'HAS_OUT_OF_PROC_TEST_RUNNER',
297 'browser/test/chromecast_shell_browser_test.cc',
301 'target_name': 'cast_shell_unittests',
302 'type': '<(gtest_target_type)',
304 'chromecast.gyp:cast_crash_client',
305 '../base/base.gyp:run_all_unittests',
306 '../testing/gtest.gyp:gtest',
309 'app/linux/cast_crash_reporter_client_unittest.cc',
311 }, # end of cast_shell_unittests
314 ], # end of conditions