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',
27 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
31 }, # end of cast_base_unittests
33 'target_name': 'cast_crash_test_support',
34 'type': '<(component)',
36 'chromecast.gyp:cast_crash',
40 'crash/linux/crash_testing_utils.cc',
41 'crash/linux/crash_testing_utils.h',
43 }, # end of target 'cast_crash_test_support'
45 'target_name': 'cast_crash_unittests',
46 'type': '<(gtest_target_type)',
48 'cast_crash_test_support',
49 'chromecast.gyp:cast_crash',
50 '../base/base.gyp:run_all_unittests',
51 '../testing/gmock.gyp:gmock',
52 '../testing/gtest.gyp:gtest',
58 'crash/cast_crashdump_uploader_unittest.cc',
59 'crash/linux/dummy_minidump_generator_unittest.cc',
60 'crash/linux/dump_info_unittest.cc',
61 'crash/linux/synchronized_minidump_manager_unittest.cc',
62 'crash/linux/minidump_writer_unittest.cc',
67 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
71 }, # end of cast_crash_unittests
73 'target_name': 'cast_tests',
76 'cast_test_generator',
79 ['chromecast_branding!="public"', {
81 'internal/chromecast_internal.gyp:cast_tests_internal',
86 # This target only depends on targets that generate test binaries.
88 'target_name': 'cast_test_generator',
91 'cast_base_unittests',
92 'cast_crash_unittests',
93 '../base/base.gyp:base_unittests',
94 '../content/content_shell_and_tests.gyp:content_unittests',
95 '../crypto/crypto.gyp:crypto_unittests',
96 '../ipc/ipc.gyp:ipc_tests',
97 '../jingle/jingle.gyp:jingle_unittests',
98 '../media/media.gyp:media_unittests',
99 '../media/midi/midi.gyp:midi_unittests',
100 '../net/net.gyp:net_unittests',
101 '../sandbox/sandbox.gyp:sandbox_linux_unittests',
102 '../sql/sql.gyp:sql_unittests',
103 '../sync/sync.gyp:sync_unit_tests',
104 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_unittests',
105 '../ui/base/ui_base_tests.gyp:ui_base_unittests',
106 '../url/url.gyp:url_unittests',
109 ['target_arch=="arm" and OS!="android"', {
112 # Run net_unittests first to avoid random failures due to slow python startup
113 # KeygenHandlerTest.SmokeTest and KeygenHandlerTest.ConcurrencyTest fail due to
114 # readonly certdb (b/8153161)
115 # URLRequestTestHTTP.GetTest_ManyCookies takes roughly 55s to run. Increase
116 # timeout to 75s from 45s to allow it to pass (b/19821476)
117 # ProxyScriptFetcherImplTest.HttpMimeType is flaking (b/19848784)
118 'net_unittests --gtest_filter=-KeygenHandlerTest.SmokeTest:KeygenHandlerTest.ConcurrencyTest:ProxyScriptFetcherImplTest.HttpMimeType --test-launcher-timeout=75000',
119 # Disable ProcessMetricsTest.GetNumberOfThreads (b/15610509)
120 # Disable ProcessUtilTest.* (need to define OS_ANDROID)
121 # Disable StackContainer.BufferAlignment (don't support 16-byte alignment)
122 # Disable SystemMetrics2Test.GetSystemMemoryInfo (buffers>0 can't be guaranteed)
123 'base_unittests --gtest_filter=-ProcessMetricsTest.GetNumberOfThreads:ProcessUtilTest.*:StackContainer.BufferAlignment:SystemMetrics2Test.GetSystemMemoryInfo',
124 # DesktopCaptureDeviceTest.*: No capture device on Eureka
125 # Disable PepperGamepadHostTest.WaitForReply (pepper not supported on Eureka)
126 # Disable GpuDataManagerImplPrivateTest.SetGLStrings and
127 # RenderWidgetHostTest.Background because we disable the blacklist to enable WebGL (b/16142554)
128 'content_unittests --gtest_filter=-DOMStorageDatabaseTest.TestCanOpenAndReadWebCoreDatabase:DesktopCaptureDeviceTest.Capture:GamepadProviderTest.PollingAccess:GpuDataManagerImplPrivateTest.SetGLStrings:PepperGamepadHostTest.WaitForReply:RenderWidgetHostTest.Background',
129 # Disable VP9 related tests (b/18593324)
130 # PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM
131 # PipelineIntegrationTest.BasicPlayback_VideoOnly_VP9_WebM
132 # PipelineIntegrationTest.BasicPlayback_VP9*
133 # PipelineIntegrationTest.P444_VP9_WebM
134 # Disable VP8A tests (b/18593324)
135 # PipelineIntegrationTest.BasicPlayback_VP8A*
136 # Disable OpusAudioDecoderTest/AudioDecoderTest.ProduceAudioSamples/0 (unit
137 # test fails when Opus decoder uses fixed-point)
138 # Due to b/16456550, disable the following four test cases:
139 # AudioOutputControllerTest.PlayDivertSwitchDeviceRevertClose
140 # AudioOutputControllerTest.PlaySwitchDeviceClose
141 # AudioStreamHandlerTest.Play
142 # SoundsManagerTest.Play
143 # Disable AudioStreamHandlerTest.ConsecutivePlayRequests (b/16539293)
144 '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',
145 'sync_unit_tests --gtest_filter=-SyncHttpBridgeTest.*',
146 # DoAppendUTF8Invalid fails because of dcheck_always_on flag in Eng builds
147 'url_unittests --gtest_filter=-URLCanonTest.DoAppendUTF8Invalid',
150 }, { # else "x86" or "android"
153 # Disable PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM (not supported)
154 'media_unittests --gtest_filter=-PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM',
158 ['disable_display==0', {
160 '../gpu/gpu.gyp:gpu_unittests',
165 'cast_shell_unittests',
166 'cast_shell_browser_test',
167 'media/media.gyp:cast_media_unittests',
171 'cast_shell_browser_test --no-sandbox --disable-gpu',
175 ['disable_display==1', {
178 # These are not supported by the backend right now. b/21737919
179 'cast_media_unittests --gtest_filter=-AudioVideoPipelineDeviceTest.VorbisPlayback:AudioVideoPipelineDeviceTest.WebmPlayback',
183 ['enable_plugins==1', {
185 '../ppapi/ppapi_internal.gyp:ppapi_unittests',
189 'includes': ['build/tests/test_list.gypi'],
192 'target_name': 'cast_metrics_test_support',
193 'type': '<(component)',
198 'base/metrics/cast_metrics_test_helper.cc',
199 'base/metrics/cast_metrics_test_helper.h',
201 }, # end of target 'cast_metrics_test_support'
207 'target_name': 'cast_base_unittests_apk',
210 'cast_base_unittests',
213 'test_suite_name': 'cast_base_unittests',
215 'includes': ['../build/apk_test.gypi'],
216 }, # end of target 'cast_base_unittests_apk'
218 'target_name': 'cast_crash_unittests_apk',
221 'cast_crash_unittests',
224 'test_suite_name': 'cast_crash_unittests',
226 'includes': ['../build/apk_test.gypi'],
227 }, # end of target 'cast_crash_unittests_apk'
229 'target_name': 'cast_android_tests',
231 'dependencies': ['cast_android_tests_generator'],
233 ['chromecast_branding!="public"', {
235 'internal/chromecast_internal.gyp:cast_android_tests_internal',
239 }, # end of target 'cast_android_tests',
241 'target_name': 'cast_android_tests_generator',
245 # LayerTreeHost has dozens of separate crashing test cases on Fugu. (b/22512618)
246 'cc_unittests_apk --gtest_filter=*:-LayerTreeHost*',
247 # The following tests all crash on fugu.
248 'gfx_unittests_apk --gtest_filter=*:-FontListTest.Fonts_DeriveWithHeightUpperBound',
249 'media_unittests_apk --gtest_filter=*-AudioInputTest.*:AudioAndroidInputTest*',
253 'cast_base_unittests_apk',
254 'cast_crash_unittests_apk',
255 '../base/base.gyp:base_unittests_apk',
256 '../cc/cc_tests.gyp:cc_unittests_apk',
257 '../ipc/ipc.gyp:ipc_tests_apk',
258 '../media/media.gyp:media_unittests_apk',
259 '../media/midi/midi.gyp:midi_unittests_apk',
260 '../net/net.gyp:net_unittests_apk',
261 # Note(gunsch): crashes 100% on Fugu. b/22489355
262 # '../sandbox/sandbox.gyp:sandbox_linux_jni_unittests_apk',
263 '../sql/sql.gyp:sql_unittests_apk',
264 '../sync/sync.gyp:sync_unit_tests_apk',
265 '../ui/events/events.gyp:events_unittests_apk',
266 '../ui/gfx/gfx_tests.gyp:gfx_unittests_apk',
268 'includes': ['build/tests/test_list.gypi'],
269 }, # end of target 'cast_android_tests_generator'
271 'target_name': 'cast_android_test_lists',
274 'cast_android_tests',
277 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
278 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
282 'action_name': 'generate_combined_test_build_list',
283 'message': 'Generating combined test build list',
284 'inputs': ['<(test_generator_py)'],
285 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list_android.txt'],
287 'python', '<(test_generator_py)',
288 '-t', '<(test_inputs_dir)',
289 '-o', '<@(_outputs)',
294 'action_name': 'generate_combined_test_run_list',
295 'message': 'Generating combined test run list',
296 'inputs': ['<(test_generator_py)'],
297 'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'],
299 'python', '<(test_generator_py)',
300 '-t', '<(test_inputs_dir)',
301 '-o', '<@(_outputs)',
311 'target_name': 'cast_shell_test_support',
312 'type': '<(component)',
314 'HAS_OUT_OF_PROC_TEST_RUNNER',
318 '../content/content_shell_and_tests.gyp:content_browser_test_support',
319 '../testing/gtest.gyp:gtest',
320 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
323 'browser/test/chromecast_browser_test.cc',
324 'browser/test/chromecast_browser_test.h',
325 'browser/test/chromecast_browser_test_runner.cc',
327 }, # end of target 'cast_shell_test_support'
329 'target_name': 'cast_shell_browser_test',
330 'type': '<(gtest_target_type)',
332 'cast_shell_test_support',
333 '../testing/gtest.gyp:gtest',
336 'HAS_OUT_OF_PROC_TEST_RUNNER',
339 'browser/test/chromecast_shell_browser_test.cc',
343 'target_name': 'cast_shell_unittests',
344 'type': '<(gtest_target_type)',
346 'cast_crash_test_support',
347 'chromecast.gyp:cast_crash_client',
348 '../base/base.gyp:run_all_unittests',
349 '../testing/gtest.gyp:gtest',
352 'app/linux/cast_crash_reporter_client_unittest.cc',
354 }, # end of cast_shell_unittests
355 # Builds all tests and the output lists of build/run targets for those tests.
356 # Note: producing a predetermined list of dependent inputs on which to
357 # regenerate this output is difficult with GYP. This file is not
358 # guaranteed to be regenerated outside of a clean build.
360 'target_name': 'cast_test_lists',
366 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
367 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
368 'test_additional_options': '--ozone-platform=test'
372 'action_name': 'generate_combined_test_build_list',
373 'message': 'Generating combined test build list',
374 'inputs': ['<(test_generator_py)'],
375 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list.txt'],
377 'python', '<(test_generator_py)',
378 '-t', '<(test_inputs_dir)',
379 '-o', '<@(_outputs)',
384 'action_name': 'generate_combined_test_run_list',
385 'message': 'Generating combined test run list',
386 'inputs': ['<(test_generator_py)'],
387 'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'],
389 'python', '<(test_generator_py)',
390 '-t', '<(test_inputs_dir)',
391 '-o', '<@(_outputs)',
392 '-a', '<(test_additional_options)',
400 ], # end of conditions