Another round of product logo updates for MD
[chromium-blink-merge.git] / extensions / extensions_tests.gyp
blob9d0666856cc3dd7f56761c388325aa6b08759676
2   'includes': [
3     'extensions_tests.gypi',
4   ],
5   'variables': {
6     # Product name is used for Mac bundle.
7     'app_shell_product_name': 'App Shell',
8     # The version is high enough to be supported by Omaha (at least 31)
9     # but fake enough to be obviously not a Chrome release.
10     'app_shell_version': '38.1234.5678.9',
11     'chromium_code': 1,
12   },
13   'targets': [
14     {
15       'target_name': 'extensions_unittests',
16       'type': 'executable',
17       'dependencies': [
18         '../base/base.gyp:base',
19         '../base/base.gyp:test_support_base',
20         '../components/components.gyp:keyed_service_content',
21         '../components/components.gyp:pref_registry_test_support',
22         '../components/components.gyp:user_prefs',
23         '../content/content_shell_and_tests.gyp:test_support_content',
24         '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks',
25         '../device/serial/serial.gyp:device_serial',
26         '../device/serial/serial.gyp:device_serial_test_util',
27         '../mojo/mojo_base.gyp:mojo_application_bindings',
28         '../mojo/mojo_base.gyp:mojo_environment_chromium',
29         '../testing/gmock.gyp:gmock',
30         '../testing/gtest.gyp:gtest',
31         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
32         '../third_party/mojo/mojo_edk.gyp:mojo_js_lib',
33         '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
34         '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
35         'common/api/api.gyp:cast_channel_proto',
36         'extensions.gyp:extensions_browser',
37         'extensions.gyp:extensions_common',
38         'extensions.gyp:extensions_renderer',
39         'extensions.gyp:extensions_shell_and_test_pak',
40         'extensions.gyp:extensions_test_support',
41         'extensions.gyp:extensions_utility',
42         'extensions_resources.gyp:extensions_resources',
43         'extensions_strings.gyp:extensions_strings',
44       ],
45       # Needed for third_party libraries like leveldb.
46       'include_dirs': [
47         '..',
48       ],
49       'sources': [
50         '<@(extensions_unittests_sources)',
51       ],
52       # Disable c4267 warnings until we fix size_t to int truncations.
53       'msvs_disabled_warnings': [ 4267, ],
54       'conditions': [
55         ['OS=="win" and win_use_allocator_shim==1', {
56           'dependencies': [
57             '../base/allocator/allocator.gyp:allocator',
58           ],
59         }],
60         ['chromeos==1', {
61           'dependencies': [
62             '<(DEPTH)/chromeos/chromeos.gyp:chromeos_test_support',
63           ],
64         }],
65       ],
66     },
67     {
68       # GN version: //extensions:extensions_browsertests
69       'target_name': 'extensions_browsertests',
70       'type': '<(gtest_target_type)',
71       'dependencies': [
72         'extensions.gyp:extensions_test_support',
73         'shell/app_shell.gyp:app_shell_lib',
74         # TODO(yoz): find the right deps
75         '<(DEPTH)/base/base.gyp:test_support_base',
76         '<(DEPTH)/components/components.gyp:guest_view_browser',
77         '<(DEPTH)/components/components.gyp:guest_view_renderer',
78         '<(DEPTH)/components/components.gyp:guest_view_test_support',
79         '<(DEPTH)/content/content.gyp:content_app_both',
80         '<(DEPTH)/content/content_shell_and_tests.gyp:content_browser_test_support',
81         '<(DEPTH)/content/content_shell_and_tests.gyp:test_support_content',
82         '<(DEPTH)/device/bluetooth/bluetooth.gyp:device_bluetooth_mocks',
83         '<(DEPTH)/device/usb/usb.gyp:device_usb_mocks',
84         '<(DEPTH)/testing/gmock.gyp:gmock',
85         '<(DEPTH)/testing/gtest.gyp:gtest',
86       ],
87       'defines': [
88         'HAS_OUT_OF_PROC_TEST_RUNNER',
89       ],
90       'sources': [
91         '<@(extensions_browsertests_sources)',
92       ],
93       'conditions': [
94         ['OS=="win" and win_use_allocator_shim==1', {
95           'dependencies': [
96             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
97           ],
98         }],
99         ['OS=="mac"', {
100           'dependencies': [
101             'shell/app_shell.gyp:app_shell',  # Needed for App Shell.app's Helper.
102           ],
103         }],
104         # This is only here to keep gyp happy. This target never builds on
105         # mobile platforms.
106         ['OS != "ios" and OS != "android"', {
107           'dependencies': [
108             '<(DEPTH)/components/components.gyp:storage_monitor_test_support',
109           ],
110         }],
111       ]
112     },
113   ],
114   'conditions': [
115     ['test_isolation_mode != "noop"', {
116       'targets': [
117         {
118           'target_name': 'extensions_browsertests_run',
119           'type': 'none',
120           'dependencies': [
121             'extensions_browsertests',
122           ],
123           'includes': [
124             '../build/isolate.gypi',
125           ],
126           'sources': [
127             'extensions_browsertests.isolate',
128           ],
129         },
130         {
131           'target_name': 'extensions_unittests_run',
132           'type': 'none',
133           'dependencies': [
134             'extensions_unittests',
135           ],
136           'includes': [
137             '../build/isolate.gypi',
138           ],
139           'sources': [
140             'extensions_unittests.isolate',
141           ],
142           'conditions': [
143             ['use_x11 == 1', {
144               'dependencies': [
145                 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
146               ],
147             }],
148           ],
149         }
150       ],
151     }],
152   ],