Disallow ManagePasswordsUIControllerMock to delete ManagePasswordsUIController silently.
[chromium-blink-merge.git] / chromecast / chromecast_tests.gypi
blob406b354c9db95827dcc95f407131301fee303663
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.
6   'targets': [
7     {
8       'target_name': 'cast_tests',
9       'type': 'none',
10       'dependencies': [
11         'cast_test_generator',
12       ],
13       'conditions': [
14         ['chromecast_branding=="Chrome"', {
15           'dependencies': [
16             '<(cast_internal_gyp):cast_tests_internal',
17           ],
18         }],
19       ],
20     },
21     # This target only depends on targets that generate test binaries.
22     {
23       'target_name': 'cast_test_generator',
24       'type': 'none',
25       'dependencies': [
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',
40       ],
41       'conditions': [
42         ['OS!="android"', {
43           'dependencies': [
44             'cast_shell_browser_test',
45           ],
46         }],
47       ],
48       'includes': ['build/tests/test_list.gypi'],
49     },
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.
54     {
55       'target_name': 'cast_test_lists',
56       'type': 'none',
57       'dependencies': [
58         'cast_tests',
59       ],
60       'variables': {
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'
64       },
65       'actions': [
66         {
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'],
71           'action': [
72             'python', '<(test_generator_py)',
73             '-t', '<(test_inputs_dir)',
74             '-o', '<@(_outputs)',
75             'pack_build',
76           ],
77         },
78         {
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'],
83           'action': [
84             'python', '<(test_generator_py)',
85             '-t', '<(test_inputs_dir)',
86             '-o', '<@(_outputs)',
87             '-a', '<(test_additional_options)',
88             'pack_run',
89           ],
90         }
91       ],
92     },
93     {
94       'target_name': 'cast_metrics_test_support',
95       'type': '<(component)',
96       'dependencies': [
97         'cast_base',
98       ],
99       'sources': [
100         'base/metrics/cast_metrics_test_helper.cc',
101         'base/metrics/cast_metrics_test_helper.h',
102       ],
103     },  # end of target 'cast_metrics_test_support'
104   ],  # end of targets
105   'conditions': [
106     ['OS=="android"', {
107       'targets': [
108         {
109           'target_name': 'cast_android_tests',
110           'type': 'none',
111           'dependencies': [
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',
122           ],
123           'includes': ['build/tests/test_list.gypi'],
124         },
125         {
126           'target_name': 'cast_android_test_lists',
127           'type': 'none',
128           'dependencies': [
129             'cast_android_tests',
130           ],
131           'variables': {
132             'test_generator_py': '<(DEPTH)/chromecast/tools/build/generate_test_lists.py',
133             'test_inputs_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast/tests',
134           },
135           'actions': [
136             {
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'],
141               'action': [
142                 'python', '<(test_generator_py)',
143                 '-t', '<(test_inputs_dir)',
144                 '-o', '<@(_outputs)',
145                 'pack_build',
146               ],
147             },
148           ],
149         },
150       ],  # end of targets
151     }, {  # OS!="android"
152       'targets': [
153         {
154           'target_name': 'cast_shell_test_support',
155           'type': '<(component)',
156           'defines': [
157             'HAS_OUT_OF_PROC_TEST_RUNNER',
158           ],
159           'dependencies': [
160             'cast_shell_core',
161             '../content/content_shell_and_tests.gyp:content_browser_test_support',
162             '../testing/gtest.gyp:gtest',
163           ],
164           'sources': [
165             'browser/test/chromecast_browser_test.cc',
166             'browser/test/chromecast_browser_test.h',
167             'browser/test/chromecast_browser_test_runner.cc',
168           ],
169         },  # end of target 'cast_shell_test_support'
170         {
171           'target_name': 'cast_shell_browser_test',
172           'type': '<(gtest_target_type)',
173           'dependencies': [
174             'cast_shell_test_support',
175             '../testing/gtest.gyp:gtest',
176           ],
177           'defines': [
178             'HAS_OUT_OF_PROC_TEST_RUNNER',
179           ],
180           'sources': [
181             'browser/test/chromecast_shell_browser_test.cc',
182           ],
183         },
184       ],  # end of targets
185     }],
186   ],  # end of conditions