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',
43 # Disable OutOfMemoryDeathTest.ViaSharedLibraries due to gTrusty eglibc incompatibility
45 'base_unittests --gtest_filter=-OutOfMemoryDeathTest.ViaSharedLibraries',
49 ['disable_display==0', {
51 '../gpu/gpu.gyp:gpu_unittests',
58 'cast_shell_browser_test',
62 'cast_shell_browser_test --no-sandbox',
67 'includes': ['build/tests/test_list.gypi'],
69 # Builds all tests and the output lists of build/run targets for those tests.
70 # Note: producing a predetermined list of dependent inputs on which to
71 # regenerate this output is difficult with GYP. This file is not
72 # guaranteed to be regenerated outside of a clean build.
74 'target_name': 'cast_test_lists',
80 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
81 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
82 'test_additional_options': '--ozone-platform=test'
86 'action_name': 'generate_combined_test_build_list',
87 'message': 'Generating combined test build list',
88 'inputs': ['<(test_generator_py)'],
89 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list.txt'],
91 'python', '<(test_generator_py)',
92 '-t', '<(test_inputs_dir)',
98 'action_name': 'generate_combined_test_run_list',
99 'message': 'Generating combined test run list',
100 'inputs': ['<(test_generator_py)'],
101 'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'],
103 'python', '<(test_generator_py)',
104 '-t', '<(test_inputs_dir)',
105 '-o', '<@(_outputs)',
106 '-a', '<(test_additional_options)',
113 'target_name': 'cast_metrics_test_support',
114 'type': '<(component)',
119 'base/metrics/cast_metrics_test_helper.cc',
120 'base/metrics/cast_metrics_test_helper.h',
122 }, # end of target 'cast_metrics_test_support'
128 'target_name': 'cast_android_tests',
131 '../base/base.gyp:base_unittests_apk',
132 '../cc/cc_tests.gyp:cc_unittests_apk',
133 '../ipc/ipc.gyp:ipc_tests_apk',
134 '../media/media.gyp:media_unittests_apk',
135 '../net/net.gyp:net_unittests_apk',
136 '../sandbox/sandbox.gyp:sandbox_linux_jni_unittests_apk',
137 '../sql/sql.gyp:sql_unittests_apk',
138 '../sync/sync.gyp:sync_unit_tests_apk',
139 '../ui/events/events.gyp:events_unittests_apk',
140 '../ui/gfx/gfx_tests.gyp:gfx_unittests_apk',
142 'includes': ['build/tests/test_list.gypi'],
145 'target_name': 'cast_android_test_lists',
148 'cast_android_tests',
151 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
152 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
156 'action_name': 'generate_combined_test_build_list',
157 'message': 'Generating combined test build list',
158 'inputs': ['<(test_generator_py)'],
159 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list_android.txt'],
161 'python', '<(test_generator_py)',
162 '-t', '<(test_inputs_dir)',
163 '-o', '<@(_outputs)',
173 'target_name': 'cast_shell_test_support',
174 'type': '<(component)',
176 'HAS_OUT_OF_PROC_TEST_RUNNER',
180 '../content/content_shell_and_tests.gyp:content_browser_test_support',
181 '../testing/gtest.gyp:gtest',
184 'browser/test/chromecast_browser_test.cc',
185 'browser/test/chromecast_browser_test.h',
186 'browser/test/chromecast_browser_test_runner.cc',
188 }, # end of target 'cast_shell_test_support'
190 'target_name': 'cast_shell_browser_test',
191 'type': '<(gtest_target_type)',
193 'cast_shell_test_support',
194 '../testing/gtest.gyp:gtest',
197 'HAS_OUT_OF_PROC_TEST_RUNNER',
200 'browser/test/chromecast_shell_browser_test.cc',
205 ], # end of conditions