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 config("config") { | 8 config("config") { |
9 visibility = [ ":web" ] | 9 visibility = [ ":web" ] |
10 | 10 |
11 # The WebKit framework is only available since iOS 8.0 but Chrome on iOS do | 11 # The WebKit framework is only available since iOS 8.0 but Chrome on iOS do |
12 # supports iOS 7.0 so need to use weak linking. | 12 # supports iOS 7.0 so need to use weak linking. |
13 # TODO(crbug.com/541549): change to regular linking once support for iOS 7 is | 13 # TODO(crbug.com/541549): change to regular linking once support for iOS 7 is |
14 # dropped. | 14 # dropped. |
15 ldflags = [ | 15 ldflags = [ |
16 "-weak_framework", | 16 "-weak_framework", |
17 "WebKit", | 17 "WebKit", |
18 ] | 18 ] |
19 } | 19 } |
20 | 20 |
21 source_set("web") { | 21 source_set("web") { |
22 deps = [ | 22 deps = [ |
| 23 ":core", |
| 24 ":js_resources", |
| 25 ":user_agent", |
23 "//base", | 26 "//base", |
24 "//components/url_formatter", | 27 "//components/url_formatter", |
25 "//ios/net", | 28 "//ios/net", |
26 "//ios/third_party/blink:html_tokenizer", | 29 "//ios/third_party/blink:html_tokenizer", |
27 "//net", | 30 "//net", |
28 "//ui/base", | 31 "//ui/base", |
29 "//ui/gfx", | 32 "//ui/gfx", |
30 "//ui/gfx/geometry:geometry", | 33 "//ui/gfx/geometry:geometry", |
31 "//ui/resources", | 34 "//ui/resources", |
32 "//url", | 35 "//url", |
33 ":core", | |
34 ":js_resources", | |
35 ":user_agent", | |
36 ] | 36 ] |
37 | 37 |
38 sources = [ | 38 sources = [ |
39 "active_state_manager_impl.h", | 39 "active_state_manager_impl.h", |
40 "active_state_manager_impl.mm", | 40 "active_state_manager_impl.mm", |
41 "alloc_with_zone_interceptor.h", | 41 "alloc_with_zone_interceptor.h", |
42 "alloc_with_zone_interceptor.mm", | 42 "alloc_with_zone_interceptor.mm", |
43 "browser_state.mm", | 43 "browser_state.mm", |
44 "browser_url_rewriter_impl.cc", | 44 "browser_url_rewriter_impl.cc", |
45 "browser_url_rewriter_impl.h", | 45 "browser_url_rewriter_impl.h", |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 sources = [ | 318 sources = [ |
319 "public/user_agent.h", | 319 "public/user_agent.h", |
320 "public/user_agent.mm", | 320 "public/user_agent.mm", |
321 ] | 321 ] |
322 } | 322 } |
323 | 323 |
324 source_set("test_support") { | 324 source_set("test_support") { |
325 testonly = true | 325 testonly = true |
326 | 326 |
327 deps = [ | 327 deps = [ |
| 328 ":web", |
328 "//ios/testing:ocmock_support", | 329 "//ios/testing:ocmock_support", |
329 "//ios/third_party/gcdwebserver", | 330 "//ios/third_party/gcdwebserver", |
330 "//testing/gmock", | 331 "//testing/gmock", |
331 "//testing/gtest", | 332 "//testing/gtest", |
332 "//third_party/ocmock", | 333 "//third_party/ocmock", |
333 ":web", | |
334 ] | 334 ] |
335 | 335 |
336 sources = [ | 336 sources = [ |
337 "public/test/crw_test_js_injection_receiver.h", | 337 "public/test/crw_test_js_injection_receiver.h", |
338 "public/test/crw_test_js_injection_receiver.mm", | 338 "public/test/crw_test_js_injection_receiver.mm", |
339 "public/test/http_server.h", | 339 "public/test/http_server.h", |
340 "public/test/http_server.mm", | 340 "public/test/http_server.mm", |
341 "public/test/js_test_util.h", | 341 "public/test/js_test_util.h", |
342 "public/test/js_test_util.mm", | 342 "public/test/js_test_util.mm", |
343 "public/test/response_providers/data_response_provider.h", | 343 "public/test/response_providers/data_response_provider.h", |
(...skipping 23 matching lines...) Expand all Loading... |
367 "test/web_test.mm", | 367 "test/web_test.mm", |
368 "test/web_test_suite.cc", | 368 "test/web_test_suite.cc", |
369 "test/web_test_suite.h", | 369 "test/web_test_suite.h", |
370 "test/wk_web_view_crash_utils.h", | 370 "test/wk_web_view_crash_utils.h", |
371 "test/wk_web_view_crash_utils.mm", | 371 "test/wk_web_view_crash_utils.mm", |
372 ] | 372 ] |
373 } | 373 } |
374 | 374 |
375 test("ios_web_unittests") { | 375 test("ios_web_unittests") { |
376 deps = [ | 376 deps = [ |
| 377 ":test_support", |
| 378 ":web", |
377 "//base", | 379 "//base", |
378 "//base/test:test_support", | 380 "//base/test:test_support", |
379 "//ios/testing:ocmock_support", | 381 "//ios/testing:ocmock_support", |
380 "//net:test_support", | 382 "//net:test_support", |
381 "//testing/gmock", | 383 "//testing/gmock", |
382 "//testing/gtest", | 384 "//testing/gtest", |
383 "//third_party/ocmock", | 385 "//third_party/ocmock", |
384 "//ui/base:test_support", | 386 "//ui/base:test_support", |
385 ":test_support", | |
386 ":web", | |
387 ] | 387 ] |
388 | 388 |
389 sources = [ | 389 sources = [ |
390 "active_state_manager_impl_unittest.mm", | 390 "active_state_manager_impl_unittest.mm", |
391 "alloc_with_zone_interceptor_unittest.mm", | 391 "alloc_with_zone_interceptor_unittest.mm", |
392 "browser_state_unittest.cc", | 392 "browser_state_unittest.cc", |
393 "browsing_data_partition_impl_unittest.mm", | 393 "browsing_data_partition_impl_unittest.mm", |
394 "crw_browsing_data_store_unittest.mm", | 394 "crw_browsing_data_store_unittest.mm", |
395 "crw_network_activity_indicator_manager_unittest.mm", | 395 "crw_network_activity_indicator_manager_unittest.mm", |
396 "history_state_util_unittest.mm", | 396 "history_state_util_unittest.mm", |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 ":web_bundle_ui", | 489 ":web_bundle_ui", |
490 ":web_bundle_wk", | 490 ":web_bundle_wk", |
491 ] | 491 ] |
492 | 492 |
493 sources = [ | 493 sources = [ |
494 "web_state/js/resources/plugin_placeholder.js", | 494 "web_state/js/resources/plugin_placeholder.js", |
495 "web_state/js/resources/window_id.js", | 495 "web_state/js/resources/window_id.js", |
496 "webui/resources/web_ui.js", | 496 "webui/resources/web_ui.js", |
497 ] | 497 ] |
498 } | 498 } |
OLD | NEW |