Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Side by Side Diff: mojo/public/interfaces/bindings/tests/BUILD.gn

Issue 2910703004: Mojo JS bindings: flip the default value of use_new_js_bindings to true. (Closed)
Patch Set: . Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/public/interfaces/bindings/BUILD.gn ('k') | mojo/public/tools/bindings/mojom.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import("../../../tools/bindings/mojom.gni") 5 import("../../../tools/bindings/mojom.gni")
6 6
7 group("tests") { 7 group("tests") {
8 testonly = true 8 testonly = true
9 deps = [ 9 deps = [
10 ":test_interfaces", 10 ":test_interfaces",
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 "test_structs.mojom", 62 "test_structs.mojom",
63 "test_sync_methods.mojom", 63 "test_sync_methods.mojom",
64 "test_unions.mojom", 64 "test_unions.mojom",
65 "validation_test_interfaces.mojom", 65 "validation_test_interfaces.mojom",
66 ] 66 ]
67 public_deps = [ 67 public_deps = [
68 ":echo", 68 ":echo",
69 ":test_mojom_import", 69 ":test_mojom_import",
70 ":test_mojom_import2", 70 ":test_mojom_import2",
71 ] 71 ]
72 use_new_js_bindings = true
73 72
74 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback. 73 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback.
75 use_once_callback = false 74 use_once_callback = false
76 } 75 }
77 76
78 component("test_export_component") { 77 component("test_export_component") {
79 testonly = true 78 testonly = true
80 deps = [ 79 deps = [
81 ":test_export", 80 ":test_export",
82 ] 81 ]
(...skipping 19 matching lines...) Expand all
102 if (!is_ios) { 101 if (!is_ios) {
103 export_class_attribute_blink = "MOJO_TEST_BLINK_EXPORT" 102 export_class_attribute_blink = "MOJO_TEST_BLINK_EXPORT"
104 export_define_blink = "MOJO_TEST_BLINK_IMPLEMENTATION=1" 103 export_define_blink = "MOJO_TEST_BLINK_IMPLEMENTATION=1"
105 export_header_blink = 104 export_header_blink =
106 "mojo/public/cpp/bindings/tests/mojo_test_blink_export.h" 105 "mojo/public/cpp/bindings/tests/mojo_test_blink_export.h"
107 } 106 }
108 visibility = [ ":test_export_component" ] 107 visibility = [ ":test_export_component" ]
109 if (!is_ios) { 108 if (!is_ios) {
110 visibility_blink = [ ":test_export_blink_component" ] 109 visibility_blink = [ ":test_export_blink_component" ]
111 } 110 }
112 use_new_js_bindings = true
113 } 111 }
114 112
115 mojom("test_exported_import") { 113 mojom("test_exported_import") {
116 testonly = true 114 testonly = true
117 sources = [ 115 sources = [
118 "test_import.mojom", 116 "test_import.mojom",
119 ] 117 ]
120 public_deps = [ 118 public_deps = [
121 ":test_export", 119 ":test_export",
122 ] 120 ]
123 121
124 overridden_deps = [ ":test_export" ] 122 overridden_deps = [ ":test_export" ]
125 component_deps = [ ":test_export_component" ] 123 component_deps = [ ":test_export_component" ]
126 if (!is_ios) { 124 if (!is_ios) {
127 overridden_deps_blink = [ ":test_export" ] 125 overridden_deps_blink = [ ":test_export" ]
128 component_deps_blink = [ ":test_export_blink_component" ] 126 component_deps_blink = [ ":test_export_blink_component" ]
129 } 127 }
130 use_new_js_bindings = true
131 } 128 }
132 129
133 # Used to test that it is okay to call mojom::Foo::Serialize()/Deserialize() 130 # Used to test that it is okay to call mojom::Foo::Serialize()/Deserialize()
134 # even if the mojom target is linked into another component. 131 # even if the mojom target is linked into another component.
135 # 132 #
136 # We don't use |test_export_component| for this test because 133 # We don't use |test_export_component| for this test because
137 # //mojo/public/cpp/bindings/tests depends on both |test_export_component| and 134 # //mojo/public/cpp/bindings/tests depends on both |test_export_component| and
138 # |test_exported_import| and therefore actually get the shared cpp sources of 135 # |test_exported_import| and therefore actually get the shared cpp sources of
139 # test_export.mojom from |test_exported_import|. 136 # test_export.mojom from |test_exported_import|.
140 component("test_export_component2") { 137 component("test_export_component2") {
141 testonly = true 138 testonly = true
142 public_deps = [ 139 public_deps = [
143 ":test_export2", 140 ":test_export2",
144 ] 141 ]
145 } 142 }
146 143
147 mojom("test_export2") { 144 mojom("test_export2") {
148 testonly = true 145 testonly = true
149 sources = [ 146 sources = [
150 "test_export2.mojom", 147 "test_export2.mojom",
151 ] 148 ]
152 export_class_attribute = "MOJO_TEST_EXPORT" 149 export_class_attribute = "MOJO_TEST_EXPORT"
153 export_define = "MOJO_TEST_IMPLEMENTATION=1" 150 export_define = "MOJO_TEST_IMPLEMENTATION=1"
154 export_header = "mojo/public/cpp/bindings/tests/mojo_test_export.h" 151 export_header = "mojo/public/cpp/bindings/tests/mojo_test_export.h"
155 visibility = [ ":test_export_component2" ] 152 visibility = [ ":test_export_component2" ]
156 use_new_js_bindings = true
157 } 153 }
158 154
159 mojom("test_mojom_import") { 155 mojom("test_mojom_import") {
160 testonly = true 156 testonly = true
161 sources = [ 157 sources = [
162 "sample_import.mojom", 158 "sample_import.mojom",
163 ] 159 ]
164 use_new_js_bindings = true
165 } 160 }
166 161
167 mojom("test_mojom_import_wrapper") { 162 mojom("test_mojom_import_wrapper") {
168 testonly = true 163 testonly = true
169 public_deps = [ 164 public_deps = [
170 ":test_mojom_import", 165 ":test_mojom_import",
171 ] 166 ]
172 } 167 }
173 168
174 mojom("test_mojom_import_wrapper_wrapper") { 169 mojom("test_mojom_import_wrapper_wrapper") {
175 testonly = true 170 testonly = true
176 public_deps = [ 171 public_deps = [
177 ":test_mojom_import_wrapper", 172 ":test_mojom_import_wrapper",
178 ] 173 ]
179 } 174 }
180 175
181 mojom("test_mojom_import2") { 176 mojom("test_mojom_import2") {
182 testonly = true 177 testonly = true
183 sources = [ 178 sources = [
184 "sample_import2.mojom", 179 "sample_import2.mojom",
185 ] 180 ]
186 public_deps = [ 181 public_deps = [
187 ":test_mojom_import", 182 ":test_mojom_import",
188 ":test_mojom_import_wrapper_wrapper", 183 ":test_mojom_import_wrapper_wrapper",
189 ] 184 ]
190 use_new_js_bindings = true
191 } 185 }
192 186
193 mojom("test_struct_traits_interfaces") { 187 mojom("test_struct_traits_interfaces") {
194 testonly = true 188 testonly = true
195 sources = [ 189 sources = [
196 "struct_with_traits.mojom", 190 "struct_with_traits.mojom",
197 ] 191 ]
198 192
199 use_new_js_bindings = true
200
201 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback. 193 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback.
202 use_once_callback = false 194 use_once_callback = false
203 } 195 }
204 196
205 mojom("test_associated_interfaces") { 197 mojom("test_associated_interfaces") {
206 # These files are not included in the test_interfaces target because 198 # These files are not included in the test_interfaces target because
207 # associated interfaces are not supported by all bindings languages yet. 199 # associated interfaces are not supported by all bindings languages yet.
208 testonly = true 200 testonly = true
209 sources = [ 201 sources = [
210 "test_associated_interfaces.mojom", 202 "test_associated_interfaces.mojom",
211 "validation_test_associated_interfaces.mojom", 203 "validation_test_associated_interfaces.mojom",
212 ] 204 ]
213 205
214 public_deps = [ 206 public_deps = [
215 ":test_interfaces", 207 ":test_interfaces",
216 ] 208 ]
217 209
218 use_new_js_bindings = true
219
220 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback. 210 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback.
221 use_once_callback = false 211 use_once_callback = false
222 } 212 }
223 213
224 mojom("versioning_test_service_interfaces") { 214 mojom("versioning_test_service_interfaces") {
225 testonly = true 215 testonly = true
226 sources = [ 216 sources = [
227 "versioning_test_service.mojom", 217 "versioning_test_service.mojom",
228 ] 218 ]
229 use_new_js_bindings = true
230 } 219 }
231 220
232 mojom("versioning_test_client_interfaces") { 221 mojom("versioning_test_client_interfaces") {
233 testonly = true 222 testonly = true
234 sources = [ 223 sources = [
235 "versioning_test_client.mojom", 224 "versioning_test_client.mojom",
236 ] 225 ]
237 use_new_js_bindings = true
238 } 226 }
239 227
240 mojom("test_wtf_types") { 228 mojom("test_wtf_types") {
241 testonly = true 229 testonly = true
242 230
243 sources = [ 231 sources = [
244 "test_wtf_types.mojom", 232 "test_wtf_types.mojom",
245 ] 233 ]
246 234
247 use_new_js_bindings = true
248
249 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback. 235 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback.
250 use_once_callback = false 236 use_once_callback = false
251 } 237 }
252 238
253 mojom("test_no_sources") { 239 mojom("test_no_sources") {
254 testonly = true 240 testonly = true
255 241
256 public_deps = [ 242 public_deps = [
257 ":test_interfaces", 243 ":test_interfaces",
258 ] 244 ]
259 } 245 }
260 246
261 mojom("echo") { 247 mojom("echo") {
262 testonly = true 248 testonly = true
263 sources = [ 249 sources = [
264 "echo.mojom", 250 "echo.mojom",
265 "echo_import.mojom", 251 "echo_import.mojom",
266 ] 252 ]
267 use_new_js_bindings = true
268 } 253 }
OLDNEW
« no previous file with comments | « mojo/public/interfaces/bindings/BUILD.gn ('k') | mojo/public/tools/bindings/mojom.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698