Home | History | Annotate | Download | only in testing
      1 # Copyright 2017 gRPC authors.
      2 #
      3 # 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
      6 #
      7 #     http://www.apache.org/licenses/LICENSE-2.0
      8 #
      9 # 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.
     14 
     15 licenses(["notice"])  # Apache v2
     16 
     17 load("//bazel:grpc_build_system.bzl", "grpc_proto_library", "grpc_package")
     18 
     19 grpc_package(name = "testing", visibility = "public")
     20 
     21 exports_files([
     22     "echo.proto",
     23     "echo_messages.proto",
     24 ])
     25 
     26 grpc_proto_library(
     27     name = "compiler_test_proto",
     28     srcs = ["compiler_test.proto"],
     29     generate_mocks = True,
     30 )
     31 
     32 grpc_proto_library(
     33     name = "control_proto",
     34     srcs = ["control.proto"],
     35     has_services = False,
     36     deps = [
     37         "payloads_proto",
     38         "stats_proto",
     39     ],
     40 )
     41 
     42 grpc_proto_library(
     43     name = "echo_messages_proto",
     44     srcs = ["echo_messages.proto"],
     45     has_services = False,
     46 )
     47 
     48 grpc_proto_library(
     49     name = "echo_proto",
     50     srcs = ["echo.proto"],
     51     deps = ["echo_messages_proto"],
     52     generate_mocks = True,
     53 )
     54 
     55 grpc_proto_library(
     56     name = "empty_proto",
     57     srcs = ["empty.proto"],
     58     has_services = False,
     59 )
     60 
     61 grpc_proto_library(
     62     name = "messages_proto",
     63     srcs = ["messages.proto"],
     64     has_services = False,
     65 )
     66 
     67 grpc_proto_library(
     68     name = "metrics_proto",
     69     srcs = ["metrics.proto"],
     70 )
     71 
     72 grpc_proto_library(
     73     name = "payloads_proto",
     74     srcs = ["payloads.proto"],
     75     has_services = False,
     76 )
     77 
     78 grpc_proto_library(
     79     name = "benchmark_service_proto",
     80     srcs = ["benchmark_service.proto"],
     81     deps = [
     82       "messages_proto",
     83     ],
     84 )
     85 
     86 grpc_proto_library(
     87     name = "report_qps_scenario_service_proto",
     88     srcs = ["report_qps_scenario_service.proto"],
     89     deps = [
     90       "control_proto",
     91     ],
     92 )
     93 
     94 grpc_proto_library(
     95     name = "worker_service_proto",
     96     srcs = ["worker_service.proto"],
     97     deps = [
     98       "control_proto",
     99     ],
    100 )
    101 
    102 grpc_proto_library(
    103     name = "stats_proto",
    104     srcs = ["stats.proto"],
    105     has_services = False,
    106     deps = [
    107         "//src/proto/grpc/core:stats_proto",
    108     ]
    109 )
    110 
    111 grpc_proto_library(
    112     name = "test_proto",
    113     srcs = ["test.proto"],
    114     deps = [
    115         "empty_proto",
    116         "messages_proto",
    117     ],
    118 )
    119