load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = [
        "rawConnWrapper.go",
        "servertester.go",
    ],
    importpath = "google.golang.org/grpc/test",
    visibility = ["//visibility:public"],
    deps = [
        "@org_golang_x_net//http2:go_default_library",
        "@org_golang_x_net//http2/hpack:go_default_library",
    ],
)

go_test(
    name = "go_default_test",
    srcs = [
        "channelz_test.go",
        "end2end_test.go",
        "gracefulstop_test.go",
    ],
    embed = [":go_default_library"],
    deps = [
        "//:go_default_library",
        "//balancer/grpclb:go_default_library",
        "//balancer/roundrobin:go_default_library",
        "//codes:go_default_library",
        "//connectivity:go_default_library",
        "//credentials:go_default_library",
        "//encoding/gzip:go_default_library",
        "//grpclog/glogger:go_default_library",
        "//health:go_default_library",
        "//health/grpc_health_v1:go_default_library",
        "//internal:go_default_library",
        "//internal/channelz:go_default_library",
        "//internal/leakcheck:go_default_library",
        "//keepalive:go_default_library",
        "//metadata:go_default_library",
        "//peer:go_default_library",
        "//resolver:go_default_library",
        "//resolver/manual:go_default_library",
        "//resolver/passthrough:go_default_library",
        "//stats:go_default_library",
        "//status:go_default_library",
        "//tap:go_default_library",
        "//test/grpc_testing:go_default_library",
        "//testdata:go_default_library",
        "@com_github_golang_protobuf//proto:go_default_library",
        "@io_bazel_rules_go//proto/wkt:any_go_proto",
        "@org_golang_google_genproto//googleapis/rpc/status:go_default_library",
        "@org_golang_x_net//context:go_default_library",
        "@org_golang_x_net//http2:go_default_library",
    ],
)
