gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 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. |
| 4 | |
| 5 | { |
slan | 5cacb5a | 2015-04-22 00:46:37 | [diff] [blame] | 6 | 'variables': { |
slan | 25bb71f2 | 2016-01-06 21:23:55 | [diff] [blame] | 7 | 'chromium_code': 1, |
| 8 | 'use_alsa%': 0, |
slan | 5cacb5a | 2015-04-22 00:46:37 | [diff] [blame] | 9 | }, |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 10 | 'targets': [ |
| 11 | { |
slan | 5cacb5a | 2015-04-22 00:46:37 | [diff] [blame] | 12 | 'target_name': 'cast_base_unittests', |
| 13 | 'type': '<(gtest_target_type)', |
| 14 | 'dependencies': [ |
byungchul | d95a7a9 | 2015-10-08 22:40:39 | [diff] [blame] | 15 | 'cast_base', |
kmackay | fa656b09 | 2016-02-04 23:23:54 | [diff] [blame] | 16 | 'cast_component', |
byungchul | d95a7a9 | 2015-10-08 22:40:39 | [diff] [blame] | 17 | 'cast_crypto', |
gunsch | 6cedab01 | 2015-05-15 17:41:27 | [diff] [blame] | 18 | '../base/base.gyp:run_all_unittests', |
esum | af8f4a12 | 2015-10-12 22:48:38 | [diff] [blame] | 19 | '../testing/gmock.gyp:gmock', |
slan | 5cacb5a | 2015-04-22 00:46:37 | [diff] [blame] | 20 | '../testing/gtest.gyp:gtest', |
slan | 5cacb5a | 2015-04-22 00:46:37 | [diff] [blame] | 21 | ], |
| 22 | 'sources': [ |
kmackay | 5ff9107 | 2015-12-30 16:48:18 | [diff] [blame] | 23 | 'base/bind_to_task_runner_unittest.cc', |
jyw | b92b0b2c | 2016-03-09 01:46:05 | [diff] [blame] | 24 | 'base/chromecast_switches_unittest.cc', |
kmackay | fa656b09 | 2016-02-04 23:23:54 | [diff] [blame] | 25 | 'base/component/component_unittest.cc', |
esum | af8f4a12 | 2015-10-12 22:48:38 | [diff] [blame] | 26 | 'base/device_capabilities_impl_unittest.cc', |
slan | 77d76ac | 2015-06-30 21:40:11 | [diff] [blame] | 27 | 'base/error_codes_unittest.cc', |
slan | e7fc725c | 2015-05-29 23:05:43 | [diff] [blame] | 28 | 'base/path_utils_unittest.cc', |
| 29 | 'base/process_utils_unittest.cc', |
slan | 5cacb5a | 2015-04-22 00:46:37 | [diff] [blame] | 30 | 'base/serializers_unittest.cc', |
gunsch | ee5a889 | 2015-08-20 20:03:48 | [diff] [blame] | 31 | 'base/system_time_change_notifier_unittest.cc', |
gunsch | 5ed6d7d | 2015-08-31 22:56:19 | [diff] [blame] | 32 | 'crypto/signature_cache_unittest.cc', |
slan | 5cacb5a | 2015-04-22 00:46:37 | [diff] [blame] | 33 | ], |
gunsch | e4a7697 | 2015-07-15 00:39:56 | [diff] [blame] | 34 | 'conditions': [ |
| 35 | ['OS == "android"', { |
| 36 | 'dependencies': [ |
| 37 | '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
| 38 | ], |
| 39 | }], |
| 40 | ], |
slan | f48fe87 | 2015-06-23 19:41:52 | [diff] [blame] | 41 | }, # end of cast_base_unittests |
| 42 | { |
bcf | 62f6287 | 2015-07-29 18:23:52 | [diff] [blame] | 43 | 'target_name': 'cast_crash_test_support', |
| 44 | 'type': '<(component)', |
| 45 | 'dependencies': [ |
bcf | 62f6287 | 2015-07-29 18:23:52 | [diff] [blame] | 46 | 'cast_base', |
byungchul | d95a7a9 | 2015-10-08 22:40:39 | [diff] [blame] | 47 | 'cast_crash', |
bcf | 62f6287 | 2015-07-29 18:23:52 | [diff] [blame] | 48 | ], |
| 49 | 'sources': [ |
| 50 | 'crash/linux/crash_testing_utils.cc', |
| 51 | 'crash/linux/crash_testing_utils.h', |
| 52 | ], |
| 53 | }, # end of target 'cast_crash_test_support' |
| 54 | { |
slan | f48fe87 | 2015-06-23 19:41:52 | [diff] [blame] | 55 | 'target_name': 'cast_crash_unittests', |
| 56 | 'type': '<(gtest_target_type)', |
| 57 | 'dependencies': [ |
byungchul | d95a7a9 | 2015-10-08 22:40:39 | [diff] [blame] | 58 | 'cast_crash', |
bcf | 62f6287 | 2015-07-29 18:23:52 | [diff] [blame] | 59 | 'cast_crash_test_support', |
slan | f48fe87 | 2015-06-23 19:41:52 | [diff] [blame] | 60 | '../base/base.gyp:run_all_unittests', |
slan | f8218ca | 2015-06-29 18:17:01 | [diff] [blame] | 61 | '../testing/gmock.gyp:gmock', |
slan | f48fe87 | 2015-06-23 19:41:52 | [diff] [blame] | 62 | '../testing/gtest.gyp:gtest', |
| 63 | ], |
slan | f8218ca | 2015-06-29 18:17:01 | [diff] [blame] | 64 | 'include_dirs': [ |
| 65 | '../breakpad/src', |
| 66 | ], |
slan | f48fe87 | 2015-06-23 19:41:52 | [diff] [blame] | 67 | 'sources': [ |
slan | f8218ca | 2015-06-29 18:17:01 | [diff] [blame] | 68 | 'crash/cast_crashdump_uploader_unittest.cc', |
slan | 9c01fbe | 2015-07-08 16:18:25 | [diff] [blame] | 69 | 'crash/linux/dummy_minidump_generator_unittest.cc', |
slan | f48fe87 | 2015-06-23 19:41:52 | [diff] [blame] | 70 | 'crash/linux/dump_info_unittest.cc', |
| 71 | 'crash/linux/synchronized_minidump_manager_unittest.cc', |
| 72 | 'crash/linux/minidump_writer_unittest.cc', |
| 73 | ], |
gunsch | e4a7697 | 2015-07-15 00:39:56 | [diff] [blame] | 74 | 'conditions': [ |
| 75 | ['OS == "android"', { |
| 76 | 'dependencies': [ |
| 77 | '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
| 78 | ], |
| 79 | }], |
| 80 | ], |
slan | f48fe87 | 2015-06-23 19:41:52 | [diff] [blame] | 81 | }, # end of cast_crash_unittests |
slan | 5cacb5a | 2015-04-22 00:46:37 | [diff] [blame] | 82 | { |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 83 | 'target_name': 'cast_tests', |
| 84 | 'type': 'none', |
| 85 | 'dependencies': [ |
| 86 | 'cast_test_generator', |
| 87 | ], |
| 88 | 'conditions': [ |
yucliu | 48ba4153 | 2015-07-30 21:09:08 | [diff] [blame] | 89 | ['chromecast_branding!="public"', { |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 90 | 'dependencies': [ |
gunsch | 25850f1d | 2015-03-30 19:04:14 | [diff] [blame] | 91 | 'internal/chromecast_internal.gyp:cast_tests_internal', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 92 | ], |
| 93 | }], |
| 94 | ], |
| 95 | }, |
| 96 | # This target only depends on targets that generate test binaries. |
| 97 | { |
| 98 | 'target_name': 'cast_test_generator', |
| 99 | 'type': 'none', |
| 100 | 'dependencies': [ |
slan | 5cacb5a | 2015-04-22 00:46:37 | [diff] [blame] | 101 | 'cast_base_unittests', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 102 | '../base/base.gyp:base_unittests', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 103 | '../content/content_shell_and_tests.gyp:content_unittests', |
| 104 | '../crypto/crypto.gyp:crypto_unittests', |
| 105 | '../ipc/ipc.gyp:ipc_tests', |
| 106 | '../jingle/jingle.gyp:jingle_unittests', |
| 107 | '../media/media.gyp:media_unittests', |
toyoshim | c6475779 | 2015-04-30 14:52:02 | [diff] [blame] | 108 | '../media/midi/midi.gyp:midi_unittests', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 109 | '../net/net.gyp:net_unittests', |
slan | 87db9d1 | 2015-10-05 20:37:38 | [diff] [blame] | 110 | '../ppapi/ppapi_internal.gyp:ppapi_unittests', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 111 | '../sandbox/sandbox.gyp:sandbox_linux_unittests', |
| 112 | '../sql/sql.gyp:sql_unittests', |
| 113 | '../sync/sync.gyp:sync_unit_tests', |
slan | 5cacb5a | 2015-04-22 00:46:37 | [diff] [blame] | 114 | '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_unittests', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 115 | '../ui/base/ui_base_tests.gyp:ui_base_unittests', |
| 116 | '../url/url.gyp:url_unittests', |
| 117 | ], |
| 118 | 'conditions': [ |
slan | 5fcffc49 | 2015-12-16 05:08:06 | [diff] [blame] | 119 | ['OS=="linux" and is_cast_desktop_build==0', { |
wzhong | 141d6c6 | 2015-03-09 23:39:08 | [diff] [blame] | 120 | 'variables': { |
| 121 | 'filters': [ |
| 122 | # Run net_unittests first to avoid random failures due to slow python startup |
| 123 | # KeygenHandlerTest.SmokeTest and KeygenHandlerTest.ConcurrencyTest fail due to |
| 124 | # readonly certdb (b/8153161) |
derekjchow | 1646278 | 2015-03-20 23:42:01 | [diff] [blame] | 125 | # URLRequestTestHTTP.GetTest_ManyCookies takes roughly 55s to run. Increase |
derekjchow | 38480fe | 2015-08-27 23:00:21 | [diff] [blame] | 126 | # timeout to 90s from 45s to allow it to pass (b/19821476) |
derekjchow | c4c495eb | 2015-03-25 01:17:31 | [diff] [blame] | 127 | # ProxyScriptFetcherImplTest.HttpMimeType is flaking (b/19848784) |
derekjchow | 38480fe | 2015-08-27 23:00:21 | [diff] [blame] | 128 | # Running a batch of net_unittests has high overhead. Run tests in batches of 25 to reduce number of batches (b/23156294). |
| 129 | 'net_unittests --gtest_filter=-KeygenHandlerTest.SmokeTest:KeygenHandlerTest.ConcurrencyTest:ProxyScriptFetcherImplTest.HttpMimeType --test-launcher-timeout=90000 --test-launcher-batch-limit=25', |
wzhong | 141d6c6 | 2015-03-09 23:39:08 | [diff] [blame] | 130 | # Disable ProcessMetricsTest.GetNumberOfThreads (b/15610509) |
| 131 | # Disable ProcessUtilTest.* (need to define OS_ANDROID) |
| 132 | # Disable StackContainer.BufferAlignment (don't support 16-byte alignment) |
| 133 | # Disable SystemMetrics2Test.GetSystemMemoryInfo (buffers>0 can't be guaranteed) |
icoolidge | f9c30a5 | 2015-04-20 18:16:02 | [diff] [blame] | 134 | 'base_unittests --gtest_filter=-ProcessMetricsTest.GetNumberOfThreads:ProcessUtilTest.*:StackContainer.BufferAlignment:SystemMetrics2Test.GetSystemMemoryInfo', |
wzhong | 141d6c6 | 2015-03-09 23:39:08 | [diff] [blame] | 135 | # DesktopCaptureDeviceTest.*: No capture device on Eureka |
| 136 | # Disable PepperGamepadHostTest.WaitForReply (pepper not supported on Eureka) |
| 137 | # Disable GpuDataManagerImplPrivateTest.SetGLStrings and |
| 138 | # RenderWidgetHostTest.Background because we disable the blacklist to enable WebGL (b/16142554) |
| 139 | 'content_unittests --gtest_filter=-DOMStorageDatabaseTest.TestCanOpenAndReadWebCoreDatabase:DesktopCaptureDeviceTest.Capture:GamepadProviderTest.PollingAccess:GpuDataManagerImplPrivateTest.SetGLStrings:PepperGamepadHostTest.WaitForReply:RenderWidgetHostTest.Background', |
| 140 | # Disable VP9 related tests (b/18593324) |
| 141 | # PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM |
| 142 | # PipelineIntegrationTest.BasicPlayback_VideoOnly_VP9_WebM |
| 143 | # PipelineIntegrationTest.BasicPlayback_VP9* |
| 144 | # PipelineIntegrationTest.P444_VP9_WebM |
| 145 | # Disable VP8A tests (b/18593324) |
| 146 | # PipelineIntegrationTest.BasicPlayback_VP8A* |
| 147 | # Disable OpusAudioDecoderTest/AudioDecoderTest.ProduceAudioSamples/0 (unit |
| 148 | # test fails when Opus decoder uses fixed-point) |
| 149 | # Due to b/16456550, disable the following four test cases: |
| 150 | # AudioOutputControllerTest.PlayDivertSwitchDeviceRevertClose |
| 151 | # AudioOutputControllerTest.PlaySwitchDeviceClose |
| 152 | # AudioStreamHandlerTest.Play |
| 153 | # SoundsManagerTest.Play |
| 154 | # Disable AudioStreamHandlerTest.ConsecutivePlayRequests (b/16539293) |
| 155 | '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', |
| 156 | 'sync_unit_tests --gtest_filter=-SyncHttpBridgeTest.*', |
| 157 | # DoAppendUTF8Invalid fails because of dcheck_always_on flag in Eng builds |
| 158 | 'url_unittests --gtest_filter=-URLCanonTest.DoAppendUTF8Invalid', |
| 159 | ], |
| 160 | }, |
slan | 5fcffc49 | 2015-12-16 05:08:06 | [diff] [blame] | 161 | }, { # else desktop or android |
wzhong | 141d6c6 | 2015-03-09 23:39:08 | [diff] [blame] | 162 | 'variables': { |
| 163 | 'filters': [ |
wzhong | 141d6c6 | 2015-03-09 23:39:08 | [diff] [blame] | 164 | # Disable PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM (not supported) |
| 165 | 'media_unittests --gtest_filter=-PipelineIntegrationTest.BasicPlayback_MediaSource_VP9_WebM', |
| 166 | ], |
| 167 | } |
| 168 | }], |
sanfin | 09990de | 2015-11-16 19:08:19 | [diff] [blame] | 169 | ['OS=="linux"', { |
| 170 | 'dependencies': [ |
| 171 | 'cast_crash_unittests', |
| 172 | ], |
| 173 | }], |
gunsch | a4b98fb | 2015-01-08 18:52:52 | [diff] [blame] | 174 | ['disable_display==0', { |
| 175 | 'dependencies': [ |
| 176 | '../gpu/gpu.gyp:gpu_unittests', |
| 177 | ], |
| 178 | }], |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 179 | ['OS!="android"', { |
| 180 | 'dependencies': [ |
slan | f48fe87 | 2015-06-23 19:41:52 | [diff] [blame] | 181 | 'cast_shell_unittests', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 182 | 'cast_shell_browser_test', |
gunsch | 6154636 | 2015-03-31 19:26:20 | [diff] [blame] | 183 | 'media/media.gyp:cast_media_unittests', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 184 | ], |
gunsch | 5fa50f1 | 2014-12-09 08:14:11 | [diff] [blame] | 185 | 'variables': { |
| 186 | 'filters': [ |
halliwell | be1e858 | 2015-12-09 19:59:23 | [diff] [blame] | 187 | # --enable-local-file-accesses => to load sample media files |
| 188 | # --test-launcher-jobs=1 => so internal code can bind to port |
| 189 | 'cast_shell_browser_test --no-sandbox --enable-local-file-accesses --enable-cma-media-pipeline --ozone-platform=cast --test-launcher-jobs=1', |
mbjorge | 6fc9970 | 2016-03-19 00:54:10 | [diff] [blame] | 190 | 'cast_media_unittests --test-launcher-jobs=1', |
gunsch | 5fa50f1 | 2014-12-09 08:14:11 | [diff] [blame] | 191 | ], |
| 192 | }, |
slan | 25bb71f2 | 2016-01-06 21:23:55 | [diff] [blame] | 193 | 'conditions': [ |
cleichner | 8de0a33 | 2016-02-09 01:26:07 | [diff] [blame] | 194 | ['use_alsa==1', { |
slan | 25bb71f2 | 2016-01-06 21:23:55 | [diff] [blame] | 195 | 'dependencies': [ |
| 196 | 'media/media.gyp:alsa_cma_backend_unittests', |
| 197 | ], |
| 198 | }], |
| 199 | ], |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 200 | }], |
| 201 | ], |
| 202 | 'includes': ['build/tests/test_list.gypi'], |
| 203 | }, |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 204 | { |
| 205 | 'target_name': 'cast_metrics_test_support', |
| 206 | 'type': '<(component)', |
| 207 | 'dependencies': [ |
| 208 | 'cast_base', |
| 209 | ], |
| 210 | 'sources': [ |
| 211 | 'base/metrics/cast_metrics_test_helper.cc', |
| 212 | 'base/metrics/cast_metrics_test_helper.h', |
| 213 | ], |
| 214 | }, # end of target 'cast_metrics_test_support' |
| 215 | ], # end of targets |
| 216 | 'conditions': [ |
| 217 | ['OS=="android"', { |
| 218 | 'targets': [ |
| 219 | { |
gunsch | e4a7697 | 2015-07-15 00:39:56 | [diff] [blame] | 220 | 'target_name': 'cast_base_unittests_apk', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 221 | 'type': 'none', |
| 222 | 'dependencies': [ |
gunsch | e4a7697 | 2015-07-15 00:39:56 | [diff] [blame] | 223 | 'cast_base_unittests', |
| 224 | ], |
| 225 | 'variables': { |
| 226 | 'test_suite_name': 'cast_base_unittests', |
| 227 | }, |
| 228 | 'includes': ['../build/apk_test.gypi'], |
| 229 | }, # end of target 'cast_base_unittests_apk' |
| 230 | { |
gunsch | e4a7697 | 2015-07-15 00:39:56 | [diff] [blame] | 231 | 'target_name': 'cast_android_tests', |
| 232 | 'type': 'none', |
gunsch | 2b0e12f7e | 2015-07-15 05:20:37 | [diff] [blame] | 233 | 'dependencies': ['cast_android_tests_generator'], |
| 234 | 'conditions': [ |
yucliu | 48ba4153 | 2015-07-30 21:09:08 | [diff] [blame] | 235 | ['chromecast_branding!="public"', { |
gunsch | 2b0e12f7e | 2015-07-15 05:20:37 | [diff] [blame] | 236 | 'dependencies': [ |
| 237 | 'internal/chromecast_internal.gyp:cast_android_tests_internal', |
| 238 | ], |
| 239 | }], |
| 240 | ], |
| 241 | }, # end of target 'cast_android_tests', |
| 242 | { |
| 243 | 'target_name': 'cast_android_tests_generator', |
| 244 | 'type': 'none', |
gunsch | e4a7697 | 2015-07-15 00:39:56 | [diff] [blame] | 245 | 'variables': { |
| 246 | 'filters': [ |
sanfin | d3c9651 | 2016-03-04 02:39:37 | [diff] [blame] | 247 | # ComponentDeathTest is unable to fork processes on Android |
| 248 | 'cast_base_unittests_apk --gtest_filter=*:-ComponentDeathTest.*', |
gunsch | adc7c9b | 2015-07-15 22:27:09 | [diff] [blame] | 249 | # LayerTreeHost has dozens of separate crashing test cases on Fugu. (b/22512618) |
| 250 | 'cc_unittests_apk --gtest_filter=*:-LayerTreeHost*', |
gunsch | e4a7697 | 2015-07-15 00:39:56 | [diff] [blame] | 251 | # The following tests all crash on fugu. |
gunsch | e4a7697 | 2015-07-15 00:39:56 | [diff] [blame] | 252 | 'gfx_unittests_apk --gtest_filter=*:-FontListTest.Fonts_DeriveWithHeightUpperBound', |
| 253 | 'media_unittests_apk --gtest_filter=*-AudioInputTest.*:AudioAndroidInputTest*', |
| 254 | ], |
| 255 | }, |
| 256 | 'dependencies': [ |
| 257 | 'cast_base_unittests_apk', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 258 | '../base/base.gyp:base_unittests_apk', |
| 259 | '../cc/cc_tests.gyp:cc_unittests_apk', |
| 260 | '../ipc/ipc.gyp:ipc_tests_apk', |
| 261 | '../media/media.gyp:media_unittests_apk', |
toyoshim | c6475779 | 2015-04-30 14:52:02 | [diff] [blame] | 262 | '../media/midi/midi.gyp:midi_unittests_apk', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 263 | '../net/net.gyp:net_unittests_apk', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 264 | '../sql/sql.gyp:sql_unittests_apk', |
| 265 | '../sync/sync.gyp:sync_unit_tests_apk', |
khushalsagar | 3a8d056 | 2015-11-23 22:50:36 | [diff] [blame] | 266 | '../ui/events/events_unittests.gyp:events_unittests_apk', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 267 | '../ui/gfx/gfx_tests.gyp:gfx_unittests_apk', |
| 268 | ], |
| 269 | 'includes': ['build/tests/test_list.gypi'], |
gunsch | 2b0e12f7e | 2015-07-15 05:20:37 | [diff] [blame] | 270 | }, # end of target 'cast_android_tests_generator' |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 271 | { |
| 272 | 'target_name': 'cast_android_test_lists', |
| 273 | 'type': 'none', |
| 274 | 'dependencies': [ |
| 275 | 'cast_android_tests', |
| 276 | ], |
| 277 | 'variables': { |
| 278 | 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py', |
| 279 | 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests', |
| 280 | }, |
| 281 | 'actions': [ |
| 282 | { |
| 283 | 'action_name': 'generate_combined_test_build_list', |
| 284 | 'message': 'Generating combined test build list', |
| 285 | 'inputs': ['<(test_generator_py)'], |
| 286 | 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list_android.txt'], |
| 287 | 'action': [ |
| 288 | 'python', '<(test_generator_py)', |
| 289 | '-t', '<(test_inputs_dir)', |
| 290 | '-o', '<@(_outputs)', |
| 291 | 'pack_build', |
| 292 | ], |
| 293 | }, |
gunsch | e4a7697 | 2015-07-15 00:39:56 | [diff] [blame] | 294 | { |
| 295 | 'action_name': 'generate_combined_test_run_list', |
| 296 | 'message': 'Generating combined test run list', |
| 297 | 'inputs': ['<(test_generator_py)'], |
| 298 | 'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'], |
| 299 | 'action': [ |
| 300 | 'python', '<(test_generator_py)', |
| 301 | '-t', '<(test_inputs_dir)', |
| 302 | '-o', '<@(_outputs)', |
| 303 | 'pack_run', |
| 304 | ], |
| 305 | } |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 306 | ], |
| 307 | }, |
| 308 | ], # end of targets |
| 309 | }, { # OS!="android" |
| 310 | 'targets': [ |
slan | 87db9d1 | 2015-10-05 20:37:38 | [diff] [blame] | 311 | # GN target: //chromecast/browser:test_support |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 312 | { |
| 313 | 'target_name': 'cast_shell_test_support', |
| 314 | 'type': '<(component)', |
| 315 | 'defines': [ |
| 316 | 'HAS_OUT_OF_PROC_TEST_RUNNER', |
| 317 | ], |
| 318 | 'dependencies': [ |
| 319 | 'cast_shell_core', |
carlosk | 282c437 | 2016-02-02 14:53:49 | [diff] [blame] | 320 | '../content/content_shell_and_tests.gyp:content_browser_test_base', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 321 | '../content/content_shell_and_tests.gyp:content_browser_test_support', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 322 | '../mojo/mojo_public.gyp:mojo_cpp_bindings', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 323 | '../testing/gtest.gyp:gtest', |
| 324 | ], |
carlosk | 282c437 | 2016-02-02 14:53:49 | [diff] [blame] | 325 | 'export_dependent_settings': [ |
| 326 | '../content/content_shell_and_tests.gyp:content_browser_test_base', |
| 327 | ], |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 328 | 'sources': [ |
| 329 | 'browser/test/chromecast_browser_test.cc', |
| 330 | 'browser/test/chromecast_browser_test.h', |
| 331 | 'browser/test/chromecast_browser_test_runner.cc', |
| 332 | ], |
| 333 | }, # end of target 'cast_shell_test_support' |
| 334 | { |
| 335 | 'target_name': 'cast_shell_browser_test', |
| 336 | 'type': '<(gtest_target_type)', |
| 337 | 'dependencies': [ |
| 338 | 'cast_shell_test_support', |
halliwell | 7c3a5f4b | 2015-11-12 00:19:27 | [diff] [blame] | 339 | '../content/content_shell_and_tests.gyp:test_support_content', |
| 340 | '../media/media.gyp:media_test_support', |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 341 | '../testing/gtest.gyp:gtest', |
| 342 | ], |
| 343 | 'defines': [ |
| 344 | 'HAS_OUT_OF_PROC_TEST_RUNNER', |
| 345 | ], |
| 346 | 'sources': [ |
| 347 | 'browser/test/chromecast_shell_browser_test.cc', |
| 348 | ], |
halliwell | 7c3a5f4b | 2015-11-12 00:19:27 | [diff] [blame] | 349 | 'conditions': [ |
| 350 | ['chromecast_branding=="public"', { |
| 351 | 'dependencies': [ |
| 352 | # Link default libcast_media_1.0 statically to prevent |
| 353 | # linking dynamically against dummy implementation. |
| 354 | 'media/media.gyp:libcast_media_1.0_default_core', |
| 355 | ], |
| 356 | }], |
| 357 | ], |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 358 | }, |
slan | 87db9d1 | 2015-10-05 20:37:38 | [diff] [blame] | 359 | # GN target: //chromecast/app:cast_shell_unittests |
slan | f48fe87 | 2015-06-23 19:41:52 | [diff] [blame] | 360 | { |
| 361 | 'target_name': 'cast_shell_unittests', |
| 362 | 'type': '<(gtest_target_type)', |
| 363 | 'dependencies': [ |
byungchul | d95a7a9 | 2015-10-08 22:40:39 | [diff] [blame] | 364 | 'cast_crash_client', |
bcf | 62f6287 | 2015-07-29 18:23:52 | [diff] [blame] | 365 | 'cast_crash_test_support', |
slan | f48fe87 | 2015-06-23 19:41:52 | [diff] [blame] | 366 | '../base/base.gyp:run_all_unittests', |
| 367 | '../testing/gtest.gyp:gtest', |
| 368 | ], |
| 369 | 'sources': [ |
| 370 | 'app/linux/cast_crash_reporter_client_unittest.cc', |
| 371 | ], |
| 372 | }, # end of cast_shell_unittests |
gunsch | e4a7697 | 2015-07-15 00:39:56 | [diff] [blame] | 373 | # Builds all tests and the output lists of build/run targets for those tests. |
| 374 | # Note: producing a predetermined list of dependent inputs on which to |
| 375 | # regenerate this output is difficult with GYP. This file is not |
| 376 | # guaranteed to be regenerated outside of a clean build. |
slan | 87db9d1 | 2015-10-05 20:37:38 | [diff] [blame] | 377 | # GN target: //chromecast:cast_test_lists |
gunsch | e4a7697 | 2015-07-15 00:39:56 | [diff] [blame] | 378 | { |
| 379 | 'target_name': 'cast_test_lists', |
| 380 | 'type': 'none', |
| 381 | 'dependencies': [ |
| 382 | 'cast_tests', |
| 383 | ], |
| 384 | 'variables': { |
| 385 | 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py', |
| 386 | 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests', |
altimin | 5abfd72 | 2015-11-12 18:40:58 | [diff] [blame] | 387 | 'test_additional_options': '--ozone-platform=headless' |
gunsch | e4a7697 | 2015-07-15 00:39:56 | [diff] [blame] | 388 | }, |
| 389 | 'actions': [ |
| 390 | { |
| 391 | 'action_name': 'generate_combined_test_build_list', |
| 392 | 'message': 'Generating combined test build list', |
| 393 | 'inputs': ['<(test_generator_py)'], |
| 394 | 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list.txt'], |
| 395 | 'action': [ |
| 396 | 'python', '<(test_generator_py)', |
| 397 | '-t', '<(test_inputs_dir)', |
| 398 | '-o', '<@(_outputs)', |
| 399 | 'pack_build', |
| 400 | ], |
| 401 | }, |
| 402 | { |
| 403 | 'action_name': 'generate_combined_test_run_list', |
| 404 | 'message': 'Generating combined test run list', |
| 405 | 'inputs': ['<(test_generator_py)'], |
| 406 | 'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'], |
| 407 | 'action': [ |
| 408 | 'python', '<(test_generator_py)', |
| 409 | '-t', '<(test_inputs_dir)', |
| 410 | '-o', '<@(_outputs)', |
| 411 | '-a', '<(test_additional_options)', |
| 412 | 'pack_run', |
| 413 | ], |
| 414 | } |
| 415 | ], |
| 416 | }, |
gunsch | 0bf37764 | 2014-11-20 03:44:27 | [diff] [blame] | 417 | ], # end of targets |
| 418 | }], |
| 419 | ], # end of conditions |
| 420 | } |