blob: 5f9821ef0f4c1c467cde60899fba1a16634f3c85 [file] [log] [blame]
Jan Tattermusch7897ae92017-06-07 22:57:36 +02001# Copyright 2017 gRPC authors.
David Garcia Quintaseb4c47e2017-02-17 15:41:20 -08002#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02003# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
David Garcia Quintaseb4c47e2017-02-17 15:41:20 -08006#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02007# http://www.apache.org/licenses/LICENSE-2.0
David Garcia Quintaseb4c47e2017-02-17 15:41:20 -08008#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02009# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
David Garcia Quintaseb4c47e2017-02-17 15:41:20 -080014
15licenses(["notice"]) # 3-clause BSD
16
Nicolas "Pixel" Noble7c26eed2017-04-13 01:40:54 +020017load("//bazel:grpc_build_system.bzl", "grpc_cc_test")
18
19grpc_cc_test(
David Garcia Quintaseb4c47e2017-02-17 15:41:20 -080020 name = "codegen_test_full",
21 srcs = ["codegen_test_full.cc"],
22 deps = [
23 "//:grpc++",
David Garcia Quintaseb4c47e2017-02-17 15:41:20 -080024 "//test/core/util:gpr_test_util",
25 ],
Nicolas "Pixel" Noble7c26eed2017-04-13 01:40:54 +020026 external_deps = [
27 "gtest",
28 ],
David Garcia Quintaseb4c47e2017-02-17 15:41:20 -080029)
30
Nicolas "Pixel" Noble7c26eed2017-04-13 01:40:54 +020031grpc_cc_test(
David Garcia Quintaseb4c47e2017-02-17 15:41:20 -080032 name = "codegen_test_minimal",
33 srcs = ["codegen_test_minimal.cc"],
34 deps = [
35 "//:grpc++",
David Garcia Quintaseb4c47e2017-02-17 15:41:20 -080036 "//test/core/util:gpr_test_util",
37 ],
Nicolas "Pixel" Noble7c26eed2017-04-13 01:40:54 +020038 external_deps = [
39 "gtest",
40 ],
David Garcia Quintaseb4c47e2017-02-17 15:41:20 -080041)
42
Nicolas "Pixel" Noble7c26eed2017-04-13 01:40:54 +020043grpc_cc_test(
David Garcia Quintaseb4c47e2017-02-17 15:41:20 -080044 name = "proto_utils_test",
45 srcs = ["proto_utils_test.cc"],
46 deps = [
47 "//:grpc++",
David Garcia Quintaseb4c47e2017-02-17 15:41:20 -080048 "//test/core/util:gpr_test_util",
49 ],
Nicolas "Pixel" Noble7c26eed2017-04-13 01:40:54 +020050 external_deps = [
51 "gtest",
52 ],
David Garcia Quintaseb4c47e2017-02-17 15:41:20 -080053)
David Garcia Quintase8543572017-02-21 10:44:02 -080054
Nicolas "Pixel" Noble7c26eed2017-04-13 01:40:54 +020055grpc_cc_test(
David Garcia Quintase8543572017-02-21 10:44:02 -080056 name = "golden_file_test",
57 srcs = ["golden_file_test.cc"],
Mahak Mukhi443a75d2017-04-14 15:33:55 -070058 args = ["--generated_file_path=$(GENDIR)/src/proto/grpc/testing/"],
David Garcia Quintase8543572017-02-21 10:44:02 -080059 data = [
60 ":compiler_test_golden",
61 "//src/proto/grpc/testing:_compiler_test_proto_grpc_codegen",
62 ],
63 deps = [
64 "//:grpc++",
David Garcia Quintase8543572017-02-21 10:44:02 -080065 "//src/proto/grpc/testing:compiler_test_proto",
66 "//test/core/util:gpr_test_util",
67 ],
Nicolas "Pixel" Noble7c26eed2017-04-13 01:40:54 +020068 external_deps = [
69 "gtest",
70 "gflags",
71 ],
David Garcia Quintase8543572017-02-21 10:44:02 -080072)