Skip to content

Commit 89de170

Browse files
authored
Merge pull request #4 from lizan/path_matcher
Port path_matcher to transcoding repo
2 parents ca579d0 + cb09e19 commit 89de170

File tree

8 files changed

+2728
-2
lines changed

8 files changed

+2728
-2
lines changed

src/BUILD

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,36 @@ cc_library(
8888
],
8989
)
9090

91+
cc_library(
92+
name = "path_matcher",
93+
srcs = [
94+
"path_matcher_node.cc",
95+
"path_matcher_node.h",
96+
],
97+
hdrs = [
98+
"path_matcher.h",
99+
],
100+
visibility = [
101+
"//visibility:public",
102+
],
103+
deps = [
104+
":http_template",
105+
],
106+
)
107+
108+
cc_library(
109+
name = "http_template",
110+
srcs = [
111+
"http_template.cc",
112+
],
113+
hdrs = [
114+
"http_template.h",
115+
],
116+
visibility = [
117+
"//visibility:public",
118+
],
119+
)
120+
91121
cc_library(
92122
name = "json_request_translator",
93123
srcs = [
@@ -157,6 +187,32 @@ cc_library(
157187
],
158188
)
159189

190+
cc_test(
191+
name = "http_template_test",
192+
size = "small",
193+
srcs = [
194+
"http_template_test.cc",
195+
],
196+
linkstatic = 1,
197+
deps = [
198+
":http_template",
199+
"//external:googletest_main",
200+
],
201+
)
202+
203+
cc_test(
204+
name = "path_matcher_test",
205+
size = "small",
206+
srcs = [
207+
"path_matcher_test.cc",
208+
],
209+
linkstatic = 1,
210+
deps = [
211+
":path_matcher",
212+
"//external:googletest_main",
213+
],
214+
)
215+
160216
cc_test(
161217
name = "prefix_writer_test",
162218
size = "small",
@@ -279,7 +335,7 @@ cc_test(
279335
name = "request_stream_translator_test",
280336
size = "small",
281337
srcs = [
282-
"request_stream_translator_test.cc",
338+
"request_stream_translator_test.cc",
283339
],
284340
data = [
285341
"testdata/bookstore_service.pb.txt",
@@ -345,7 +401,7 @@ cc_test(
345401
cc_test(
346402
name = "message_stream_test",
347403
size = "small",
348-
srcs = [
404+
srcs = [
349405
"message_stream_test.cc",
350406
],
351407
deps = [

0 commit comments

Comments
 (0)