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',
51 'cast_shell_browser_test',
55 'cast_shell_browser_test --no-sandbox',
60 'includes': ['build/tests/test_list.gypi'],
62 # Builds all tests and the output lists of build/run targets for those tests.
63 # Note: producing a predetermined list of dependent inputs on which to
64 # regenerate this output is difficult with GYP. This file is not
65 # guaranteed to be regenerated outside of a clean build.
67 'target_name': 'cast_test_lists',
73 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
74 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
75 'test_additional_options': '--ozone-platform=test'
79 'action_name': 'generate_combined_test_build_list',
80 'message': 'Generating combined test build list',
81 'inputs': ['<(test_generator_py)'],
82 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list.txt'],
84 'python', '<(test_generator_py)',
85 '-t', '<(test_inputs_dir)',
91 'action_name': 'generate_combined_test_run_list',
92 'message': 'Generating combined test run list',
93 'inputs': ['<(test_generator_py)'],
94 'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'],
96 'python', '<(test_generator_py)',
97 '-t', '<(test_inputs_dir)',
99 '-a', '<(test_additional_options)',
106 'target_name': 'cast_metrics_test_support',
107 'type': '<(component)',
112 'base/metrics/cast_metrics_test_helper.cc',
113 'base/metrics/cast_metrics_test_helper.h',
115 }, # end of target 'cast_metrics_test_support'
121 'target_name': 'cast_android_tests',
124 '../base/base.gyp:base_unittests_apk',
125 '../cc/cc_tests.gyp:cc_unittests_apk',
126 '../ipc/ipc.gyp:ipc_tests_apk',
127 '../media/media.gyp:media_unittests_apk',
128 '../net/net.gyp:net_unittests_apk',
129 '../sandbox/sandbox.gyp:sandbox_linux_jni_unittests_apk',
130 '../sql/sql.gyp:sql_unittests_apk',
131 '../sync/sync.gyp:sync_unit_tests_apk',
132 '../ui/events/events.gyp:events_unittests_apk',
133 '../ui/gfx/gfx_tests.gyp:gfx_unittests_apk',
135 'includes': ['build/tests/test_list.gypi'],
138 'target_name': 'cast_android_test_lists',
141 'cast_android_tests',
144 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
145 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
149 'action_name': 'generate_combined_test_build_list',
150 'message': 'Generating combined test build list',
151 'inputs': ['<(test_generator_py)'],
152 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list_android.txt'],
154 'python', '<(test_generator_py)',
155 '-t', '<(test_inputs_dir)',
156 '-o', '<@(_outputs)',
166 'target_name': 'cast_shell_test_support',
167 'type': '<(component)',
169 'HAS_OUT_OF_PROC_TEST_RUNNER',
173 '../content/content_shell_and_tests.gyp:content_browser_test_support',
174 '../testing/gtest.gyp:gtest',
177 'browser/test/chromecast_browser_test.cc',
178 'browser/test/chromecast_browser_test.h',
179 'browser/test/chromecast_browser_test_runner.cc',
181 }, # end of target 'cast_shell_test_support'
183 'target_name': 'cast_shell_browser_test',
184 'type': '<(gtest_target_type)',
186 'cast_shell_test_support',
187 '../testing/gtest.gyp:gtest',
190 'HAS_OUT_OF_PROC_TEST_RUNNER',
193 'browser/test/chromecast_shell_browser_test.cc',
198 ], # end of conditions