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

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

Issue 2163793002: C bindings: Implement _Validate(), and some pre-requisites (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address comments Created 4 years, 4 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/c/bindings/union.h ('k') | mojo/public/cpp/bindings/tests/validation_unittest.cc » ('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("../../../mojo_application.gni") 5 import("../../../mojo_application.gni")
6 import("../../../mojo_sdk.gni") 6 import("../../../mojo_sdk.gni")
7 7
8 mojo_sdk_source_set("tests") { 8 mojo_sdk_source_set("tests") {
9 testonly = true 9 testonly = true
10 10
(...skipping 30 matching lines...) Expand all
41 "struct_unittest.cc", 41 "struct_unittest.cc",
42 "synchronous_connector_unittest.cc", 42 "synchronous_connector_unittest.cc",
43 "synchronous_interface_ptr_unittest.cc", 43 "synchronous_interface_ptr_unittest.cc",
44 "type_conversion_unittest.cc", 44 "type_conversion_unittest.cc",
45 "union_unittest.cc", 45 "union_unittest.cc",
46 "validation_unittest.cc", 46 "validation_unittest.cc",
47 ] 47 ]
48 48
49 deps = [ 49 deps = [
50 ":mojo_public_bindings_test_utils", 50 ":mojo_public_bindings_test_utils",
51 ":validation_util",
51 "//testing/gtest", 52 "//testing/gtest",
52 ] 53 ]
53 54
54 mojo_sdk_deps = [ 55 mojo_sdk_deps = [
55 "mojo/public/cpp/bindings", 56 "mojo/public/cpp/bindings",
56 "mojo/public/cpp/bindings:callback", 57 "mojo/public/cpp/bindings:callback",
57 "mojo/public/cpp/environment:standalone", 58 "mojo/public/cpp/environment:standalone",
58 "mojo/public/cpp/system", 59 "mojo/public/cpp/system",
59 "mojo/public/cpp/test_support", 60 "mojo/public/cpp/test_support",
60 "mojo/public/cpp/test_support:test_utils", 61 "mojo/public/cpp/test_support:test_utils",
(...skipping 18 matching lines...) Expand all
79 "mojo/public/cpp/bindings", 80 "mojo/public/cpp/bindings",
80 "mojo/public/cpp/bindings:callback", 81 "mojo/public/cpp/bindings:callback",
81 "mojo/public/cpp/environment:standalone", 82 "mojo/public/cpp/environment:standalone",
82 "mojo/public/cpp/system", 83 "mojo/public/cpp/system",
83 "mojo/public/cpp/test_support", 84 "mojo/public/cpp/test_support",
84 "mojo/public/cpp/utility", 85 "mojo/public/cpp/utility",
85 "mojo/public/interfaces/bindings/tests:test_interfaces", 86 "mojo/public/interfaces/bindings/tests:test_interfaces",
86 ] 87 ]
87 } 88 }
88 89
90 # TODO(vardhan): This should be testonly, but for that to happen, its
91 # dependents (cython etc.) need also be testonly.
89 mojo_sdk_source_set("mojo_public_bindings_test_utils") { 92 mojo_sdk_source_set("mojo_public_bindings_test_utils") {
90 sources = [ 93 sources = [
91 "validation_test_input_parser.cc", 94 "validation_test_input_parser.cc",
92 "validation_test_input_parser.h", 95 "validation_test_input_parser.h",
93 ] 96 ]
94 97
95 mojo_sdk_deps = [ "mojo/public/c/system" ] 98 mojo_sdk_deps = [ "mojo/public/c/system" ]
96 } 99 }
97 100
101 # TODO(vardhan): Merge with mojo_public_bindings_test_utils.
102 mojo_sdk_source_set("validation_util") {
103 testonly = true
104
105 sources = [
106 "validation_util.cc",
107 "validation_util.h",
108 ]
109
110 mojo_sdk_deps = [
111 "mojo/public/c/system",
112 "mojo/public/cpp/test_support",
113 ]
114
115 deps = [
116 ":mojo_public_bindings_test_utils",
117 "//testing/gtest",
118 ]
119 }
120
98 mojo_native_application("versioning_test_service") { 121 mojo_native_application("versioning_test_service") {
99 testonly = true 122 testonly = true
100 123
101 deps = [ 124 deps = [
102 ":versioning_test_service_source_set", 125 ":versioning_test_service_source_set",
103 ] 126 ]
104 } 127 }
105 128
106 mojo_sdk_source_set("versioning_test_service_source_set") { 129 mojo_sdk_source_set("versioning_test_service_source_set") {
107 testonly = true 130 testonly = true
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 ] 162 ]
140 163
141 mojo_sdk_deps = [ 164 mojo_sdk_deps = [
142 "mojo/public/cpp/application:standalone", 165 "mojo/public/cpp/application:standalone",
143 "mojo/public/cpp/application:test_support_standalone", 166 "mojo/public/cpp/application:test_support_standalone",
144 "mojo/public/cpp/bindings", 167 "mojo/public/cpp/bindings",
145 "mojo/public/cpp/system", 168 "mojo/public/cpp/system",
146 "mojo/public/interfaces/bindings/tests:versioning_test_client_interfaces", 169 "mojo/public/interfaces/bindings/tests:versioning_test_client_interfaces",
147 ] 170 ]
148 } 171 }
OLDNEW
« no previous file with comments | « mojo/public/c/bindings/union.h ('k') | mojo/public/cpp/bindings/tests/validation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698