1616#
1717package (default_visibility = ["//visibility:public" ])
1818
19- load ("@protobuf_git//:protobuf.bzl" , "cc_proto_library" )
20-
2119cc_test (
2220 name = "http_template_test" ,
2321 size = "small" ,
@@ -82,16 +80,16 @@ cc_test(
8280 ],
8381)
8482
85- cc_proto_library (
86- name = "bookstore_test_proto " ,
83+ proto_library (
84+ name = "bookstore_proto " ,
8785 testonly = 1 ,
8886 srcs = ["bookstore.proto" ],
89- include = "." ,
90- default_runtime = "//external:protobuf" ,
91- protoc = "//external:protoc" ,
92- deps = [
93- "//external:cc_wkt_protos" ,
94- ],
87+ )
88+
89+ cc_proto_library (
90+ name = "bookstore_cc_proto" ,
91+ testonly = 1 ,
92+ deps = [ ":bookstore_proto" ],
9593)
9694
9795cc_test (
@@ -136,7 +134,7 @@ cc_library(
136134 "request_translator_test_base.h" ,
137135 ],
138136 deps = [
139- ":bookstore_test_proto " ,
137+ ":bookstore_cc_proto " ,
140138 ":test_common" ,
141139 "//external:googletest" ,
142140 "//external:protobuf" ,
@@ -156,7 +154,7 @@ cc_test(
156154 "testdata/bookstore_service.pb.txt" ,
157155 ],
158156 deps = [
159- ":bookstore_test_proto " ,
157+ ":bookstore_cc_proto " ,
160158 ":request_translator_test_base" ,
161159 ":test_common" ,
162160 "//external:googletest_main" ,
@@ -174,7 +172,7 @@ cc_test(
174172 "testdata/bookstore_service.pb.txt" ,
175173 ],
176174 deps = [
177- ":bookstore_test_proto " ,
175+ ":bookstore_cc_proto " ,
178176 ":request_translator_test_base" ,
179177 "//external:googletest_main" ,
180178 "//src:request_stream_translator" ,
@@ -191,7 +189,7 @@ cc_test(
191189 "testdata/bookstore_service.pb.txt" ,
192190 ],
193191 deps = [
194- ":bookstore_test_proto " ,
192+ ":bookstore_cc_proto " ,
195193 ":request_translator_test_base" ,
196194 ":test_common" ,
197195 "//external:googletest_main" ,
@@ -222,7 +220,7 @@ cc_test(
222220 "testdata/bookstore_service.pb.txt" ,
223221 ],
224222 deps = [
225- ":bookstore_test_proto " ,
223+ ":bookstore_cc_proto " ,
226224 ":test_common" ,
227225 "//external:googletest_main" ,
228226 "//src:message_reader" ,
0 commit comments