OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # TODO(rockot) bug 505926: Don't include chrome files from here. | 5 # TODO(rockot) bug 505926: Don't include chrome files from here. |
6 # See chrome_browser_tests_extensions_sources below | 6 # See chrome_browser_tests_extensions_sources below |
7 import("//chrome/chrome_tests.gni") | 7 import("//chrome/chrome_tests.gni") |
8 import("//extensions/extensions.gni") | 8 import("//extensions/extensions.gni") |
9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
10 import("//tools/grit/grit_rule.gni") | 10 import("//tools/grit/grit_rule.gni") |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 "//content/shell:resources", | 129 "//content/shell:resources", |
130 "//extensions/shell:resources", | 130 "//extensions/shell:resources", |
131 "//extensions/strings", | 131 "//extensions/strings", |
132 "//third_party/WebKit/public:image_resources", | 132 "//third_party/WebKit/public:image_resources", |
133 "//third_party/WebKit/public:resources", | 133 "//third_party/WebKit/public:resources", |
134 "//ui/resources", | 134 "//ui/resources", |
135 "//ui/strings", | 135 "//ui/strings", |
136 ] | 136 ] |
137 } | 137 } |
138 | 138 |
| 139 # TODO(GYP): Delete this after we've converted everything to GN. |
| 140 # The _run targets exist only for compatibility w/ GYP. |
| 141 group("extensions_unittests_run") { |
| 142 testonly = true |
| 143 deps = [ |
| 144 ":extensions_unittests", |
| 145 ] |
| 146 } |
| 147 |
139 test("extensions_unittests") { | 148 test("extensions_unittests") { |
140 sources = | 149 sources = |
141 rebase_path(extensions_tests_gypi_values.extensions_unittests_sources, | 150 rebase_path(extensions_tests_gypi_values.extensions_unittests_sources, |
142 ".", | 151 ".", |
143 "//extensions") | 152 "//extensions") |
144 | 153 |
145 sources += [ | 154 sources += [ |
146 # TODO(rockot): DisplayInfoProvider::Create() is only implemented in Chrome | 155 # TODO(rockot): DisplayInfoProvider::Create() is only implemented in Chrome |
147 # and app_shell. This is wrong. | 156 # and app_shell. This is wrong. |
148 "shell/browser/shell_display_info_provider.cc", | 157 "shell/browser/shell_display_info_provider.cc", |
149 ] | 158 ] |
150 | 159 |
| 160 data = [ |
| 161 "test/data/", |
| 162 "//chrome/test/data/extensions/", |
| 163 "$root_out_dir/extensions_shell_and_test.pak", |
| 164 ] |
| 165 |
151 deps = [ | 166 deps = [ |
152 ":extensions_resources", | 167 ":extensions_resources", |
153 ":shell_and_test_pak", | 168 ":shell_and_test_pak", |
154 ":test_support", | 169 ":test_support", |
155 "//base", | 170 "//base", |
156 "//base:prefs_test_support", | 171 "//base:prefs_test_support", |
157 "//base/test:test_support", | 172 "//base/test:test_support", |
158 "//components/keyed_service/content", | 173 "//components/keyed_service/content", |
159 "//components/user_prefs", | 174 "//components/user_prefs", |
160 "//content/test:test_support", | 175 "//content/test:test_support", |
161 "//device/bluetooth:mocks", | 176 "//device/bluetooth:mocks", |
162 "//device/serial", | 177 "//device/serial", |
163 "//device/serial:test_support", | 178 "//device/serial:test_support", |
164 "//extensions/common", | 179 "//extensions/common", |
165 "//extensions/common/api/cast_channel:cast_channel_proto", | 180 "//extensions/common/api/cast_channel:cast_channel_proto", |
166 "//extensions/renderer", | 181 "//extensions/renderer", |
167 "//extensions/strings", | 182 "//extensions/strings", |
168 "//extensions/utility", | 183 "//extensions/utility", |
169 "//mojo/application/public/interfaces", | 184 "//mojo/application/public/interfaces", |
170 "//mojo/environment:chromium", | 185 "//mojo/environment:chromium", |
171 "//testing/gmock", | 186 "//testing/gmock", |
172 "//testing/gtest", | 187 "//testing/gtest", |
173 "//third_party/leveldatabase", | 188 "//third_party/leveldatabase", |
174 "//third_party/mojo/src/mojo/edk/js", | 189 "//third_party/mojo/src/mojo/edk/js", |
175 "//third_party/mojo/src/mojo/edk/system", | 190 "//third_party/mojo/src/mojo/edk/system", |
176 "//third_party/mojo/src/mojo/public/cpp/bindings", | 191 "//third_party/mojo/src/mojo/public/cpp/bindings", |
177 ] | 192 ] |
178 | 193 |
| 194 data_deps = [ "//third_party/mesa:osmesa" ] |
| 195 |
179 if (is_win) { | 196 if (is_win) { |
180 deps += [ "//base/allocator" ] | 197 deps += [ "//base/allocator" ] |
181 } | 198 } |
182 | 199 |
183 if (is_chromeos) { | 200 if (is_chromeos) { |
184 sources += [ | 201 sources += [ |
185 # TODO(rockot): There are two implementations of VpnServiceFactory, a | 202 # TODO(rockot): There are two implementations of VpnServiceFactory, a |
186 # stub in app_shell and a real one in Chrome. This is wrong. | 203 # stub in app_shell and a real one in Chrome. This is wrong. |
187 "shell/browser/api/vpn_provider/vpn_service_factory.cc", | 204 "shell/browser/api/vpn_provider/vpn_service_factory.cc", |
188 ] | 205 ] |
189 | 206 |
190 deps += [ "//chromeos:test_support" ] | 207 deps += [ "//chromeos:test_support" ] |
191 } | 208 } |
192 } | 209 } |
193 | 210 |
| 211 # TODO(GYP): Delete this after we've converted everything to GN. |
| 212 # The _run targets exist only for compatibility w/ GYP. |
| 213 group("extensions_browsertests_run") { |
| 214 testonly = true |
| 215 deps = [ |
| 216 ":extensions_browsertests", |
| 217 ] |
| 218 } |
| 219 |
194 test("extensions_browsertests") { | 220 test("extensions_browsertests") { |
195 sources = | 221 sources = |
196 rebase_path(extensions_tests_gypi_values.extensions_browsertests_sources, | 222 rebase_path(extensions_tests_gypi_values.extensions_browsertests_sources, |
197 ".", | 223 ".", |
198 "//extensions") | 224 "//extensions") |
199 | 225 |
| 226 data = [ |
| 227 "test/data/", |
| 228 "//net/data/", |
| 229 "//net/tools/testserver/", |
| 230 "//third_party/pyftpdlib/", |
| 231 "//third_party/pywebsocket/", |
| 232 "//third_party/tlslite/", |
| 233 "$root_out_dir/extensions_shell_and_test.pak", |
| 234 ] |
| 235 |
200 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 236 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
201 | 237 |
202 deps = [ | 238 deps = [ |
203 ":test_support", | 239 ":test_support", |
204 "shell:app_shell_lib", | 240 "shell:app_shell_lib", |
205 | 241 |
206 # TODO(yoz): find the right deps | 242 # TODO(yoz): find the right deps |
207 "//base", | 243 "//base", |
208 "//base:prefs_test_support", | 244 "//base:prefs_test_support", |
209 "//base/test:test_support", | 245 "//base/test:test_support", |
210 "//components/storage_monitor:test_support", | 246 "//components/storage_monitor:test_support", |
211 "//content/test:test_support", | 247 "//content/test:test_support", |
212 "//device/bluetooth:mocks", | 248 "//device/bluetooth:mocks", |
213 "//device/usb:mocks", | 249 "//device/usb:mocks", |
214 "//mojo/environment:chromium", | 250 "//mojo/environment:chromium", |
215 "//testing/gmock", | 251 "//testing/gmock", |
216 "//testing/gtest", | 252 "//testing/gtest", |
217 "//third_party/mojo/src/mojo/edk/js", | 253 "//third_party/mojo/src/mojo/edk/js", |
218 "//third_party/mojo/src/mojo/edk/system", | 254 "//third_party/mojo/src/mojo/edk/system", |
219 "//third_party/mojo/src/mojo/public/cpp/bindings", | 255 "//third_party/mojo/src/mojo/public/cpp/bindings", |
220 ] | 256 ] |
221 | 257 |
| 258 data_deps = [ "//third_party/mesa:osmesa" ] |
| 259 |
222 if (is_win) { | 260 if (is_win) { |
223 deps += [ "//base/allocator" ] | 261 deps += [ "//base/allocator" ] |
| 262 |
| 263 if (target_cpu == "x86") { |
| 264 data_deps += [ "$root_out_dir/wow_helper.exe" ] |
| 265 } |
224 } | 266 } |
225 | 267 |
226 if (is_mac) { | 268 if (is_mac) { |
227 deps += [ "shell:app_shell" ] # Needed for App Shell.app's Helper. | 269 deps += [ "shell:app_shell" ] # Needed for App Shell.app's Helper. |
228 } | 270 } |
229 } | 271 } |
230 | 272 |
231 # TODO(rockot) bug 505926: These should be moved to extensions_browsertests but
have | 273 # TODO(rockot) bug 505926: These should be moved to extensions_browsertests but
have |
232 # old dependencies on chrome files. The chrome dependencies should be removed | 274 # old dependencies on chrome files. The chrome dependencies should be removed |
233 # and these moved to the extensions_browsertests target. Currently, we solve | 275 # and these moved to the extensions_browsertests target. Currently, we solve |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 "//testing/gtest", | 374 "//testing/gtest", |
333 "//third_party/hunspell", | 375 "//third_party/hunspell", |
334 "//third_party/icu", | 376 "//third_party/icu", |
335 "//third_party/libpng", | 377 "//third_party/libpng", |
336 "//third_party/zlib", | 378 "//third_party/zlib", |
337 "//ui/base:test_support", | 379 "//ui/base:test_support", |
338 "//ui/resources:ui_test_pak", | 380 "//ui/resources:ui_test_pak", |
339 "//ui/web_dialogs:test_support", | 381 "//ui/web_dialogs:test_support", |
340 ] | 382 ] |
341 } | 383 } |
OLD | NEW |