From e61fa603cc139c041f9faa4d1b4113ead4651eae Mon Sep 17 00:00:00 2001 From: Tanvi Jagtap <139093547+tanvi-jagtap@users.noreply.github.com> Date: Thu, 25 Apr 2024 05:29:01 -0700 Subject: [PATCH] [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging GPR_ASSERT (#36437) [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging GPR_ASSERT Replacing GPR_ASSERT with absl CHECK These changes have been made using string replacement and regex. Will not be replacing all instances of CHECK with CHECK_EQ , CHECK_NE etc because there are too many callsites. Only ones which are doable using very simple regex with least chance of failure will be replaced. Given that we have 5000+ instances of GPR_ASSERT to edit, Doing it manually is too much work for both the author and reviewer. Closes #36437 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36437 from tanvi-jagtap:tjagtap_core_util_01 719e3e20e15ffd42c05bd5b7438303d7181ddcb8 PiperOrigin-RevId: 628043154 --- CMakeLists.txt | 171 +----------------- build_autogenerated.yaml | 171 +----------------- test/core/util/BUILD | 7 + test/core/util/cmdline.cc | 11 +- test/core/util/fake_stats_plugin.cc | 6 +- test/core/util/fake_udp_and_tcp_server.cc | 40 ++-- test/core/util/fuzzer_corpus_test.cc | 3 +- test/core/util/histogram.cc | 16 +- test/core/util/mock_endpoint.cc | 3 +- test/core/util/one_corpus_entry_fuzzer.cc | 4 +- test/core/util/parse_hexstring.cc | 4 +- test/core/util/port.cc | 10 +- .../util/port_isolated_runtime_environment.cc | 4 +- test/core/util/port_server_client.cc | 18 +- test/core/util/resolve_localhost_ip46.cc | 3 +- test/core/util/test_lb_policies.cc | 5 +- test/core/util/test_tcp_server.cc | 8 +- test/core/util/tls_utils.cc | 20 +- 18 files changed, 99 insertions(+), 405 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 98a626ebf8a..f15e8576ff4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2841,6 +2841,7 @@ target_link_libraries(grpc_test_util absl::failure_signal_handler absl::stacktrace absl::symbolize + absl::check grpc ) if(_gRPC_PLATFORM_IOS OR _gRPC_PLATFORM_MAC) @@ -2906,6 +2907,7 @@ target_link_libraries(grpc_test_util_unsecure absl::failure_signal_handler absl::stacktrace absl::symbolize + absl::check grpc_unsecure ) if(_gRPC_PLATFORM_IOS OR _gRPC_PLATFORM_MAC) @@ -4021,7 +4023,6 @@ target_include_directories(benchmark_helpers ) target_link_libraries(benchmark_helpers ${_gRPC_ALLTARGETS_LIBRARIES} - absl::check ${_gRPC_BENCHMARK_LIBRARIES} grpc++_unsecure grpc_test_util_unsecure @@ -4793,7 +4794,6 @@ target_include_directories(grpc++_test_util ) target_link_libraries(grpc++_test_util ${_gRPC_ALLTARGETS_LIBRARIES} - absl::check grpc++ grpc_test_util ) @@ -6434,7 +6434,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) target_link_libraries(alts_concurrent_connectivity_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc++ grpc_test_util ) @@ -6610,7 +6609,6 @@ target_include_directories(alts_frame_protector_test target_link_libraries(alts_frame_protector_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -7400,7 +7398,6 @@ target_include_directories(aws_request_signer_test target_link_libraries(aws_request_signer_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -7458,7 +7455,6 @@ target_include_directories(backend_metrics_lb_policy_test target_link_libraries(backend_metrics_lb_policy_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc++ grpc_test_util grpc++_test_config @@ -7564,7 +7560,6 @@ target_include_directories(bad_ping_test target_link_libraries(bad_ping_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -7610,7 +7605,6 @@ target_include_directories(bad_server_response_test target_link_libraries(bad_server_response_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -7666,7 +7660,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(bad_ssl_alpn_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -7723,7 +7716,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(bad_ssl_cert_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -7769,7 +7761,6 @@ target_include_directories(bad_streaming_id_bad_client_test target_link_libraries(bad_streaming_id_bad_client_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -7814,7 +7805,6 @@ target_include_directories(badreq_bad_client_test target_link_libraries(badreq_bad_client_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -8046,7 +8036,6 @@ target_include_directories(binary_metadata_test target_link_libraries(binary_metadata_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -8489,7 +8478,6 @@ target_include_directories(call_creds_test target_link_libraries(call_creds_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -8695,7 +8683,6 @@ target_include_directories(call_host_override_test target_link_libraries(call_host_override_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -8802,7 +8789,6 @@ target_include_directories(cancel_after_accept_test target_link_libraries(cancel_after_accept_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -8866,7 +8852,6 @@ target_include_directories(cancel_after_client_done_test target_link_libraries(cancel_after_client_done_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -8930,7 +8915,6 @@ target_include_directories(cancel_after_invoke_test target_link_libraries(cancel_after_invoke_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -8994,7 +8978,6 @@ target_include_directories(cancel_after_round_trip_test target_link_libraries(cancel_after_round_trip_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -9105,7 +9088,6 @@ target_include_directories(cancel_before_invoke_test target_link_libraries(cancel_before_invoke_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -9211,7 +9193,6 @@ target_include_directories(cancel_in_a_vacuum_test target_link_libraries(cancel_in_a_vacuum_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -9275,7 +9256,6 @@ target_include_directories(cancel_with_status_test target_link_libraries(cancel_with_status_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -9545,7 +9525,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(cf_engine_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -9595,7 +9574,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(cf_event_engine_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -10379,7 +10357,6 @@ target_include_directories(client_auth_filter_test target_link_libraries(client_auth_filter_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check ${_gRPC_PROTOBUF_LIBRARIES} grpc_test_util ) @@ -10429,7 +10406,6 @@ target_include_directories(client_authority_filter_test target_link_libraries(client_authority_filter_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check ${_gRPC_PROTOBUF_LIBRARIES} grpc_test_util ) @@ -10925,7 +10901,6 @@ target_include_directories(client_streaming_test target_link_libraries(client_streaming_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -11265,7 +11240,6 @@ target_include_directories(compressed_payload_test target_link_libraries(compressed_payload_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -11396,7 +11370,6 @@ target_include_directories(connection_prefix_bad_client_test target_link_libraries(connection_prefix_bad_client_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -11440,7 +11413,6 @@ target_include_directories(connection_refused_test target_link_libraries(connection_refused_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -11553,7 +11525,6 @@ target_include_directories(connectivity_test target_link_libraries(connectivity_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -11879,7 +11850,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(crl_ssl_transport_security_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -11984,7 +11954,6 @@ target_include_directories(default_host_test target_link_libraries(default_host_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -12193,7 +12162,6 @@ target_include_directories(disappearing_server_test target_link_libraries(disappearing_server_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -12408,7 +12376,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(dualstack_socket_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -12454,7 +12421,6 @@ target_include_directories(duplicate_header_bad_client_test target_link_libraries(duplicate_header_bad_client_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -12516,7 +12482,6 @@ target_include_directories(empty_batch_test target_link_libraries(empty_batch_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -13741,7 +13706,6 @@ target_include_directories(fake_transport_security_test target_link_libraries(fake_transport_security_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -13898,7 +13862,6 @@ target_include_directories(filter_causes_close_test target_link_libraries(filter_causes_close_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -13962,7 +13925,6 @@ target_include_directories(filter_context_test target_link_libraries(filter_context_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -14026,7 +13988,6 @@ target_include_directories(filter_init_fails_test target_link_libraries(filter_init_fails_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -14077,7 +14038,6 @@ target_include_directories(filter_test_test target_link_libraries(filter_test_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_unsecure ${_gRPC_PROTOBUF_LIBRARIES} grpc_test_util @@ -14141,7 +14101,6 @@ target_include_directories(filtered_metadata_test target_link_libraries(filtered_metadata_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -14667,7 +14626,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) target_link_libraries(fuzzing_event_engine_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check ${_gRPC_PROTOBUF_LIBRARIES} grpc_test_util ) @@ -14717,7 +14675,6 @@ target_include_directories(fuzzing_event_engine_unittest target_link_libraries(fuzzing_event_engine_unittest ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check ${_gRPC_PROTOBUF_LIBRARIES} grpc_test_util ) @@ -14825,7 +14782,6 @@ target_include_directories(goaway_server_test target_link_libraries(goaway_server_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -14931,7 +14887,6 @@ target_include_directories(graceful_server_shutdown_test target_link_libraries(graceful_server_shutdown_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -14977,7 +14932,6 @@ target_include_directories(graceful_shutdown_test target_link_libraries(graceful_shutdown_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -15299,7 +15253,6 @@ target_include_directories(grpc_authz_test target_link_libraries(grpc_authz_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -15805,7 +15758,6 @@ target_include_directories(grpc_tls_certificate_distributor_test target_link_libraries(grpc_tls_certificate_distributor_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -15857,7 +15809,6 @@ target_include_directories(grpc_tls_certificate_provider_test target_link_libraries(grpc_tls_certificate_provider_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -16064,7 +16015,6 @@ target_include_directories(grpc_tls_crl_provider_test target_link_libraries(grpc_tls_crl_provider_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check ${_gRPC_PROTOBUF_LIBRARIES} grpc_test_util ) @@ -16304,7 +16254,6 @@ target_include_directories(h2_ssl_cert_test target_link_libraries(h2_ssl_cert_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -16348,7 +16297,6 @@ target_include_directories(h2_ssl_session_reuse_test target_link_libraries(h2_ssl_session_reuse_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -16392,7 +16340,6 @@ target_include_directories(h2_tls_peer_property_external_verifier_test target_link_libraries(h2_tls_peer_property_external_verifier_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -16524,7 +16471,6 @@ target_include_directories(head_of_line_blocking_bad_client_test target_link_libraries(head_of_line_blocking_bad_client_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -16569,7 +16515,6 @@ target_include_directories(headers_bad_client_test target_link_libraries(headers_bad_client_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -16700,7 +16645,6 @@ target_include_directories(high_initial_seqno_test target_link_libraries(high_initial_seqno_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -17010,7 +16954,6 @@ target_include_directories(hpack_size_test target_link_libraries(hpack_size_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -17167,7 +17110,6 @@ target_include_directories(http2_stats_test target_link_libraries(http2_stats_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -17564,7 +17506,6 @@ target_include_directories(initial_settings_frame_bad_client_test target_link_libraries(initial_settings_frame_bad_client_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -17620,7 +17561,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) target_link_libraries(inproc_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check ${_gRPC_PROTOBUF_LIBRARIES} grpc_test_util ) @@ -18301,7 +18241,6 @@ target_include_directories(invalid_call_argument_test target_link_libraries(invalid_call_argument_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -18363,7 +18302,6 @@ target_include_directories(invoke_large_request_test target_link_libraries(invoke_large_request_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -18410,7 +18348,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX OR _gRPC_PLATFORM_WINDOWS) target_link_libraries(iocp_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -18754,7 +18691,6 @@ target_include_directories(keepalive_timeout_test target_link_libraries(keepalive_timeout_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -18800,7 +18736,6 @@ target_include_directories(lame_client_test target_link_libraries(lame_client_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -18862,7 +18797,6 @@ target_include_directories(large_metadata_test target_link_libraries(large_metadata_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -19534,7 +19468,6 @@ target_include_directories(max_concurrent_streams_test target_link_libraries(max_concurrent_streams_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -19598,7 +19531,6 @@ target_include_directories(max_connection_age_test target_link_libraries(max_connection_age_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -19662,7 +19594,6 @@ target_include_directories(max_connection_idle_test target_link_libraries(max_connection_idle_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -19726,7 +19657,6 @@ target_include_directories(max_message_length_test target_link_libraries(max_message_length_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -20409,7 +20339,6 @@ target_include_directories(negative_deadline_test target_link_libraries(negative_deadline_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -20505,7 +20434,6 @@ target_include_directories(no_logging_test target_link_libraries(no_logging_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -20569,7 +20497,6 @@ target_include_directories(no_op_test target_link_libraries(no_op_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -20615,7 +20542,6 @@ target_include_directories(no_server_test target_link_libraries(no_server_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -20852,7 +20778,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(oracle_event_engine_posix_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -21092,7 +21017,6 @@ target_include_directories(out_of_bounds_bad_client_test target_link_libraries(out_of_bounds_bad_client_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -21183,7 +21107,6 @@ target_include_directories(outlier_detection_test target_link_libraries(outlier_detection_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check ${_gRPC_PROTOBUF_LIBRARIES} grpc_test_util ) @@ -21345,7 +21268,6 @@ target_include_directories(parsed_metadata_test target_link_libraries(parsed_metadata_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -21504,7 +21426,6 @@ target_include_directories(payload_test target_link_libraries(payload_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -21672,7 +21593,6 @@ target_include_directories(pick_first_test target_link_libraries(pick_first_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check ${_gRPC_PROTOBUF_LIBRARIES} grpc_test_util ) @@ -21879,7 +21799,6 @@ target_include_directories(ping_pong_streaming_test target_link_libraries(ping_pong_streaming_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -21994,7 +21913,6 @@ target_include_directories(ping_test target_link_libraries(ping_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -22187,7 +22105,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(posix_endpoint_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -22279,7 +22196,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) target_link_libraries(posix_event_engine_connect_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -22991,7 +22907,6 @@ target_include_directories(proxy_auth_test target_link_libraries(proxy_auth_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -23568,7 +23483,6 @@ target_include_directories(registered_call_test target_link_libraries(registered_call_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -23614,7 +23528,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(remove_stream_from_stalled_lists_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -23677,7 +23590,6 @@ target_include_directories(request_with_flags_test target_link_libraries(request_with_flags_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -23741,7 +23653,6 @@ target_include_directories(request_with_payload_test target_link_libraries(request_with_payload_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -24076,7 +23987,6 @@ target_include_directories(resource_quota_server_test target_link_libraries(resource_quota_server_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -24182,7 +24092,6 @@ target_include_directories(retry_cancel_after_first_attempt_starts_test target_link_libraries(retry_cancel_after_first_attempt_starts_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -24246,7 +24155,6 @@ target_include_directories(retry_cancel_during_delay_test target_link_libraries(retry_cancel_during_delay_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -24310,7 +24218,6 @@ target_include_directories(retry_cancel_with_multiple_send_batches_test target_link_libraries(retry_cancel_with_multiple_send_batches_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -24374,7 +24281,6 @@ target_include_directories(retry_cancellation_test target_link_libraries(retry_cancellation_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -24438,7 +24344,6 @@ target_include_directories(retry_disabled_test target_link_libraries(retry_disabled_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -24502,7 +24407,6 @@ target_include_directories(retry_exceeds_buffer_size_in_delay_test target_link_libraries(retry_exceeds_buffer_size_in_delay_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -24566,7 +24470,6 @@ target_include_directories(retry_exceeds_buffer_size_in_initial_batch_test target_link_libraries(retry_exceeds_buffer_size_in_initial_batch_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -24630,7 +24533,6 @@ target_include_directories(retry_exceeds_buffer_size_in_subsequent_batch_test target_link_libraries(retry_exceeds_buffer_size_in_subsequent_batch_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -24694,7 +24596,6 @@ target_include_directories(retry_lb_drop_test target_link_libraries(retry_lb_drop_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -24758,7 +24659,6 @@ target_include_directories(retry_lb_fail_test target_link_libraries(retry_lb_fail_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -24822,7 +24722,6 @@ target_include_directories(retry_non_retriable_status_before_trailers_test target_link_libraries(retry_non_retriable_status_before_trailers_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -24886,7 +24785,6 @@ target_include_directories(retry_non_retriable_status_test target_link_libraries(retry_non_retriable_status_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -24950,7 +24848,6 @@ target_include_directories(retry_per_attempt_recv_timeout_on_last_attempt_test target_link_libraries(retry_per_attempt_recv_timeout_on_last_attempt_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25014,7 +24911,6 @@ target_include_directories(retry_per_attempt_recv_timeout_test target_link_libraries(retry_per_attempt_recv_timeout_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25078,7 +24974,6 @@ target_include_directories(retry_recv_initial_metadata_test target_link_libraries(retry_recv_initial_metadata_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25142,7 +25037,6 @@ target_include_directories(retry_recv_message_replay_test target_link_libraries(retry_recv_message_replay_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25206,7 +25100,6 @@ target_include_directories(retry_recv_message_test target_link_libraries(retry_recv_message_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25270,7 +25163,6 @@ target_include_directories(retry_recv_trailing_metadata_error_test target_link_libraries(retry_recv_trailing_metadata_error_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25334,7 +25226,6 @@ target_include_directories(retry_send_initial_metadata_refs_test target_link_libraries(retry_send_initial_metadata_refs_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25398,7 +25289,6 @@ target_include_directories(retry_send_op_fails_test target_link_libraries(retry_send_op_fails_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25462,7 +25352,6 @@ target_include_directories(retry_send_recv_batch_test target_link_libraries(retry_send_recv_batch_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25526,7 +25415,6 @@ target_include_directories(retry_server_pushback_delay_test target_link_libraries(retry_server_pushback_delay_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25590,7 +25478,6 @@ target_include_directories(retry_server_pushback_disabled_test target_link_libraries(retry_server_pushback_disabled_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25696,7 +25583,6 @@ target_include_directories(retry_streaming_after_commit_test target_link_libraries(retry_streaming_after_commit_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25760,7 +25646,6 @@ target_include_directories(retry_streaming_succeeds_before_replay_finished_test target_link_libraries(retry_streaming_succeeds_before_replay_finished_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25824,7 +25709,6 @@ target_include_directories(retry_streaming_test target_link_libraries(retry_streaming_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25888,7 +25772,6 @@ target_include_directories(retry_test target_link_libraries(retry_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -25994,7 +25877,6 @@ target_include_directories(retry_throttled_test target_link_libraries(retry_throttled_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -26058,7 +25940,6 @@ target_include_directories(retry_too_many_attempts_test target_link_libraries(retry_too_many_attempts_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -26122,7 +26003,6 @@ target_include_directories(retry_transparent_goaway_test target_link_libraries(retry_transparent_goaway_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -26186,7 +26066,6 @@ target_include_directories(retry_transparent_max_concurrent_streams_test target_link_libraries(retry_transparent_max_concurrent_streams_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -26250,7 +26129,6 @@ target_include_directories(retry_transparent_not_sent_on_wire_test target_link_libraries(retry_transparent_not_sent_on_wire_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -26314,7 +26192,6 @@ target_include_directories(retry_unref_before_finish_test target_link_libraries(retry_unref_before_finish_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -26378,7 +26255,6 @@ target_include_directories(retry_unref_before_recv_test target_link_libraries(retry_unref_before_recv_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -26429,7 +26305,6 @@ target_include_directories(ring_hash_test target_link_libraries(ring_hash_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check ${_gRPC_PROTOBUF_LIBRARIES} grpc_test_util ) @@ -26593,7 +26468,6 @@ target_include_directories(round_robin_test target_link_libraries(round_robin_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check ${_gRPC_PROTOBUF_LIBRARIES} grpc_test_util ) @@ -27365,7 +27239,6 @@ target_include_directories(server_finishes_request_test target_link_libraries(server_finishes_request_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -27473,7 +27346,6 @@ target_include_directories(server_registered_method_bad_client_test target_link_libraries(server_registered_method_bad_client_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -27651,7 +27523,6 @@ target_include_directories(server_streaming_test target_link_libraries(server_streaming_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -27853,7 +27724,6 @@ target_include_directories(settings_timeout_test target_link_libraries(settings_timeout_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -27915,7 +27785,6 @@ target_include_directories(shutdown_finishes_calls_test target_link_libraries(shutdown_finishes_calls_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -27979,7 +27848,6 @@ target_include_directories(shutdown_finishes_tags_test target_link_libraries(shutdown_finishes_tags_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -28106,7 +27974,6 @@ target_include_directories(simple_delayed_request_test target_link_libraries(simple_delayed_request_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -28170,7 +28037,6 @@ target_include_directories(simple_metadata_test target_link_libraries(simple_metadata_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -28217,7 +28083,6 @@ target_include_directories(simple_request_bad_client_test target_link_libraries(simple_request_bad_client_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -28279,7 +28144,6 @@ target_include_directories(simple_request_test target_link_libraries(simple_request_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -28709,7 +28573,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(ssl_transport_security_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -28755,7 +28618,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(ssl_transport_security_utils_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -29147,7 +29009,6 @@ target_include_directories(stream_leak_with_queued_flow_control_update_test target_link_libraries(stream_leak_with_queued_flow_control_update_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -29209,7 +29070,6 @@ target_include_directories(streaming_error_response_test target_link_libraries(streaming_error_response_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -29329,7 +29189,6 @@ target_include_directories(streams_not_seen_test target_link_libraries(streams_not_seen_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -29882,7 +29741,6 @@ target_include_directories(test_core_channelz_channelz_test target_link_libraries(test_core_channelz_channelz_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc++ grpc_test_util ) @@ -29945,7 +29803,6 @@ target_include_directories(test_core_end2end_channelz_test target_link_libraries(test_core_end2end_channelz_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -30282,7 +30139,6 @@ target_include_directories(test_core_security_credentials_test target_link_libraries(test_core_security_credentials_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -30480,7 +30336,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX) target_link_libraries(test_core_transport_test_suite_chaotic_good_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check ${_gRPC_PROTOBUF_LIBRARIES} grpc_test_util ) @@ -31060,7 +30915,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(thready_posix_event_engine_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -31211,7 +31065,6 @@ target_include_directories(timeout_before_request_call_test target_link_libraries(timeout_before_request_call_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -31566,7 +31419,6 @@ target_include_directories(tls_security_connector_test target_link_libraries(tls_security_connector_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -31655,7 +31507,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(traced_buffer_list_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -31718,7 +31569,6 @@ target_include_directories(trailing_metadata_test target_link_libraries(trailing_metadata_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -32122,7 +31972,6 @@ target_include_directories(unknown_frame_bad_client_test target_link_libraries(unknown_frame_bad_client_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -32505,7 +32354,6 @@ target_include_directories(weighted_round_robin_test target_link_libraries(weighted_round_robin_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check ${_gRPC_PROTOBUF_LIBRARIES} grpc_test_util ) @@ -32551,7 +32399,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX OR _gRPC_PLATFORM_WINDOWS) target_link_libraries(win_socket_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -32597,7 +32444,6 @@ target_include_directories(window_overflow_bad_client_test target_link_libraries(window_overflow_bad_client_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -32642,7 +32488,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX OR _gRPC_PLATFORM_WINDOWS) target_link_libraries(windows_endpoint_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -32904,7 +32749,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(work_serializer_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_test_util ) @@ -32967,7 +32811,6 @@ target_include_directories(write_buffering_at_end_test target_link_libraries(write_buffering_at_end_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -33031,7 +32874,6 @@ target_include_directories(write_buffering_test target_link_libraries(write_buffering_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc_authorization_provider grpc_unsecure grpc_test_util @@ -33153,7 +32995,6 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) target_link_libraries(writes_per_rpc_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc++ grpc_test_util ) @@ -33264,7 +33105,6 @@ target_include_directories(xds_audit_logger_registry_test target_link_libraries(xds_audit_logger_registry_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc++ ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} grpc_test_util @@ -33963,7 +33803,6 @@ target_include_directories(xds_common_types_test target_link_libraries(xds_common_types_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc++ ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} grpc_test_util @@ -35183,7 +35022,6 @@ target_include_directories(xds_http_filters_test target_link_libraries(xds_http_filters_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc++ ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} grpc_test_util @@ -35302,7 +35140,6 @@ target_include_directories(xds_lb_policy_registry_test target_link_libraries(xds_lb_policy_registry_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc++ ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} grpc_test_util @@ -35445,7 +35282,6 @@ target_include_directories(xds_listener_resource_type_test target_link_libraries(xds_listener_resource_type_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc++ ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} grpc_test_util @@ -35906,7 +35742,6 @@ target_include_directories(xds_override_host_test target_link_libraries(xds_override_host_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check ${_gRPC_PROTOBUF_LIBRARIES} grpc_test_util ) @@ -36573,7 +36408,6 @@ target_include_directories(xds_route_config_resource_type_test target_link_libraries(xds_route_config_resource_type_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc++ ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} grpc_test_util @@ -36833,7 +36667,6 @@ target_include_directories(xds_stats_watcher_test target_link_libraries(xds_stats_watcher_test ${_gRPC_ALLTARGETS_LIBRARIES} gtest - absl::check grpc++_reflection grpcpp_channelz grpc_test_util diff --git a/build_autogenerated.yaml b/build_autogenerated.yaml index 4f0ba62388e..aaacf89bd7a 100644 --- a/build_autogenerated.yaml +++ b/build_autogenerated.yaml @@ -2098,6 +2098,7 @@ libs: - absl/debugging:failure_signal_handler - absl/debugging:stacktrace - absl/debugging:symbolize + - absl/log:check - grpc - name: grpc_test_util_unsecure build: private @@ -2126,6 +2127,7 @@ libs: - absl/debugging:failure_signal_handler - absl/debugging:stacktrace - absl/debugging:symbolize + - absl/log:check - grpc_unsecure - name: grpc_unsecure build: all @@ -3619,7 +3621,6 @@ libs: - test/core/util/tracer_util.cc - test/cpp/microbenchmarks/helpers.cc deps: - - absl/log:check - benchmark - grpc++_unsecure - grpc_test_util_unsecure @@ -4052,7 +4053,6 @@ libs: - test/cpp/util/subprocess.cc - test/cpp/util/test_credentials_provider.cc deps: - - absl/log:check - grpc++ - grpc_test_util - name: grpc++_unsecure @@ -5436,7 +5436,6 @@ targets: - test/core/util/fake_udp_and_tcp_server.cc deps: - gtest - - absl/log:check - grpc++ - grpc_test_util platforms: @@ -5491,7 +5490,6 @@ targets: - test/core/tsi/transport_security_test_lib.cc deps: - gtest - - absl/log:check - grpc_test_util - name: alts_grpc_record_protocol_test gtest: true @@ -5777,7 +5775,6 @@ targets: - test/core/util/tracer_util.cc deps: - gtest - - absl/log:check - grpc_test_util - name: backend_metrics_lb_policy_test gtest: true @@ -5794,7 +5791,6 @@ targets: - test/cpp/interop/backend_metrics_lb_policy_test.cc deps: - gtest - - absl/log:check - grpc++ - grpc_test_util - grpc++_test_config @@ -5869,7 +5865,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -5884,7 +5879,6 @@ targets: - test/core/end2end/cq_verifier.cc deps: - gtest - - absl/log:check - grpc_test_util - name: bad_ssl_alpn_test gtest: true @@ -5920,7 +5914,6 @@ targets: - test/core/util/tracer_util.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -5960,7 +5953,6 @@ targets: - test/core/util/tracer_util.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -5979,7 +5971,6 @@ targets: - test/core/end2end/cq_verifier.cc deps: - gtest - - absl/log:check - grpc_test_util - name: badreq_bad_client_test gtest: true @@ -5994,7 +5985,6 @@ targets: - test/core/end2end/cq_verifier.cc deps: - gtest - - absl/log:check - grpc_test_util - name: basic_work_queue_test gtest: true @@ -6103,7 +6093,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -6368,7 +6357,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -6610,7 +6598,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -6687,7 +6674,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -6751,7 +6737,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -6815,7 +6800,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -6879,7 +6863,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -6960,7 +6943,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -7039,7 +7021,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -7103,7 +7084,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -7439,7 +7419,6 @@ targets: - test/core/event_engine/cf/cf_engine_test.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -7464,7 +7443,6 @@ targets: - test/core/event_engine/test_suite/tests/timer_test.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -7845,7 +7823,6 @@ targets: - test/core/filters/filter_test.cc deps: - gtest - - absl/log:check - protobuf - grpc_test_util uses_polling: false @@ -7863,7 +7840,6 @@ targets: - test/core/filters/filter_test.cc deps: - gtest - - absl/log:check - protobuf - grpc_test_util uses_polling: false @@ -8058,7 +8034,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -8235,7 +8210,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -8273,7 +8247,6 @@ targets: - test/core/end2end/cq_verifier.cc deps: - gtest - - absl/log:check - grpc_test_util - name: connection_refused_test gtest: true @@ -8286,7 +8259,6 @@ targets: - test/core/end2end/cq_verifier.cc deps: - gtest - - absl/log:check - grpc_test_util - name: connectivity_state_test gtest: true @@ -8378,7 +8350,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -8473,7 +8444,6 @@ targets: - test/core/tsi/transport_security_test_lib.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -8549,7 +8519,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -8650,7 +8619,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -8708,7 +8676,6 @@ targets: - test/core/end2end/dualstack_socket_test.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -8727,7 +8694,6 @@ targets: - test/core/end2end/cq_verifier.cc deps: - gtest - - absl/log:check - grpc_test_util - name: empty_batch_test gtest: true @@ -8789,7 +8755,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -9472,7 +9437,6 @@ targets: - test/core/tsi/transport_security_test_lib.cc deps: - gtest - - absl/log:check - grpc_test_util - name: fd_posix_test gtest: true @@ -9579,7 +9543,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -9643,7 +9606,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -9707,7 +9669,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -9725,7 +9686,6 @@ targets: - test/core/filters/filter_test_test.cc deps: - gtest - - absl/log:check - grpc_unsecure - protobuf - grpc_test_util @@ -9790,7 +9750,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -10207,7 +10166,6 @@ targets: - test/core/event_engine/test_suite/tests/timer_test.cc deps: - gtest - - absl/log:check - protobuf - grpc_test_util platforms: @@ -10226,7 +10184,6 @@ targets: - test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine_unittest.cc deps: - gtest - - absl/log:check - protobuf - grpc_test_util - name: generic_end2end_test @@ -10255,7 +10212,6 @@ targets: - test/core/end2end/goaway_server_test.cc deps: - gtest - - absl/log:check - grpc_test_util - name: google_c2p_resolver_test gtest: true @@ -10329,7 +10285,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -10344,7 +10299,6 @@ targets: - test/core/transport/chttp2/graceful_shutdown_test.cc deps: - gtest - - absl/log:check - grpc_test_util - name: grpc_alts_credentials_options_test gtest: true @@ -10529,7 +10483,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -10695,7 +10648,6 @@ targets: - test/core/util/tracer_util.cc deps: - gtest - - absl/log:check - grpc_test_util - name: grpc_tls_certificate_provider_test gtest: true @@ -10726,7 +10678,6 @@ targets: - test/core/util/tracer_util.cc deps: - gtest - - absl/log:check - grpc_test_util - name: grpc_tls_certificate_verifier_test gtest: true @@ -10835,7 +10786,6 @@ targets: - test/core/tsi/transport_security_test_lib.cc deps: - gtest - - absl/log:check - protobuf - grpc_test_util - name: grpc_tool_test @@ -10937,7 +10887,6 @@ targets: - test/core/event_engine/event_engine_test_utils.cc deps: - gtest - - absl/log:check - grpc_test_util - name: h2_ssl_session_reuse_test gtest: true @@ -10950,7 +10899,6 @@ targets: - test/core/end2end/h2_ssl_session_reuse_test.cc deps: - gtest - - absl/log:check - grpc_test_util - name: h2_tls_peer_property_external_verifier_test gtest: true @@ -10963,7 +10911,6 @@ targets: - test/core/end2end/h2_tls_peer_property_external_verifier_test.cc deps: - gtest - - absl/log:check - grpc_test_util - name: handle_tests gtest: true @@ -11005,7 +10952,6 @@ targets: - test/core/end2end/cq_verifier.cc deps: - gtest - - absl/log:check - grpc_test_util - name: headers_bad_client_test gtest: true @@ -11020,7 +10966,6 @@ targets: - test/core/end2end/cq_verifier.cc deps: - gtest - - absl/log:check - grpc_test_util - name: health_service_end2end_test gtest: true @@ -11102,7 +11047,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -11301,7 +11245,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -11389,7 +11332,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -11522,7 +11464,6 @@ targets: - test/core/end2end/cq_verifier.cc deps: - gtest - - absl/log:check - grpc_test_util - name: inproc_test gtest: true @@ -11545,7 +11486,6 @@ targets: - test/core/transport/test_suite/test_main.cc deps: - gtest - - absl/log:check - protobuf - grpc_test_util platforms: @@ -12401,7 +12341,6 @@ targets: - test/core/end2end/invalid_call_argument_test.cc deps: - gtest - - absl/log:check - grpc_test_util - name: invoke_large_request_test gtest: true @@ -12463,7 +12402,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -12478,7 +12416,6 @@ targets: - test/core/event_engine/windows/iocp_test.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -12667,7 +12604,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -12682,7 +12618,6 @@ targets: - test/core/surface/lame_client_test.cc deps: - gtest - - absl/log:check - grpc_test_util - name: large_metadata_test gtest: true @@ -12744,7 +12679,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -13155,7 +13089,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -13219,7 +13152,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -13283,7 +13215,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -13347,7 +13278,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -13633,7 +13563,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -13709,7 +13638,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -13773,7 +13701,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -13788,7 +13715,6 @@ targets: - test/core/end2end/no_server_test.cc deps: - gtest - - absl/log:check - grpc_test_util - name: nonblocking_test gtest: true @@ -13878,7 +13804,6 @@ targets: - test/core/event_engine/test_suite/tests/server_test.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -13961,7 +13886,6 @@ targets: - test/core/end2end/cq_verifier.cc deps: - gtest - - absl/log:check - grpc_test_util - name: outlier_detection_lb_config_parser_test gtest: true @@ -13990,7 +13914,6 @@ targets: - test/core/load_balancing/outlier_detection_test.cc deps: - gtest - - absl/log:check - protobuf - grpc_test_util uses_polling: false @@ -14039,7 +13962,6 @@ targets: - test/core/transport/parsed_metadata_test.cc deps: - gtest - - absl/log:check - grpc_test_util - name: parser_test gtest: true @@ -14150,7 +14072,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -14271,7 +14192,6 @@ targets: - test/core/util/fake_stats_plugin.cc deps: - gtest - - absl/log:check - protobuf - grpc_test_util uses_polling: false @@ -14409,7 +14329,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -14504,7 +14423,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -14566,7 +14484,6 @@ targets: - test/core/event_engine/test_suite/posix/oracle_event_engine_posix.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -14601,7 +14518,6 @@ targets: - test/core/event_engine/test_suite/posix/oracle_event_engine_posix.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -14926,7 +14842,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -15185,7 +15100,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -15198,7 +15112,6 @@ targets: - test/core/transport/chttp2/remove_stream_from_stalled_lists_test.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -15264,7 +15177,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -15328,7 +15240,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -15544,7 +15455,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -15619,7 +15529,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -15683,7 +15592,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -15747,7 +15655,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -15811,7 +15718,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -15875,7 +15781,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -15939,7 +15844,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16003,7 +15907,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16067,7 +15970,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16131,7 +16033,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16195,7 +16096,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16259,7 +16159,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16323,7 +16222,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16387,7 +16285,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16451,7 +16348,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16515,7 +16411,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16579,7 +16474,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16643,7 +16537,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16707,7 +16600,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16771,7 +16663,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16835,7 +16726,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16899,7 +16789,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -16963,7 +16852,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -17027,7 +16915,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -17102,7 +16989,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -17166,7 +17052,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -17230,7 +17115,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -17294,7 +17178,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -17369,7 +17252,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -17433,7 +17315,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -17497,7 +17378,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -17561,7 +17441,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -17625,7 +17504,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -17689,7 +17567,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -17753,7 +17630,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -17772,7 +17648,6 @@ targets: - test/core/load_balancing/ring_hash_test.cc deps: - gtest - - absl/log:check - protobuf - grpc_test_util uses_polling: false @@ -17829,7 +17704,6 @@ targets: - test/core/load_balancing/round_robin_test.cc deps: - gtest - - absl/log:check - protobuf - grpc_test_util uses_polling: false @@ -18160,7 +18034,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -18195,7 +18068,6 @@ targets: - test/core/end2end/cq_verifier.cc deps: - gtest - - absl/log:check - grpc_test_util - name: server_request_call_test gtest: true @@ -18312,7 +18184,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -18382,7 +18253,6 @@ targets: - test/core/util/tracer_util.cc deps: - gtest - - absl/log:check - grpc_test_util - name: shutdown_finishes_calls_test gtest: true @@ -18444,7 +18314,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -18508,7 +18377,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -18587,7 +18455,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -18651,7 +18518,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -18668,7 +18534,6 @@ targets: - test/core/end2end/cq_verifier.cc deps: - gtest - - absl/log:check - grpc_test_util - name: simple_request_test gtest: true @@ -18730,7 +18595,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -18879,7 +18743,6 @@ targets: - test/core/tsi/transport_security_test_lib.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -18896,7 +18759,6 @@ targets: - test/core/tsi/transport_security_test_lib.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -19029,7 +18891,6 @@ targets: - test/core/transport/chttp2/stream_leak_with_queued_flow_control_update_test.cc deps: - gtest - - absl/log:check - grpc_test_util - name: streaming_error_response_test gtest: true @@ -19091,7 +18952,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -19145,7 +19005,6 @@ targets: - test/core/util/tracer_util.cc deps: - gtest - - absl/log:check - grpc_test_util - name: string_ref_test gtest: true @@ -19388,7 +19247,6 @@ targets: - test/cpp/util/channel_trace_proto_helper.cc deps: - gtest - - absl/log:check - grpc++ - grpc_test_util - name: test_core_end2end_channelz_test @@ -19451,7 +19309,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -19616,7 +19473,6 @@ targets: - test/core/util/tracer_util.cc deps: - gtest - - absl/log:check - grpc_test_util - name: test_core_security_ssl_credentials_test gtest: true @@ -19711,7 +19567,6 @@ targets: - test/core/transport/test_suite/test_main.cc deps: - gtest - - absl/log:check - protobuf - grpc_test_util platforms: @@ -19912,7 +19767,6 @@ targets: - test/core/event_engine/test_suite/thready_posix_event_engine_test.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -20005,7 +19859,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -20135,7 +19988,6 @@ targets: - test/core/util/tracer_util.cc deps: - gtest - - absl/log:check - grpc_test_util - name: too_many_pings_test gtest: true @@ -20160,7 +20012,6 @@ targets: - test/core/event_engine/posix/traced_buffer_list_test.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -20227,7 +20078,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -20446,7 +20296,6 @@ targets: - test/core/end2end/cq_verifier.cc deps: - gtest - - absl/log:check - grpc_test_util - name: uri_parser_test gtest: true @@ -20577,7 +20426,6 @@ targets: - test/core/util/fake_stats_plugin.cc deps: - gtest - - absl/log:check - protobuf - grpc_test_util uses_polling: false @@ -20592,7 +20440,6 @@ targets: - test/core/event_engine/windows/win_socket_test.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -20612,7 +20459,6 @@ targets: - test/core/end2end/cq_verifier.cc deps: - gtest - - absl/log:check - grpc_test_util - name: windows_endpoint_test gtest: true @@ -20625,7 +20471,6 @@ targets: - test/core/event_engine/windows/windows_endpoint_test.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -20862,7 +20707,6 @@ targets: - test/core/gprpp/work_serializer_test.cc deps: - gtest - - absl/log:check - grpc_test_util platforms: - linux @@ -20928,7 +20772,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -20992,7 +20835,6 @@ targets: - test/core/util/test_lb_policies.cc deps: - gtest - - absl/log:check - grpc_authorization_provider - grpc_unsecure - grpc_test_util @@ -21050,7 +20892,6 @@ targets: - test/cpp/performance/writes_per_rpc_test.cc deps: - gtest - - absl/log:check - grpc++ - grpc_test_util platforms: @@ -21092,7 +20933,6 @@ targets: - test/cpp/util/service_describer.cc deps: - gtest - - absl/log:check - grpc++ - protoc - grpc_test_util @@ -21323,7 +21163,6 @@ targets: - test/cpp/util/service_describer.cc deps: - gtest - - absl/log:check - grpc++ - protoc - grpc_test_util @@ -21737,7 +21576,6 @@ targets: - test/cpp/util/service_describer.cc deps: - gtest - - absl/log:check - grpc++ - protoc - grpc_test_util @@ -21780,7 +21618,6 @@ targets: - test/cpp/util/service_describer.cc deps: - gtest - - absl/log:check - grpc++ - protoc - grpc_test_util @@ -21828,7 +21665,6 @@ targets: - test/cpp/util/service_describer.cc deps: - gtest - - absl/log:check - grpc++ - protoc - grpc_test_util @@ -21978,7 +21814,6 @@ targets: - test/core/load_balancing/xds_override_host_test.cc deps: - gtest - - absl/log:check - protobuf - grpc_test_util uses_polling: false @@ -22203,7 +22038,6 @@ targets: - test/cpp/util/service_describer.cc deps: - gtest - - absl/log:check - grpc++ - protoc - grpc_test_util @@ -22290,7 +22124,6 @@ targets: - test/cpp/interop/xds_stats_watcher_test.cc deps: - gtest - - absl/log:check - grpc++_reflection - grpcpp_channelz - grpc_test_util diff --git a/test/core/util/BUILD b/test/core/util/BUILD index 5122f7d589f..6133152ccc4 100644 --- a/test/core/util/BUILD +++ b/test/core/util/BUILD @@ -81,6 +81,7 @@ grpc_cc_library( "tracer_util.h", ], external_deps = [ + "absl/log:check", "absl/status:statusor", "absl/strings", "absl/strings:str_format", @@ -118,6 +119,7 @@ grpc_cc_library( external_deps = [ "absl/base:core_headers", "absl/debugging:failure_signal_handler", + "absl/log:check", "absl/status", "absl/status:statusor", "absl/strings", @@ -163,6 +165,7 @@ grpc_cc_library( hdrs = TEST_UTILS_THAT_USE_GRPC_H_HEADERS, external_deps = [ "absl/debugging:failure_signal_handler", + "absl/log:check", "absl/status", "absl/status:statusor", "absl/strings", @@ -218,6 +221,7 @@ grpc_cc_library( srcs = ["fuzzer_corpus_test.cc"], external_deps = [ "absl/flags:flag", + "absl/log:check", "gtest", ], linkstatic = True, @@ -298,6 +302,7 @@ grpc_cc_library( srcs = ["test_lb_policies.cc"], hdrs = ["test_lb_policies.h"], external_deps = [ + "absl/log:check", "absl/status", "absl/status:statusor", "absl/strings", @@ -336,6 +341,7 @@ grpc_cc_library( srcs = ["fake_udp_and_tcp_server.cc"], hdrs = ["fake_udp_and_tcp_server.h"], external_deps = [ + "absl/log:check", "absl/status:statusor", "absl/strings", ], @@ -500,6 +506,7 @@ grpc_cc_library( external_deps = [ "absl/container:flat_hash_map", "absl/functional:any_invocable", + "absl/log:check", "absl/status", "absl/strings", "absl/types:optional", diff --git a/test/core/util/cmdline.cc b/test/core/util/cmdline.cc index c1e34992af5..f4c079bdac0 100644 --- a/test/core/util/cmdline.cc +++ b/test/core/util/cmdline.cc @@ -26,6 +26,7 @@ #include #include +#include "absl/log/check.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" @@ -90,7 +91,7 @@ static void add_arg(gpr_cmdline* cl, const char* name, const char* help, arg* a; for (a = cl->args; a; a = a->next) { - GPR_ASSERT(0 != strcmp(a->name, name)); + CHECK_NE(strcmp(a->name, name), 0); } a = static_cast(gpr_zalloc(sizeof(arg))); @@ -120,8 +121,8 @@ void gpr_cmdline_add_string(gpr_cmdline* cl, const char* name, const char* help, void gpr_cmdline_on_extra_arg( gpr_cmdline* cl, const char* name, const char* help, void (*on_extra_arg)(void* user_data, const char* arg), void* user_data) { - GPR_ASSERT(!cl->extra_arg); - GPR_ASSERT(on_extra_arg); + CHECK(!cl->extra_arg); + CHECK(on_extra_arg); cl->extra_arg = on_extra_arg; cl->extra_arg_user_data = user_data; @@ -203,7 +204,7 @@ static int value_state(gpr_cmdline* cl, char* str) { long intval; char* end; - GPR_ASSERT(cl->cur_arg); + CHECK(cl->cur_arg); switch (cl->cur_arg->type) { case ARGTYPE_INT: @@ -309,7 +310,7 @@ static int normal_state(gpr_cmdline* cl, char* str) { int gpr_cmdline_parse(gpr_cmdline* cl, int argc, char** argv) { int i; - GPR_ASSERT(argc >= 1); + CHECK_GE(argc, 1); cl->argv0 = argv[0]; for (i = 1; i < argc; i++) { diff --git a/test/core/util/fake_stats_plugin.cc b/test/core/util/fake_stats_plugin.cc index 00055d06d94..f858327b98d 100644 --- a/test/core/util/fake_stats_plugin.cc +++ b/test/core/util/fake_stats_plugin.cc @@ -14,6 +14,8 @@ #include "test/core/util/fake_stats_plugin.h" +#include "absl/log/check.h" + #include "src/core/lib/config/core_configuration.h" namespace grpc_core { @@ -45,7 +47,7 @@ FakeStatsClientFilter::Create(const ChannelArgs& args, auto* fake_client_call_tracer_factory = args.GetPointer( GRPC_ARG_INJECT_FAKE_CLIENT_CALL_TRACER_FACTORY); - GPR_ASSERT(fake_client_call_tracer_factory != nullptr); + CHECK_NE(fake_client_call_tracer_factory, nullptr); return std::make_unique( fake_client_call_tracer_factory); } @@ -87,7 +89,7 @@ namespace { void AddKeyValuePairs(absl::Span keys, absl::Span values, std::vector* key_value_pairs) { - GPR_ASSERT(keys.size() == values.size()); + CHECK(keys.size() == values.size()); for (size_t i = 0; i < keys.size(); ++i) { key_value_pairs->push_back(absl::StrCat(keys[i], "=", values[i])); } diff --git a/test/core/util/fake_udp_and_tcp_server.cc b/test/core/util/fake_udp_and_tcp_server.cc index 46e49d947b3..a76682db668 100644 --- a/test/core/util/fake_udp_and_tcp_server.cc +++ b/test/core/util/fake_udp_and_tcp_server.cc @@ -23,6 +23,7 @@ #include #include +#include "absl/log/check.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" @@ -78,13 +79,13 @@ FakeUdpAndTcpServer::FakeUdpAndTcpServer( udp_socket_ = socket(AF_INET6, SOCK_DGRAM, 0); if (udp_socket_ == BAD_SOCKET_RETURN_VAL) { gpr_log(GPR_ERROR, "Failed to create UDP ipv6 socket: %d", ERRNO); - GPR_ASSERT(0); + CHECK(0); } accept_socket_ = socket(AF_INET6, SOCK_STREAM, 0); address_ = absl::StrCat("[::1]:", port_); if (accept_socket_ == BAD_SOCKET_RETURN_VAL) { gpr_log(GPR_ERROR, "Failed to create TCP IPv6 socket: %d", ERRNO); - GPR_ASSERT(0); + CHECK(0); } #ifdef GPR_WINDOWS char val = 1; @@ -94,35 +95,35 @@ FakeUdpAndTcpServer::FakeUdpAndTcpServer( "Failed to set SO_REUSEADDR on TCP ipv6 socket to [::1]:%d, " "errno: %d", port_, ERRNO); - GPR_ASSERT(0); + CHECK(0); } grpc_error_handle set_non_block_error; set_non_block_error = grpc_tcp_set_non_block(udp_socket_); if (!set_non_block_error.ok()) { gpr_log(GPR_ERROR, "Failed to configure non-blocking socket: %s", StatusToString(set_non_block_error).c_str()); - GPR_ASSERT(0); + CHECK(0); } set_non_block_error = grpc_tcp_set_non_block(accept_socket_); if (!set_non_block_error.ok()) { gpr_log(GPR_ERROR, "Failed to configure non-blocking socket: %s", StatusToString(set_non_block_error).c_str()); - GPR_ASSERT(0); + CHECK(0); } #else int val = 1; if (setsockopt(accept_socket_, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)) != 0) { gpr_log(GPR_ERROR, "Failed to set SO_REUSEADDR on socket [::1]:%d", port_); - GPR_ASSERT(0); + CHECK(0); } if (fcntl(udp_socket_, F_SETFL, O_NONBLOCK) != 0) { gpr_log(GPR_ERROR, "Failed to set O_NONBLOCK on socket: %d", ERRNO); - GPR_ASSERT(0); + CHECK(0); } if (fcntl(accept_socket_, F_SETFL, O_NONBLOCK) != 0) { gpr_log(GPR_ERROR, "Failed to set O_NONBLOCK on socket: %d", ERRNO); - GPR_ASSERT(0); + CHECK(0); } #endif sockaddr_in6 addr; @@ -139,18 +140,18 @@ FakeUdpAndTcpServer::FakeUdpAndTcpServer( if (bind(udp_socket_, reinterpret_cast(&addr), sizeof(addr)) != 0) { gpr_log(GPR_ERROR, "Failed to bind UDP socket to [::1]:%d", port_); - GPR_ASSERT(0); + CHECK(0); } if (bind(accept_socket_, reinterpret_cast(&addr), sizeof(addr)) != 0) { gpr_log(GPR_ERROR, "Failed to bind TCP socket to [::1]:%d : %d", port_, ERRNO); - GPR_ASSERT(0); + CHECK(0); } if (listen(accept_socket_, 100)) { gpr_log(GPR_ERROR, "Failed to listen on socket bound to [::1]:%d : %d", port_, ERRNO); - GPR_ASSERT(0); + CHECK(0); } gpr_event_init(&stop_ev_); run_server_loop_thd_ = std::make_unique( @@ -176,7 +177,7 @@ FakeUdpAndTcpServer::CloseSocketUponReceivingBytesFromPeer( if (bytes_received_size < 0 && !ErrorIsRetryable(read_error)) { gpr_log(GPR_ERROR, "Failed to receive from peer socket: %d. errno: %d", s, read_error); - GPR_ASSERT(0); + CHECK(0); } if (bytes_received_size >= 0) { gpr_log(GPR_DEBUG, @@ -195,7 +196,7 @@ FakeUdpAndTcpServer::CloseSocketUponCloseFromPeer(int bytes_received_size, if (bytes_received_size < 0 && !ErrorIsRetryable(read_error)) { gpr_log(GPR_ERROR, "Failed to receive from peer socket: %d. errno: %d", s, read_error); - GPR_ASSERT(0); + CHECK(0); } if (bytes_received_size == 0) { // The peer has shut down the connection. @@ -215,7 +216,7 @@ FakeUdpAndTcpServer::SendThreeAllZeroBytes(int bytes_received_size, if (bytes_received_size < 0 && !ErrorIsRetryable(read_error)) { gpr_log(GPR_ERROR, "Failed to receive from peer socket: %d. errno: %d", s, read_error); - GPR_ASSERT(0); + CHECK(0); } if (bytes_received_size == 0) { // The peer has shut down the connection. @@ -257,10 +258,10 @@ void FakeUdpAndTcpServer::FakeUdpAndTcpServerPeer:: "Fake TCP server encountered unexpected error:%d " "sending %d bytes on fd:%d", ERRNO, bytes_to_send, fd_); - GPR_ASSERT(0); + CHECK(0); } else if (bytes_sent > 0) { total_bytes_sent_ += bytes_sent; - GPR_ASSERT(total_bytes_sent_ <= int(kEmptyHttp2SettingsFrame.size())); + CHECK(total_bytes_sent_ <= int(kEmptyHttp2SettingsFrame.size())); } } } @@ -283,13 +284,13 @@ void FakeUdpAndTcpServer::RunServerLoop() { if (!set_non_block_error.ok()) { gpr_log(GPR_ERROR, "Failed to configure non-blocking socket: %s", StatusToString(set_non_block_error).c_str()); - GPR_ASSERT(0); + CHECK(0); } #else if (fcntl(p, F_SETFL, O_NONBLOCK) != 0) { gpr_log(GPR_ERROR, "Failed to configure non-blocking socket, errno: %d", ERRNO); - GPR_ASSERT(0); + CHECK(0); } #endif peers.insert(std::make_unique(p)); @@ -307,8 +308,7 @@ void FakeUdpAndTcpServer::RunServerLoop() { if (r == FakeUdpAndTcpServer::ProcessReadResult::kCloseSocket) { it = peers.erase(it); } else { - GPR_ASSERT(r == - FakeUdpAndTcpServer::ProcessReadResult::kContinueReading); + CHECK(r == FakeUdpAndTcpServer::ProcessReadResult::kContinueReading); it++; } } diff --git a/test/core/util/fuzzer_corpus_test.cc b/test/core/util/fuzzer_corpus_test.cc index e4b66f31443..e789fab7529 100644 --- a/test/core/util/fuzzer_corpus_test.cc +++ b/test/core/util/fuzzer_corpus_test.cc @@ -27,6 +27,7 @@ #include #include "absl/flags/flag.h" +#include "absl/log/check.h" #include "absl/types/optional.h" #include "gtest/gtest.h" @@ -109,7 +110,7 @@ class ExampleGenerator } // Make sure we don't succeed without doing anything, which caused // us to be blind to our fuzzers not running for 9 months. - GPR_ASSERT(!examples_.empty()); + CHECK(!examples_.empty()); // Get a consistent ordering of examples so problems don't just show up on // CI std::sort(examples_.begin(), examples_.end()); diff --git a/test/core/util/histogram.cc b/test/core/util/histogram.cc index 64165f7b0a9..670fd4dea30 100644 --- a/test/core/util/histogram.cc +++ b/test/core/util/histogram.cc @@ -21,6 +21,8 @@ #include #include +#include "absl/log/check.h" + #include #include #include @@ -63,7 +65,7 @@ static size_t bucket_for_unchecked(grpc_histogram* h, double x) { static size_t bucket_for(grpc_histogram* h, double x) { size_t bucket = bucket_for_unchecked(h, grpc_core::Clamp(x, 1.0, h->max_possible)); - GPR_ASSERT(bucket < h->num_buckets); + CHECK(bucket < h->num_buckets); return bucket; } @@ -76,8 +78,8 @@ grpc_histogram* grpc_histogram_create(double resolution, double max_bucket_start) { grpc_histogram* h = static_cast(gpr_malloc(sizeof(grpc_histogram))); - GPR_ASSERT(resolution > 0.0); - GPR_ASSERT(max_bucket_start > resolution); + CHECK(resolution > 0.0); + CHECK(max_bucket_start > resolution); h->sum = 0.0; h->sum_of_squares = 0.0; h->multiplier = 1.0 + resolution; @@ -87,8 +89,8 @@ grpc_histogram* grpc_histogram_create(double resolution, h->min_seen = max_bucket_start; h->max_seen = 0.0; h->num_buckets = bucket_for_unchecked(h, max_bucket_start) + 1; - GPR_ASSERT(h->num_buckets > 1); - GPR_ASSERT(h->num_buckets < 100000000); + CHECK_GT(h->num_buckets, 1u); + CHECK_LT(h->num_buckets, 100000000ul); h->buckets = static_cast(gpr_zalloc(sizeof(uint32_t) * h->num_buckets)); return h; @@ -129,7 +131,7 @@ void grpc_histogram_merge_contents(grpc_histogram* histogram, double min_seen, double max_seen, double sum, double sum_of_squares, double count) { size_t i; - GPR_ASSERT(histogram->num_buckets == data_count); + CHECK(histogram->num_buckets == data_count); histogram->sum += sum; histogram->sum_of_squares += sum_of_squares; histogram->count += count; @@ -198,7 +200,7 @@ double grpc_histogram_percentile(grpc_histogram* h, double percentile) { } double grpc_histogram_mean(grpc_histogram* h) { - GPR_ASSERT(h->count != 0); + CHECK_NE(h->count, 0); return h->sum / h->count; } diff --git a/test/core/util/mock_endpoint.cc b/test/core/util/mock_endpoint.cc index d432c3d8778..fe849958ef4 100644 --- a/test/core/util/mock_endpoint.cc +++ b/test/core/util/mock_endpoint.cc @@ -18,6 +18,7 @@ #include "test/core/util/mock_endpoint.h" +#include "absl/log/check.h" #include "absl/status/status.h" #include "absl/strings/string_view.h" @@ -153,7 +154,7 @@ grpc_endpoint* grpc_mock_endpoint_create(void (*on_write)(grpc_slice slice)) { void grpc_mock_endpoint_put_read(grpc_endpoint* ep, grpc_slice slice) { mock_endpoint* m = reinterpret_cast(ep); gpr_mu_lock(&m->mu); - GPR_ASSERT(!m->put_reads_done); + CHECK(!m->put_reads_done); if (m->on_read != nullptr) { grpc_slice_buffer_add(m->on_read_out, slice); grpc_core::ExecCtx::Run(DEBUG_LOCATION, m->on_read, absl::OkStatus()); diff --git a/test/core/util/one_corpus_entry_fuzzer.cc b/test/core/util/one_corpus_entry_fuzzer.cc index 85276c31aef..596e5fd093b 100644 --- a/test/core/util/one_corpus_entry_fuzzer.cc +++ b/test/core/util/one_corpus_entry_fuzzer.cc @@ -18,6 +18,8 @@ #include +#include "absl/log/check.h" + #include #include @@ -33,7 +35,7 @@ extern bool leak_check; int main(int argc, char** argv) { squelch = false; leak_check = false; - GPR_ASSERT(argc > 1); // Make sure that we have a filename argument + CHECK_GT(argc, 1); // Make sure that we have a filename argument std::string buffer = grpc_core::testing::GetFileContents(argv[1]); LLVMFuzzerTestOneInput(buffer.data(), buffer.size()); return 0; diff --git a/test/core/util/parse_hexstring.cc b/test/core/util/parse_hexstring.cc index 5fb5876f35c..ecc715454c9 100644 --- a/test/core/util/parse_hexstring.cc +++ b/test/core/util/parse_hexstring.cc @@ -21,6 +21,8 @@ #include #include +#include "absl/log/check.h" + #include #include @@ -35,7 +37,7 @@ Slice ParseHexstring(absl::string_view hexstring) { nibbles += (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f'); } - GPR_ASSERT((nibbles & 1) == 0); + CHECK_EQ((nibbles & 1), 0u); slice = grpc_slice_malloc(nibbles / 2); out = GRPC_SLICE_START_PTR(slice); diff --git a/test/core/util/port.cc b/test/core/util/port.cc index 26225ac7701..a941720801f 100644 --- a/test/core/util/port.cc +++ b/test/core/util/port.cc @@ -23,6 +23,8 @@ #include +#include "absl/log/check.h" + #include #include #include @@ -49,7 +51,7 @@ static int free_chosen_port_locked(int port) { // freed. for (i = 0; i < num_chosen_ports; i++) { if (chosen_ports[i] == port) { - GPR_ASSERT(found == 0); + CHECK_EQ(found, 0); found = 1; found_at = i; } @@ -110,7 +112,7 @@ static int grpc_pick_unused_port_or_die_impl(void) { static void grpc_recycle_unused_port_impl(int port) { gpr_once_init(&g_default_port_picker_init, init_default_port_picker); grpc_core::MutexLock lock(g_default_port_picker_mu); - GPR_ASSERT(free_chosen_port_locked(port)); + CHECK(free_chosen_port_locked(port)); } namespace { @@ -131,7 +133,7 @@ void grpc_recycle_unused_port(int port) { grpc_pick_port_functions grpc_set_pick_port_functions( grpc_pick_port_functions new_functions) { - GPR_ASSERT(new_functions.pick_unused_port_or_die_fn != nullptr); - GPR_ASSERT(new_functions.recycle_unused_port_fn != nullptr); + CHECK_NE(new_functions.pick_unused_port_or_die_fn, nullptr); + CHECK_NE(new_functions.recycle_unused_port_fn, nullptr); return std::exchange(functions(), new_functions); } diff --git a/test/core/util/port_isolated_runtime_environment.cc b/test/core/util/port_isolated_runtime_environment.cc index a13dbb1531e..ac4fd8e1292 100644 --- a/test/core/util/port_isolated_runtime_environment.cc +++ b/test/core/util/port_isolated_runtime_environment.cc @@ -24,6 +24,8 @@ // #include +#include "absl/log/check.h" + #include #include #include @@ -49,7 +51,7 @@ static gpr_atm s_pick_counter = 0; static int grpc_pick_unused_port_or_die_impl(void) { int orig_counter_val = static_cast(gpr_atm_full_fetch_add(&s_pick_counter, 1)); - GPR_ASSERT(orig_counter_val < (MAX_PORT - MIN_PORT + 1)); + CHECK(orig_counter_val < (MAX_PORT - MIN_PORT + 1)); return MIN_PORT + (s_initial_offset + orig_counter_val) % (MAX_PORT - MIN_PORT + 1); } diff --git a/test/core/util/port_server_client.cc b/test/core/util/port_server_client.cc index fd651bc29a7..02d1aa861ad 100644 --- a/test/core/util/port_server_client.cc +++ b/test/core/util/port_server_client.cc @@ -27,6 +27,7 @@ #include #include +#include "absl/log/check.h" #include "absl/status/statusor.h" #include "absl/strings/str_format.h" @@ -101,7 +102,7 @@ void grpc_free_port_using_server(int port) { std::string path = absl::StrFormat("/drop/%d", port); auto uri = grpc_core::URI::Create("https", GRPC_PORT_SERVER_ADDRESS, path, {} /* query params */, "" /* fragment */); - GPR_ASSERT(uri.ok()); + CHECK_OK(uri); auto http_request = grpc_core::HttpRequest::Get( std::move(*uri), nullptr /* channel args */, &pr.pops, &req, grpc_core::Timestamp::Now() + grpc_core::Duration::Seconds(30), @@ -173,7 +174,7 @@ static void got_port_from_server(void* arg, grpc_error_handle error) { gpr_mu_unlock(pr->mu); return; } - GPR_ASSERT(pr->retries < 10); + CHECK(pr->retries < 10); gpr_sleep_until(gpr_time_add( gpr_now(GPR_CLOCK_REALTIME), gpr_time_from_millis( @@ -185,7 +186,7 @@ static void got_port_from_server(void* arg, grpc_error_handle error) { pr->response = {}; auto uri = grpc_core::URI::Create("http", pr->server, "/get", {} /* query params */, "" /* fragment */); - GPR_ASSERT(uri.ok()); + CHECK_OK(uri); pr->http_request = grpc_core::HttpRequest::Get( std::move(*uri), nullptr /* channel args */, &pr->pops, &req, grpc_core::Timestamp::Now() + grpc_core::Duration::Seconds(30), @@ -197,13 +198,14 @@ static void got_port_from_server(void* arg, grpc_error_handle error) { pr->http_request->Start(); return; } - GPR_ASSERT(response); - GPR_ASSERT(response->status == 200); + CHECK(response); + CHECK_EQ(response->status, 200); for (i = 0; i < response->body_length; i++) { - GPR_ASSERT(response->body[i] >= '0' && response->body[i] <= '9'); + CHECK(response->body[i] >= '0'); + CHECK(response->body[i] <= '9'); port = port * 10 + response->body[i] - '0'; } - GPR_ASSERT(port > 1024); + CHECK(port > 1024); gpr_mu_lock(pr->mu); pr->port = port; GRPC_LOG_IF_ERROR( @@ -232,7 +234,7 @@ int grpc_pick_port_using_server(void) { pr.server = const_cast(GRPC_PORT_SERVER_ADDRESS); auto uri = grpc_core::URI::Create("http", GRPC_PORT_SERVER_ADDRESS, "/get", {} /* query params */, "" /* fragment */); - GPR_ASSERT(uri.ok()); + CHECK_OK(uri); auto http_request = grpc_core::HttpRequest::Get( std::move(*uri), nullptr /* channel args */, &pr.pops, &req, grpc_core::Timestamp::Now() + grpc_core::Duration::Seconds(30), diff --git a/test/core/util/resolve_localhost_ip46.cc b/test/core/util/resolve_localhost_ip46.cc index 1607418f879..f8757dc538f 100644 --- a/test/core/util/resolve_localhost_ip46.cc +++ b/test/core/util/resolve_localhost_ip46.cc @@ -21,6 +21,7 @@ #include #include +#include "absl/log/check.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" @@ -41,7 +42,7 @@ gpr_once g_resolve_localhost_ipv46 = GPR_ONCE_INIT; void InitResolveLocalhost() { absl::StatusOr> addresses_or = GetDNSResolver()->LookupHostnameBlocking("localhost", "https"); - GPR_ASSERT(addresses_or.ok()); + CHECK_OK(addresses_or); for (const auto& addr : *addresses_or) { const grpc_sockaddr* sock_addr = reinterpret_cast(&addr); diff --git a/test/core/util/test_lb_policies.cc b/test/core/util/test_lb_policies.cc index 0f4f6908e8e..bbd7517d837 100644 --- a/test/core/util/test_lb_policies.cc +++ b/test/core/util/test_lb_policies.cc @@ -21,6 +21,7 @@ #include #include +#include "absl/log/check.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" #include "absl/types/variant.h" @@ -83,7 +84,7 @@ class ForwardingLoadBalancingPolicy : public LoadBalancingPolicy { CoreConfiguration::Get().lb_policy_registry().ParseLoadBalancingConfig( Json::FromArray({Json::FromObject( {{std::string(delegate_->name()), Json::FromObject({})}})})); - GPR_ASSERT(config.ok()); + CHECK_OK(config); args.config = *config; return delegate_->UpdateLocked(std::move(args)); } @@ -417,7 +418,7 @@ class FixedAddressLoadBalancingPolicy : public ForwardingLoadBalancingPolicy { EndpointAddressesList addresses; if (uri.ok()) { grpc_resolved_address address; - GPR_ASSERT(grpc_parse_uri(*uri, &address)); + CHECK(grpc_parse_uri(*uri, &address)); addresses.emplace_back(address, ChannelArgs()); } else { gpr_log(GPR_ERROR, diff --git a/test/core/util/test_tcp_server.cc b/test/core/util/test_tcp_server.cc index 78d28a38b6c..6e521f3223e 100644 --- a/test/core/util/test_tcp_server.cc +++ b/test/core/util/test_tcp_server.cc @@ -23,6 +23,8 @@ #include +#include "absl/log/check.h" + #include #include #include @@ -82,11 +84,11 @@ void test_tcp_server_start(test_tcp_server* server, int port) { &server->shutdown_complete, grpc_event_engine::experimental::ChannelArgsEndpointConfig(args), server->on_connect, server->cb_data, &server->tcp_server); - GPR_ASSERT(error.ok()); + CHECK_OK(error); error = grpc_tcp_server_add_port(server->tcp_server, &resolved_addr, &port_added); - GPR_ASSERT(error.ok()); - GPR_ASSERT(port_added == port); + CHECK_OK(error); + CHECK(port_added == port); grpc_tcp_server_start(server->tcp_server, &server->pollset); gpr_log(GPR_INFO, "test tcp server listening on 0.0.0.0:%d", port); diff --git a/test/core/util/tls_utils.cc b/test/core/util/tls_utils.cc index f25a6911304..43214bf1ed1 100644 --- a/test/core/util/tls_utils.cc +++ b/test/core/util/tls_utils.cc @@ -17,6 +17,7 @@ #include +#include "absl/log/check.h" #include "absl/strings/str_cat.h" #include @@ -37,34 +38,33 @@ namespace testing { TmpFile::TmpFile(absl::string_view data) { name_ = CreateTmpFileAndWriteData(data); - GPR_ASSERT(!name_.empty()); + CHECK(!name_.empty()); } -TmpFile::~TmpFile() { GPR_ASSERT(remove(name_.c_str()) == 0); } +TmpFile::~TmpFile() { CHECK_EQ(remove(name_.c_str()), 0); } void TmpFile::RewriteFile(absl::string_view data) { // Create a new file containing new data. std::string new_name = CreateTmpFileAndWriteData(data); - GPR_ASSERT(!new_name.empty()); + CHECK(!new_name.empty()); #ifdef GPR_WINDOWS // Remove the old file. // On Windows rename requires that the new name not exist, whereas // on posix systems rename does an atomic replacement of the new // name. - GPR_ASSERT(remove(name_.c_str()) == 0); + CHECK_EQ(remove(name_.c_str()), 0); #endif // Rename the new file to the original name. - GPR_ASSERT(rename(new_name.c_str(), name_.c_str()) == 0); + CHECK_EQ(rename(new_name.c_str(), name_.c_str()), 0); } std::string TmpFile::CreateTmpFileAndWriteData(absl::string_view data) { char* name = nullptr; FILE* file_descriptor = gpr_tmpfile("test", &name); - GPR_ASSERT(fwrite(data.data(), 1, data.size(), file_descriptor) == - data.size()); - GPR_ASSERT(fclose(file_descriptor) == 0); - GPR_ASSERT(file_descriptor != nullptr); - GPR_ASSERT(name != nullptr); + CHECK(fwrite(data.data(), 1, data.size(), file_descriptor) == data.size()); + CHECK_EQ(fclose(file_descriptor), 0); + CHECK_NE(file_descriptor, nullptr); + CHECK_NE(name, nullptr); std::string name_to_return = name; gpr_free(name); return name_to_return;