Home | History | Annotate | Download | only in end2end
      1 # Copyright 2016 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 load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_cc_binary", "grpc_package")
     16 
     17 licenses(["notice"])  # Apache v2
     18 
     19 grpc_package(name = "test/core/end2end")
     20 
     21 load(":generate_tests.bzl", "grpc_end2end_tests")
     22 
     23 grpc_cc_library(
     24     name = "cq_verifier",
     25     srcs = ["cq_verifier.cc"],
     26     hdrs = ["cq_verifier.h"],
     27     language = "C++",
     28     visibility = ["//test:__subpackages__"],
     29     deps = [
     30         "//:gpr",
     31         "//:grpc",
     32         "//test/core/util:grpc_test_util",
     33     ],
     34 )
     35 
     36 grpc_cc_library(
     37     name = "ssl_test_data",
     38     srcs = [
     39         "data/client_certs.cc",
     40         "data/server1_cert.cc",
     41         "data/server1_key.cc",
     42         "data/test_root_cert.cc",
     43     ],
     44     hdrs = ["data/ssl_test_data.h"],
     45     language = "C++",
     46     visibility = ["//test:__subpackages__"],
     47 )
     48 
     49 
     50 grpc_cc_library(
     51     name = "http_proxy",
     52     srcs = ["fixtures/http_proxy_fixture.cc"],
     53     hdrs = ["fixtures/http_proxy_fixture.h"],
     54     language = "C++",
     55     deps = [
     56         "//:gpr",
     57         "//:grpc",
     58         "//test/core/util:grpc_test_util",
     59     ],
     60 )
     61 
     62 grpc_cc_library(
     63     name = "proxy",
     64     srcs = ["fixtures/proxy.cc"],
     65     hdrs = ["fixtures/proxy.h"],
     66     language = "C++",
     67     deps = [
     68         "//:gpr",
     69         "//:grpc",
     70         "//test/core/util:grpc_test_util",
     71     ],
     72 )
     73 
     74 grpc_cc_test(
     75     name = "bad_server_response_test",
     76     srcs = ["bad_server_response_test.cc"],
     77     language = "C++",
     78     deps = [
     79         ":cq_verifier",
     80         "//:gpr",
     81         "//:grpc",
     82         "//test/core/util:gpr_test_util",
     83         "//test/core/util:grpc_test_util",
     84     ],
     85 )
     86 
     87 grpc_cc_test(
     88     name = "connection_refused_test",
     89     srcs = ["connection_refused_test.cc"],
     90     language = "C++",
     91     deps = [
     92         ":cq_verifier",
     93         "//:gpr",
     94         "//:grpc",
     95         "//test/core/util:gpr_test_util",
     96         "//test/core/util:grpc_test_util",
     97     ],
     98 )
     99 
    100 grpc_cc_test(
    101     name = "dualstack_socket_test",
    102     srcs = ["dualstack_socket_test.cc"],
    103     language = "C++",
    104     deps = [
    105         ":cq_verifier",
    106         "//:gpr",
    107         "//:grpc",
    108         "//test/core/util:gpr_test_util",
    109         "//test/core/util:grpc_test_util",
    110     ],
    111 )
    112 
    113 grpc_cc_test(
    114     name = "goaway_server_test",
    115     srcs = ["goaway_server_test.cc"],
    116     language = "C++",
    117     deps = [
    118         ":cq_verifier",
    119         "//:gpr",
    120         "//:grpc",
    121         "//test/core/util:gpr_test_util",
    122         "//test/core/util:grpc_test_util",
    123     ],
    124 )
    125 
    126 grpc_cc_test(
    127     name = "inproc_callback_test",
    128     srcs = ["inproc_callback_test.cc"],
    129     language = "C++",
    130     deps = [
    131         ':end2end_tests',
    132         "//:gpr",
    133         "//:grpc",
    134         "//test/core/util:gpr_test_util",
    135         "//test/core/util:grpc_test_util",
    136     ],
    137 )
    138 
    139 grpc_cc_test(
    140     name = "invalid_call_argument_test",
    141     srcs = ["invalid_call_argument_test.cc"],
    142     language = "C++",
    143     deps = [
    144         ":cq_verifier",
    145         "//:gpr",
    146         "//:grpc",
    147         "//test/core/util:gpr_test_util",
    148         "//test/core/util:grpc_test_util",
    149     ],
    150 )
    151 
    152 grpc_cc_test(
    153     name = "multiple_server_queues_test",
    154     srcs = ["multiple_server_queues_test.cc"],
    155     language = "C++",
    156     deps = [
    157         ":cq_verifier",
    158         "//:gpr",
    159         "//:grpc",
    160         "//test/core/util:gpr_test_util",
    161         "//test/core/util:grpc_test_util",
    162     ],
    163 )
    164 
    165 grpc_cc_test(
    166     name = "no_server_test",
    167     srcs = ["no_server_test.cc"],
    168     language = "C++",
    169     deps = [
    170         ":cq_verifier",
    171         "//:gpr",
    172         "//:grpc",
    173         "//test/core/util:gpr_test_util",
    174         "//test/core/util:grpc_test_util",
    175     ],
    176 )
    177 
    178 grpc_end2end_tests()
    179 
    180 grpc_cc_test(
    181     name = "h2_ssl_session_reuse_test",
    182     srcs = ["h2_ssl_session_reuse_test.cc"],
    183     external_deps = [
    184         "gtest",
    185     ],
    186     language = "C++",
    187     deps = [
    188         ':end2end_tests',
    189         '//:gpr',
    190         '//:grpc',
    191         '//:tsi',
    192         '//test/core/util:gpr_test_util',
    193         '//test/core/util:grpc_test_util',
    194     ],
    195 )
    196