Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed Jan 28, 2025
1 parent 4a7ee68 commit 7895632
Show file tree
Hide file tree
Showing 12 changed files with 273 additions and 332 deletions.
36 changes: 24 additions & 12 deletions test/core/xds/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ load(
"//bazel:grpc_build_system.bzl",
"grpc_cc_library",
"grpc_cc_test",
"grpc_package",
"grpc_package","grpc_cc_proto_library", "grpc_internal_proto_library"
)
load("//test/core/test_util:grpc_fuzzer.bzl", "grpc_proto_fuzzer")
load("//test/core/test_util:grpc_fuzzer.bzl", "grpc_fuzz_test")

grpc_package(name = "test/core/xds")

Expand Down Expand Up @@ -176,26 +176,37 @@ grpc_cc_test(
],
)

grpc_proto_fuzzer(
name = "xds_client_fuzzer",
srcs = ["xds_client_fuzzer.cc"],
corpus = "xds_client_corpora",
external_deps = ["absl/log:log"],
proto = "xds_client_fuzzer.proto",
proto_deps = [
grpc_internal_proto_library(
name = "xds_client_fuzzer_proto",
srcs = [
"xds_client_fuzzer.proto"
],
deps = [
"//test/core/event_engine/fuzzing_event_engine:fuzzing_event_engine_proto",
"@envoy_api//envoy/service/discovery/v3:pkg",
],
]
)

grpc_cc_proto_library(
name = "xds_client_fuzzer_cc_proto",
deps = [
"xds_client_fuzzer_proto",
]
)

grpc_fuzz_test(
name = "xds_client_fuzzer",
srcs = ["xds_client_fuzzer.cc"],
external_deps = ["absl/log:log", "fuzztest", "fuzztest_main", "gtest"],
tags = ["no_windows"],
uses_event_engine = True,
uses_polling = False,
deps = [
":xds_client_test_peer",
":xds_transport_fake",
"//src/core:grpc_xds_client",
"//test/core/test_util:grpc_test_util",
"//test/core/event_engine/fuzzing_event_engine",
"//test/core/event_engine:event_engine_test_utils",
"xds_client_fuzzer_cc_proto",
# These proto deps are needed to ensure that we can read these
# resource types out of the google.protobuf.Any fields in the
# textproto files in the corpora.
Expand All @@ -205,6 +216,7 @@ grpc_proto_fuzzer(
"@envoy_api//envoy/config/route/v3:pkg_cc_proto",
"@envoy_api//envoy/extensions/filters/http/router/v3:pkg_cc_proto",
"@envoy_api//envoy/extensions/filters/network/http_connection_manager/v3:pkg_cc_proto",
"@envoy_api//envoy/service/discovery/v3:pkg_cc_proto",
],
)

Expand Down
26 changes: 0 additions & 26 deletions test/core/xds/xds_client_corpora/assert_entry_is_null

This file was deleted.

41 changes: 0 additions & 41 deletions test/core/xds/xds_client_corpora/basic_cluster

This file was deleted.

57 changes: 0 additions & 57 deletions test/core/xds/xds_client_corpora/basic_endpoint

This file was deleted.

50 changes: 0 additions & 50 deletions test/core/xds/xds_client_corpora/basic_listener

This file was deleted.

45 changes: 0 additions & 45 deletions test/core/xds/xds_client_corpora/basic_route_config

This file was deleted.

10 changes: 0 additions & 10 deletions test/core/xds/xds_client_corpora/bootstrap_xds_servers_empty

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions test/core/xds/xds_client_corpora/resource_wrapper_empty

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 7895632

Please sign in to comment.