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',
44 'cast_shell_browser_test',
48 'includes': ['build/tests/test_list.gypi'],
50 # Builds all tests and the output lists of build/run targets for those tests.
51 # Note: producing a predetermined list of dependent inputs on which to
52 # regenerate this output is difficult with GYP. This file is not
53 # guaranteed to be regenerated outside of a clean build.
55 'target_name': 'cast_test_lists',
61 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
62 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
63 'test_additional_options': '--ozone-platform=test'
67 'action_name': 'generate_combined_test_build_list',
68 'message': 'Generating combined test build list',
69 'inputs': ['<(test_generator_py)'],
70 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list.txt'],
72 'python', '<(test_generator_py)',
73 '-t', '<(test_inputs_dir)',
79 'action_name': 'generate_combined_test_run_list',
80 'message': 'Generating combined test run list',
81 'inputs': ['<(test_generator_py)'],
82 'outputs': ['<(PRODUCT_DIR)/tests/run_test_list.txt'],
84 'python', '<(test_generator_py)',
85 '-t', '<(test_inputs_dir)',
87 '-a', '<(test_additional_options)',
94 'target_name': 'cast_metrics_test_support',
95 'type': '<(component)',
100 'base/metrics/cast_metrics_test_helper.cc',
101 'base/metrics/cast_metrics_test_helper.h',
103 }, # end of target 'cast_metrics_test_support'
109 'target_name': 'cast_android_tests',
112 '../base/base.gyp:base_unittests_apk',
113 '../cc/cc_tests.gyp:cc_unittests_apk',
114 '../ipc/ipc.gyp:ipc_tests_apk',
115 '../media/media.gyp:media_unittests_apk',
116 '../net/net.gyp:net_unittests_apk',
117 '../sandbox/sandbox.gyp:sandbox_linux_jni_unittests_apk',
118 '../sql/sql.gyp:sql_unittests_apk',
119 '../sync/sync.gyp:sync_unit_tests_apk',
120 '../ui/events/events.gyp:events_unittests_apk',
121 '../ui/gfx/gfx_tests.gyp:gfx_unittests_apk',
123 'includes': ['build/tests/test_list.gypi'],
126 'target_name': 'cast_android_test_lists',
129 'cast_android_tests',
132 'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
133 'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
137 'action_name': 'generate_combined_test_build_list',
138 'message': 'Generating combined test build list',
139 'inputs': ['<(test_generator_py)'],
140 'outputs': ['<(PRODUCT_DIR)/tests/build_test_list_android.txt'],
142 'python', '<(test_generator_py)',
143 '-t', '<(test_inputs_dir)',
144 '-o', '<@(_outputs)',
154 'target_name': 'cast_shell_test_support',
155 'type': '<(component)',
157 'HAS_OUT_OF_PROC_TEST_RUNNER',
161 '../content/content_shell_and_tests.gyp:content_browser_test_support',
162 '../testing/gtest.gyp:gtest',
165 'browser/test/chromecast_browser_test.cc',
166 'browser/test/chromecast_browser_test.h',
167 'browser/test/chromecast_browser_test_runner.cc',
169 }, # end of target 'cast_shell_test_support'
171 'target_name': 'cast_shell_browser_test',
172 'type': '<(gtest_target_type)',
174 'cast_shell_test_support',
175 '../testing/gtest.gyp:gtest',
178 'HAS_OUT_OF_PROC_TEST_RUNNER',
181 'browser/test/chromecast_shell_browser_test.cc',
186 ], # end of conditions