grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging GPR_ASSERT (#36326)

grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging GPR_ASSERT
Replacing GPR_ASSERT with absl CHECK

Will not be replacing CHECK with CHECK_EQ , CHECK_NE etc because there are too many callsites. Only a few - which fit into single - line regex will be changed. This would be small in number just to reduce the load later.

Replacing CHECK with CHECK_EQ , CHECK_NE etc could be done using Cider-V once these changes are submitted if we want to clean up later. Given that we have 5000+ instances of GPR_ASSERT to edit, Doing it manually is too much work for both the author and reviewer.

<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #36326

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36326 from tanvi-jagtap:tjagtap_gpr_assert_event_eng bfe99bec63
PiperOrigin-RevId: 624038836
pull/36336/head
Tanvi Jagtap 11 months ago committed by Copybara-Service
parent e5131b5243
commit fadf1bbd9b
  1. 124
      CMakeLists.txt
  2. 124
      build_autogenerated.yaml
  3. 7
      test/core/event_engine/BUILD
  4. 10
      test/core/event_engine/cf/BUILD
  5. 5
      test/core/event_engine/cf/cf_engine_test.cc
  6. 19
      test/core/event_engine/event_engine_test_utils.cc
  7. 1
      test/core/event_engine/fuzzing_event_engine/BUILD
  8. 23
      test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.cc
  9. 20
      test/core/event_engine/posix/BUILD
  10. 5
      test/core/event_engine/posix/posix_endpoint_test.cc
  11. 5
      test/core/event_engine/posix/posix_event_engine_connect_test.cc
  12. 5
      test/core/event_engine/posix/timer_heap_test.cc
  13. 3
      test/core/event_engine/posix/traced_buffer_list_test.cc
  14. 3
      test/core/event_engine/slice_buffer_test.cc
  15. 5
      test/core/event_engine/tcp_socket_utils_test.cc
  16. 5
      test/core/event_engine/test_suite/BUILD
  17. 5
      test/core/event_engine/test_suite/event_engine_test_framework.h
  18. 1
      test/core/event_engine/test_suite/posix/BUILD
  19. 19
      test/core/event_engine/test_suite/posix/oracle_event_engine_posix.cc
  20. 1
      test/core/event_engine/test_suite/tests/BUILD
  21. 3
      test/core/event_engine/test_suite/tests/client_test.cc
  22. 3
      test/core/event_engine/test_suite/tests/server_test.cc
  23. 3
      test/core/event_engine/test_suite/tools/BUILD
  24. 8
      test/core/event_engine/test_suite/tools/echo_client.cc
  25. 3
      test/core/event_engine/test_suite/tools/posix_event_engine_factory.cc
  26. 3
      test/core/event_engine/test_suite/tools/windows_event_engine_factory.cc
  27. 5
      test/core/event_engine/windows/BUILD
  28. 14
      test/core/event_engine/windows/create_sockpair.cc

124
CMakeLists.txt generated

@ -7558,6 +7558,7 @@ 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
@ -8034,6 +8035,7 @@ 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
@ -8477,6 +8479,7 @@ 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
@ -8682,6 +8685,7 @@ 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
@ -8788,6 +8792,7 @@ 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
@ -8851,6 +8856,7 @@ 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
@ -8914,6 +8920,7 @@ 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
@ -8977,6 +8984,7 @@ 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
@ -9087,6 +9095,7 @@ 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
@ -9192,6 +9201,7 @@ 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
@ -9255,6 +9265,7 @@ 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
@ -9524,6 +9535,7 @@ 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
)
@ -9573,6 +9585,7 @@ 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
)
@ -10358,6 +10371,7 @@ 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
)
@ -10407,6 +10421,7 @@ 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
)
@ -10905,6 +10920,7 @@ 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
@ -11244,6 +11260,7 @@ 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
@ -11529,6 +11546,7 @@ target_include_directories(connectivity_test
target_link_libraries(connectivity_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::check
grpc_authorization_provider
grpc_unsecure
grpc_test_util
@ -11960,6 +11978,7 @@ 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
@ -12169,6 +12188,7 @@ 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
@ -12489,6 +12509,7 @@ 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
@ -13871,6 +13892,7 @@ 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
@ -13934,6 +13956,7 @@ 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
@ -13997,6 +14020,7 @@ 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
@ -14047,6 +14071,7 @@ 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
@ -14110,6 +14135,7 @@ 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
@ -14636,6 +14662,7 @@ 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
)
@ -14685,6 +14712,7 @@ 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
)
@ -14897,6 +14925,7 @@ 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
@ -15265,6 +15294,7 @@ 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
@ -16026,6 +16056,7 @@ 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
)
@ -16267,6 +16298,7 @@ target_include_directories(h2_ssl_cert_test
target_link_libraries(h2_ssl_cert_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::check
grpc_test_util
)
@ -16659,6 +16691,7 @@ 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
@ -16968,6 +17001,7 @@ 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
@ -17125,6 +17159,7 @@ 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
@ -17577,6 +17612,7 @@ 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
)
@ -18019,6 +18055,7 @@ 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
@ -18065,6 +18102,7 @@ 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
)
@ -18408,6 +18446,7 @@ 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
@ -18514,6 +18553,7 @@ 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
@ -19185,6 +19225,7 @@ 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
@ -19248,6 +19289,7 @@ 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
@ -19311,6 +19353,7 @@ 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
@ -19374,6 +19417,7 @@ 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
@ -20057,6 +20101,7 @@ 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
@ -20152,6 +20197,7 @@ 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
@ -20215,6 +20261,7 @@ 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
@ -20497,6 +20544,7 @@ 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
)
@ -20827,6 +20875,7 @@ target_include_directories(outlier_detection_test
target_link_libraries(outlier_detection_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::check
${_gRPC_PROTOBUF_LIBRARIES}
grpc_test_util
)
@ -21146,6 +21195,7 @@ target_include_directories(payload_test
target_link_libraries(payload_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::check
grpc_authorization_provider
grpc_unsecure
grpc_test_util
@ -21313,6 +21363,7 @@ target_include_directories(pick_first_test
target_link_libraries(pick_first_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::check
${_gRPC_PROTOBUF_LIBRARIES}
grpc_test_util
)
@ -21519,6 +21570,7 @@ 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
@ -21633,6 +21685,7 @@ target_include_directories(ping_test
target_link_libraries(ping_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::check
grpc_authorization_provider
grpc_unsecure
grpc_test_util
@ -21826,6 +21879,7 @@ 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
)
@ -21917,6 +21971,7 @@ 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
)
@ -21969,6 +22024,7 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX)
target_link_libraries(posix_event_engine_native_dns_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::check
grpc++_test_util
)
@ -22024,6 +22080,7 @@ if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_POSIX)
target_link_libraries(posix_event_engine_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::check
grpc++_test_util
)
@ -22629,6 +22686,7 @@ 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
@ -23208,6 +23266,7 @@ 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
@ -23316,6 +23375,7 @@ 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
@ -23379,6 +23439,7 @@ 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
@ -23713,6 +23774,7 @@ 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
@ -23818,6 +23880,7 @@ 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
@ -23881,6 +23944,7 @@ 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
@ -23944,6 +24008,7 @@ 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
@ -24007,6 +24072,7 @@ 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
@ -24070,6 +24136,7 @@ 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
@ -24133,6 +24200,7 @@ 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
@ -24196,6 +24264,7 @@ 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
@ -24259,6 +24328,7 @@ 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
@ -24322,6 +24392,7 @@ 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
@ -24385,6 +24456,7 @@ 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
@ -24448,6 +24520,7 @@ 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
@ -24511,6 +24584,7 @@ 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
@ -24574,6 +24648,7 @@ 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
@ -24637,6 +24712,7 @@ 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
@ -24700,6 +24776,7 @@ 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
@ -24763,6 +24840,7 @@ 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
@ -24826,6 +24904,7 @@ 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
@ -24889,6 +24968,7 @@ 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
@ -24952,6 +25032,7 @@ 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
@ -25015,6 +25096,7 @@ 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
@ -25078,6 +25160,7 @@ 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
@ -25141,6 +25224,7 @@ 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
@ -25204,6 +25288,7 @@ 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
@ -25309,6 +25394,7 @@ 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
@ -25372,6 +25458,7 @@ 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
@ -25435,6 +25522,7 @@ 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
@ -25498,6 +25586,7 @@ target_include_directories(retry_test
target_link_libraries(retry_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::check
grpc_authorization_provider
grpc_unsecure
grpc_test_util
@ -25603,6 +25692,7 @@ 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
@ -25666,6 +25756,7 @@ 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
@ -25729,6 +25820,7 @@ 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
@ -25792,6 +25884,7 @@ 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
@ -25855,6 +25948,7 @@ 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
@ -25918,6 +26012,7 @@ 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
@ -25981,6 +26076,7 @@ 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
@ -26031,6 +26127,7 @@ target_include_directories(ring_hash_test
target_link_libraries(ring_hash_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::check
${_gRPC_PROTOBUF_LIBRARIES}
grpc_test_util
)
@ -26195,6 +26292,7 @@ target_include_directories(round_robin_test
target_link_libraries(round_robin_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::check
${_gRPC_PROTOBUF_LIBRARIES}
grpc_test_util
)
@ -26967,6 +27065,7 @@ 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
@ -27252,6 +27351,7 @@ 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
@ -27516,6 +27616,7 @@ 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
@ -27579,6 +27680,7 @@ 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
@ -27706,6 +27808,7 @@ 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
@ -27769,6 +27872,7 @@ 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
@ -27876,6 +27980,7 @@ 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
@ -28803,6 +28908,7 @@ 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
@ -29425,6 +29531,7 @@ target_include_directories(tcp_socket_utils_test
target_link_libraries(tcp_socket_utils_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::check
grpc
)
@ -29474,6 +29581,7 @@ target_include_directories(test_core_channel_channelz_test
target_link_libraries(test_core_channel_channelz_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::check
grpc++
grpc_test_util
)
@ -29536,6 +29644,7 @@ 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
@ -29583,6 +29692,7 @@ target_include_directories(test_core_event_engine_posix_timer_heap_test
target_link_libraries(test_core_event_engine_posix_timer_heap_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::check
absl::statusor
gpr
)
@ -29681,6 +29791,7 @@ target_link_libraries(test_core_event_engine_slice_buffer_test
${_gRPC_ALLTARGETS_LIBRARIES}
gtest
absl::hash
absl::check
absl::statusor
absl::utility
gpr
@ -30067,6 +30178,7 @@ 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
)
@ -30647,6 +30759,7 @@ 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
)
@ -30797,6 +30910,7 @@ 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
@ -31242,6 +31356,7 @@ 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
)
@ -31304,6 +31419,7 @@ 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
@ -32089,6 +32205,7 @@ 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
)
@ -32134,6 +32251,7 @@ 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
)
@ -32223,6 +32341,7 @@ 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
)
@ -32484,6 +32603,7 @@ 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
)
@ -32546,6 +32666,7 @@ 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
@ -32609,6 +32730,7 @@ 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
@ -32730,6 +32852,7 @@ 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
)
@ -35487,6 +35610,7 @@ 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
)

@ -5866,6 +5866,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -6094,6 +6095,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -6359,6 +6361,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -6599,6 +6602,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -6675,6 +6679,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -6738,6 +6743,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -6801,6 +6807,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -6864,6 +6871,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -6944,6 +6952,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -7022,6 +7031,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -7085,6 +7095,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -7420,6 +7431,7 @@ targets:
- test/core/event_engine/cf/cf_engine_test.cc
deps:
- gtest
- absl/log:check
- grpc_test_util
platforms:
- linux
@ -7444,6 +7456,7 @@ targets:
- test/core/event_engine/test_suite/tests/timer_test.cc
deps:
- gtest
- absl/log:check
- grpc_test_util
platforms:
- linux
@ -7826,6 +7839,7 @@ targets:
- test/core/filters/filter_test.cc
deps:
- gtest
- absl/log:check
- protobuf
- grpc_test_util
uses_polling: false
@ -7843,6 +7857,7 @@ targets:
- test/core/filters/filter_test.cc
deps:
- gtest
- absl/log:check
- protobuf
- grpc_test_util
uses_polling: false
@ -8040,6 +8055,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -8216,6 +8232,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -8356,6 +8373,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -8527,6 +8545,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -8628,6 +8647,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -8764,6 +8784,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -9554,6 +9575,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -9617,6 +9639,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -9680,6 +9703,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -9697,6 +9721,7 @@ targets:
- test/core/filters/filter_test_test.cc
deps:
- gtest
- absl/log:check
- grpc_unsecure
- protobuf
- grpc_test_util
@ -9761,6 +9786,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -10178,6 +10204,7 @@ targets:
- test/core/event_engine/test_suite/tests/timer_test.cc
deps:
- gtest
- absl/log:check
- protobuf
- grpc_test_util
platforms:
@ -10196,6 +10223,7 @@ 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
@ -10297,6 +10325,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -10497,6 +10526,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -10799,6 +10829,7 @@ targets:
- test/core/tsi/transport_security_test_lib.cc
deps:
- gtest
- absl/log:check
- protobuf
- grpc_test_util
- name: grpc_tool_test
@ -10902,6 +10933,7 @@ 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
@ -11063,6 +11095,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -11261,6 +11294,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -11349,6 +11383,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -11504,6 +11539,7 @@ targets:
- test/core/transport/test_suite/test_main.cc
deps:
- gtest
- absl/log:check
- protobuf
- grpc_test_util
platforms:
@ -11829,6 +11865,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -11843,6 +11880,7 @@ targets:
- test/core/event_engine/windows/iocp_test.cc
deps:
- gtest
- absl/log:check
- grpc_test_util
platforms:
- linux
@ -12031,6 +12069,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -12106,6 +12145,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -12516,6 +12556,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -12579,6 +12620,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -12642,6 +12684,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -12705,6 +12748,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -12991,6 +13035,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -13066,6 +13111,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -13129,6 +13175,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -13232,6 +13279,7 @@ targets:
- test/core/event_engine/test_suite/tests/server_test.cc
deps:
- gtest
- absl/log:check
- grpc_test_util
platforms:
- linux
@ -13343,6 +13391,7 @@ targets:
- test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.cc
deps:
- gtest
- absl/log:check
- protobuf
- grpc_test_util
uses_polling: false
@ -13501,6 +13550,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -13621,6 +13671,7 @@ targets:
- test/core/util/fake_stats_plugin.cc
deps:
- gtest
- absl/log:check
- protobuf
- grpc_test_util
uses_polling: false
@ -13758,6 +13809,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -13852,6 +13904,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -13914,6 +13967,7 @@ targets:
- test/core/event_engine/test_suite/posix/oracle_event_engine_posix.cc
deps:
- gtest
- absl/log:check
- grpc_test_util
platforms:
- linux
@ -13948,6 +14002,7 @@ targets:
- test/core/event_engine/test_suite/posix/oracle_event_engine_posix.cc
deps:
- gtest
- absl/log:check
- grpc_test_util
platforms:
- linux
@ -13975,6 +14030,7 @@ targets:
- test/cpp/util/windows/manifest_file.cc
deps:
- gtest
- absl/log:check
- grpc++_test_util
platforms:
- linux
@ -14008,6 +14064,7 @@ targets:
- test/cpp/util/windows/manifest_file.cc
deps:
- gtest
- absl/log:check
- grpc++_test_util
platforms:
- linux
@ -14273,6 +14330,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -14534,6 +14592,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -14612,6 +14671,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -14675,6 +14735,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -14890,6 +14951,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -14964,6 +15026,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15027,6 +15090,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15090,6 +15154,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15153,6 +15218,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15216,6 +15282,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15279,6 +15346,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15342,6 +15410,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15405,6 +15474,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15468,6 +15538,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15531,6 +15602,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15594,6 +15666,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15657,6 +15730,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15720,6 +15794,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15783,6 +15858,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15846,6 +15922,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15909,6 +15986,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -15972,6 +16050,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16035,6 +16114,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16098,6 +16178,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16161,6 +16242,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16224,6 +16306,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16287,6 +16370,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16350,6 +16434,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16424,6 +16509,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16487,6 +16573,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16550,6 +16637,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16613,6 +16701,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16687,6 +16776,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16750,6 +16840,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16813,6 +16904,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16876,6 +16968,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -16939,6 +17032,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -17002,6 +17096,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -17065,6 +17160,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -17083,6 +17179,7 @@ targets:
- test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.cc
deps:
- gtest
- absl/log:check
- protobuf
- grpc_test_util
uses_polling: false
@ -17140,6 +17237,7 @@ targets:
- test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.cc
deps:
- gtest
- absl/log:check
- protobuf
- grpc_test_util
uses_polling: false
@ -17471,6 +17569,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -17622,6 +17721,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -17754,6 +17854,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -17817,6 +17918,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -17896,6 +17998,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -17959,6 +18062,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -18036,6 +18140,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -18394,6 +18499,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -18673,6 +18779,7 @@ targets:
- test/core/event_engine/tcp_socket_utils_test.cc
deps:
- gtest
- absl/log:check
- grpc
uses_polling: false
- name: test_core_channel_channelz_test
@ -18689,6 +18796,7 @@ targets:
- test/cpp/util/channel_trace_proto_helper.cc
deps:
- gtest
- absl/log:check
- grpc++
- grpc_test_util
- name: test_core_end2end_channelz_test
@ -18751,6 +18859,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -18772,6 +18881,7 @@ targets:
- test/core/event_engine/posix/timer_heap_test.cc
deps:
- gtest
- absl/log:check
- absl/status:statusor
- gpr
uses_polling: false
@ -18825,6 +18935,7 @@ targets:
deps:
- gtest
- absl/hash:hash
- absl/log:check
- absl/status:statusor
- absl/utility:utility
- gpr
@ -19007,6 +19118,7 @@ targets:
- test/core/transport/test_suite/test_main.cc
deps:
- gtest
- absl/log:check
- protobuf
- grpc_test_util
platforms:
@ -19208,6 +19320,7 @@ targets:
- test/core/event_engine/test_suite/thready_posix_event_engine_test.cc
deps:
- gtest
- absl/log:check
- grpc_test_util
platforms:
- linux
@ -19300,6 +19413,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -19456,6 +19570,7 @@ targets:
- test/core/event_engine/posix/traced_buffer_list_test.cc
deps:
- gtest
- absl/log:check
- grpc_test_util
platforms:
- linux
@ -19522,6 +19637,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -19870,6 +19986,7 @@ targets:
- test/core/util/fake_stats_plugin.cc
deps:
- gtest
- absl/log:check
- protobuf
- grpc_test_util
uses_polling: false
@ -19884,6 +20001,7 @@ targets:
- test/core/event_engine/windows/win_socket_test.cc
deps:
- gtest
- absl/log:check
- grpc_test_util
platforms:
- linux
@ -19915,6 +20033,7 @@ targets:
- test/core/event_engine/windows/windows_endpoint_test.cc
deps:
- gtest
- absl/log:check
- grpc_test_util
platforms:
- linux
@ -20151,6 +20270,7 @@ targets:
- test/core/gprpp/work_serializer_test.cc
deps:
- gtest
- absl/log:check
- grpc_test_util
platforms:
- linux
@ -20216,6 +20336,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -20279,6 +20400,7 @@ targets:
- test/core/util/test_lb_policies.cc
deps:
- gtest
- absl/log:check
- grpc_authorization_provider
- grpc_unsecure
- grpc_test_util
@ -20336,6 +20458,7 @@ targets:
- test/cpp/performance/writes_per_rpc_test.cc
deps:
- gtest
- absl/log:check
- grpc++
- grpc_test_util
platforms:
@ -21268,6 +21391,7 @@ targets:
- test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.cc
deps:
- gtest
- absl/log:check
- protobuf
- grpc_test_util
uses_polling: false

@ -129,7 +129,10 @@ grpc_cc_test(
grpc_cc_test(
name = "slice_buffer_test",
srcs = ["slice_buffer_test.cc"],
external_deps = ["gtest"],
external_deps = [
"absl/log:check",
"gtest",
],
deps = [
"//:gpr",
"//:gpr_platform",
@ -181,6 +184,7 @@ grpc_cc_test(
name = "tcp_socket_utils_test",
srcs = ["tcp_socket_utils_test.cc"],
external_deps = [
"absl/log:check",
"absl/status",
"absl/status:statusor",
"absl/strings",
@ -216,6 +220,7 @@ grpc_cc_library(
srcs = ["event_engine_test_utils.cc"],
hdrs = ["event_engine_test_utils.h"],
external_deps = [
"absl/log:check",
"absl/status",
"absl/status:statusor",
"absl/strings",

@ -20,7 +20,10 @@ grpc_cc_library(
name = "cf_engine_unit_test_lib",
testonly = True,
srcs = ["cf_engine_test.cc"],
external_deps = ["gtest"],
external_deps = [
"absl/log:check",
"gtest",
],
language = "C++",
tags = [
"no_linux",
@ -42,7 +45,10 @@ grpc_cc_test(
name = "cf_engine_test",
timeout = "short",
srcs = ["cf_engine_test.cc"],
external_deps = ["gtest"],
external_deps = [
"absl/log:check",
"gtest",
],
language = "C++",
tags = [
"no_linux",

@ -18,6 +18,7 @@
#include <thread>
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/strings/str_format.h"
#include "gmock/gmock.h"
@ -41,7 +42,7 @@ namespace experimental {
TEST(CFEventEngineTest, TestConnectionTimeout) {
// use a non-routable IP so connection will timeout
auto resolved_addr = URIToResolvedAddress("ipv4:10.255.255.255:1234");
GPR_ASSERT(resolved_addr.ok());
CHECK_OK(resolved_addr);
grpc_core::MemoryQuota memory_quota("cf_engine_test");
grpc_core::Notification client_signal;
@ -63,7 +64,7 @@ TEST(CFEventEngineTest, TestConnectionTimeout) {
TEST(CFEventEngineTest, TestConnectionCancelled) {
// use a non-routable IP so to cancel connection before timeout
auto resolved_addr = URIToResolvedAddress("ipv4:10.255.255.255:1234");
GPR_ASSERT(resolved_addr.ok());
CHECK_OK(resolved_addr);
grpc_core::MemoryQuota memory_quota("cf_engine_test");
grpc_core::Notification client_signal;

@ -22,6 +22,7 @@
#include <string>
#include <utility>
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
@ -101,7 +102,8 @@ std::string ExtractSliceBufferIntoString(SliceBuffer* buf) {
absl::Status SendValidatePayload(absl::string_view data,
EventEngine::Endpoint* send_endpoint,
EventEngine::Endpoint* receive_endpoint) {
GPR_ASSERT(receive_endpoint != nullptr && send_endpoint != nullptr);
CHECK_NE(receive_endpoint, nullptr);
CHECK_NE(send_endpoint, nullptr);
int num_bytes_written = data.size();
grpc_core::Notification read_signal;
grpc_core::Notification write_signal;
@ -120,7 +122,7 @@ absl::Status SendValidatePayload(absl::string_view data,
std::function<void(absl::Status)> read_cb;
read_cb = [receive_endpoint, &read_slice_buf, &read_store_buf, &read_cb,
&read_signal, &args](absl::Status status) {
GPR_ASSERT(status.ok());
CHECK_OK(status);
if (read_slice_buf.Length() == static_cast<size_t>(args.read_hint_bytes)) {
read_slice_buf.MoveFirstNBytesIntoSliceBuffer(read_slice_buf.Length(),
read_store_buf);
@ -131,7 +133,7 @@ absl::Status SendValidatePayload(absl::string_view data,
read_slice_buf.MoveFirstNBytesIntoSliceBuffer(read_slice_buf.Length(),
read_store_buf);
if (receive_endpoint->Read(read_cb, &read_slice_buf, &args)) {
GPR_ASSERT(read_slice_buf.Length() != 0);
CHECK_NE(read_slice_buf.Length(), 0u);
read_cb(absl::OkStatus());
}
};
@ -142,7 +144,7 @@ absl::Status SendValidatePayload(absl::string_view data,
// Start asynchronous writing at the send_endpoint.
if (send_endpoint->Write(
[&write_signal](absl::Status status) {
GPR_ASSERT(status.ok());
CHECK_OK(status);
write_signal.Notify();
},
&write_slice_buf, nullptr)) {
@ -185,9 +187,8 @@ absl::Status ConnectionManager::BindAndStartListener(
ChannelArgsEndpointConfig config;
auto status = event_engine->CreateListener(
std::move(accept_cb),
[](absl::Status status) { GPR_ASSERT(status.ok()); }, config,
std::make_unique<grpc_core::MemoryQuota>("foo"));
std::move(accept_cb), [](absl::Status status) { CHECK_OK(status); },
config, std::make_unique<grpc_core::MemoryQuota>("foo"));
if (!status.ok()) {
return status.status();
}
@ -201,7 +202,7 @@ absl::Status ConnectionManager::BindAndStartListener(
return bind_status.status();
}
}
GPR_ASSERT(listener->Start().ok());
CHECK_OK(listener->Start());
// Insert same listener pointer for all bind addresses after the listener
// has started successfully.
for (auto& addr : addrs) {
@ -241,7 +242,7 @@ ConnectionManager::CreateConnection(std::string target_addr,
// There is a listener for the specified address. Wait until it
// creates a ServerEndpoint after accepting the connection.
auto server_endpoint = last_in_progress_connection_.GetServerEndpoint();
GPR_ASSERT(server_endpoint != nullptr);
CHECK(server_endpoint != nullptr);
// Set last_in_progress_connection_ to nullptr
return std::make_tuple(std::move(client_endpoint),
std::move(server_endpoint));

@ -25,6 +25,7 @@ grpc_cc_library(
name = "fuzzing_event_engine",
srcs = ["fuzzing_event_engine.cc"],
hdrs = ["fuzzing_event_engine.h"],
external_deps = ["absl/log:check"],
deps = [
":fuzzing_event_engine_proto",
"//:event_engine_base_hdrs",

@ -22,6 +22,7 @@
#include <limits>
#include <vector>
#include "absl/log/check.h"
#include "absl/memory/memory.h"
#include "absl/strings/str_cat.h"
@ -111,7 +112,7 @@ FuzzingEventEngine::FuzzingEventEngine(
// Whilst a fuzzing EventEngine is active we override grpc's now function.
g_orig_gpr_now_impl = gpr_now_impl;
gpr_now_impl = GlobalNowImpl;
GPR_ASSERT(g_fuzzing_event_engine == nullptr);
CHECK_EQ(g_fuzzing_event_engine, nullptr);
g_fuzzing_event_engine = this;
grpc_core::TestOnlySetProcessEpoch(NowAsTimespec(GPR_CLOCK_MONOTONIC));
@ -136,7 +137,7 @@ void FuzzingEventEngine::FuzzingDone() {
gpr_timespec FuzzingEventEngine::NowAsTimespec(gpr_clock_type clock_type) {
// TODO(ctiller): add a facility to track realtime and monotonic clocks
// separately to simulate divergence.
GPR_ASSERT(clock_type != GPR_TIMESPAN);
CHECK(clock_type != GPR_TIMESPAN);
const Duration d = now_.time_since_epoch();
auto secs = std::chrono::duration_cast<std::chrono::seconds>(d);
return {secs.count(), static_cast<int32_t>((d - secs).count()), clock_type};
@ -166,7 +167,7 @@ void FuzzingEventEngine::Tick(Duration max_time) {
incr = std::max(incr, std::chrono::duration_cast<Duration>(
std::chrono::milliseconds(1)));
now_ += incr;
GPR_ASSERT(now_.time_since_epoch().count() >= 0);
CHECK_GE(now_.time_since_epoch().count(), 0);
++current_tick_;
incremented_time = true;
}
@ -299,7 +300,7 @@ absl::Status FuzzingEventEngine::FuzzingListener::Start() {
}
bool FuzzingEventEngine::EndpointMiddle::Write(SliceBuffer* data, int index) {
GPR_ASSERT(!closed[index]);
CHECK(!closed[index]);
const int peer_index = 1 - index;
if (data->Length() == 0) return true;
size_t write_len = std::numeric_limits<size_t>::max();
@ -345,8 +346,8 @@ bool FuzzingEventEngine::FuzzingEndpoint::Write(
const WriteArgs*) {
grpc_core::global_stats().IncrementSyscallWrite();
grpc_core::MutexLock lock(&*mu_);
GPR_ASSERT(!middle_->closed[my_index()]);
GPR_ASSERT(!middle_->writing[my_index()]);
CHECK(!middle_->closed[my_index()]);
CHECK(!middle_->writing[my_index()]);
// If the write succeeds immediately, then we return true.
if (middle_->Write(data, my_index())) return true;
middle_->writing[my_index()] = true;
@ -361,7 +362,7 @@ void FuzzingEventEngine::FuzzingEndpoint::ScheduleDelayedWrite(
RunType::kWrite, [middle = std::move(middle), index, data,
on_writable = std::move(on_writable)]() mutable {
grpc_core::ReleasableMutexLock lock(&*mu_);
GPR_ASSERT(middle->writing[index]);
CHECK(middle->writing[index]);
if (middle->closed[index]) {
g_fuzzing_event_engine->RunLocked(
RunType::kRunAfter,
@ -409,7 +410,7 @@ bool FuzzingEventEngine::FuzzingEndpoint::Read(
const ReadArgs*) {
buffer->Clear();
grpc_core::MutexLock lock(&*mu_);
GPR_ASSERT(!middle_->closed[my_index()]);
CHECK(!middle_->closed[my_index()]);
if (middle_->pending[peer_index()].empty()) {
// If the endpoint is closed, fail asynchronously.
if (middle_->closed[peer_index()]) {
@ -589,7 +590,7 @@ EventEngine::TaskHandle FuzzingEventEngine::RunAfterLocked(
bool FuzzingEventEngine::Cancel(TaskHandle handle) {
grpc_core::MutexLock lock(&*mu_);
GPR_ASSERT(handle.keys[1] == kTaskHandleSalt);
CHECK(handle.keys[1] == kTaskHandleSalt);
const intptr_t id = handle.keys[0];
auto it = tasks_by_id_.find(id);
if (it == tasks_by_id_.end()) {
@ -609,7 +610,7 @@ gpr_timespec FuzzingEventEngine::GlobalNowImpl(gpr_clock_type clock_type) {
if (g_fuzzing_event_engine == nullptr) {
return gpr_inf_future(clock_type);
}
GPR_ASSERT(g_fuzzing_event_engine != nullptr);
CHECK_NE(g_fuzzing_event_engine, nullptr);
grpc_core::MutexLock lock(&*now_mu_);
return g_fuzzing_event_engine->NowAsTimespec(clock_type);
}
@ -623,7 +624,7 @@ void FuzzingEventEngine::UnsetGlobalHooks() {
}
FuzzingEventEngine::ListenerInfo::~ListenerInfo() {
GPR_ASSERT(g_fuzzing_event_engine != nullptr);
CHECK_NE(g_fuzzing_event_engine, nullptr);
g_fuzzing_event_engine->Run(
[on_shutdown = std::move(on_shutdown),
shutdown_status = std::move(shutdown_status)]() mutable {

@ -40,7 +40,10 @@ grpc_cc_library(
grpc_cc_test(
name = "timer_heap_test",
srcs = ["timer_heap_test.cc"],
external_deps = ["gtest"],
external_deps = [
"absl/log:check",
"gtest",
],
language = "C++",
uses_event_engine = False,
uses_polling = False,
@ -142,7 +145,10 @@ grpc_cc_test(
grpc_cc_test(
name = "traced_buffer_list_test",
srcs = ["traced_buffer_list_test.cc"],
external_deps = ["gtest"],
external_deps = [
"absl/log:check",
"gtest",
],
language = "C++",
tags = [
"no_windows",
@ -176,7 +182,10 @@ grpc_cc_test(
grpc_cc_test(
name = "posix_endpoint_test",
srcs = ["posix_endpoint_test.cc"],
external_deps = ["gtest"],
external_deps = [
"absl/log:check",
"gtest",
],
language = "C++",
tags = [
"no_windows",
@ -221,7 +230,10 @@ grpc_cc_test(
grpc_cc_test(
name = "posix_event_engine_connect_test",
srcs = ["posix_event_engine_connect_test.cc"],
external_deps = ["gtest"],
external_deps = [
"absl/log:check",
"gtest",
],
language = "C++",
tags = [
"no_mac",

@ -23,6 +23,7 @@
#include <type_traits>
#include <vector>
#include "absl/log/check.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_split.h"
@ -80,7 +81,7 @@ std::list<Connection> CreateConnectedEndpoints(
std::string target_addr = absl::StrCat(
"ipv6:[::1]:", std::to_string(grpc_pick_unused_port_or_die()));
auto resolved_addr = URIToResolvedAddress(target_addr);
GPR_ASSERT(resolved_addr.ok());
CHECK_OK(resolved_addr);
std::unique_ptr<EventEngine::Endpoint> server_endpoint;
grpc_core::Notification* server_signal = new grpc_core::Notification();
@ -104,7 +105,7 @@ std::list<Connection> CreateConnectedEndpoints(
std::move(accept_cb),
[](absl::Status status) { ASSERT_TRUE(status.ok()); }, config,
std::make_unique<grpc_core::MemoryQuota>("foo"));
GPR_ASSERT(listener.ok());
CHECK_OK(listener);
EXPECT_TRUE((*listener)->Bind(*resolved_addr).ok());
EXPECT_TRUE((*listener)->Start().ok());

@ -26,6 +26,7 @@
#include <utility>
#include <vector>
#include "absl/log/check.h"
#include "absl/memory/memory.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
@ -145,7 +146,7 @@ TEST(PosixEventEngineTest, IndefiniteConnectTimeoutOrRstTest) {
std::string target_addr = absl::StrCat(
"ipv6:[::1]:", std::to_string(grpc_pick_unused_port_or_die()));
auto resolved_addr = URIToResolvedAddress(target_addr);
GPR_ASSERT(resolved_addr.ok());
CHECK_OK(resolved_addr);
std::shared_ptr<EventEngine> posix_ee = std::make_shared<PosixEventEngine>();
std::string resolved_addr_str =
ResolvedAddressToNormalizedString(*resolved_addr).value();
@ -174,7 +175,7 @@ TEST(PosixEventEngineTest, IndefiniteConnectCancellationTest) {
std::string target_addr = absl::StrCat(
"ipv6:[::1]:", std::to_string(grpc_pick_unused_port_or_die()));
auto resolved_addr = URIToResolvedAddress(target_addr);
GPR_ASSERT(resolved_addr.ok());
CHECK_OK(resolved_addr);
std::shared_ptr<EventEngine> posix_ee = std::make_shared<PosixEventEngine>();
std::string resolved_addr_str =
ResolvedAddressToNormalizedString(*resolved_addr).value();

@ -24,6 +24,7 @@
#include <algorithm>
#include <utility>
#include "absl/log/check.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
@ -169,7 +170,7 @@ TEST(TimerHeapTest, RandomMutations) {
pq.Pop();
for (size_t i = 0; i < elems_size; i++) {
if (top == &elems[i].elem) {
GPR_ASSERT(elems[i].inserted);
CHECK(elems[i].inserted);
elems[i].inserted = false;
}
}
@ -191,7 +192,7 @@ TEST(TimerHeapTest, RandomMutations) {
}
}
}
GPR_ASSERT(pq.Top()->deadline == *min_deadline);
CHECK(pq.Top()->deadline == *min_deadline);
}
}
}

@ -18,6 +18,7 @@
#include <memory>
#include "absl/log/check.h"
#include "gtest/gtest.h"
#include <grpc/support/atm.h>
@ -45,7 +46,7 @@ constexpr uint64_t kMaxAdvanceTimeMillis = 24ull * 365 * 3600 * 1000;
gpr_timespec g_now;
gpr_timespec now_impl(gpr_clock_type clock_type) {
GPR_ASSERT(clock_type != GPR_TIMESPAN);
CHECK(clock_type != GPR_TIMESPAN);
gpr_timespec ts = g_now;
ts.clock_type = clock_type;
return ts;

@ -17,6 +17,7 @@
#include <memory>
#include <utility>
#include "absl/log/check.h"
#include "gtest/gtest.h"
#include <grpc/event_engine/slice.h>
@ -32,7 +33,7 @@ using ::grpc_event_engine::experimental::SliceBuffer;
static constexpr int kNewSliceLength = 100;
Slice MakeSlice(size_t len) {
GPR_ASSERT(len > 0);
CHECK_GT(len, 0);
unsigned char* contents = static_cast<unsigned char*>(gpr_malloc(len));
memset(contents, 'a', len);
return Slice(grpc_slice_new(contents, len, gpr_free));

@ -45,6 +45,7 @@
#endif // GPR_WINDOWS
#endif // GRPC_HAVE_UNIX_SOCKET
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "gtest/gtest.h"
@ -72,7 +73,7 @@ EventEngine::ResolvedAddress MakeAddr4(const uint8_t* data, size_t data_len) {
const_cast<sockaddr*>(resolved_addr4.address()));
memset(&resolved_addr4, 0, sizeof(resolved_addr4));
addr4->sin_family = AF_INET;
GPR_ASSERT(data_len == sizeof(addr4->sin_addr.s_addr));
CHECK_EQ(data_len, sizeof(addr4->sin_addr.s_addr));
memcpy(&addr4->sin_addr.s_addr, data, data_len);
addr4->sin_port = htons(12345);
return EventEngine::ResolvedAddress(
@ -86,7 +87,7 @@ EventEngine::ResolvedAddress MakeAddr6(const uint8_t* data, size_t data_len) {
const_cast<sockaddr*>(resolved_addr6.address()));
memset(&resolved_addr6, 0, sizeof(resolved_addr6));
addr6->sin6_family = AF_INET6;
GPR_ASSERT(data_len == sizeof(addr6->sin6_addr.s6_addr));
CHECK_EQ(data_len, sizeof(addr6->sin6_addr.s6_addr));
memcpy(&addr6->sin6_addr.s6_addr, data, data_len);
addr6->sin6_port = htons(12345);
return EventEngine::ResolvedAddress(

@ -26,7 +26,10 @@ grpc_cc_library(
testonly = True,
srcs = ["event_engine_test_framework.cc"],
hdrs = ["event_engine_test_framework.h"],
external_deps = ["gtest"],
external_deps = [
"absl/log:check",
"gtest",
],
deps = [
"//:grpc",
"//test/core/event_engine:event_engine_test_utils",

@ -20,6 +20,7 @@
#include <gtest/gtest.h>
#include "absl/functional/any_invocable.h"
#include "absl/log/check.h"
#include <grpc/event_engine/event_engine.h>
#include <grpc/support/log.h>
@ -68,13 +69,13 @@ class EventEngineTest : public testing::Test {
protected:
std::shared_ptr<grpc_event_engine::experimental::EventEngine>
NewEventEngine() {
GPR_ASSERT(g_ee_factory != nullptr);
CHECK_NE(g_ee_factory, nullptr);
return (*g_ee_factory)();
}
std::shared_ptr<grpc_event_engine::experimental::EventEngine>
NewOracleEventEngine() {
GPR_ASSERT(g_oracle_ee_factory != nullptr);
CHECK_NE(g_oracle_ee_factory, nullptr);
return (*g_oracle_ee_factory)();
}
};

@ -23,6 +23,7 @@ grpc_cc_library(
testonly = True,
srcs = ["oracle_event_engine_posix.cc"],
hdrs = ["oracle_event_engine_posix.h"],
external_deps = ["absl/log:check"],
tags = [
"cpu:10",
"no_windows",

@ -23,6 +23,7 @@
#include <cstring>
#include <memory>
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
@ -138,7 +139,7 @@ std::string ReadBytes(int sockfd, int& saved_errno, int num_expected_bytes) {
num_expected_bytes - read_data.length());
if (saved_errno == EAGAIN &&
read_data.length() < static_cast<size_t>(num_expected_bytes)) {
GPR_ASSERT(BlockUntilReadable(sockfd).ok());
CHECK_OK(BlockUntilReadable(sockfd));
} else if (saved_errno != 0 && num_expected_bytes > 0) {
read_data.clear();
break;
@ -177,10 +178,10 @@ int WriteBytes(int sockfd, int& saved_errno, std::string write_bytes) {
saved_errno = 0;
ret = TryWriteBytes(sockfd, saved_errno, write_bytes);
if (saved_errno == EAGAIN && ret < static_cast<int>(write_bytes.length())) {
GPR_ASSERT(ret >= 0);
GPR_ASSERT(BlockUntilWritable(sockfd).ok());
CHECK_GE(ret, 0);
CHECK_OK(BlockUntilWritable(sockfd));
} else if (saved_errno != 0) {
GPR_ASSERT(ret < 0);
CHECK_LT(ret, 0);
return ret;
}
write_bytes = write_bytes.substr(ret, std::string::npos);
@ -233,7 +234,7 @@ PosixOracleEndpoint::~PosixOracleEndpoint() {
bool PosixOracleEndpoint::Read(absl::AnyInvocable<void(absl::Status)> on_read,
SliceBuffer* buffer, const ReadArgs* args) {
grpc_core::MutexLock lock(&mu_);
GPR_ASSERT(buffer != nullptr);
CHECK_NE(buffer, nullptr);
int read_hint_bytes =
args != nullptr ? std::max(1, static_cast<int>(args->read_hint_bytes))
: 0;
@ -247,7 +248,7 @@ bool PosixOracleEndpoint::Write(
absl::AnyInvocable<void(absl::Status)> on_writable, SliceBuffer* data,
const WriteArgs* /*args*/) {
grpc_core::MutexLock lock(&mu_);
GPR_ASSERT(data != nullptr);
CHECK_NE(data, nullptr);
write_ops_channel_ = WriteOperation(data, std::move(on_writable));
write_op_signal_->Notify();
return false;
@ -310,7 +311,7 @@ PosixOracleListener::PosixOracleListener(
absl::Status PosixOracleListener::Start() {
grpc_core::MutexLock lock(&mu_);
GPR_ASSERT(!listener_fds_.empty());
CHECK(!listener_fds_.empty());
if (std::exchange(is_started_, true)) {
return absl::InternalError("Cannot start listener more than once ...");
}
@ -334,14 +335,14 @@ PosixOracleListener::~PosixOracleListener() {
shutdown(listener_fds_[i], SHUT_RDWR);
}
// Send a STOP message over the pipe.
GPR_ASSERT(write(pipefd_[1], kStopMessage, strlen(kStopMessage)) != -1);
CHECK(write(pipefd_[1], kStopMessage, strlen(kStopMessage)) != -1);
serve_.Join();
on_shutdown_(absl::OkStatus());
}
void PosixOracleListener::HandleIncomingConnections() {
gpr_log(GPR_INFO, "Starting accept thread ...");
GPR_ASSERT(!listener_fds_.empty());
CHECK(!listener_fds_.empty());
int nfds = listener_fds_.size();
// Add one extra file descriptor to poll the pipe fd.
++nfds;

@ -86,6 +86,7 @@ grpc_cc_library(
testonly = True,
srcs = ["client_test.cc"],
hdrs = ["client_test.h"],
external_deps = ["absl/log:check"],
deps = [
"//src/core:channel_args",
"//test/core/event_engine:event_engine_test_utils",

@ -22,6 +22,7 @@
#include <utility>
#include <vector>
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
@ -107,7 +108,7 @@ TEST_F(EventEngineClientTest, ConnectExchangeBidiDataTransferTest) {
std::string target_addr = absl::StrCat(
"ipv6:[::1]:", std::to_string(grpc_pick_unused_port_or_die()));
auto resolved_addr = URIToResolvedAddress(target_addr);
GPR_ASSERT(resolved_addr.ok());
CHECK_OK(resolved_addr);
std::unique_ptr<EventEngine::Endpoint> client_endpoint;
std::unique_ptr<EventEngine::Endpoint> server_endpoint;
grpc_core::Notification client_signal;

@ -22,6 +22,7 @@
#include <utility>
#include <vector>
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
@ -104,7 +105,7 @@ TEST_F(EventEngineServerTest, ServerConnectExchangeBidiDataTransferTest) {
std::string target_addr = absl::StrCat(
"ipv6:[::1]:", std::to_string(grpc_pick_unused_port_or_die()));
auto resolved_addr = URIToResolvedAddress(target_addr);
GPR_ASSERT(resolved_addr.ok());
CHECK_OK(resolved_addr);
std::unique_ptr<EventEngine::Endpoint> client_endpoint;
std::unique_ptr<EventEngine::Endpoint> server_endpoint;
grpc_core::Notification client_signal;

@ -24,6 +24,7 @@ grpc_cc_binary(
name = "windows_event_engine_echo_client",
testonly = True,
srcs = ["windows_event_engine_factory.cc"],
external_deps = ["absl/log:check"],
tags = [
"bazel_only",
"no_linux",
@ -40,6 +41,7 @@ grpc_cc_binary(
name = "posix_event_engine_echo_client",
testonly = True,
srcs = ["posix_event_engine_factory.cc"],
external_deps = ["absl/log:check"],
tags = [
"bazel_only",
"no_windows",
@ -59,6 +61,7 @@ grpc_cc_library(
external_deps = [
"absl/flags:flag",
"absl/flags:parse",
"absl/log:check",
],
language = "C++",
deps = [

@ -13,6 +13,8 @@
// limitations under the License.
#include <stdlib.h>
#include "absl/log/check.h"
#include <grpc/event_engine/slice.h>
#include <grpc/support/port_platform.h>
@ -78,7 +80,7 @@ void SendMessage(EventEngine::Endpoint* endpoint, int message_id) {
grpc_core::Notification write_done;
endpoint->Write(
[&](absl::Status status) {
GPR_ASSERT(status.ok());
CHECK_OK(status);
write_done.Notify();
},
&buf, nullptr);
@ -118,7 +120,7 @@ void RunUntilInterrupted() {
.resolver_registry()
.AddDefaultPrefixIfNeeded(absl::GetFlag(FLAGS_target));
auto addr = URIToResolvedAddress(canonical_target);
GPR_ASSERT(addr.ok());
CHECK_OK(addr);
engine->Connect(
[&](absl::StatusOr<std::unique_ptr<EventEngine::Endpoint>> ep) {
if (!ep.ok()) {
@ -131,7 +133,7 @@ void RunUntilInterrupted() {
},
*addr, config, memory_quota->CreateMemoryAllocator("client"), 2h);
connected.WaitForNotification();
GPR_ASSERT(endpoint.get() != nullptr);
CHECK_NE(endpoint.get(), nullptr);
gpr_log(GPR_DEBUG, "peer addr: %s",
ResolvedAddressToString(endpoint->GetPeerAddress())->c_str());
gpr_log(GPR_DEBUG, "local addr: %s",

@ -15,6 +15,7 @@
#include <memory>
#include "absl/functional/any_invocable.h"
#include "absl/log/check.h"
#include <grpc/event_engine/event_engine.h>
#include <grpc/support/port_platform.h>
@ -39,7 +40,7 @@ CustomEventEngineFactory() {
absl::AnyInvocable<
std::unique_ptr<grpc_event_engine::experimental::EventEngine>(void)>
CustomEventEngineFactory() {
GPR_ASSERT(false && "This tool was not built for Posix environments.");
CHECK(false) << "This tool was not built for Posix environments.");
}
#endif

@ -15,6 +15,7 @@
#include <memory>
#include "absl/functional/any_invocable.h"
#include "absl/log/check.h"
#include <grpc/event_engine/event_engine.h>
#include <grpc/support/log.h>
@ -38,7 +39,7 @@ CustomEventEngineFactory() {
absl::AnyInvocable<
std::unique_ptr<grpc_event_engine::experimental::EventEngine>(void)>
CustomEventEngineFactory() {
GPR_ASSERT(false && "This tool was not built for Windows.");
CHECK(false) << "This tool was not built for Windows.";
}
#endif

@ -90,7 +90,10 @@ grpc_cc_library(
name = "create_sockpair",
srcs = ["create_sockpair.cc"],
hdrs = ["create_sockpair.h"],
external_deps = ["absl/status"],
external_deps = [
"absl/log:check",
"absl/status",
],
language = "C++",
tags = [
"no_linux",

@ -17,6 +17,7 @@
#include <winsock2.h>
#include <ws2tcpip.h>
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "src/core/lib/event_engine/windows/win_socket.h"
@ -42,15 +43,14 @@ void CreateSockpair(SOCKET sockpair[2], DWORD flags) {
int addr_len = sizeof(addr);
lst_sock = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, flags);
GPR_ASSERT(lst_sock != INVALID_SOCKET);
CHECK(lst_sock != INVALID_SOCKET);
GPR_ASSERT(bind(lst_sock, (sockaddr*)&addr, sizeof(addr)) != SOCKET_ERROR);
GPR_ASSERT(listen(lst_sock, SOMAXCONN) != SOCKET_ERROR);
GPR_ASSERT(getsockname(lst_sock, (sockaddr*)&addr, &addr_len) !=
SOCKET_ERROR);
CHECK(bind(lst_sock, (sockaddr*)&addr, sizeof(addr)) != SOCKET_ERROR);
CHECK(listen(lst_sock, SOMAXCONN) != SOCKET_ERROR);
CHECK(getsockname(lst_sock, (sockaddr*)&addr, &addr_len) != SOCKET_ERROR);
cli_sock = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, flags);
GPR_ASSERT(cli_sock != INVALID_SOCKET);
CHECK(cli_sock != INVALID_SOCKET);
auto result =
WSAConnect(cli_sock, (sockaddr*)&addr, addr_len, NULL, NULL, NULL, NULL);
@ -62,7 +62,7 @@ void CreateSockpair(SOCKET sockpair[2], DWORD flags) {
abort();
}
svr_sock = accept(lst_sock, (sockaddr*)&addr, &addr_len);
GPR_ASSERT(svr_sock != INVALID_SOCKET);
CHECK(svr_sock != INVALID_SOCKET);
closesocket(lst_sock);
// TODO(hork): see if we can migrate this to IPv6, or break up the socket prep
// stages.

Loading…
Cancel
Save