1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//ios/build/config.gni")
source_set("js_messaging") {
configs += [ "//build/config/compiler:enable_arc" ]
deps = [
"//base",
"//crypto",
"//ios/web/common:features",
"//ios/web/navigation:wk_navigation_util",
"//ios/web/public",
"//ios/web/public/deprecated",
"//ios/web/public/js_messaging",
"//ios/web/web_view:util",
"//url",
]
sources = [
"crw_js_injector.h",
"crw_js_injector.mm",
"crw_js_window_id_manager.h",
"crw_js_window_id_manager.mm",
"crw_wk_script_message_router.h",
"crw_wk_script_message_router.mm",
"page_script_util.h",
"page_script_util.mm",
"web_frame_impl.h",
"web_frame_impl.mm",
"web_frame_util.mm",
"web_frames_manager_impl.h",
"web_frames_manager_impl.mm",
"web_view_js_utils.h",
"web_view_js_utils.mm",
]
}
source_set("unittests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
deps = [
":js_messaging",
"//base",
"//base/test:test_support",
"//crypto",
"//ios/web/common:web_view_creation_util",
"//ios/web/public/js_messaging",
"//ios/web/public/test",
"//ios/web/public/test/fakes",
"//testing/gtest",
"//third_party/ocmock",
]
sources = [
"crw_js_window_id_manager_unittest.mm",
"crw_wk_script_message_router_unittest.mm",
"page_script_util_unittest.mm",
"web_frame_impl_unittest.mm",
"web_frame_util_unittest.mm",
"web_frames_manager_impl_unittest.mm",
]
}
source_set("inttests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
deps = [
"//base",
"//base/test:test_support",
"//ios/web/common",
"//ios/web/js_messaging",
"//ios/web/public",
"//ios/web/public/js_messaging",
"//ios/web/public/test",
"//ios/web/public/test:util",
"//ios/web/public/test/fakes",
"//ios/web/test:test_support",
"//net:test_support",
"//testing/gmock",
"//testing/gtest",
]
sources = [
"web_frame_impl_inttest.mm",
"web_frame_web_state_observer_inttest.mm",
"web_frames_manager_inttest.mm",
]
}
|