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.
8 'target_name': 'cast_tests',
11 'cast_test_generator',
14 ['chromecast_branding=="Chrome"', {
16 '<(cast_internal_gyp):cast_tests_internal',
21 # This target only depends on targets that generate test binaries.
23 'target_name': 'cast_test_generator',
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',
42 ['target_arch=="arm" and OS!="android"', {
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',
82 }, { # else "x86" or "android"
85 # Disable OutOfMemoryDeathTest.ViaSharedLibraries due to gTrusty eglibc incompatibility
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',
93 ['disable_display==0', {
95 '../gpu/gpu.gyp:gpu_unittests',
100 'cast_shell_browser_test',
104 'cast_shell_browser_test --no-sandbox --disable-gpu',
109 'includes': ['build/tests/test_list.gypi'],
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.
116 'target_name': 'cast_test_lists',
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'
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'],
133 'python', '<(test_generator_py)',
134 '-t', '<(test_inputs_dir)',
135 '-o', '<@(_outputs)',
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'],
145 'python', '<(test_generator_py)',
146 '-t', '<(test_inputs_dir)',
147 '-o', '<@(_outputs)',
148 '-a', '<(test_additional_options)',
155 'target_name': 'cast_metrics_test_support',
156 'type': '<(component)',
161 'base/metrics/cast_metrics_test_helper.cc',
162 'base/metrics/cast_metrics_test_helper.h',
164 }, # end of target 'cast_metrics_test_support'
170 'target_name': 'cast_android_tests',
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',
184 'includes': ['build/tests/test_list.gypi'],
187 'target_name': 'cast_android_test_lists',
190 'cast_android_tests',
193 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
194 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
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'],
203 'python', '<(test_generator_py)',
204 '-t', '<(test_inputs_dir)',
205 '-o', '<@(_outputs)',
215 'target_name': 'cast_shell_test_support',
216 'type': '<(component)',
218 'HAS_OUT_OF_PROC_TEST_RUNNER',
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',
227 'browser/test/chromecast_browser_test.cc',
228 'browser/test/chromecast_browser_test.h',
229 'browser/test/chromecast_browser_test_runner.cc',
231 }, # end of target 'cast_shell_test_support'
233 'target_name': 'cast_shell_browser_test',
234 'type': '<(gtest_target_type)',
236 'cast_shell_test_support',
237 '../testing/gtest.gyp:gtest',
240 'HAS_OUT_OF_PROC_TEST_RUNNER',
243 'browser/test/chromecast_shell_browser_test.cc',
248 ], # end of conditions