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

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

Issue 2754003005: Mojo C++ Bindings: fix mojom::Foo::Deserialize() for component build. (Closed)
Patch Set: . Created 3 years, 9 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
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 mojom("test_interfaces") { 7 mojom("test_interfaces") {
8 testonly = true 8 testonly = true
9 sources = [ 9 sources = [
10 "math_calculator.mojom", 10 "math_calculator.mojom",
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 ] 77 ]
78 78
79 overridden_deps = [ ":test_export" ] 79 overridden_deps = [ ":test_export" ]
80 component_deps = [ ":test_export_component" ] 80 component_deps = [ ":test_export_component" ]
81 if (!is_ios) { 81 if (!is_ios) {
82 overridden_deps_blink = [ ":test_export" ] 82 overridden_deps_blink = [ ":test_export" ]
83 component_deps_blink = [ ":test_export_blink_component" ] 83 component_deps_blink = [ ":test_export_blink_component" ]
84 } 84 }
85 } 85 }
86 86
87 # Used to test that it is okay to call mojom::Foo::Serialize()/Deserialize()
88 # even if the mojom target is linked into another component.
89 #
90 # We don't use |test_export_component| for this test because
91 # //mojo/public/cpp/bindings/tests depends on both |test_export_component| and
92 # |test_exported_import| and therefore actually get the shared cpp sources of
93 # test_export.mojom from |test_exported_import|.
94 component("test_export_component2") {
95 testonly = true
96 public_deps = [
97 ":test_export2",
98 ]
99 }
100
101 mojom("test_export2") {
102 testonly = true
103 sources = [
104 "test_export2.mojom",
105 ]
106 export_class_attribute = "MOJO_TEST_EXPORT"
107 export_define = "MOJO_TEST_IMPLEMENTATION=1"
108 export_header = "mojo/public/cpp/bindings/tests/mojo_test_export.h"
109 visibility = [ ":test_export_component2" ]
110 }
111
87 mojom("test_mojom_import") { 112 mojom("test_mojom_import") {
88 testonly = true 113 testonly = true
89 sources = [ 114 sources = [
90 "sample_import.mojom", 115 "sample_import.mojom",
91 ] 116 ]
92 } 117 }
93 118
94 mojom("test_mojom_import_wrapper") { 119 mojom("test_mojom_import_wrapper") {
95 testonly = true 120 testonly = true
96 public_deps = [ 121 public_deps = [
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 ] 191 ]
167 } 192 }
168 193
169 mojom("test_no_sources") { 194 mojom("test_no_sources") {
170 testonly = true 195 testonly = true
171 196
172 public_deps = [ 197 public_deps = [
173 ":test_interfaces", 198 ":test_interfaces",
174 ] 199 ]
175 } 200 }
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/struct_unittest.cc ('k') | mojo/public/interfaces/bindings/tests/test_export2.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698