OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
6 import("//ios/web/js_compile.gni") | 6 import("//ios/web/js_compile.gni") |
7 | 7 |
8 source_set("web") { | 8 source_set("web") { |
9 deps = [ | 9 deps = [ |
10 ":core", | 10 ":core", |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 "test/web_int_test.mm", | 332 "test/web_int_test.mm", |
333 "test/web_test.h", | 333 "test/web_test.h", |
334 "test/web_test.mm", | 334 "test/web_test.mm", |
335 "test/web_test_suite.cc", | 335 "test/web_test_suite.cc", |
336 "test/web_test_suite.h", | 336 "test/web_test_suite.h", |
337 "test/wk_web_view_crash_utils.h", | 337 "test/wk_web_view_crash_utils.h", |
338 "test/wk_web_view_crash_utils.mm", | 338 "test/wk_web_view_crash_utils.mm", |
339 ] | 339 ] |
340 } | 340 } |
341 | 341 |
| 342 bundle_data("ios_web_unittests_bundle_data") { |
| 343 testonly = true |
| 344 sources = [ |
| 345 "test/data/chrome.html", |
| 346 "test/data/testbadpass.pkpass", |
| 347 "test/data/testfavicon.png", |
| 348 "test/data/testpass.pkpass", |
| 349 ] |
| 350 outputs = [ |
| 351 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" + |
| 352 "{{source_file_part}}", |
| 353 ] |
| 354 } |
| 355 |
342 test("ios_web_unittests") { | 356 test("ios_web_unittests") { |
343 deps = [ | 357 deps = [ |
| 358 ":ios_web_unittests_bundle_data", |
344 ":test_support", | 359 ":test_support", |
345 ":web", | 360 ":web", |
346 "//base", | 361 "//base", |
347 "//base/test:test_support", | 362 "//base/test:test_support", |
348 "//ios/testing:ocmock_support", | 363 "//ios/testing:ocmock_support", |
349 "//net:test_support", | 364 "//net:test_support", |
350 "//testing/gmock", | 365 "//testing/gmock", |
351 "//testing/gtest", | 366 "//testing/gtest", |
352 "//third_party/ocmock", | 367 "//third_party/ocmock", |
353 "//ui/base:test_support", | 368 "//ui/base:test_support", |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 ] | 453 ] |
439 } | 454 } |
440 | 455 |
441 js_compile_checked("js_resources") { | 456 js_compile_checked("js_resources") { |
442 public_deps = [ | 457 public_deps = [ |
443 ":web_bundle", | 458 ":web_bundle", |
444 ] | 459 ] |
445 | 460 |
446 sources = [ | 461 sources = [ |
447 "web_state/js/resources/plugin_placeholder.js", | 462 "web_state/js/resources/plugin_placeholder.js", |
| 463 "web_state/js/resources/post_request.js", |
448 "web_state/js/resources/window_id.js", | 464 "web_state/js/resources/window_id.js", |
449 "webui/resources/web_ui.js", | 465 "webui/resources/web_ui.js", |
450 ] | 466 ] |
451 } | 467 } |
OLD | NEW |