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 3 # found in the LICENSE file. 4 5 import("../../../tools/bindings/mojom.gni") 6 7 mojom("test_interfaces") { 8 testonly = true 9 sources = [ 10 "math_calculator.mojom", 11 "no_module.mojom", 12 "ping_service.mojom", 13 "rect.mojom", 14 "regression_tests.mojom", 15 "sample_factory.mojom", 16 "sample_interfaces.mojom", 17 "sample_service.mojom", 18 "scoping.mojom", 19 "serialization_test_structs.mojom", 20 "test_constants.mojom", 21 "test_native_types.mojom", 22 "test_structs.mojom", 23 "test_sync_methods.mojom", 24 "validation_test_interfaces.mojom", 25 ] 26 public_deps = [ 27 ":test_mojom_import", 28 ":test_mojom_import2", 29 ] 30 31 use_new_wrapper_types = true 32 } 33 34 mojom("test_mojom_import") { 35 testonly = true 36 sources = [ 37 "sample_import.mojom", 38 ] 39 use_new_wrapper_types = true 40 } 41 42 mojom("test_mojom_import_wrapper") { 43 testonly = true 44 public_deps = [ 45 ":test_mojom_import", 46 ] 47 } 48 49 mojom("test_mojom_import_wrapper_wrapper") { 50 testonly = true 51 public_deps = [ 52 ":test_mojom_import_wrapper", 53 ] 54 } 55 56 mojom("test_mojom_import2") { 57 testonly = true 58 sources = [ 59 "sample_import2.mojom", 60 ] 61 public_deps = [ 62 ":test_mojom_import", 63 ":test_mojom_import_wrapper_wrapper", 64 ] 65 use_new_wrapper_types = true 66 } 67 68 mojom("test_struct_traits_interfaces") { 69 testonly = true 70 sources = [ 71 "struct_with_traits.mojom", 72 ] 73 use_new_wrapper_types = true 74 } 75 76 mojom("test_interfaces_experimental") { 77 testonly = true 78 sources = [ 79 "test_unions.mojom", 80 ] 81 use_new_wrapper_types = true 82 } 83 84 mojom("test_associated_interfaces") { 85 # These files are not included in the test_interfaces target because 86 # associated interfaces are not supported by all bindings languages yet. 87 testonly = true 88 sources = [ 89 "test_associated_interfaces.mojom", 90 "validation_test_associated_interfaces.mojom", 91 ] 92 use_new_wrapper_types = true 93 } 94 95 mojom("versioning_test_service_interfaces") { 96 testonly = true 97 sources = [ 98 "versioning_test_service.mojom", 99 ] 100 use_new_wrapper_types = true 101 } 102 103 mojom("versioning_test_client_interfaces") { 104 testonly = true 105 sources = [ 106 "versioning_test_client.mojom", 107 ] 108 use_new_wrapper_types = true 109 } 110 111 mojom("test_wtf_types") { 112 testonly = true 113 114 sources = [ 115 "test_wtf_types.mojom", 116 ] 117 use_new_wrapper_types = true 118 } 119 120 mojom("test_no_sources") { 121 testonly = true 122 123 public_deps = [ 124 ":test_interfaces", 125 ] 126 } 127