| 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 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 Loading... |
| 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 |
| 72 | 73 |
| 73 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback. | 74 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback. |
| 74 use_once_callback = false | 75 use_once_callback = false |
| 75 } | 76 } |
| 76 | 77 |
| 77 component("test_export_component") { | 78 component("test_export_component") { |
| 78 testonly = true | 79 testonly = true |
| 79 deps = [ | 80 deps = [ |
| 80 ":test_export", | 81 ":test_export", |
| 81 ] | 82 ] |
| (...skipping 19 matching lines...) Expand all Loading... |
| 101 if (!is_ios) { | 102 if (!is_ios) { |
| 102 export_class_attribute_blink = "MOJO_TEST_BLINK_EXPORT" | 103 export_class_attribute_blink = "MOJO_TEST_BLINK_EXPORT" |
| 103 export_define_blink = "MOJO_TEST_BLINK_IMPLEMENTATION=1" | 104 export_define_blink = "MOJO_TEST_BLINK_IMPLEMENTATION=1" |
| 104 export_header_blink = | 105 export_header_blink = |
| 105 "mojo/public/cpp/bindings/tests/mojo_test_blink_export.h" | 106 "mojo/public/cpp/bindings/tests/mojo_test_blink_export.h" |
| 106 } | 107 } |
| 107 visibility = [ ":test_export_component" ] | 108 visibility = [ ":test_export_component" ] |
| 108 if (!is_ios) { | 109 if (!is_ios) { |
| 109 visibility_blink = [ ":test_export_blink_component" ] | 110 visibility_blink = [ ":test_export_blink_component" ] |
| 110 } | 111 } |
| 112 use_new_js_bindings = true |
| 111 } | 113 } |
| 112 | 114 |
| 113 mojom("test_exported_import") { | 115 mojom("test_exported_import") { |
| 114 testonly = true | 116 testonly = true |
| 115 sources = [ | 117 sources = [ |
| 116 "test_import.mojom", | 118 "test_import.mojom", |
| 117 ] | 119 ] |
| 118 public_deps = [ | 120 public_deps = [ |
| 119 ":test_export", | 121 ":test_export", |
| 120 ] | 122 ] |
| 121 | 123 |
| 122 overridden_deps = [ ":test_export" ] | 124 overridden_deps = [ ":test_export" ] |
| 123 component_deps = [ ":test_export_component" ] | 125 component_deps = [ ":test_export_component" ] |
| 124 if (!is_ios) { | 126 if (!is_ios) { |
| 125 overridden_deps_blink = [ ":test_export" ] | 127 overridden_deps_blink = [ ":test_export" ] |
| 126 component_deps_blink = [ ":test_export_blink_component" ] | 128 component_deps_blink = [ ":test_export_blink_component" ] |
| 127 } | 129 } |
| 130 use_new_js_bindings = true |
| 128 } | 131 } |
| 129 | 132 |
| 130 # Used to test that it is okay to call mojom::Foo::Serialize()/Deserialize() | 133 # Used to test that it is okay to call mojom::Foo::Serialize()/Deserialize() |
| 131 # even if the mojom target is linked into another component. | 134 # even if the mojom target is linked into another component. |
| 132 # | 135 # |
| 133 # We don't use |test_export_component| for this test because | 136 # We don't use |test_export_component| for this test because |
| 134 # //mojo/public/cpp/bindings/tests depends on both |test_export_component| and | 137 # //mojo/public/cpp/bindings/tests depends on both |test_export_component| and |
| 135 # |test_exported_import| and therefore actually get the shared cpp sources of | 138 # |test_exported_import| and therefore actually get the shared cpp sources of |
| 136 # test_export.mojom from |test_exported_import|. | 139 # test_export.mojom from |test_exported_import|. |
| 137 component("test_export_component2") { | 140 component("test_export_component2") { |
| 138 testonly = true | 141 testonly = true |
| 139 public_deps = [ | 142 public_deps = [ |
| 140 ":test_export2", | 143 ":test_export2", |
| 141 ] | 144 ] |
| 142 } | 145 } |
| 143 | 146 |
| 144 mojom("test_export2") { | 147 mojom("test_export2") { |
| 145 testonly = true | 148 testonly = true |
| 146 sources = [ | 149 sources = [ |
| 147 "test_export2.mojom", | 150 "test_export2.mojom", |
| 148 ] | 151 ] |
| 149 export_class_attribute = "MOJO_TEST_EXPORT" | 152 export_class_attribute = "MOJO_TEST_EXPORT" |
| 150 export_define = "MOJO_TEST_IMPLEMENTATION=1" | 153 export_define = "MOJO_TEST_IMPLEMENTATION=1" |
| 151 export_header = "mojo/public/cpp/bindings/tests/mojo_test_export.h" | 154 export_header = "mojo/public/cpp/bindings/tests/mojo_test_export.h" |
| 152 visibility = [ ":test_export_component2" ] | 155 visibility = [ ":test_export_component2" ] |
| 156 use_new_js_bindings = true |
| 153 } | 157 } |
| 154 | 158 |
| 155 mojom("test_mojom_import") { | 159 mojom("test_mojom_import") { |
| 156 testonly = true | 160 testonly = true |
| 157 sources = [ | 161 sources = [ |
| 158 "sample_import.mojom", | 162 "sample_import.mojom", |
| 159 ] | 163 ] |
| 164 use_new_js_bindings = true |
| 160 } | 165 } |
| 161 | 166 |
| 162 mojom("test_mojom_import_wrapper") { | 167 mojom("test_mojom_import_wrapper") { |
| 163 testonly = true | 168 testonly = true |
| 164 public_deps = [ | 169 public_deps = [ |
| 165 ":test_mojom_import", | 170 ":test_mojom_import", |
| 166 ] | 171 ] |
| 167 } | 172 } |
| 168 | 173 |
| 169 mojom("test_mojom_import_wrapper_wrapper") { | 174 mojom("test_mojom_import_wrapper_wrapper") { |
| 170 testonly = true | 175 testonly = true |
| 171 public_deps = [ | 176 public_deps = [ |
| 172 ":test_mojom_import_wrapper", | 177 ":test_mojom_import_wrapper", |
| 173 ] | 178 ] |
| 174 } | 179 } |
| 175 | 180 |
| 176 mojom("test_mojom_import2") { | 181 mojom("test_mojom_import2") { |
| 177 testonly = true | 182 testonly = true |
| 178 sources = [ | 183 sources = [ |
| 179 "sample_import2.mojom", | 184 "sample_import2.mojom", |
| 180 ] | 185 ] |
| 181 public_deps = [ | 186 public_deps = [ |
| 182 ":test_mojom_import", | 187 ":test_mojom_import", |
| 183 ":test_mojom_import_wrapper_wrapper", | 188 ":test_mojom_import_wrapper_wrapper", |
| 184 ] | 189 ] |
| 190 use_new_js_bindings = true |
| 185 } | 191 } |
| 186 | 192 |
| 187 mojom("test_struct_traits_interfaces") { | 193 mojom("test_struct_traits_interfaces") { |
| 188 testonly = true | 194 testonly = true |
| 189 sources = [ | 195 sources = [ |
| 190 "struct_with_traits.mojom", | 196 "struct_with_traits.mojom", |
| 191 ] | 197 ] |
| 192 | 198 |
| 199 use_new_js_bindings = true |
| 200 |
| 193 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback. | 201 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback. |
| 194 use_once_callback = false | 202 use_once_callback = false |
| 195 } | 203 } |
| 196 | 204 |
| 197 mojom("test_associated_interfaces") { | 205 mojom("test_associated_interfaces") { |
| 198 # These files are not included in the test_interfaces target because | 206 # These files are not included in the test_interfaces target because |
| 199 # associated interfaces are not supported by all bindings languages yet. | 207 # associated interfaces are not supported by all bindings languages yet. |
| 200 testonly = true | 208 testonly = true |
| 201 sources = [ | 209 sources = [ |
| 202 "test_associated_interfaces.mojom", | 210 "test_associated_interfaces.mojom", |
| 203 "validation_test_associated_interfaces.mojom", | 211 "validation_test_associated_interfaces.mojom", |
| 204 ] | 212 ] |
| 205 | 213 |
| 206 public_deps = [ | 214 public_deps = [ |
| 207 ":test_interfaces", | 215 ":test_interfaces", |
| 208 ] | 216 ] |
| 209 | 217 |
| 218 use_new_js_bindings = true |
| 219 |
| 210 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback. | 220 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback. |
| 211 use_once_callback = false | 221 use_once_callback = false |
| 212 } | 222 } |
| 213 | 223 |
| 214 mojom("versioning_test_service_interfaces") { | 224 mojom("versioning_test_service_interfaces") { |
| 215 testonly = true | 225 testonly = true |
| 216 sources = [ | 226 sources = [ |
| 217 "versioning_test_service.mojom", | 227 "versioning_test_service.mojom", |
| 218 ] | 228 ] |
| 229 use_new_js_bindings = true |
| 219 } | 230 } |
| 220 | 231 |
| 221 mojom("versioning_test_client_interfaces") { | 232 mojom("versioning_test_client_interfaces") { |
| 222 testonly = true | 233 testonly = true |
| 223 sources = [ | 234 sources = [ |
| 224 "versioning_test_client.mojom", | 235 "versioning_test_client.mojom", |
| 225 ] | 236 ] |
| 237 use_new_js_bindings = true |
| 226 } | 238 } |
| 227 | 239 |
| 228 mojom("test_wtf_types") { | 240 mojom("test_wtf_types") { |
| 229 testonly = true | 241 testonly = true |
| 230 | 242 |
| 231 sources = [ | 243 sources = [ |
| 232 "test_wtf_types.mojom", | 244 "test_wtf_types.mojom", |
| 233 ] | 245 ] |
| 234 | 246 |
| 247 use_new_js_bindings = true |
| 248 |
| 235 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback. | 249 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback. |
| 236 use_once_callback = false | 250 use_once_callback = false |
| 237 } | 251 } |
| 238 | 252 |
| 239 mojom("test_no_sources") { | 253 mojom("test_no_sources") { |
| 240 testonly = true | 254 testonly = true |
| 241 | 255 |
| 242 public_deps = [ | 256 public_deps = [ |
| 243 ":test_interfaces", | 257 ":test_interfaces", |
| 244 ] | 258 ] |
| 245 } | 259 } |
| 246 | 260 |
| 247 mojom("echo") { | 261 mojom("echo") { |
| 248 testonly = true | 262 testonly = true |
| 249 sources = [ | 263 sources = [ |
| 250 "echo.mojom", | 264 "echo.mojom", |
| 251 "echo_import.mojom", | 265 "echo_import.mojom", |
| 252 ] | 266 ] |
| 253 use_new_js_bindings = true | 267 use_new_js_bindings = true |
| 254 } | 268 } |
| OLD | NEW |