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

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: share common validation utility code between c/c++ tests. remove generating __HasResponse for inte… 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
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 27 matching lines...) Expand all
88 89
89 mojo_sdk_source_set("mojo_public_bindings_test_utils") { 90 mojo_sdk_source_set("mojo_public_bindings_test_utils") {
90 sources = [ 91 sources = [
91 "validation_test_input_parser.cc", 92 "validation_test_input_parser.cc",
92 "validation_test_input_parser.h", 93 "validation_test_input_parser.h",
93 ] 94 ]
94 95
95 mojo_sdk_deps = [ "mojo/public/c/system" ] 96 mojo_sdk_deps = [ "mojo/public/c/system" ]
96 } 97 }
97 98
99 mojo_sdk_source_set("validation_util") {
viettrungluu 2016/07/28 23:03:01 Do you really need a separate target here, instead
vardhan 2016/07/29 21:29:22 yeah, i tried this initially :( mojo_public_bindin
viettrungluu 2016/08/01 21:17:19 Blech. Not having a gtest dependency seems reasona
vardhan 2016/08/01 22:18:16 Done.
100 testonly = true
101
102 sources = [
103 "validation_util.cc",
104 "validation_util.h",
105 ]
106
107 mojo_sdk_deps = [
108 "mojo/public/c/system",
109 "mojo/public/cpp/test_support",
110 ]
111
112 deps = [
113 ":mojo_public_bindings_test_utils",
114 "//testing/gtest",
115 ]
116 }
117
98 mojo_native_application("versioning_test_service") { 118 mojo_native_application("versioning_test_service") {
99 testonly = true 119 testonly = true
100 120
101 deps = [ 121 deps = [
102 ":versioning_test_service_source_set", 122 ":versioning_test_service_source_set",
103 ] 123 ]
104 } 124 }
105 125
106 mojo_sdk_source_set("versioning_test_service_source_set") { 126 mojo_sdk_source_set("versioning_test_service_source_set") {
107 testonly = true 127 testonly = true
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 ] 159 ]
140 160
141 mojo_sdk_deps = [ 161 mojo_sdk_deps = [
142 "mojo/public/cpp/application:standalone", 162 "mojo/public/cpp/application:standalone",
143 "mojo/public/cpp/application:test_support_standalone", 163 "mojo/public/cpp/application:test_support_standalone",
144 "mojo/public/cpp/bindings", 164 "mojo/public/cpp/bindings",
145 "mojo/public/cpp/system", 165 "mojo/public/cpp/system",
146 "mojo/public/interfaces/bindings/tests:versioning_test_client_interfaces", 166 "mojo/public/interfaces/bindings/tests:versioning_test_client_interfaces",
147 ] 167 ]
148 } 168 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698