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',
56 'cast_shell_browser_test',
60 'cast_shell_browser_test --no-sandbox --disable-gpu',
65 'includes': ['build/tests/test_list.gypi'],
67 # Builds all tests and the output lists of build/run targets for those tests.
68 # Note: producing a predetermined list of dependent inputs on which to
69 # regenerate this output is difficult with GYP. This file is not
70 # guaranteed to be regenerated outside of a clean build.
72 'target_name': 'cast_test_lists',
78 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
79 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
80 'test_additional_options': '--ozone-platform=test'
84 'action_name': 'generate_combined_test_build_list',
85 'message': 'Generating combined test build list',
86 'inputs': ['<(test_generator_py)'],
87 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list.txt'],
89 'python', '<(test_generator_py)',
90 '-t', '<(test_inputs_dir)',
96 'action_name': 'generate_combined_test_run_list',
97 'message': 'Generating combined test run list',
98 'inputs': ['<(test_generator_py)'],
99 'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'],
101 'python', '<(test_generator_py)',
102 '-t', '<(test_inputs_dir)',
103 '-o', '<@(_outputs)',
104 '-a', '<(test_additional_options)',
111 'target_name': 'cast_metrics_test_support',
112 'type': '<(component)',
117 'base/metrics/cast_metrics_test_helper.cc',
118 'base/metrics/cast_metrics_test_helper.h',
120 }, # end of target 'cast_metrics_test_support'
126 'target_name': 'cast_android_tests',
129 '../base/base.gyp:base_unittests_apk',
130 '../cc/cc_tests.gyp:cc_unittests_apk',
131 '../ipc/ipc.gyp:ipc_tests_apk',
132 '../media/media.gyp:media_unittests_apk',
133 '../net/net.gyp:net_unittests_apk',
134 '../sandbox/sandbox.gyp:sandbox_linux_jni_unittests_apk',
135 '../sql/sql.gyp:sql_unittests_apk',
136 '../sync/sync.gyp:sync_unit_tests_apk',
137 '../ui/events/events.gyp:events_unittests_apk',
138 '../ui/gfx/gfx_tests.gyp:gfx_unittests_apk',
140 'includes': ['build/tests/test_list.gypi'],
143 'target_name': 'cast_android_test_lists',
146 'cast_android_tests',
149 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
150 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
154 'action_name': 'generate_combined_test_build_list',
155 'message': 'Generating combined test build list',
156 'inputs': ['<(test_generator_py)'],
157 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list_android.txt'],
159 'python', '<(test_generator_py)',
160 '-t', '<(test_inputs_dir)',
161 '-o', '<@(_outputs)',
171 'target_name': 'cast_shell_test_support',
172 'type': '<(component)',
174 'HAS_OUT_OF_PROC_TEST_RUNNER',
178 '../content/content_shell_and_tests.gyp:content_browser_test_support',
179 '../testing/gtest.gyp:gtest',
180 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
183 'browser/test/chromecast_browser_test.cc',
184 'browser/test/chromecast_browser_test.h',
185 'browser/test/chromecast_browser_test_runner.cc',
187 }, # end of target 'cast_shell_test_support'
189 'target_name': 'cast_shell_browser_test',
190 'type': '<(gtest_target_type)',
192 'cast_shell_test_support',
193 '../testing/gtest.gyp:gtest',
196 'HAS_OUT_OF_PROC_TEST_RUNNER',
199 'browser/test/chromecast_shell_browser_test.cc',
204 ], # end of conditions