diff --git a/include/grpcpp/ext/csm_observability.h b/include/grpcpp/ext/csm_observability.h index 17dbd2d0e483f..265d91949cd97 100644 --- a/include/grpcpp/ext/csm_observability.h +++ b/include/grpcpp/ext/csm_observability.h @@ -24,10 +24,10 @@ #include -#include "opentelemetry/metrics/meter_provider.h" #include "absl/functional/any_invocable.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "opentelemetry/metrics/meter_provider.h" namespace grpc { diff --git a/include/grpcpp/ext/otel_plugin.h b/include/grpcpp/ext/otel_plugin.h index 00e09b463712d..1e475306c28cf 100644 --- a/include/grpcpp/ext/otel_plugin.h +++ b/include/grpcpp/ext/otel_plugin.h @@ -28,13 +28,13 @@ #include -#include "opentelemetry/context/propagation/text_map_propagator.h" -#include "opentelemetry/metrics/meter_provider.h" -#include "opentelemetry/trace/tracer_provider.h" #include "absl/functional/any_invocable.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "opentelemetry/context/propagation/text_map_propagator.h" +#include "opentelemetry/metrics/meter_provider.h" +#include "opentelemetry/trace/tracer_provider.h" namespace grpc { namespace internal { diff --git a/include/grpcpp/impl/codegen/config_protobuf.h b/include/grpcpp/impl/codegen/config_protobuf.h index 508fccedb7103..ddf56aafdcf1e 100644 --- a/include/grpcpp/impl/codegen/config_protobuf.h +++ b/include/grpcpp/impl/codegen/config_protobuf.h @@ -59,22 +59,26 @@ #ifndef GRPC_CUSTOM_DESCRIPTORDATABASE #include #define GRPC_CUSTOM_DESCRIPTORDATABASE ::google::protobuf::DescriptorDatabase -#define GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE ::google::protobuf::SimpleDescriptorDatabase +#define GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE \ + ::google::protobuf::SimpleDescriptorDatabase #endif #ifndef GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM #include #include -#define GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM ::google::protobuf::io::ZeroCopyOutputStream -#define GRPC_CUSTOM_ZEROCOPYINPUTSTREAM ::google::protobuf::io::ZeroCopyInputStream +#define GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM \ + ::google::protobuf::io::ZeroCopyOutputStream +#define GRPC_CUSTOM_ZEROCOPYINPUTSTREAM \ + ::google::protobuf::io::ZeroCopyInputStream #define GRPC_CUSTOM_CODEDINPUTSTREAM ::google::protobuf::io::CodedInputStream #define GRPC_CUSTOM_CODEDOUTPUTSTREAM ::google::protobuf::io::CodedOutputStream #endif #ifndef GRPC_CUSTOM_JSONUTIL -#include "absl/status/status.h" #include #include + +#include "absl/status/status.h" #define GRPC_CUSTOM_JSONUTIL ::google::protobuf::util #define GRPC_CUSTOM_UTIL_STATUS ::absl::Status #endif diff --git a/src/compiler/config_protobuf.h b/src/compiler/config_protobuf.h index b884b15c0306f..dc0178afaa544 100644 --- a/src/compiler/config_protobuf.h +++ b/src/compiler/config_protobuf.h @@ -24,7 +24,8 @@ #ifndef GRPC_CUSTOM_CODEGENERATOR #include #define GRPC_CUSTOM_CODEGENERATOR ::google::protobuf::compiler::CodeGenerator -#define GRPC_CUSTOM_GENERATORCONTEXT ::google::protobuf::compiler::GeneratorContext +#define GRPC_CUSTOM_GENERATORCONTEXT \ + ::google::protobuf::compiler::GeneratorContext #endif #ifndef GRPC_CUSTOM_PRINTER @@ -33,7 +34,8 @@ #include #define GRPC_CUSTOM_PRINTER ::google::protobuf::io::Printer #define GRPC_CUSTOM_CODEDOUTPUTSTREAM ::google::protobuf::io::CodedOutputStream -#define GRPC_CUSTOM_STRINGOUTPUTSTREAM ::google::protobuf::io::StringOutputStream +#define GRPC_CUSTOM_STRINGOUTPUTSTREAM \ + ::google::protobuf::io::StringOutputStream #endif #ifndef GRPC_CUSTOM_PLUGINMAIN @@ -49,7 +51,8 @@ #ifndef GRPC_CUSTOM_CSHARP_GETCLASSNAME #include -#define GRPC_CUSTOM_CSHARP_GETCLASSNAME ::google::protobuf::compiler::csharp::GetClassName +#define GRPC_CUSTOM_CSHARP_GETCLASSNAME \ + ::google::protobuf::compiler::csharp::GetClassName #define GRPC_CUSTOM_CSHARP_GETFILENAMESPACE \ ::google::protobuf::compiler::csharp::GetFileNamespace #define GRPC_CUSTOM_CSHARP_GETOUTPUTFILE \ diff --git a/src/compiler/objective_c_generator.cc b/src/compiler/objective_c_generator.cc index 9a16dec569165..06ab1fd066f40 100644 --- a/src/compiler/objective_c_generator.cc +++ b/src/compiler/objective_c_generator.cc @@ -18,19 +18,20 @@ #include "src/compiler/objective_c_generator.h" +#include + #include #include #include #include "src/compiler/config.h" #include "src/compiler/objective_c_generator_helpers.h" -#include +using ::google::protobuf::compiler::objectivec::ClassName; using ::grpc::protobuf::FileDescriptor; using ::grpc::protobuf::MethodDescriptor; using ::grpc::protobuf::ServiceDescriptor; using ::grpc::protobuf::io::Printer; -using ::google::protobuf::compiler::objectivec::ClassName; using ::std::map; using ::std::set; diff --git a/src/compiler/objective_c_generator_helpers.h b/src/compiler/objective_c_generator_helpers.h index f83796d61369e..0b390b5ec320b 100644 --- a/src/compiler/objective_c_generator_helpers.h +++ b/src/compiler/objective_c_generator_helpers.h @@ -19,11 +19,12 @@ #ifndef GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_HELPERS_H #define GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_HELPERS_H +#include + #include #include "src/compiler/config.h" #include "src/compiler/generator_helpers.h" -#include namespace grpc_objective_c_generator { @@ -39,7 +40,8 @@ inline bool AsciiIsUpper(char c) { return c >= 'A' && c <= 'Z'; } inline ::std::string ServiceClassName(const ServiceDescriptor* service) { const FileDescriptor* file = service->file(); - ::std::string prefix = google::protobuf::compiler::objectivec::FileClassPrefix(file); + ::std::string prefix = + google::protobuf::compiler::objectivec::FileClassPrefix(file); ::std::string class_name(service->name()); // We add the prefix in the cases where the string is missing a prefix. // We define "missing a prefix" as where 'input': diff --git a/src/compiler/objective_c_plugin.cc b/src/compiler/objective_c_plugin.cc index 570dae978feac..250df04220d25 100644 --- a/src/compiler/objective_c_plugin.cc +++ b/src/compiler/objective_c_plugin.cc @@ -18,14 +18,16 @@ // Generates Objective C gRPC service interface out of Protobuf IDL. +#include + #include #include "src/compiler/config.h" #include "src/compiler/objective_c_generator.h" #include "src/compiler/objective_c_generator_helpers.h" -#include -using ::google::protobuf::compiler::objectivec::IsProtobufLibraryBundledProtoFile; +using ::google::protobuf::compiler::objectivec:: + IsProtobufLibraryBundledProtoFile; using ::google::protobuf::compiler::objectivec::ProtobufLibraryFrameworkName; #ifdef SUPPORT_OBJC_PREFIX_VALIDATION using ::google::protobuf::compiler::objectivec::ValidateObjCClassPrefixes; @@ -156,7 +158,8 @@ class ObjectiveCGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator { static const ::std::string kForwardDeclare = "GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO"; - ::std::string file_name = google::protobuf::compiler::objectivec::FilePath(file); + ::std::string file_name = + google::protobuf::compiler::objectivec::FilePath(file); grpc_objective_c_generator::Parameters generator_params; generator_params.no_v1_compatibility = false; diff --git a/src/compiler/php_generator.cc b/src/compiler/php_generator.cc index c43ce8a90b8d6..5d0171226706e 100644 --- a/src/compiler/php_generator.cc +++ b/src/compiler/php_generator.cc @@ -16,20 +16,21 @@ * */ +#include + #include #include "src/compiler/config.h" #include "src/compiler/generator_helpers.h" #include "src/compiler/php_generator_helpers.h" -#include +using google::protobuf::compiler::php::GeneratedClassName; using grpc::protobuf::Descriptor; using grpc::protobuf::FileDescriptor; using grpc::protobuf::MethodDescriptor; using grpc::protobuf::ServiceDescriptor; using grpc::protobuf::io::Printer; using grpc::protobuf::io::StringOutputStream; -using google::protobuf::compiler::php::GeneratedClassName; using std::map; namespace grpc_php_generator { diff --git a/src/compiler/php_plugin.cc b/src/compiler/php_plugin.cc index 82d2e4450469d..9fafe52678c3b 100644 --- a/src/compiler/php_plugin.cc +++ b/src/compiler/php_plugin.cc @@ -24,9 +24,9 @@ #include "src/compiler/php_generator.h" #include "src/compiler/php_generator_helpers.h" +using google::protobuf::compiler::ParseGeneratorParameter; using grpc_php_generator::GenerateFile; using grpc_php_generator::GetPHPServiceFilename; -using google::protobuf::compiler::ParseGeneratorParameter; class PHPGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator { public: diff --git a/src/core/call/call_filters.cc b/src/core/call/call_filters.cc index aa77d758b7eab..136a1533017f0 100644 --- a/src/core/call/call_filters.cc +++ b/src/core/call/call_filters.cc @@ -16,10 +16,10 @@ #include -#include "src/core/call/metadata.h" -#include "src/core/util/crash.h" #include "absl/log/check.h" #include "absl/log/log.h" +#include "src/core/call/metadata.h" +#include "src/core/util/crash.h" namespace grpc_core { // Call data for those calls that don't have any call data diff --git a/src/core/call/call_filters.h b/src/core/call/call_filters.h index 55551e1772cdc..40c4ea3985821 100644 --- a/src/core/call/call_filters.h +++ b/src/core/call/call_filters.h @@ -23,6 +23,7 @@ #include #include +#include "absl/log/check.h" #include "src/core/call/call_state.h" #include "src/core/call/message.h" #include "src/core/call/metadata.h" @@ -38,7 +39,6 @@ #include "src/core/util/dump_args.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" // CallFilters tracks a list of filters that are attached to a call. // At a high level, a filter (for the purposes of this module) is a class diff --git a/src/core/call/call_spine.cc b/src/core/call/call_spine.cc index cc49bd8a98f63..f57ed9d6d5026 100644 --- a/src/core/call/call_spine.cc +++ b/src/core/call/call_spine.cc @@ -16,10 +16,10 @@ #include +#include "absl/functional/any_invocable.h" #include "src/core/lib/event_engine/event_engine_context.h" #include "src/core/lib/promise/for_each.h" #include "src/core/lib/promise/try_seq.h" -#include "absl/functional/any_invocable.h" namespace grpc_core { diff --git a/src/core/call/call_spine.h b/src/core/call/call_spine.h index e5bed06ced96a..0c57d4c20d37b 100644 --- a/src/core/call/call_spine.h +++ b/src/core/call/call_spine.h @@ -17,6 +17,7 @@ #include +#include "absl/log/check.h" #include "src/core/call/call_arena_allocator.h" #include "src/core/call/call_filters.h" #include "src/core/call/message.h" @@ -31,7 +32,6 @@ #include "src/core/lib/promise/status_flag.h" #include "src/core/lib/promise/try_seq.h" #include "src/core/util/dual_ref_counted.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/src/core/call/client_call.cc b/src/core/call/client_call.cc index afa9d68cdebb5..089199be797e3 100644 --- a/src/core/call/client_call.cc +++ b/src/core/call/client_call.cc @@ -39,6 +39,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata.h" #include "src/core/lib/event_engine/event_engine_context.h" #include "src/core/lib/promise/all_ok.h" @@ -54,9 +57,6 @@ #include "src/core/util/latent_see.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/call/client_call.h b/src/core/call/client_call.h index ee201c1d880d8..57db571b9d7e0 100644 --- a/src/core/call/client_call.h +++ b/src/core/call/client_call.h @@ -37,6 +37,9 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata.h" #include "src/core/lib/promise/status_flag.h" #include "src/core/lib/resource_quota/arena.h" @@ -46,9 +49,6 @@ #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/single_set_ptr.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/call/filter_fusion.h b/src/core/call/filter_fusion.h index ea1cf1ae75e3d..68bfd58f826b7 100644 --- a/src/core/call/filter_fusion.h +++ b/src/core/call/filter_fusion.h @@ -19,13 +19,13 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" #include "src/core/call/call_filters.h" #include "src/core/call/metadata.h" #include "src/core/lib/channel/promise_based_filter.h" #include "src/core/lib/transport/call_final_info.h" #include "src/core/util/type_list.h" -#include "absl/log/log.h" -#include "absl/status/status.h" struct grpc_transport_op; diff --git a/src/core/call/metadata_batch.cc b/src/core/call/metadata_batch.cc index 02c5fe635bf95..c6d39abe3a5e5 100644 --- a/src/core/call/metadata_batch.cc +++ b/src/core/call/metadata_batch.cc @@ -20,13 +20,13 @@ #include #include -#include "src/core/lib/transport/timeout_encoding.h" #include "absl/base/no_destructor.h" #include "absl/container/flat_hash_set.h" #include "absl/strings/escaping.h" #include "absl/strings/match.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" +#include "src/core/lib/transport/timeout_encoding.h" namespace grpc_core { namespace metadata_detail { diff --git a/src/core/call/metadata_batch.h b/src/core/call/metadata_batch.h index a707ec6a3a6e6..ab9977ee89d3a 100644 --- a/src/core/call/metadata_batch.h +++ b/src/core/call/metadata_batch.h @@ -30,6 +30,12 @@ #include #include +#include "absl/container/inlined_vector.h" +#include "absl/functional/function_ref.h" +#include "absl/log/check.h" +#include "absl/meta/type_traits.h" +#include "absl/strings/numbers.h" +#include "absl/strings/string_view.h" #include "src/core/call/custom_metadata.h" #include "src/core/call/metadata_compression_traits.h" #include "src/core/call/parsed_metadata.h" @@ -43,12 +49,6 @@ #include "src/core/util/packed_table.h" #include "src/core/util/time.h" #include "src/core/util/type_list.h" -#include "absl/container/inlined_vector.h" -#include "absl/functional/function_ref.h" -#include "absl/log/check.h" -#include "absl/meta/type_traits.h" -#include "absl/strings/numbers.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/call/metadata_info.cc b/src/core/call/metadata_info.cc index 02be5a4d1157a..8bb684be38ffe 100644 --- a/src/core/call/metadata_info.cc +++ b/src/core/call/metadata_info.cc @@ -19,8 +19,8 @@ #include #include -#include "src/core/lib/slice/slice.h" #include "absl/strings/str_cat.h" +#include "src/core/lib/slice/slice.h" namespace grpc_core { diff --git a/src/core/call/parsed_metadata.h b/src/core/call/parsed_metadata.h index e43cc53e13add..3d12ee4e98689 100644 --- a/src/core/call/parsed_metadata.h +++ b/src/core/call/parsed_metadata.h @@ -24,14 +24,14 @@ #include #include -#include "src/core/lib/slice/slice.h" -#include "src/core/util/time.h" #include "absl/functional/function_ref.h" #include "absl/meta/type_traits.h" #include "absl/strings/escaping.h" #include "absl/strings/match.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" +#include "src/core/lib/slice/slice.h" +#include "src/core/util/time.h" namespace grpc_core { diff --git a/src/core/call/request_buffer.cc b/src/core/call/request_buffer.cc index f16279d0318fb..c53972d558fcc 100644 --- a/src/core/call/request_buffer.cc +++ b/src/core/call/request_buffer.cc @@ -17,8 +17,8 @@ #include #include -#include "src/core/util/match.h" #include "absl/strings/str_cat.h" +#include "src/core/util/match.h" namespace grpc_core { diff --git a/src/core/call/security_context.cc b/src/core/call/security_context.cc index 5162fafaa7a1b..1c5484ce2f8bf 100644 --- a/src/core/call/security_context.cc +++ b/src/core/call/security_context.cc @@ -25,6 +25,8 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" @@ -32,8 +34,6 @@ #include "src/core/lib/resource_quota/arena.h" #include "src/core/lib/surface/call.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/log/log.h" // --- grpc_call --- diff --git a/src/core/call/security_context.h b/src/core/call/security_context.h index 5377cdcf5442d..6094e8d016eb5 100644 --- a/src/core/call/security_context.h +++ b/src/core/call/security_context.h @@ -27,6 +27,7 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/credentials/call/call_credentials.h" // IWYU pragma: keep #include "src/core/lib/debug/trace.h" #include "src/core/lib/resource_quota/arena.h" @@ -37,7 +38,6 @@ #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/useful.h" -#include "absl/strings/string_view.h" // --- grpc_security_context_extension --- diff --git a/src/core/call/server_call.cc b/src/core/call/server_call.cc index 06436356b29f4..9b0f4bfa07bdd 100644 --- a/src/core/call/server_call.cc +++ b/src/core/call/server_call.cc @@ -37,6 +37,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/promise/all_ok.h" @@ -50,8 +52,6 @@ #include "src/core/server/server_interface.h" #include "src/core/util/bitset.h" #include "src/core/util/latent_see.h" -#include "absl/log/check.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/call/server_call.h b/src/core/call/server_call.h index 52a5a852782c5..88823d6efd720 100644 --- a/src/core/call/server_call.h +++ b/src/core/call/server_call.h @@ -39,6 +39,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/promise/poll.h" @@ -51,10 +55,6 @@ #include "src/core/util/crash.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/call/simple_slice_based_metadata.h b/src/core/call/simple_slice_based_metadata.h index b595b1fd8ca96..43ceae3d1a5ff 100644 --- a/src/core/call/simple_slice_based_metadata.h +++ b/src/core/call/simple_slice_based_metadata.h @@ -17,9 +17,9 @@ #include +#include "absl/strings/string_view.h" #include "src/core/call/parsed_metadata.h" #include "src/core/lib/slice/slice.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/call/status_util.cc b/src/core/call/status_util.cc index a98ec5a052476..62955f4c14a57 100644 --- a/src/core/call/status_util.cc +++ b/src/core/call/status_util.cc @@ -23,9 +23,9 @@ #include -#include "src/core/util/useful.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" +#include "src/core/util/useful.h" struct status_string_entry { const char* str; diff --git a/src/core/channelz/channel_trace.cc b/src/core/channelz/channel_trace.cc index d1450c77ea54f..3221925cf50a9 100644 --- a/src/core/channelz/channel_trace.cc +++ b/src/core/channelz/channel_trace.cc @@ -25,6 +25,7 @@ #include #include +#include "absl/strings/str_cat.h" #include "src/core/channelz/channelz.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/slice/slice_internal.h" @@ -32,7 +33,6 @@ #include "src/core/util/string.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/strings/str_cat.h" namespace grpc_core { namespace channelz { diff --git a/src/core/channelz/channel_trace.h b/src/core/channelz/channel_trace.h index 8ef3d377fa933..0d92eedae36c0 100644 --- a/src/core/channelz/channel_trace.h +++ b/src/core/channelz/channel_trace.h @@ -26,10 +26,10 @@ #include #include +#include "absl/base/thread_annotations.h" #include "src/core/util/json/json.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" namespace grpc_core { namespace channelz { diff --git a/src/core/channelz/channelz.cc b/src/core/channelz/channelz.cc index e0dcf40d11d3e..24ce8dd365f27 100644 --- a/src/core/channelz/channelz.cc +++ b/src/core/channelz/channelz.cc @@ -28,6 +28,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/statusor.h" +#include "absl/strings/escaping.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/strip.h" #include "src/core/channelz/channelz_registry.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/address_utils/sockaddr_utils.h" @@ -39,11 +44,6 @@ #include "src/core/util/time.h" #include "src/core/util/uri.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/status/statusor.h" -#include "absl/strings/escaping.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/strip.h" namespace grpc_core { namespace channelz { diff --git a/src/core/channelz/channelz.h b/src/core/channelz/channelz.h index 12eac3911b938..87f2d93feefd1 100644 --- a/src/core/channelz/channelz.h +++ b/src/core/channelz/channelz.h @@ -33,6 +33,9 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/inlined_vector.h" +#include "absl/strings/string_view.h" #include "src/core/channelz/channel_trace.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/json/json.h" @@ -44,9 +47,6 @@ #include "src/core/util/time.h" #include "src/core/util/time_precise.h" #include "src/core/util/useful.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/inlined_vector.h" -#include "absl/strings/string_view.h" // Channel arg key for channelz node. #define GRPC_ARG_CHANNELZ_CHANNEL_NODE \ diff --git a/src/core/channelz/channelz_registry.cc b/src/core/channelz/channelz_registry.cc index e1dc7f33fdbc1..4eba269377a7c 100644 --- a/src/core/channelz/channelz_registry.cc +++ b/src/core/channelz/channelz_registry.cc @@ -30,14 +30,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/channelz/channelz.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_reader.h" #include "src/core/util/json/json_writer.h" #include "src/core/util/sync.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc_core { namespace channelz { diff --git a/src/core/channelz/ztrace_collector.h b/src/core/channelz/ztrace_collector.h index 92ee39731cd4a..2c172edc34065 100644 --- a/src/core/channelz/ztrace_collector.h +++ b/src/core/channelz/ztrace_collector.h @@ -21,12 +21,12 @@ #include #include +#include "absl/container/flat_hash_set.h" #include "src/core/channelz/channelz.h" #include "src/core/util/single_set_ptr.h" #include "src/core/util/string.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/container/flat_hash_set.h" #ifdef GRPC_NO_ZTRACE namespace grpc_core::channelz { diff --git a/src/core/client_channel/backup_poller.cc b/src/core/client_channel/backup_poller.cc index 7d0d85ecbd821..ef13d2285e30c 100644 --- a/src/core/client_channel/backup_poller.cc +++ b/src/core/client_channel/backup_poller.cc @@ -23,6 +23,8 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" #include "src/core/config/config_vars.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/error.h" @@ -32,8 +34,6 @@ #include "src/core/lib/iomgr/timer.h" #include "src/core/util/memory.h" #include "src/core/util/time.h" -#include "absl/log/log.h" -#include "absl/status/status.h" #define DEFAULT_POLL_INTERVAL_MS 5000 diff --git a/src/core/client_channel/client_channel.cc b/src/core/client_channel/client_channel.cc index ee51ff096e0c0..a34af8fccb8e8 100644 --- a/src/core/client_channel/client_channel.cc +++ b/src/core/client_channel/client_channel.cc @@ -36,6 +36,15 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/cord.h" +#include "absl/strings/numbers.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" #include "src/core/call/call_spine.h" #include "src/core/call/client_call.h" #include "src/core/call/metadata_batch.h" @@ -85,15 +94,6 @@ #include "src/core/util/sync.h" #include "src/core/util/useful.h" #include "src/core/util/work_serializer.h" -#include "absl/cleanup/cleanup.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/cord.h" -#include "absl/strings/numbers.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/client_channel/client_channel.h b/src/core/client_channel/client_channel.h index 8fa3b52cf6892..8076a00f6c27f 100644 --- a/src/core/client_channel/client_channel.h +++ b/src/core/client_channel/client_channel.h @@ -19,6 +19,9 @@ #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata.h" #include "src/core/client_channel/client_channel_factory.h" #include "src/core/client_channel/config_selector.h" @@ -31,9 +34,6 @@ #include "src/core/resolver/resolver.h" #include "src/core/service_config/service_config.h" #include "src/core/util/single_set_ptr.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/client_channel/client_channel_factory.h b/src/core/client_channel/client_channel_factory.h index 58e044ad11537..9e8ca146e0e07 100644 --- a/src/core/client_channel/client_channel_factory.h +++ b/src/core/client_channel/client_channel_factory.h @@ -19,11 +19,11 @@ #include +#include "absl/strings/string_view.h" #include "src/core/client_channel/subchannel.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/resolved_address.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/client_channel/client_channel_filter.cc b/src/core/client_channel/client_channel_filter.cc index 95c9ee025a94d..722ca54c98c7e 100644 --- a/src/core/client_channel/client_channel_filter.cc +++ b/src/core/client_channel/client_channel_filter.cc @@ -37,6 +37,16 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/cord.h" +#include "absl/strings/numbers.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/call/status_util.h" #include "src/core/channelz/channel_trace.h" @@ -93,16 +103,6 @@ #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" #include "src/core/util/work_serializer.h" -#include "absl/cleanup/cleanup.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/cord.h" -#include "absl/strings/numbers.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" // // Client channel filter diff --git a/src/core/client_channel/client_channel_filter.h b/src/core/client_channel/client_channel_filter.h index e978a6ea53594..94c70abdf6823 100644 --- a/src/core/client_channel/client_channel_filter.h +++ b/src/core/client_channel/client_channel_filter.h @@ -29,6 +29,11 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/flat_hash_set.h" +#include "absl/functional/any_invocable.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/channelz/channelz.h" #include "src/core/client_channel/client_channel_args.h" @@ -62,11 +67,6 @@ #include "src/core/util/time.h" #include "src/core/util/time_precise.h" #include "src/core/util/work_serializer.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/flat_hash_set.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" // // Client channel filter diff --git a/src/core/client_channel/client_channel_internal.h b/src/core/client_channel/client_channel_internal.h index 3b6ff22551ea3..4fbba6966b793 100644 --- a/src/core/client_channel/client_channel_internal.h +++ b/src/core/client_channel/client_channel_internal.h @@ -21,6 +21,8 @@ #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" #include "src/core/call/call_destination.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/load_balancing/lb_policy.h" @@ -28,8 +30,6 @@ #include "src/core/telemetry/call_tracer.h" #include "src/core/util/down_cast.h" #include "src/core/util/unique_type_name.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" // // This file contains internal interfaces used to allow various plugins diff --git a/src/core/client_channel/client_channel_service_config.cc b/src/core/client_channel/client_channel_service_config.cc index c3655a00e0118..203662c65443a 100644 --- a/src/core/client_channel/client_channel_service_config.cc +++ b/src/core/client_channel/client_channel_service_config.cc @@ -22,11 +22,11 @@ #include #include -#include "src/core/load_balancing/lb_policy_registry.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/ascii.h" #include "absl/strings/str_cat.h" +#include "src/core/load_balancing/lb_policy_registry.h" // As per the retry design, we do not allow more than 5 retry attempts. #define MAX_MAX_RETRY_ATTEMPTS 5 diff --git a/src/core/client_channel/client_channel_service_config.h b/src/core/client_channel/client_channel_service_config.h index 81b7a3561c07d..6ec1b8500c5db 100644 --- a/src/core/client_channel/client_channel_service_config.h +++ b/src/core/client_channel/client_channel_service_config.h @@ -24,6 +24,7 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/load_balancing/lb_policy.h" @@ -34,7 +35,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" #include "src/core/util/validation_errors.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace internal { diff --git a/src/core/client_channel/config_selector.h b/src/core/client_channel/config_selector.h index faca2edfffa3e..3aab7e83c06fa 100644 --- a/src/core/client_channel/config_selector.h +++ b/src/core/client_channel/config_selector.h @@ -24,6 +24,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/call/interception_chain.h" #include "src/core/call/metadata_batch.h" #include "src/core/client_channel/client_channel_internal.h" @@ -35,9 +38,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" // Channel arg key for ConfigSelector. #define GRPC_ARG_CONFIG_SELECTOR "grpc.internal.config_selector" diff --git a/src/core/client_channel/dynamic_filters.cc b/src/core/client_channel/dynamic_filters.cc index a04351499444c..21dbec9f5b348 100644 --- a/src/core/client_channel/dynamic_filters.cc +++ b/src/core/client_channel/dynamic_filters.cc @@ -22,6 +22,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/statusor.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_stack.h" #include "src/core/lib/channel/channel_stack_builder_impl.h" @@ -30,9 +33,6 @@ #include "src/core/lib/surface/lame_client.h" #include "src/core/util/alloc.h" #include "src/core/util/status_helper.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/statusor.h" // Conversion between call and call stack. #define CALL_TO_CALL_STACK(call) \ diff --git a/src/core/client_channel/global_subchannel_pool.h b/src/core/client_channel/global_subchannel_pool.h index abb1b60594caa..79ea667279685 100644 --- a/src/core/client_channel/global_subchannel_pool.h +++ b/src/core/client_channel/global_subchannel_pool.h @@ -23,10 +23,10 @@ #include +#include "absl/base/thread_annotations.h" #include "src/core/client_channel/subchannel_pool_interface.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" namespace grpc_core { diff --git a/src/core/client_channel/lb_metadata.h b/src/core/client_channel/lb_metadata.h index 87604061107f0..e8cd44b29dd3f 100644 --- a/src/core/client_channel/lb_metadata.h +++ b/src/core/client_channel/lb_metadata.h @@ -21,9 +21,9 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/load_balancing/lb_policy.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/client_channel/load_balanced_call_destination.cc b/src/core/client_channel/load_balanced_call_destination.cc index d2abfd96a261a..d0ce948d2273a 100644 --- a/src/core/client_channel/load_balanced_call_destination.cc +++ b/src/core/client_channel/load_balanced_call_destination.cc @@ -14,6 +14,7 @@ #include "src/core/client_channel/load_balanced_call_destination.h" +#include "absl/log/log.h" #include "src/core/call/status_util.h" #include "src/core/client_channel/client_channel.h" #include "src/core/client_channel/client_channel_internal.h" @@ -22,7 +23,6 @@ #include "src/core/config/core_configuration.h" #include "src/core/lib/promise/loop.h" #include "src/core/telemetry/call_tracer.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/src/core/client_channel/load_balanced_call_destination.h b/src/core/client_channel/load_balanced_call_destination.h index 6329d58ecdd2e..4ddb531057213 100644 --- a/src/core/client_channel/load_balanced_call_destination.h +++ b/src/core/client_channel/load_balanced_call_destination.h @@ -15,11 +15,11 @@ #ifndef GRPC_SRC_CORE_CLIENT_CHANNEL_LOAD_BALANCED_CALL_DESTINATION_H #define GRPC_SRC_CORE_CLIENT_CHANNEL_LOAD_BALANCED_CALL_DESTINATION_H +#include "absl/functional/any_invocable.h" #include "src/core/call/call_destination.h" #include "src/core/client_channel/client_channel.h" #include "src/core/lib/promise/context.h" #include "src/core/load_balancing/lb_policy.h" -#include "absl/functional/any_invocable.h" namespace grpc_core { diff --git a/src/core/client_channel/local_subchannel_pool.cc b/src/core/client_channel/local_subchannel_pool.cc index d81aeeacd822e..428db14bdf9c4 100644 --- a/src/core/client_channel/local_subchannel_pool.cc +++ b/src/core/client_channel/local_subchannel_pool.cc @@ -22,8 +22,8 @@ #include -#include "src/core/client_channel/subchannel.h" #include "absl/log/check.h" +#include "src/core/client_channel/subchannel.h" namespace grpc_core { diff --git a/src/core/client_channel/retry_filter.cc b/src/core/client_channel/retry_filter.cc index d0bdd379ac273..78a74f3102a21 100644 --- a/src/core/client_channel/retry_filter.cc +++ b/src/core/client_channel/retry_filter.cc @@ -22,6 +22,8 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/strip.h" #include "src/core/client_channel/client_channel_filter.h" #include "src/core/client_channel/retry_filter_legacy_call_data.h" #include "src/core/client_channel/retry_service_config.h" @@ -34,8 +36,6 @@ #include "src/core/service_config/service_config_call_data.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/uri.h" -#include "absl/status/statusor.h" -#include "absl/strings/strip.h" // // Retry filter diff --git a/src/core/client_channel/retry_filter.h b/src/core/client_channel/retry_filter.h index 9e1c3504c1cf2..f7bc5d33a9841 100644 --- a/src/core/client_channel/retry_filter.h +++ b/src/core/client_channel/retry_filter.h @@ -27,6 +27,7 @@ #include #include +#include "absl/log/check.h" #include "src/core/client_channel/client_channel_filter.h" #include "src/core/client_channel/retry_service_config.h" #include "src/core/client_channel/retry_throttle.h" @@ -37,7 +38,6 @@ #include "src/core/lib/transport/transport.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/src/core/client_channel/retry_filter_legacy_call_data.cc b/src/core/client_channel/retry_filter_legacy_call_data.cc index 6c659e441408a..004f9e7681630 100644 --- a/src/core/client_channel/retry_filter_legacy_call_data.cc +++ b/src/core/client_channel/retry_filter_legacy_call_data.cc @@ -20,6 +20,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" #include "src/core/call/metadata_batch.h" #include "src/core/call/status_util.h" #include "src/core/client_channel/client_channel_internal.h" @@ -46,10 +50,6 @@ #include "src/core/util/status_helper.h" #include "src/core/util/time.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/src/core/client_channel/retry_filter_legacy_call_data.h b/src/core/client_channel/retry_filter_legacy_call_data.h index 90a71eedb552e..d830289b53b4c 100644 --- a/src/core/client_channel/retry_filter_legacy_call_data.h +++ b/src/core/client_channel/retry_filter_legacy_call_data.h @@ -25,6 +25,8 @@ #include #include +#include "absl/container/inlined_vector.h" +#include "absl/functional/any_invocable.h" #include "src/core/call/metadata_batch.h" #include "src/core/client_channel/client_channel_filter.h" #include "src/core/client_channel/retry_filter.h" @@ -45,8 +47,6 @@ #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" -#include "absl/container/inlined_vector.h" -#include "absl/functional/any_invocable.h" namespace grpc_core { diff --git a/src/core/client_channel/retry_service_config.cc b/src/core/client_channel/retry_service_config.cc index 05b1d0e3427fc..01f58765ab257 100644 --- a/src/core/client_channel/retry_service_config.cc +++ b/src/core/client_channel/retry_service_config.cc @@ -27,13 +27,13 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/numbers.h" +#include "absl/strings/str_cat.h" #include "src/core/call/status_util.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/json/json_channel_args.h" -#include "absl/log/log.h" -#include "absl/strings/numbers.h" -#include "absl/strings/str_cat.h" // As per the retry design, we do not allow more than 5 retry attempts. #define MAX_MAX_RETRY_ATTEMPTS 5 diff --git a/src/core/client_channel/retry_service_config.h b/src/core/client_channel/retry_service_config.h index d0c7778f68b79..e5ed4ec6e7ae2 100644 --- a/src/core/client_channel/retry_service_config.h +++ b/src/core/client_channel/retry_service_config.h @@ -24,6 +24,7 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/call/status_util.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" @@ -33,7 +34,6 @@ #include "src/core/util/json/json_object_loader.h" #include "src/core/util/time.h" #include "src/core/util/validation_errors.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace internal { diff --git a/src/core/client_channel/retry_throttle.h b/src/core/client_channel/retry_throttle.h index 16ccfb2443de3..0ce52c6dedfcf 100644 --- a/src/core/client_channel/retry_throttle.h +++ b/src/core/client_channel/retry_throttle.h @@ -26,10 +26,10 @@ #include #include +#include "absl/base/thread_annotations.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" namespace grpc_core { namespace internal { diff --git a/src/core/client_channel/subchannel.cc b/src/core/client_channel/subchannel.cc index 8d9c109e0d9dd..290a574637f42 100644 --- a/src/core/client_channel/subchannel.cc +++ b/src/core/client_channel/subchannel.cc @@ -29,6 +29,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/statusor.h" +#include "absl/strings/cord.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/call/interception_chain.h" #include "src/core/channelz/channel_trace.h" #include "src/core/channelz/channelz.h" @@ -64,12 +70,6 @@ #include "src/core/util/status_helper.h" #include "src/core/util/sync.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/statusor.h" -#include "absl/strings/cord.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" // Backoff parameters. #define GRPC_SUBCHANNEL_INITIAL_CONNECT_BACKOFF_SECONDS 1 diff --git a/src/core/client_channel/subchannel.h b/src/core/client_channel/subchannel.h index 43bd8a576d4bc..f04069a936ca5 100644 --- a/src/core/client_channel/subchannel.h +++ b/src/core/client_channel/subchannel.h @@ -26,6 +26,9 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/flat_hash_set.h" +#include "absl/status/status.h" #include "src/core/call/metadata_batch.h" #include "src/core/client_channel/connector.h" #include "src/core/client_channel/subchannel_pool_interface.h" @@ -54,9 +57,6 @@ #include "src/core/util/time_precise.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/work_serializer.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/flat_hash_set.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/src/core/client_channel/subchannel_pool_interface.cc b/src/core/client_channel/subchannel_pool_interface.cc index 0276b521bbf03..bc55e4780082b 100644 --- a/src/core/client_channel/subchannel_pool_interface.cc +++ b/src/core/client_channel/subchannel_pool_interface.cc @@ -21,11 +21,11 @@ #include #include -#include "src/core/lib/address_utils/sockaddr_utils.h" -#include "src/core/lib/channel/channel_args.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" +#include "src/core/lib/address_utils/sockaddr_utils.h" +#include "src/core/lib/channel/channel_args.h" // The subchannel pool to reuse subchannels. #define GRPC_ARG_SUBCHANNEL_POOL "grpc.internal.subchannel_pool" diff --git a/src/core/client_channel/subchannel_pool_interface.h b/src/core/client_channel/subchannel_pool_interface.h index 93fdf89dc3ffe..ca385d1e5914c 100644 --- a/src/core/client_channel/subchannel_pool_interface.h +++ b/src/core/client_channel/subchannel_pool_interface.h @@ -23,13 +23,13 @@ #include +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/resolved_address.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/useful.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/client_channel/subchannel_stream_client.cc b/src/core/client_channel/subchannel_stream_client.cc index ac41a1a4ab9d8..091527da2aef6 100644 --- a/src/core/client_channel/subchannel_stream_client.cc +++ b/src/core/client_channel/subchannel_stream_client.cc @@ -23,6 +23,8 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/resource_quota/resource_quota.h" @@ -32,8 +34,6 @@ #include "src/core/util/sync.h" #include "src/core/util/time.h" #include "src/core/util/time_precise.h" -#include "absl/log/check.h" -#include "absl/log/log.h" #define SUBCHANNEL_STREAM_INITIAL_CONNECT_BACKOFF_SECONDS 1 #define SUBCHANNEL_STREAM_RECONNECT_BACKOFF_MULTIPLIER 1.6 diff --git a/src/core/client_channel/subchannel_stream_client.h b/src/core/client_channel/subchannel_stream_client.h index 99571d6425f49..28f2d3b2cc142 100644 --- a/src/core/client_channel/subchannel_stream_client.h +++ b/src/core/client_channel/subchannel_stream_client.h @@ -27,6 +27,9 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/client_channel/subchannel.h" #include "src/core/lib/iomgr/call_combiner.h" @@ -43,9 +46,6 @@ #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/config/config_vars.cc b/src/core/config/config_vars.cc index 94b6ce43653fc..a163b919859f7 100644 --- a/src/core/config/config_vars.cc +++ b/src/core/config/config_vars.cc @@ -20,10 +20,10 @@ #include -#include "src/core/config/load_config.h" #include "absl/flags/flag.h" #include "absl/strings/escaping.h" #include "absl/types/optional.h" +#include "src/core/config/load_config.h" #ifndef GPR_DEFAULT_LOG_VERBOSITY_STRING #define GPR_DEFAULT_LOG_VERBOSITY_STRING "" diff --git a/src/core/config/core_configuration.h b/src/core/config/core_configuration.h index a2483c786c9a5..a75ebdbeb2600 100644 --- a/src/core/config/core_configuration.h +++ b/src/core/config/core_configuration.h @@ -19,6 +19,8 @@ #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" #include "src/core/credentials/transport/channel_creds_registry.h" #include "src/core/credentials/transport/tls/certificate_provider_registry.h" #include "src/core/handshaker/handshaker_registry.h" @@ -28,8 +30,6 @@ #include "src/core/load_balancing/lb_policy_registry.h" #include "src/core/resolver/resolver_registry.h" #include "src/core/service_config/service_config_parser.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/src/core/config/load_config.cc b/src/core/config/load_config.cc index bfaa288f5a402..f78c0ccdc212b 100644 --- a/src/core/config/load_config.cc +++ b/src/core/config/load_config.cc @@ -19,11 +19,11 @@ #include -#include "src/core/util/env.h" #include "absl/flags/marshalling.h" #include "absl/log/check.h" #include "absl/strings/numbers.h" #include "absl/strings/str_join.h" +#include "src/core/util/env.h" namespace grpc_core { diff --git a/src/core/credentials/call/call_credentials.h b/src/core/credentials/call/call_credentials.h index c3cf24cc73fb8..bbdda706c567a 100644 --- a/src/core/credentials/call/call_credentials.h +++ b/src/core/credentials/call/call_credentials.h @@ -28,6 +28,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/promise/arena_promise.h" @@ -38,9 +41,6 @@ #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/unique_type_name.h" -#include "absl/log/check.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" // --- Constants. --- diff --git a/src/core/credentials/call/call_creds_util.cc b/src/core/credentials/call/call_creds_util.cc index 182c7846bd542..d34cd20350ce9 100644 --- a/src/core/credentials/call/call_creds_util.cc +++ b/src/core/credentials/call/call_creds_util.cc @@ -20,14 +20,14 @@ #include #include -#include "src/core/call/metadata_batch.h" -#include "src/core/credentials/transport/security_connector.h" -#include "src/core/transport/auth_context.h" -#include "src/core/util/ref_counted_ptr.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" +#include "src/core/call/metadata_batch.h" +#include "src/core/credentials/transport/security_connector.h" +#include "src/core/transport/auth_context.h" +#include "src/core/util/ref_counted_ptr.h" namespace grpc_core { diff --git a/src/core/credentials/call/composite/composite_call_credentials.cc b/src/core/credentials/call/composite/composite_call_credentials.cc index c60673141826a..0cac927f657ce 100644 --- a/src/core/credentials/call/composite/composite_call_credentials.cc +++ b/src/core/credentials/call/composite/composite_call_credentials.cc @@ -22,13 +22,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/promise/try_seq.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" grpc_core::ArenaPromise> grpc_composite_call_credentials::GetRequestMetadata( diff --git a/src/core/credentials/call/composite/composite_call_credentials.h b/src/core/credentials/call/composite/composite_call_credentials.h index 5070d3e11c313..97677619013b9 100644 --- a/src/core/credentials/call/composite/composite_call_credentials.h +++ b/src/core/credentials/call/composite/composite_call_credentials.h @@ -29,6 +29,7 @@ #include #include +#include "absl/status/statusor.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/lib/channel/channel_args.h" @@ -37,7 +38,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" -#include "absl/status/statusor.h" class grpc_composite_call_credentials : public grpc_call_credentials { public: diff --git a/src/core/credentials/call/external/aws_external_account_credentials.cc b/src/core/credentials/call/external/aws_external_account_credentials.cc index 35e56f7331f2c..d726325aab002 100644 --- a/src/core/credentials/call/external/aws_external_account_credentials.cc +++ b/src/core/credentials/call/external/aws_external_account_credentials.cc @@ -28,6 +28,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_replace.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/transport_credentials.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/util/env.h" @@ -36,13 +43,6 @@ #include "src/core/util/json/json_reader.h" #include "src/core/util/json/json_writer.h" #include "src/core/util/uri.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_replace.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/credentials/call/external/aws_external_account_credentials.h b/src/core/credentials/call/external/aws_external_account_credentials.h index f33825527ad9d..6b2f1b30f850d 100644 --- a/src/core/credentials/call/external/aws_external_account_credentials.h +++ b/src/core/credentials/call/external/aws_external_account_credentials.h @@ -24,6 +24,7 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/credentials/call/external/aws_request_signer.h" #include "src/core/credentials/call/external/external_account_credentials.h" #include "src/core/lib/iomgr/error.h" @@ -31,7 +32,6 @@ #include "src/core/util/http_client/parser.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/credentials/call/external/external_account_credentials.cc b/src/core/credentials/call/external/external_account_credentials.cc index 4092bef3938d4..a426cd94f4821 100644 --- a/src/core/credentials/call/external/external_account_credentials.cc +++ b/src/core/credentials/call/external/external_account_credentials.cc @@ -29,17 +29,6 @@ #include #include -#include "src/core/credentials/call/external/aws_external_account_credentials.h" -#include "src/core/credentials/call/external/file_external_account_credentials.h" -#include "src/core/credentials/call/external/url_external_account_credentials.h" -#include "src/core/credentials/call/json_util.h" -#include "src/core/credentials/transport/transport_credentials.h" -#include "src/core/util/http_client/httpcli_ssl_credentials.h" -#include "src/core/util/http_client/parser.h" -#include "src/core/util/json/json_reader.h" -#include "src/core/util/json/json_writer.h" -#include "src/core/util/status_helper.h" -#include "src/core/util/uri.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" @@ -54,6 +43,17 @@ #include "absl/strings/strip.h" #include "absl/time/clock.h" #include "absl/time/time.h" +#include "src/core/credentials/call/external/aws_external_account_credentials.h" +#include "src/core/credentials/call/external/file_external_account_credentials.h" +#include "src/core/credentials/call/external/url_external_account_credentials.h" +#include "src/core/credentials/call/json_util.h" +#include "src/core/credentials/transport/transport_credentials.h" +#include "src/core/util/http_client/httpcli_ssl_credentials.h" +#include "src/core/util/http_client/parser.h" +#include "src/core/util/json/json_reader.h" +#include "src/core/util/json/json_writer.h" +#include "src/core/util/status_helper.h" +#include "src/core/util/uri.h" #define EXTERNAL_ACCOUNT_CREDENTIALS_GRANT_TYPE \ "urn:ietf:params:oauth:grant-type:token-exchange" diff --git a/src/core/credentials/call/external/external_account_credentials.h b/src/core/credentials/call/external/external_account_credentials.h index 04223c0c4bbb8..ee5c69494b637 100644 --- a/src/core/credentials/call/external/external_account_credentials.h +++ b/src/core/credentials/call/external/external_account_credentials.h @@ -26,6 +26,7 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/credentials/call/oauth2/oauth2_credentials.h" #include "src/core/credentials/call/token_fetcher/token_fetcher_credentials.h" #include "src/core/lib/iomgr/closure.h" @@ -37,7 +38,6 @@ #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/credentials/call/external/file_external_account_credentials.cc b/src/core/credentials/call/external/file_external_account_credentials.cc index 41b17afd6bc74..1bf73fd8ce275 100644 --- a/src/core/credentials/call/external/file_external_account_credentials.cc +++ b/src/core/credentials/call/external/file_external_account_credentials.cc @@ -22,14 +22,14 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_reader.h" #include "src/core/util/load_file.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/credentials/call/external/file_external_account_credentials.h b/src/core/credentials/call/external/file_external_account_credentials.h index ecb59e6054854..bf64194f43c9d 100644 --- a/src/core/credentials/call/external/file_external_account_credentials.h +++ b/src/core/credentials/call/external/file_external_account_credentials.h @@ -23,10 +23,10 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/credentials/call/external/external_account_credentials.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/credentials/call/external/url_external_account_credentials.cc b/src/core/credentials/call/external/url_external_account_credentials.cc index 5fbe66fd5401e..85abae1581ecb 100644 --- a/src/core/credentials/call/external/url_external_account_credentials.cc +++ b/src/core/credentials/call/external/url_external_account_credentials.cc @@ -27,6 +27,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/transport/transport_credentials.h" #include "src/core/lib/iomgr/closure.h" @@ -35,13 +42,6 @@ #include "src/core/util/http_client/parser.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_reader.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/credentials/call/external/url_external_account_credentials.h b/src/core/credentials/call/external/url_external_account_credentials.h index d5b6d7419f30f..f07e5b0caf3fd 100644 --- a/src/core/credentials/call/external/url_external_account_credentials.h +++ b/src/core/credentials/call/external/url_external_account_credentials.h @@ -24,13 +24,13 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/credentials/call/external/external_account_credentials.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/http_client/httpcli.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/uri.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/credentials/call/gcp_service_account_identity/gcp_service_account_identity_credentials.cc b/src/core/credentials/call/gcp_service_account_identity/gcp_service_account_identity_credentials.cc index aa20ab1e37aa9..9b3792801ef02 100644 --- a/src/core/credentials/call/gcp_service_account_identity/gcp_service_account_identity_credentials.cc +++ b/src/core/credentials/call/gcp_service_account_identity/gcp_service_account_identity_credentials.cc @@ -18,6 +18,13 @@ #include +#include "absl/functional/any_invocable.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/escaping.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata.h" #include "src/core/credentials/transport/transport_credentials.h" #include "src/core/lib/iomgr/error.h" @@ -29,13 +36,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/status_helper.h" #include "src/core/util/uri.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/escaping.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/credentials/call/iam/iam_credentials.cc b/src/core/credentials/call/iam/iam_credentials.cc index 767bcf5f604dc..1eb7b4967b688 100644 --- a/src/core/credentials/call/iam/iam_credentials.cc +++ b/src/core/credentials/call/iam/iam_credentials.cc @@ -24,14 +24,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/promise/promise.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" grpc_core::ArenaPromise> grpc_google_iam_credentials::GetRequestMetadata( diff --git a/src/core/credentials/call/iam/iam_credentials.h b/src/core/credentials/call/iam/iam_credentials.h index e5bd566450d82..0aff40a54eda9 100644 --- a/src/core/credentials/call/iam/iam_credentials.h +++ b/src/core/credentials/call/iam/iam_credentials.h @@ -26,13 +26,13 @@ #include #include +#include "absl/status/statusor.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/lib/promise/arena_promise.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/transport/transport.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" -#include "absl/status/statusor.h" class grpc_google_iam_credentials : public grpc_call_credentials { public: diff --git a/src/core/credentials/call/json_util.cc b/src/core/credentials/call/json_util.cc index bdb0d7b4a4afd..9e6bc13c5aebd 100644 --- a/src/core/credentials/call/json_util.cc +++ b/src/core/credentials/call/json_util.cc @@ -26,8 +26,8 @@ #include #include -#include "src/core/lib/iomgr/error.h" #include "absl/strings/str_cat.h" +#include "src/core/lib/iomgr/error.h" const char* grpc_json_get_string_property(const grpc_core::Json& json, const char* prop_name, diff --git a/src/core/credentials/call/jwt/json_token.cc b/src/core/credentials/call/jwt/json_token.cc index f60864fd2cfb5..a4b8b5b4a8a88 100644 --- a/src/core/credentials/call/jwt/json_token.cc +++ b/src/core/credentials/call/jwt/json_token.cc @@ -35,15 +35,15 @@ #include #include -#include "src/core/credentials/call/json_util.h" -#include "src/core/lib/iomgr/error.h" -#include "src/core/util/json/json_reader.h" -#include "src/core/util/json/json_writer.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/escaping.h" +#include "src/core/credentials/call/json_util.h" +#include "src/core/lib/iomgr/error.h" +#include "src/core/util/json/json_reader.h" +#include "src/core/util/json/json_writer.h" using grpc_core::Json; diff --git a/src/core/credentials/call/jwt/jwt_credentials.cc b/src/core/credentials/call/jwt/jwt_credentials.cc index e315be3187252..7e775703413b5 100644 --- a/src/core/credentials/call/jwt/jwt_credentials.cc +++ b/src/core/credentials/call/jwt/jwt_credentials.cc @@ -30,6 +30,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" #include "src/core/call/metadata_batch.h" #include "src/core/credentials/call/call_creds_util.h" #include "src/core/lib/debug/trace.h" @@ -40,10 +44,6 @@ #include "src/core/util/json/json_writer.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/uri.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" using grpc_core::Json; diff --git a/src/core/credentials/call/jwt/jwt_credentials.h b/src/core/credentials/call/jwt/jwt_credentials.h index 75941ccc2afff..51b4ac54c6997 100644 --- a/src/core/credentials/call/jwt/jwt_credentials.h +++ b/src/core/credentials/call/jwt/jwt_credentials.h @@ -29,6 +29,10 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" +#include "absl/time/time.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/call/jwt/json_token.h" #include "src/core/lib/promise/arena_promise.h" @@ -37,10 +41,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" -#include "absl/time/time.h" class grpc_service_account_jwt_access_credentials : public grpc_call_credentials { diff --git a/src/core/credentials/call/jwt/jwt_verifier.cc b/src/core/credentials/call/jwt/jwt_verifier.cc index 1606d251ef1a9..4d47580b231ee 100644 --- a/src/core/credentials/call/jwt/jwt_verifier.cc +++ b/src/core/credentials/call/jwt/jwt_verifier.cc @@ -45,6 +45,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/escaping.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/call/call_credentials.h" // IWYU pragma: keep #include "src/core/credentials/transport/transport_credentials.h" // IWYU pragma: keep #include "src/core/lib/iomgr/closure.h" @@ -64,12 +70,6 @@ #include "src/core/util/orphanable.h" #include "src/core/util/string.h" #include "src/core/util/uri.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/escaping.h" -#include "absl/strings/string_view.h" using grpc_core::Json; diff --git a/src/core/credentials/call/oauth2/oauth2_credentials.cc b/src/core/credentials/call/oauth2/oauth2_credentials.cc index 710a86a6623cd..e42a1879e0aac 100644 --- a/src/core/credentials/call/oauth2/oauth2_credentials.cc +++ b/src/core/credentials/call/oauth2/oauth2_credentials.cc @@ -35,6 +35,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/numbers.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/credentials/call/json_util.h" #include "src/core/credentials/transport/transport_credentials.h" @@ -53,14 +61,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/status_helper.h" #include "src/core/util/uri.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/numbers.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" using grpc_core::Json; diff --git a/src/core/credentials/call/oauth2/oauth2_credentials.h b/src/core/credentials/call/oauth2/oauth2_credentials.h index 0d6aa9d2feb81..a29ddff6d49ae 100644 --- a/src/core/credentials/call/oauth2/oauth2_credentials.h +++ b/src/core/credentials/call/oauth2/oauth2_credentials.h @@ -30,6 +30,8 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/call/token_fetcher/token_fetcher_credentials.h" #include "src/core/lib/iomgr/closure.h" @@ -49,8 +51,6 @@ #include "src/core/util/unique_type_name.h" #include "src/core/util/uri.h" #include "src/core/util/useful.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" // Constants. #define GRPC_STS_POST_MINIMAL_BODY_FORMAT_STRING \ diff --git a/src/core/credentials/call/plugin/plugin_credentials.cc b/src/core/credentials/call/plugin/plugin_credentials.cc index 1afac03750cdd..b2e1c4483fae3 100644 --- a/src/core/credentials/call/plugin/plugin_credentials.cc +++ b/src/core/credentials/call/plugin/plugin_credentials.cc @@ -24,6 +24,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -31,11 +36,6 @@ #include "src/core/lib/slice/slice.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/lib/surface/validate_metadata.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" grpc_plugin_credentials::~grpc_plugin_credentials() { if (plugin_.state != nullptr && plugin_.destroy != nullptr) { diff --git a/src/core/credentials/call/plugin/plugin_credentials.h b/src/core/credentials/call/plugin/plugin_credentials.h index 0bc7331bb7ccc..cf5fd6eb3615f 100644 --- a/src/core/credentials/call/plugin/plugin_credentials.h +++ b/src/core/credentials/call/plugin/plugin_credentials.h @@ -31,6 +31,8 @@ #include #include +#include "absl/container/inlined_vector.h" +#include "absl/status/statusor.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/call/call_creds_util.h" #include "src/core/lib/debug/trace.h" @@ -43,8 +45,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" -#include "absl/container/inlined_vector.h" -#include "absl/status/statusor.h" // This type is forward declared as a C struct and we cannot define it as a // class. Otherwise, compiler will complain about type mismatch due to diff --git a/src/core/credentials/call/token_fetcher/token_fetcher_credentials.h b/src/core/credentials/call/token_fetcher/token_fetcher_credentials.h index 807104fbb3e57..4cd66203c4a87 100644 --- a/src/core/credentials/call/token_fetcher/token_fetcher_credentials.h +++ b/src/core/credentials/call/token_fetcher/token_fetcher_credentials.h @@ -24,6 +24,9 @@ #include #include +#include "absl/container/flat_hash_set.h" +#include "absl/functional/any_invocable.h" +#include "absl/status/statusor.h" #include "src/core/call/metadata.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/lib/iomgr/polling_entity.h" @@ -36,9 +39,6 @@ #include "src/core/util/sync.h" #include "src/core/util/time.h" #include "src/core/util/useful.h" -#include "absl/container/flat_hash_set.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/credentials/transport/alts/alts_security_connector.cc b/src/core/credentials/transport/alts/alts_security_connector.cc index 72d3ebda2956c..a00c6d0774f17 100644 --- a/src/core/credentials/transport/alts/alts_security_connector.cc +++ b/src/core/credentials/transport/alts/alts_security_connector.cc @@ -31,6 +31,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/alts/alts_credentials.h" #include "src/core/credentials/transport/transport_credentials.h" #include "src/core/handshaker/handshaker.h" @@ -50,10 +54,6 @@ #include "src/core/tsi/transport_security.h" #include "src/core/util/debug_location.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" void grpc_alts_set_rpc_protocol_versions( grpc_gcp_rpc_protocol_versions* rpc_versions) { diff --git a/src/core/credentials/transport/alts/check_gcp_environment_no_op.cc b/src/core/credentials/transport/alts/check_gcp_environment_no_op.cc index a284a10b5b554..c9bf0ebf92a2e 100644 --- a/src/core/credentials/transport/alts/check_gcp_environment_no_op.cc +++ b/src/core/credentials/transport/alts/check_gcp_environment_no_op.cc @@ -20,9 +20,9 @@ #if !defined(GPR_LINUX) && !defined(GPR_WINDOWS) +#include "absl/log/log.h" #include "src/core/credentials/transport/alts/check_gcp_environment.h" #include "src/core/util/crash.h" -#include "absl/log/log.h" bool grpc_alts_is_running_on_gcp() { VLOG(2) << "ALTS: Platforms other than Linux and Windows are not supported"; diff --git a/src/core/credentials/transport/alts/grpc_alts_credentials_client_options.cc b/src/core/credentials/transport/alts/grpc_alts_credentials_client_options.cc index 7a79993440f9a..8c448b7301b5a 100644 --- a/src/core/credentials/transport/alts/grpc_alts_credentials_client_options.cc +++ b/src/core/credentials/transport/alts/grpc_alts_credentials_client_options.cc @@ -21,9 +21,9 @@ #include #include +#include "absl/log/log.h" #include "src/core/credentials/transport/alts/grpc_alts_credentials_options.h" #include "src/core/tsi/alts/handshaker/transport_security_common_api.h" -#include "absl/log/log.h" static grpc_alts_credentials_options* alts_client_options_copy( const grpc_alts_credentials_options* options); diff --git a/src/core/credentials/transport/channel_creds_registry.h b/src/core/credentials/transport/channel_creds_registry.h index 16ae8314b9cdf..3d0981947fafe 100644 --- a/src/core/credentials/transport/channel_creds_registry.h +++ b/src/core/credentials/transport/channel_creds_registry.h @@ -24,12 +24,12 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_args.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/validation_errors.h" -#include "absl/strings/string_view.h" struct grpc_channel_credentials; diff --git a/src/core/credentials/transport/channel_creds_registry_init.cc b/src/core/credentials/transport/channel_creds_registry_init.cc index 96a1c61adb876..b5ebf77515a61 100644 --- a/src/core/credentials/transport/channel_creds_registry_init.cc +++ b/src/core/credentials/transport/channel_creds_registry_init.cc @@ -28,6 +28,7 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/transport/channel_creds_registry.h" @@ -42,7 +43,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" #include "src/core/util/validation_errors.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/credentials/transport/composite/composite_channel_credentials.cc b/src/core/credentials/transport/composite/composite_channel_credentials.cc index 842e960df3bfd..931bb0ed32100 100644 --- a/src/core/credentials/transport/composite/composite_channel_credentials.cc +++ b/src/core/credentials/transport/composite/composite_channel_credentials.cc @@ -22,14 +22,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" #include "src/core/call/metadata_batch.h" #include "src/core/credentials/call/composite/composite_call_credentials.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/promise/try_seq.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" grpc_core::UniqueTypeName grpc_composite_channel_credentials::Type() { static grpc_core::UniqueTypeName::Factory kFactory("Composite"); diff --git a/src/core/credentials/transport/composite/composite_channel_credentials.h b/src/core/credentials/transport/composite/composite_channel_credentials.h index add5fc1e10ced..de0fd19d2d2de 100644 --- a/src/core/credentials/transport/composite/composite_channel_credentials.h +++ b/src/core/credentials/transport/composite/composite_channel_credentials.h @@ -28,6 +28,7 @@ #include #include +#include "absl/status/statusor.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/credentials/transport/transport_credentials.h" @@ -37,7 +38,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" -#include "absl/status/statusor.h" class grpc_composite_channel_credentials : public grpc_channel_credentials { public: diff --git a/src/core/credentials/transport/fake/fake_credentials.cc b/src/core/credentials/transport/fake/fake_credentials.cc index 95b17f9f42438..465732bbea979 100644 --- a/src/core/credentials/transport/fake/fake_credentials.cc +++ b/src/core/credentials/transport/fake/fake_credentials.cc @@ -24,13 +24,13 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/credentials/transport/fake/fake_security_connector.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/promise/promise.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/strings/string_view.h" // -- Fake transport security credentials. -- diff --git a/src/core/credentials/transport/fake/fake_credentials.h b/src/core/credentials/transport/fake/fake_credentials.h index e845a79862657..a10852bea6bce 100644 --- a/src/core/credentials/transport/fake/fake_credentials.h +++ b/src/core/credentials/transport/fake/fake_credentials.h @@ -27,6 +27,7 @@ #include +#include "absl/status/statusor.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/credentials/transport/transport_credentials.h" #include "src/core/lib/channel/channel_args.h" @@ -36,7 +37,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" -#include "absl/status/statusor.h" #define GRPC_ARG_FAKE_SECURITY_EXPECTED_TARGETS \ "grpc.fake_security.expected_targets" diff --git a/src/core/credentials/transport/fake/fake_security_connector.cc b/src/core/credentials/transport/fake/fake_security_connector.cc index 6a06f2d2eebc4..de89fb87df386 100644 --- a/src/core/credentials/transport/fake/fake_security_connector.cc +++ b/src/core/credentials/transport/fake/fake_security_connector.cc @@ -30,6 +30,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "src/core/credentials/transport/transport_credentials.h" #include "src/core/handshaker/handshaker.h" @@ -52,12 +58,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/string.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" namespace { class grpc_fake_channel_security_connector final diff --git a/src/core/credentials/transport/google_default/credentials_generic.cc b/src/core/credentials/transport/google_default/credentials_generic.cc index e4bac743680c5..89206d2297d57 100644 --- a/src/core/credentials/transport/google_default/credentials_generic.cc +++ b/src/core/credentials/transport/google_default/credentials_generic.cc @@ -21,11 +21,11 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/transport/google_default/google_default_credentials.h" #include "src/core/util/env.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" std::string grpc_get_well_known_google_credentials_file_path_impl(void) { auto base = grpc_core::GetEnv(GRPC_GOOGLE_CREDENTIALS_PATH_ENV_VAR); diff --git a/src/core/credentials/transport/google_default/google_default_credentials.cc b/src/core/credentials/transport/google_default/google_default_credentials.cc index c488e7fd2cbd8..56aa4133c9f49 100644 --- a/src/core/credentials/transport/google_default/google_default_credentials.cc +++ b/src/core/credentials/transport/google_default/google_default_credentials.cc @@ -32,6 +32,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/statusor.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/call/external/external_account_credentials.h" #include "src/core/credentials/call/jwt/json_token.h" #include "src/core/credentials/call/jwt/jwt_credentials.h" @@ -65,12 +71,6 @@ #include "src/core/util/sync.h" #include "src/core/util/time.h" #include "src/core/util/uri.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/statusor.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" using grpc_core::Json; diff --git a/src/core/credentials/transport/insecure/insecure_security_connector.cc b/src/core/credentials/transport/insecure/insecure_security_connector.cc index 85091b5b750ee..0dbd3203d9325 100644 --- a/src/core/credentials/transport/insecure/insecure_security_connector.cc +++ b/src/core/credentials/transport/insecure/insecure_security_connector.cc @@ -22,6 +22,7 @@ #include #include +#include "absl/log/check.h" #include "src/core/handshaker/security/security_handshaker.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -30,7 +31,6 @@ #include "src/core/tsi/local_transport_security.h" #include "src/core/util/debug_location.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/src/core/credentials/transport/insecure/insecure_security_connector.h b/src/core/credentials/transport/insecure/insecure_security_connector.h index 4988aad2aa611..7407c6ef198ae 100644 --- a/src/core/credentials/transport/insecure/insecure_security_connector.h +++ b/src/core/credentials/transport/insecure/insecure_security_connector.h @@ -26,6 +26,8 @@ #include +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/credentials/transport/transport_credentials.h" #include "src/core/handshaker/handshaker.h" @@ -37,8 +39,6 @@ #include "src/core/lib/promise/arena_promise.h" #include "src/core/tsi/transport_security_interface.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/credentials/transport/local/local_security_connector.cc b/src/core/credentials/transport/local/local_security_connector.cc index 3e88c27d70bba..3c33462fbc39e 100644 --- a/src/core/credentials/transport/local/local_security_connector.cc +++ b/src/core/credentials/transport/local/local_security_connector.cc @@ -29,6 +29,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/match.h" +#include "absl/strings/string_view.h" #include "src/core/client_channel/client_channel_filter.h" #include "src/core/credentials/transport/local/local_credentials.h" #include "src/core/credentials/transport/transport_credentials.h" @@ -56,12 +62,6 @@ #include "src/core/util/debug_location.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/uri.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/match.h" -#include "absl/strings/string_view.h" #define GRPC_UDS_URI_PATTERN "unix:" #define GRPC_ABSTRACT_UDS_URI_PATTERN "unix-abstract:" diff --git a/src/core/credentials/transport/security_connector.cc b/src/core/credentials/transport/security_connector.cc index 4cb5e76c1b68a..ce9d4217bee6b 100644 --- a/src/core/credentials/transport/security_connector.cc +++ b/src/core/credentials/transport/security_connector.cc @@ -23,12 +23,12 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/credentials/transport/transport_credentials.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/debug_location.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" grpc_channel_security_connector::grpc_channel_security_connector( absl::string_view url_scheme, diff --git a/src/core/credentials/transport/security_connector.h b/src/core/credentials/transport/security_connector.h index 8493a9d9403ee..53ebeabc1b41d 100644 --- a/src/core/credentials/transport/security_connector.h +++ b/src/core/credentials/transport/security_connector.h @@ -26,6 +26,8 @@ #include +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/handshaker/handshaker.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" @@ -38,8 +40,6 @@ #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/unique_type_name.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" // --- URL schemes. --- diff --git a/src/core/credentials/transport/ssl/ssl_credentials.cc b/src/core/credentials/transport/ssl/ssl_credentials.cc index 25329222d2327..715d5bb1b5fa2 100644 --- a/src/core/credentials/transport/ssl/ssl_credentials.cc +++ b/src/core/credentials/transport/ssl/ssl_credentials.cc @@ -28,14 +28,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/credentials/transport/tls/ssl_utils.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" #include "src/core/tsi/ssl/session_cache/ssl_session_cache.h" #include "src/core/tsi/ssl_transport_security.h" #include "src/core/tsi/transport_security_interface.h" -#include "absl/log/check.h" -#include "absl/log/log.h" // // SSL Channel Credentials. diff --git a/src/core/credentials/transport/ssl/ssl_credentials.h b/src/core/credentials/transport/ssl/ssl_credentials.h index 3b196909a7f11..cfa6c67a66564 100644 --- a/src/core/credentials/transport/ssl/ssl_credentials.h +++ b/src/core/credentials/transport/ssl/ssl_credentials.h @@ -25,6 +25,7 @@ #include #include +#include "absl/log/check.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/credentials/transport/ssl/ssl_security_connector.h" #include "src/core/credentials/transport/transport_credentials.h" @@ -33,7 +34,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" class grpc_ssl_credentials : public grpc_channel_credentials { public: diff --git a/src/core/credentials/transport/ssl/ssl_security_connector.cc b/src/core/credentials/transport/ssl/ssl_security_connector.cc index f2786df45bf4d..e2050c321d41a 100644 --- a/src/core/credentials/transport/ssl/ssl_security_connector.cc +++ b/src/core/credentials/transport/ssl/ssl_security_connector.cc @@ -26,6 +26,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/ssl/ssl_credentials.h" #include "src/core/credentials/transport/tls/ssl_utils.h" #include "src/core/credentials/transport/transport_credentials.h" @@ -47,12 +53,6 @@ #include "src/core/util/host_port.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" namespace { grpc_error_handle ssl_check_peer( diff --git a/src/core/credentials/transport/tls/certificate_provider_factory.h b/src/core/credentials/transport/tls/certificate_provider_factory.h index c23b9657b112b..15f48a27aff48 100644 --- a/src/core/credentials/transport/tls/certificate_provider_factory.h +++ b/src/core/credentials/transport/tls/certificate_provider_factory.h @@ -25,12 +25,12 @@ #include +#include "absl/strings/string_view.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_args.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/validation_errors.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/credentials/transport/tls/certificate_provider_registry.h b/src/core/credentials/transport/tls/certificate_provider_registry.h index 36b92ec384a64..e76fd6dcb7905 100644 --- a/src/core/credentials/transport/tls/certificate_provider_registry.h +++ b/src/core/credentials/transport/tls/certificate_provider_registry.h @@ -25,8 +25,8 @@ #include #include -#include "src/core/credentials/transport/tls/certificate_provider_factory.h" #include "absl/strings/string_view.h" +#include "src/core/credentials/transport/tls/certificate_provider_factory.h" namespace grpc_core { diff --git a/src/core/credentials/transport/tls/grpc_tls_certificate_distributor.h b/src/core/credentials/transport/tls/grpc_tls_certificate_distributor.h index db623e5d6812e..848ac805f41de 100644 --- a/src/core/credentials/transport/tls/grpc_tls_certificate_distributor.h +++ b/src/core/credentials/transport/tls/grpc_tls_certificate_distributor.h @@ -27,12 +27,12 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/tls/ssl_utils.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/ref_counted.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/strings/string_view.h" struct grpc_tls_identity_pairs { grpc_core::PemKeyCertPairList pem_key_cert_pairs; diff --git a/src/core/credentials/transport/tls/grpc_tls_certificate_match.cc b/src/core/credentials/transport/tls/grpc_tls_certificate_match.cc index 66301e81d4451..b0cb79f71824a 100644 --- a/src/core/credentials/transport/tls/grpc_tls_certificate_match.cc +++ b/src/core/credentials/transport/tls/grpc_tls_certificate_match.cc @@ -21,10 +21,10 @@ #include #include -#include "src/core/credentials/transport/tls/grpc_tls_certificate_provider.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "src/core/credentials/transport/tls/grpc_tls_certificate_provider.h" namespace grpc_core { diff --git a/src/core/credentials/transport/tls/grpc_tls_certificate_provider.cc b/src/core/credentials/transport/tls/grpc_tls_certificate_provider.cc index 21a81856bdd3f..e7feeba2d65de 100644 --- a/src/core/credentials/transport/tls/grpc_tls_certificate_provider.cc +++ b/src/core/credentials/transport/tls/grpc_tls_certificate_provider.cc @@ -27,6 +27,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/tls/ssl_utils.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/error.h" @@ -37,10 +41,6 @@ #include "src/core/util/load_file.h" #include "src/core/util/stat.h" #include "src/core/util/status_helper.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace { diff --git a/src/core/credentials/transport/tls/grpc_tls_certificate_provider.h b/src/core/credentials/transport/tls/grpc_tls_certificate_provider.h index f978254d5ce24..d69aa6e7d597f 100644 --- a/src/core/credentials/transport/tls/grpc_tls_certificate_provider.h +++ b/src/core/credentials/transport/tls/grpc_tls_certificate_provider.h @@ -26,6 +26,10 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_distributor.h" #include "src/core/credentials/transport/tls/ssl_utils.h" #include "src/core/util/ref_counted.h" @@ -34,10 +38,6 @@ #include "src/core/util/thd.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" // Interface for a grpc_tls_certificate_provider that handles the process to // fetch credentials and validation contexts. Implementations are free to rely diff --git a/src/core/credentials/transport/tls/grpc_tls_certificate_verifier.cc b/src/core/credentials/transport/tls/grpc_tls_certificate_verifier.cc index 73dbb5e25f5eb..0b22385ce00ea 100644 --- a/src/core/credentials/transport/tls/grpc_tls_certificate_verifier.cc +++ b/src/core/credentials/transport/tls/grpc_tls_certificate_verifier.cc @@ -24,12 +24,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/tls/tls_utils.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/host_port.h" -#include "absl/log/check.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/credentials/transport/tls/grpc_tls_certificate_verifier.h b/src/core/credentials/transport/tls/grpc_tls_certificate_verifier.h index 762901200bf27..f11bbe8576f7d 100644 --- a/src/core/credentials/transport/tls/grpc_tls_certificate_verifier.h +++ b/src/core/credentials/transport/tls/grpc_tls_certificate_verifier.h @@ -25,13 +25,13 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/status/status.h" #include "src/core/util/ref_counted.h" #include "src/core/util/sync.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/status/status.h" // An abstraction of the verifier that all verifier subclasses should extend. struct grpc_tls_certificate_verifier diff --git a/src/core/credentials/transport/tls/grpc_tls_credentials_options.cc b/src/core/credentials/transport/tls/grpc_tls_credentials_options.cc index bb0921b93435e..f95e6ff9e7a23 100644 --- a/src/core/credentials/transport/tls/grpc_tls_credentials_options.cc +++ b/src/core/credentials/transport/tls/grpc_tls_credentials_options.cc @@ -23,12 +23,12 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/tsi/ssl_transport_security.h" #include "src/core/util/debug_location.h" -#include "absl/log/check.h" -#include "absl/log/log.h" /// -- Wrapper APIs declared in grpc_security.h -- * diff --git a/src/core/credentials/transport/tls/grpc_tls_credentials_options.h b/src/core/credentials/transport/tls/grpc_tls_credentials_options.h index 99c768d553b29..28bd4707342bc 100644 --- a/src/core/credentials/transport/tls/grpc_tls_credentials_options.h +++ b/src/core/credentials/transport/tls/grpc_tls_credentials_options.h @@ -21,16 +21,18 @@ #ifndef GRPC_SRC_CORE_CREDENTIALS_TRANSPORT_TLS_GRPC_TLS_CREDENTIALS_OPTIONS_H #define GRPC_SRC_CORE_CREDENTIALS_TRANSPORT_TLS_GRPC_TLS_CREDENTIALS_OPTIONS_H +#include + +#include "absl/container/inlined_vector.h" + #include #include -#include +#include "src/core/util/ref_counted.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_distributor.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_provider.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_verifier.h" #include "src/core/credentials/transport/tls/ssl_utils.h" -#include "src/core/util/ref_counted.h" -#include "absl/container/inlined_vector.h" // Contains configurable options specified by callers to configure their certain // security features supported in TLS. @@ -42,9 +44,7 @@ struct grpc_tls_credentials_options ~grpc_tls_credentials_options() override = default; // Getters for member fields. - grpc_ssl_client_certificate_request_type cert_request_type() const { - return cert_request_type_; - } + grpc_ssl_client_certificate_request_type cert_request_type() const { return cert_request_type_; } bool verify_server_cert() const { return verify_server_cert_; } grpc_tls_version min_tls_version() const { return min_tls_version_; } grpc_tls_version max_tls_version() const { return max_tls_version_; } @@ -52,145 +52,80 @@ struct grpc_tls_credentials_options return certificate_verifier_.get(); } bool check_call_host() const { return check_call_host_; } - // Returns the distributor from certificate_provider_ if it is set, nullptr - // otherwise. + // Returns the distributor from certificate_provider_ if it is set, nullptr otherwise. grpc_tls_certificate_distributor* certificate_distributor() { - if (certificate_provider_ != nullptr) { - return certificate_provider_->distributor().get(); - } + if (certificate_provider_ != nullptr) { return certificate_provider_->distributor().get(); } return nullptr; } bool watch_root_cert() const { return watch_root_cert_; } const std::string& root_cert_name() const { return root_cert_name_; } bool watch_identity_pair() const { return watch_identity_pair_; } const std::string& identity_cert_name() const { return identity_cert_name_; } - const std::string& tls_session_key_log_file_path() const { - return tls_session_key_log_file_path_; - } + const std::string& tls_session_key_log_file_path() const { return tls_session_key_log_file_path_; } const std::string& crl_directory() const { return crl_directory_; } // Returns the CRL Provider - std::shared_ptr crl_provider() const { - return crl_provider_; - } + std::shared_ptr crl_provider() const { return crl_provider_; } bool send_client_ca_list() const { return send_client_ca_list_; } // Setters for member fields. - void set_cert_request_type( - grpc_ssl_client_certificate_request_type cert_request_type) { - cert_request_type_ = cert_request_type; - } - void set_verify_server_cert(bool verify_server_cert) { - verify_server_cert_ = verify_server_cert; - } - void set_min_tls_version(grpc_tls_version min_tls_version) { - min_tls_version_ = min_tls_version; - } - void set_max_tls_version(grpc_tls_version max_tls_version) { - max_tls_version_ = max_tls_version; - } - void set_certificate_verifier( - grpc_core::RefCountedPtr - certificate_verifier) { - certificate_verifier_ = std::move(certificate_verifier); - } - void set_check_call_host(bool check_call_host) { - check_call_host_ = check_call_host; - } - void set_certificate_provider( - grpc_core::RefCountedPtr - certificate_provider) { - certificate_provider_ = std::move(certificate_provider); - } - // If need to watch the updates of root certificates with name - // |root_cert_name|. The default value is false. If used in tls_credentials, - // it should always be set to true unless the root certificates are not - // needed. - void set_watch_root_cert(bool watch_root_cert) { - watch_root_cert_ = watch_root_cert; - } - // Sets the name of root certificates being watched, if |set_watch_root_cert| - // is called. If not set, an empty string will be used as the name. - void set_root_cert_name(std::string root_cert_name) { - root_cert_name_ = std::move(root_cert_name); - } - // If need to watch the updates of identity certificates with name - // |identity_cert_name|. The default value is false. If used in - // tls_credentials, it should always be set to true unless the identity - // key-cert pairs are not needed. - void set_watch_identity_pair(bool watch_identity_pair) { - watch_identity_pair_ = watch_identity_pair; - } - // Sets the name of identity key-cert pairs being watched, if - // |set_watch_identity_pair| is called. If not set, an empty string will be - // used as the name. - void set_identity_cert_name(std::string identity_cert_name) { - identity_cert_name_ = std::move(identity_cert_name); - } - void set_tls_session_key_log_file_path( - std::string tls_session_key_log_file_path) { - tls_session_key_log_file_path_ = std::move(tls_session_key_log_file_path); - } - // gRPC will enforce CRLs on all handshakes from all hashed CRL files inside - // of the crl_directory. If not set, an empty string will be used, which will - // not enable CRL checking. Only supported for OpenSSL version > 1.1. - void set_crl_directory(std::string crl_directory) { - crl_directory_ = std::move(crl_directory); - } - void set_crl_provider( - std::shared_ptr crl_provider) { - crl_provider_ = std::move(crl_provider); - } - void set_send_client_ca_list(bool send_client_ca_list) { - send_client_ca_list_ = send_client_ca_list; - } + void set_cert_request_type(grpc_ssl_client_certificate_request_type cert_request_type) { cert_request_type_ = cert_request_type; } + void set_verify_server_cert(bool verify_server_cert) { verify_server_cert_ = verify_server_cert; } + void set_min_tls_version(grpc_tls_version min_tls_version) { min_tls_version_ = min_tls_version; } + void set_max_tls_version(grpc_tls_version max_tls_version) { max_tls_version_ = max_tls_version; } + void set_certificate_verifier(grpc_core::RefCountedPtr certificate_verifier) { certificate_verifier_ = std::move(certificate_verifier); } + void set_check_call_host(bool check_call_host) { check_call_host_ = check_call_host; } + void set_certificate_provider(grpc_core::RefCountedPtr certificate_provider) { certificate_provider_ = std::move(certificate_provider); } + // If need to watch the updates of root certificates with name |root_cert_name|. The default value is false. If used in tls_credentials, it should always be set to true unless the root certificates are not needed. + void set_watch_root_cert(bool watch_root_cert) { watch_root_cert_ = watch_root_cert; } + // Sets the name of root certificates being watched, if |set_watch_root_cert| is called. If not set, an empty string will be used as the name. + void set_root_cert_name(std::string root_cert_name) { root_cert_name_ = std::move(root_cert_name); } + // If need to watch the updates of identity certificates with name |identity_cert_name|. The default value is false. If used in tls_credentials, it should always be set to true unless the identity key-cert pairs are not needed. + void set_watch_identity_pair(bool watch_identity_pair) { watch_identity_pair_ = watch_identity_pair; } + // Sets the name of identity key-cert pairs being watched, if |set_watch_identity_pair| is called. If not set, an empty string will be used as the name. + void set_identity_cert_name(std::string identity_cert_name) { identity_cert_name_ = std::move(identity_cert_name); } + void set_tls_session_key_log_file_path(std::string tls_session_key_log_file_path) { tls_session_key_log_file_path_ = std::move(tls_session_key_log_file_path); } + // gRPC will enforce CRLs on all handshakes from all hashed CRL files inside of the crl_directory. If not set, an empty string will be used, which will not enable CRL checking. Only supported for OpenSSL version > 1.1. + void set_crl_directory(std::string crl_directory) { crl_directory_ = std::move(crl_directory); } + void set_crl_provider(std::shared_ptr crl_provider) { crl_provider_ = std::move(crl_provider); } + void set_send_client_ca_list(bool send_client_ca_list) { send_client_ca_list_ = send_client_ca_list; } bool operator==(const grpc_tls_credentials_options& other) const { return cert_request_type_ == other.cert_request_type_ && - verify_server_cert_ == other.verify_server_cert_ && - min_tls_version_ == other.min_tls_version_ && - max_tls_version_ == other.max_tls_version_ && - (certificate_verifier_ == other.certificate_verifier_ || - (certificate_verifier_ != nullptr && - other.certificate_verifier_ != nullptr && - certificate_verifier_->Compare( - other.certificate_verifier_.get()) == 0)) && - check_call_host_ == other.check_call_host_ && - (certificate_provider_ == other.certificate_provider_ || - (certificate_provider_ != nullptr && - other.certificate_provider_ != nullptr && - certificate_provider_->Compare( - other.certificate_provider_.get()) == 0)) && - watch_root_cert_ == other.watch_root_cert_ && - root_cert_name_ == other.root_cert_name_ && - watch_identity_pair_ == other.watch_identity_pair_ && - identity_cert_name_ == other.identity_cert_name_ && - tls_session_key_log_file_path_ == - other.tls_session_key_log_file_path_ && - crl_directory_ == other.crl_directory_ && - (crl_provider_ == other.crl_provider_) && - send_client_ca_list_ == other.send_client_ca_list_; + verify_server_cert_ == other.verify_server_cert_ && + min_tls_version_ == other.min_tls_version_ && + max_tls_version_ == other.max_tls_version_ && + (certificate_verifier_ == other.certificate_verifier_ || (certificate_verifier_ != nullptr && other.certificate_verifier_ != nullptr && certificate_verifier_->Compare(other.certificate_verifier_.get()) == 0)) && + check_call_host_ == other.check_call_host_ && + (certificate_provider_ == other.certificate_provider_ || (certificate_provider_ != nullptr && other.certificate_provider_ != nullptr && certificate_provider_->Compare(other.certificate_provider_.get()) == 0)) && + watch_root_cert_ == other.watch_root_cert_ && + root_cert_name_ == other.root_cert_name_ && + watch_identity_pair_ == other.watch_identity_pair_ && + identity_cert_name_ == other.identity_cert_name_ && + tls_session_key_log_file_path_ == other.tls_session_key_log_file_path_ && + crl_directory_ == other.crl_directory_ && + (crl_provider_ == other.crl_provider_) && + send_client_ca_list_ == other.send_client_ca_list_; } - grpc_tls_credentials_options(grpc_tls_credentials_options& other) - : cert_request_type_(other.cert_request_type_), - verify_server_cert_(other.verify_server_cert_), - min_tls_version_(other.min_tls_version_), - max_tls_version_(other.max_tls_version_), - certificate_verifier_(other.certificate_verifier_), - check_call_host_(other.check_call_host_), - certificate_provider_(other.certificate_provider_), - watch_root_cert_(other.watch_root_cert_), - root_cert_name_(other.root_cert_name_), - watch_identity_pair_(other.watch_identity_pair_), - identity_cert_name_(other.identity_cert_name_), - tls_session_key_log_file_path_(other.tls_session_key_log_file_path_), - crl_directory_(other.crl_directory_), - crl_provider_(other.crl_provider_), - send_client_ca_list_(other.send_client_ca_list_) {} + grpc_tls_credentials_options(grpc_tls_credentials_options& other) : + cert_request_type_(other.cert_request_type_), + verify_server_cert_(other.verify_server_cert_), + min_tls_version_(other.min_tls_version_), + max_tls_version_(other.max_tls_version_), + certificate_verifier_(other.certificate_verifier_), + check_call_host_(other.check_call_host_), + certificate_provider_(other.certificate_provider_), + watch_root_cert_(other.watch_root_cert_), + root_cert_name_(other.root_cert_name_), + watch_identity_pair_(other.watch_identity_pair_), + identity_cert_name_(other.identity_cert_name_), + tls_session_key_log_file_path_(other.tls_session_key_log_file_path_), + crl_directory_(other.crl_directory_), + crl_provider_(other.crl_provider_), + send_client_ca_list_(other.send_client_ca_list_) {} private: - grpc_ssl_client_certificate_request_type cert_request_type_ = - GRPC_SSL_DONT_REQUEST_CLIENT_CERTIFICATE; + grpc_ssl_client_certificate_request_type cert_request_type_ = GRPC_SSL_DONT_REQUEST_CLIENT_CERTIFICATE; bool verify_server_cert_ = true; grpc_tls_version min_tls_version_ = grpc_tls_version::TLS1_2; grpc_tls_version max_tls_version_ = grpc_tls_version::TLS1_3; diff --git a/src/core/credentials/transport/tls/grpc_tls_crl_provider.cc b/src/core/credentials/transport/tls/grpc_tls_crl_provider.cc index 7bd4c5ab0b49f..a882cf392f8af 100644 --- a/src/core/credentials/transport/tls/grpc_tls_crl_provider.cc +++ b/src/core/credentials/transport/tls/grpc_tls_crl_provider.cc @@ -33,11 +33,6 @@ #include #include -#include "src/core/lib/event_engine/default_event_engine.h" -#include "src/core/lib/iomgr/exec_ctx.h" -#include "src/core/lib/slice/slice.h" -#include "src/core/util/directory_reader.h" -#include "src/core/util/load_file.h" #include "absl/container/flat_hash_map.h" #include "absl/log/log.h" #include "absl/status/status.h" @@ -45,6 +40,11 @@ #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" #include "absl/types/span.h" +#include "src/core/lib/event_engine/default_event_engine.h" +#include "src/core/lib/iomgr/exec_ctx.h" +#include "src/core/lib/slice/slice.h" +#include "src/core/util/directory_reader.h" +#include "src/core/util/load_file.h" namespace grpc_core { namespace experimental { diff --git a/src/core/credentials/transport/tls/grpc_tls_crl_provider.h b/src/core/credentials/transport/tls/grpc_tls_crl_provider.h index ef4f147f9655f..f3f2fe4030b30 100644 --- a/src/core/credentials/transport/tls/grpc_tls_crl_provider.h +++ b/src/core/credentials/transport/tls/grpc_tls_crl_provider.h @@ -31,14 +31,14 @@ #include #include -#include "src/core/util/directory_reader.h" -#include "src/core/util/sync.h" -#include "src/core/util/time.h" #include "absl/base/thread_annotations.h" #include "absl/container/flat_hash_map.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "src/core/util/directory_reader.h" +#include "src/core/util/sync.h" +#include "src/core/util/time.h" namespace grpc_core { namespace experimental { diff --git a/src/core/credentials/transport/tls/load_system_roots_supported.cc b/src/core/credentials/transport/tls/load_system_roots_supported.cc index 01186a60a1792..bb1b623d3e54b 100644 --- a/src/core/credentials/transport/tls/load_system_roots_supported.cc +++ b/src/core/credentials/transport/tls/load_system_roots_supported.cc @@ -33,13 +33,13 @@ #include #include +#include "absl/log/log.h" #include "src/core/config/config_vars.h" #include "src/core/credentials/transport/tls/load_system_roots.h" #include "src/core/credentials/transport/tls/load_system_roots_supported.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/load_file.h" #include "src/core/util/useful.h" -#include "absl/log/log.h" namespace grpc_core { namespace { diff --git a/src/core/credentials/transport/tls/ssl_utils.cc b/src/core/credentials/transport/tls/ssl_utils.cc index 5c6c6b6616c15..e8d8c64bf6d9e 100644 --- a/src/core/credentials/transport/tls/ssl_utils.cc +++ b/src/core/credentials/transport/tls/ssl_utils.cc @@ -33,6 +33,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_split.h" #include "src/core/config/config_vars.h" #include "src/core/credentials/transport/tls/load_system_roots.h" #include "src/core/ext/transport/chttp2/alpn/alpn.h" @@ -44,11 +49,6 @@ #include "src/core/util/load_file.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_split.h" // -- Constants. -- diff --git a/src/core/credentials/transport/tls/ssl_utils.h b/src/core/credentials/transport/tls/ssl_utils.h index cf9c74276b154..e413a784deb81 100644 --- a/src/core/credentials/transport/tls/ssl_utils.h +++ b/src/core/credentials/transport/tls/ssl_utils.h @@ -31,14 +31,14 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/lib/iomgr/error.h" #include "src/core/tsi/ssl/key_logging/ssl_key_logging.h" #include "src/core/tsi/ssl_transport_security.h" #include "src/core/tsi/transport_security_interface.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" // --- Util --- diff --git a/src/core/credentials/transport/tls/tls_credentials.cc b/src/core/credentials/transport/tls/tls_credentials.cc index 8068e8fe55649..40ee7e81d36fa 100644 --- a/src/core/credentials/transport/tls/tls_credentials.cc +++ b/src/core/credentials/transport/tls/tls_credentials.cc @@ -28,13 +28,13 @@ #include #include +#include "absl/log/log.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_verifier.h" #include "src/core/credentials/transport/tls/grpc_tls_credentials_options.h" #include "src/core/credentials/transport/tls/tls_security_connector.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/tsi/ssl/session_cache/ssl_session_cache.h" #include "src/core/util/useful.h" -#include "absl/log/log.h" namespace { diff --git a/src/core/credentials/transport/tls/tls_security_connector.cc b/src/core/credentials/transport/tls/tls_security_connector.cc index 328f3d1ca42be..31c827646fcc7 100644 --- a/src/core/credentials/transport/tls/tls_security_connector.cc +++ b/src/core/credentials/transport/tls/tls_security_connector.cc @@ -29,6 +29,11 @@ #include #include +#include "absl/functional/bind_front.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_verifier.h" #include "src/core/credentials/transport/tls/grpc_tls_credentials_options.h" #include "src/core/credentials/transport/tls/ssl_utils.h" @@ -42,11 +47,6 @@ #include "src/core/util/debug_location.h" #include "src/core/util/host_port.h" #include "src/core/util/status_helper.h" -#include "absl/functional/bind_front.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/credentials/transport/tls/tls_security_connector.h b/src/core/credentials/transport/tls/tls_security_connector.h index dbee84ec43bdf..fefb1387911bc 100644 --- a/src/core/credentials/transport/tls/tls_security_connector.h +++ b/src/core/credentials/transport/tls/tls_security_connector.h @@ -28,6 +28,9 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_distributor.h" #include "src/core/credentials/transport/tls/ssl_utils.h" @@ -43,9 +46,6 @@ #include "src/core/tsi/transport_security_interface.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" using TlsSessionKeyLogger = tsi::TlsSessionKeyLoggerCache::TlsSessionKeyLogger; diff --git a/src/core/credentials/transport/transport_credentials.cc b/src/core/credentials/transport/transport_credentials.cc index 16f6c8e1625ac..ad46b43a516e6 100644 --- a/src/core/credentials/transport/transport_credentials.cc +++ b/src/core/credentials/transport/transport_credentials.cc @@ -20,12 +20,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" // -- Common. -- diff --git a/src/core/credentials/transport/transport_credentials.h b/src/core/credentials/transport/transport_credentials.h index 2550fa862b3d5..a8e8a0821eca5 100644 --- a/src/core/credentials/transport/transport_credentials.h +++ b/src/core/credentials/transport/transport_credentials.h @@ -28,6 +28,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/lib/channel/channel_args.h" @@ -38,9 +41,6 @@ #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/unique_type_name.h" -#include "absl/log/check.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" // --- Constants. --- diff --git a/src/core/credentials/transport/xds/xds_credentials.cc b/src/core/credentials/transport/xds/xds_credentials.cc index b7cf1a6ef33db..3e3fb9025b3f6 100644 --- a/src/core/credentials/transport/xds/xds_credentials.cc +++ b/src/core/credentials/transport/xds/xds_credentials.cc @@ -24,6 +24,7 @@ #include +#include "absl/log/check.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_provider.h" #include "src/core/credentials/transport/tls/grpc_tls_credentials_options.h" #include "src/core/credentials/transport/tls/tls_credentials.h" @@ -32,7 +33,6 @@ #include "src/core/load_balancing/xds/xds_channel_args.h" #include "src/core/util/useful.h" #include "src/core/xds/grpc/xds_certificate_provider.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/src/core/credentials/transport/xds/xds_credentials.h b/src/core/credentials/transport/xds/xds_credentials.h index 41c569a20df76..eedf55ddc342a 100644 --- a/src/core/credentials/transport/xds/xds_credentials.h +++ b/src/core/credentials/transport/xds/xds_credentials.h @@ -30,6 +30,7 @@ #include #include +#include "absl/status/status.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_verifier.h" #include "src/core/credentials/transport/transport_credentials.h" @@ -38,7 +39,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/unique_type_name.h" #include "src/core/xds/grpc/xds_certificate_provider.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/src/core/ext/filters/backend_metrics/backend_metric_filter.cc b/src/core/ext/filters/backend_metrics/backend_metric_filter.cc index 17315a51602be..03a8c859c6845 100644 --- a/src/core/ext/filters/backend_metrics/backend_metric_filter.cc +++ b/src/core/ext/filters/backend_metrics/backend_metric_filter.cc @@ -24,6 +24,8 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_stack.h" @@ -36,11 +38,9 @@ #include "src/core/lib/surface/channel_stack_type.h" #include "src/core/load_balancing/backend_metric_data.h" #include "src/core/util/latent_see.h" -#include "absl/log/log.h" -#include "absl/strings/string_view.h" -#include "xds/data/orca/v3/orca_load_report.upb.h" #include "upb/base/string_view.h" #include "upb/mem/arena.hpp" +#include "xds/data/orca/v3/orca_load_report.upb.h" namespace grpc_core { diff --git a/src/core/ext/filters/backend_metrics/backend_metric_filter.h b/src/core/ext/filters/backend_metrics/backend_metric_filter.h index c9dcb06eb6439..1d29a7f918cf4 100644 --- a/src/core/ext/filters/backend_metrics/backend_metric_filter.h +++ b/src/core/ext/filters/backend_metrics/backend_metric_filter.h @@ -20,13 +20,13 @@ #include #include +#include "absl/status/statusor.h" #include "src/core/ext/filters/backend_metrics/backend_metric_provider.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/promise_based_filter.h" #include "src/core/lib/promise/arena_promise.h" #include "src/core/lib/transport/transport.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.cc b/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.cc index 1984fac22b1d1..06a2c5ff1b284 100644 --- a/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.cc +++ b/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.cc @@ -24,6 +24,10 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/meta/type_traits.h" +#include "absl/random/random.h" +#include "absl/status/statusor.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/chttp2/transport/http2_status.h" @@ -49,10 +53,6 @@ #include "src/core/util/shared_bit_gen.h" #include "src/core/util/status_helper.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/meta/type_traits.h" -#include "absl/random/random.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.h b/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.h index 8b70e8ee9faa9..b903b41f76665 100644 --- a/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.h +++ b/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.h @@ -20,6 +20,8 @@ #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/ext/filters/channel_idle/idle_filter_state.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" @@ -33,8 +35,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/single_set_ptr.h" #include "src/core/util/time.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/ext/filters/fault_injection/fault_injection_filter.cc b/src/core/ext/filters/fault_injection/fault_injection_filter.cc index 7e0c5e4824c28..4098d55c35276 100644 --- a/src/core/ext/filters/fault_injection/fault_injection_filter.cc +++ b/src/core/ext/filters/fault_injection/fault_injection_filter.cc @@ -28,6 +28,13 @@ #include #include +#include "absl/log/log.h" +#include "absl/meta/type_traits.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/numbers.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/call/status_util.h" #include "src/core/config/core_configuration.h" @@ -40,13 +47,6 @@ #include "src/core/lib/transport/transport.h" #include "src/core/service_config/service_config_call_data.h" #include "src/core/util/time.h" -#include "absl/log/log.h" -#include "absl/meta/type_traits.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/numbers.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/ext/filters/fault_injection/fault_injection_filter.h b/src/core/ext/filters/fault_injection/fault_injection_filter.h index 990191fbf0e50..bacac5e37b05a 100644 --- a/src/core/ext/filters/fault_injection/fault_injection_filter.h +++ b/src/core/ext/filters/fault_injection/fault_injection_filter.h @@ -22,15 +22,15 @@ #include +#include "absl/base/thread_annotations.h" +#include "absl/random/random.h" +#include "absl/status/statusor.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/promise_based_filter.h" #include "src/core/lib/promise/arena_promise.h" #include "src/core/lib/transport/transport.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/random/random.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.h b/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.h index 29b913339bb1a..7c9928d3d5acb 100644 --- a/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.h +++ b/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.h @@ -27,6 +27,7 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/service_config/service_config_parser.h" @@ -35,7 +36,6 @@ #include "src/core/util/json/json_object_loader.h" #include "src/core/util/time.h" #include "src/core/util/validation_errors.h" -#include "absl/strings/string_view.h" // Channel arg key for enabling parsing fault injection via method config. #define GRPC_ARG_PARSE_FAULT_INJECTION_METHOD_CONFIG \ diff --git a/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.cc b/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.cc index 93cf814d19d98..ef10a1a3a1dce 100644 --- a/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.cc +++ b/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.cc @@ -20,6 +20,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/str_cat.h" #include "src/core/call/security_context.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/call/gcp_service_account_identity/gcp_service_account_identity_credentials.h" @@ -31,8 +33,6 @@ #include "src/core/resolver/xds/xds_resolver_attributes.h" #include "src/core/service_config/service_config.h" #include "src/core/service_config/service_config_call_data.h" -#include "absl/log/check.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.h b/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.h index 3452ca80dd04f..cac2ae7ac7792 100644 --- a/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.h +++ b/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.h @@ -20,6 +20,9 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/ext/filters/gcp_authentication/gcp_authentication_service_config_parser.h" #include "src/core/filter/blackboard.h" @@ -31,9 +34,6 @@ #include "src/core/util/lru_cache.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/ext/filters/gcp_authentication/gcp_authentication_service_config_parser.h b/src/core/ext/filters/gcp_authentication/gcp_authentication_service_config_parser.h index 270353d755412..e1c35cf781a53 100644 --- a/src/core/ext/filters/gcp_authentication/gcp_authentication_service_config_parser.h +++ b/src/core/ext/filters/gcp_authentication/gcp_authentication_service_config_parser.h @@ -24,6 +24,7 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/service_config/service_config_parser.h" @@ -31,7 +32,6 @@ #include "src/core/util/json/json_args.h" #include "src/core/util/json/json_object_loader.h" #include "src/core/util/validation_errors.h" -#include "absl/strings/string_view.h" // Channel arg key for enabling parsing fault injection via method config. #define GRPC_ARG_PARSE_GCP_AUTHENTICATION_METHOD_CONFIG \ diff --git a/src/core/ext/filters/http/client/http_client_filter.cc b/src/core/ext/filters/http/client/http_client_filter.cc index cc55163728be6..b9c11b67dbffb 100644 --- a/src/core/ext/filters/http/client/http_client_filter.cc +++ b/src/core/ext/filters/http/client/http_client_filter.cc @@ -30,6 +30,12 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_stack.h" #include "src/core/lib/promise/context.h" @@ -42,12 +48,6 @@ #include "src/core/lib/transport/status_conversion.h" #include "src/core/lib/transport/transport.h" #include "src/core/util/latent_see.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/ext/filters/http/client/http_client_filter.h b/src/core/ext/filters/http/client/http_client_filter.h index 500b0ae067c2b..8c82c0cd556b7 100644 --- a/src/core/ext/filters/http/client/http_client_filter.h +++ b/src/core/ext/filters/http/client/http_client_filter.h @@ -20,13 +20,13 @@ #include +#include "absl/status/statusor.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/promise_based_filter.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/transport/transport.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/ext/filters/http/client_authority_filter.cc b/src/core/ext/filters/http/client_authority_filter.cc index 605a7b4d17293..7a8febaff5988 100644 --- a/src/core/ext/filters/http/client_authority_filter.cc +++ b/src/core/ext/filters/http/client_authority_filter.cc @@ -25,14 +25,14 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/filter/auth/auth_filters.h" #include "src/core/lib/channel/channel_stack.h" #include "src/core/lib/surface/channel_stack_type.h" #include "src/core/util/latent_see.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/ext/filters/http/client_authority_filter.h b/src/core/ext/filters/http/client_authority_filter.h index b09427a96e57a..b40cf7ae98732 100644 --- a/src/core/ext/filters/http/client_authority_filter.h +++ b/src/core/ext/filters/http/client_authority_filter.h @@ -23,13 +23,13 @@ #include +#include "absl/status/statusor.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/promise_based_filter.h" #include "src/core/lib/promise/arena_promise.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/transport/transport.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/ext/filters/http/http_filters_plugin.cc b/src/core/ext/filters/http/http_filters_plugin.cc index 9a5fcf9cef717..a684ef0fc9ec1 100644 --- a/src/core/ext/filters/http/http_filters_plugin.cc +++ b/src/core/ext/filters/http/http_filters_plugin.cc @@ -18,6 +18,7 @@ #include +#include "absl/strings/match.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/filters/http/client/http_client_filter.h" #include "src/core/ext/filters/http/message_compress/compression_filter.h" @@ -27,7 +28,6 @@ #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/surface/channel_stack_type.h" #include "src/core/lib/transport/transport.h" -#include "absl/strings/match.h" namespace grpc_core { namespace { diff --git a/src/core/ext/filters/http/message_compress/compression_filter.cc b/src/core/ext/filters/http/message_compress/compression_filter.cc index 4ebf782a7d77c..baf5224391994 100644 --- a/src/core/ext/filters/http/message_compress/compression_filter.cc +++ b/src/core/ext/filters/http/message_compress/compression_filter.cc @@ -26,6 +26,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" #include "src/core/call/metadata_batch.h" #include "src/core/ext/filters/message_size/message_size_filter.h" #include "src/core/lib/channel/channel_args.h" @@ -45,10 +49,6 @@ #include "src/core/lib/transport/transport.h" #include "src/core/telemetry/call_tracer.h" #include "src/core/util/latent_see.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" namespace grpc_core { diff --git a/src/core/ext/filters/http/message_compress/compression_filter.h b/src/core/ext/filters/http/message_compress/compression_filter.h index b6ce73083e8a9..22daaad6d6bcd 100644 --- a/src/core/ext/filters/http/message_compress/compression_filter.h +++ b/src/core/ext/filters/http/message_compress/compression_filter.h @@ -26,6 +26,8 @@ #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" @@ -33,8 +35,6 @@ #include "src/core/lib/compression/compression_internal.h" #include "src/core/lib/promise/arena_promise.h" #include "src/core/lib/transport/transport.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/ext/filters/http/server/http_server_filter.cc b/src/core/ext/filters/http/server/http_server_filter.cc index 1ea63da34456c..f55591806e97e 100644 --- a/src/core/ext/filters/http/server/http_server_filter.cc +++ b/src/core/ext/filters/http/server/http_server_filter.cc @@ -27,6 +27,9 @@ #include #include +#include "absl/base/attributes.h" +#include "absl/log/log.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_stack.h" @@ -41,9 +44,6 @@ #include "src/core/lib/slice/percent_encoding.h" #include "src/core/lib/slice/slice.h" #include "src/core/util/latent_see.h" -#include "absl/base/attributes.h" -#include "absl/log/log.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/ext/filters/http/server/http_server_filter.h b/src/core/ext/filters/http/server/http_server_filter.h index 157b9179788de..6d61c9ccfa47b 100644 --- a/src/core/ext/filters/http/server/http_server_filter.h +++ b/src/core/ext/filters/http/server/http_server_filter.h @@ -21,12 +21,12 @@ #include +#include "absl/status/statusor.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/promise_based_filter.h" #include "src/core/lib/promise/arena_promise.h" #include "src/core/lib/transport/transport.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/ext/filters/load_reporting/server_load_reporting_filter.cc b/src/core/ext/filters/load_reporting/server_load_reporting_filter.cc index f680e0f78b48b..243c5a99105d1 100644 --- a/src/core/ext/filters/load_reporting/server_load_reporting_filter.cc +++ b/src/core/ext/filters/load_reporting/server_load_reporting_filter.cc @@ -32,6 +32,13 @@ #include #include +#include "absl/container/inlined_vector.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/ascii.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" #include "opencensus/stats/stats.h" #include "opencensus/tags/tag_key.h" #include "src/core/call/call_finalization.h" @@ -54,13 +61,6 @@ #include "src/core/util/latent_see.h" #include "src/core/util/uri.h" #include "src/cpp/server/load_reporter/constants.h" -#include "absl/container/inlined_vector.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/ascii.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" // IWYU pragma: no_include "opencensus/stats/recording.h" diff --git a/src/core/ext/filters/load_reporting/server_load_reporting_filter.h b/src/core/ext/filters/load_reporting/server_load_reporting_filter.h index e65f8b6b479e3..2d0f2e2023728 100644 --- a/src/core/ext/filters/load_reporting/server_load_reporting_filter.h +++ b/src/core/ext/filters/load_reporting/server_load_reporting_filter.h @@ -24,11 +24,11 @@ #include +#include "absl/status/statusor.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/promise_based_filter.h" #include "src/core/lib/promise/arena_promise.h" #include "src/core/lib/transport/transport.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/ext/filters/logging/logging_filter.cc b/src/core/ext/filters/logging/logging_filter.cc index dfc5e8ac7757b..b658e7afec456 100644 --- a/src/core/ext/filters/logging/logging_filter.cc +++ b/src/core/ext/filters/logging/logging_filter.cc @@ -34,6 +34,16 @@ #include #include +#include "absl/log/log.h" +#include "absl/numeric/int128.h" +#include "absl/random/random.h" +#include "absl/random/uniform_int_distribution.h" +#include "absl/status/statusor.h" +#include "absl/strings/numbers.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" +#include "absl/strings/strip.h" #include "src/core/call/metadata_batch.h" #include "src/core/client_channel/client_channel_filter.h" #include "src/core/config/core_configuration.h" @@ -57,16 +67,6 @@ #include "src/core/util/latent_see.h" #include "src/core/util/time.h" #include "src/core/util/uri.h" -#include "absl/log/log.h" -#include "absl/numeric/int128.h" -#include "absl/random/random.h" -#include "absl/random/uniform_int_distribution.h" -#include "absl/status/statusor.h" -#include "absl/strings/numbers.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" -#include "absl/strings/strip.h" namespace grpc_core { diff --git a/src/core/ext/filters/logging/logging_filter.h b/src/core/ext/filters/logging/logging_filter.h index c6caa3ce97678..3827dfb5189f1 100644 --- a/src/core/ext/filters/logging/logging_filter.h +++ b/src/core/ext/filters/logging/logging_filter.h @@ -24,13 +24,13 @@ #include #include +#include "absl/status/statusor.h" #include "src/core/ext/filters/logging/logging_sink.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/promise_based_filter.h" #include "src/core/lib/promise/arena_promise.h" #include "src/core/lib/transport/transport.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/ext/filters/logging/logging_sink.h b/src/core/ext/filters/logging/logging_sink.h index 7519374c441b8..8b7914e011053 100644 --- a/src/core/ext/filters/logging/logging_sink.h +++ b/src/core/ext/filters/logging/logging_sink.h @@ -25,10 +25,10 @@ #include #include -#include "src/core/util/time.h" #include "absl/numeric/int128.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" +#include "src/core/util/time.h" namespace grpc_core { diff --git a/src/core/ext/filters/message_size/message_size_filter.cc b/src/core/ext/filters/message_size/message_size_filter.cc index d00d8aa96d5cb..3000e73518d66 100644 --- a/src/core/ext/filters/message_size/message_size_filter.cc +++ b/src/core/ext/filters/message_size/message_size_filter.cc @@ -24,6 +24,8 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/str_format.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" @@ -40,8 +42,6 @@ #include "src/core/lib/transport/transport.h" #include "src/core/service_config/service_config_call_data.h" #include "src/core/util/latent_see.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" namespace grpc_core { diff --git a/src/core/ext/filters/message_size/message_size_filter.h b/src/core/ext/filters/message_size/message_size_filter.h index e7763185a6aa2..4ff2dbbe5b132 100644 --- a/src/core/ext/filters/message_size/message_size_filter.h +++ b/src/core/ext/filters/message_size/message_size_filter.h @@ -24,6 +24,8 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" @@ -35,8 +37,6 @@ #include "src/core/util/json/json_args.h" #include "src/core/util/json/json_object_loader.h" #include "src/core/util/validation_errors.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/ext/filters/rbac/rbac_filter.cc b/src/core/ext/filters/rbac/rbac_filter.cc index 5377fb458ee45..e8a7ad6f9e95e 100644 --- a/src/core/ext/filters/rbac/rbac_filter.cc +++ b/src/core/ext/filters/rbac/rbac_filter.cc @@ -23,6 +23,7 @@ #include #include +#include "absl/status/status.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/filters/rbac/rbac_service_config_parser.h" @@ -37,7 +38,6 @@ #include "src/core/service_config/service_config_call_data.h" #include "src/core/transport/auth_context.h" #include "src/core/util/latent_see.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/src/core/ext/filters/rbac/rbac_filter.h b/src/core/ext/filters/rbac/rbac_filter.h index 88fb3146ba2f8..e7f95d344af8d 100644 --- a/src/core/ext/filters/rbac/rbac_filter.h +++ b/src/core/ext/filters/rbac/rbac_filter.h @@ -20,13 +20,13 @@ #include #include +#include "absl/status/statusor.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/promise_based_filter.h" #include "src/core/lib/promise/arena_promise.h" #include "src/core/lib/security/authorization/evaluate_args.h" #include "src/core/lib/transport/transport.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/ext/filters/rbac/rbac_service_config_parser.cc b/src/core/ext/filters/rbac/rbac_service_config_parser.cc index 27b0b4c03c5e5..fff63d17ceff4 100644 --- a/src/core/ext/filters/rbac/rbac_service_config_parser.cc +++ b/src/core/ext/filters/rbac/rbac_service_config_parser.cc @@ -25,14 +25,14 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/security/authorization/audit_logging.h" #include "src/core/util/json/json_args.h" #include "src/core/util/json/json_object_loader.h" #include "src/core/util/matchers.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/src/core/ext/filters/rbac/rbac_service_config_parser.h b/src/core/ext/filters/rbac/rbac_service_config_parser.h index 6202c569f9148..b62db1bdc2b4b 100644 --- a/src/core/ext/filters/rbac/rbac_service_config_parser.h +++ b/src/core/ext/filters/rbac/rbac_service_config_parser.h @@ -25,6 +25,7 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/security/authorization/grpc_authorization_engine.h" @@ -32,7 +33,6 @@ #include "src/core/service_config/service_config_parser.h" #include "src/core/util/json/json.h" #include "src/core/util/validation_errors.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/ext/filters/stateful_session/stateful_session_filter.cc b/src/core/ext/filters/stateful_session/stateful_session_filter.cc index bbb566b80f434..5ee89d53720af 100644 --- a/src/core/ext/filters/stateful_session/stateful_session_filter.cc +++ b/src/core/ext/filters/stateful_session/stateful_session_filter.cc @@ -27,6 +27,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/escaping.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" +#include "absl/strings/strip.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h" @@ -43,14 +51,6 @@ #include "src/core/util/crash.h" #include "src/core/util/latent_see.h" #include "src/core/util/time.h" -#include "absl/log/check.h" -#include "absl/strings/escaping.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" -#include "absl/strings/strip.h" namespace grpc_core { diff --git a/src/core/ext/filters/stateful_session/stateful_session_filter.h b/src/core/ext/filters/stateful_session/stateful_session_filter.h index 01bafaa699a45..f07e73d875e3e 100644 --- a/src/core/ext/filters/stateful_session/stateful_session_filter.h +++ b/src/core/ext/filters/stateful_session/stateful_session_filter.h @@ -22,6 +22,8 @@ #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" @@ -31,8 +33,6 @@ #include "src/core/service_config/service_config_call_data.h" #include "src/core/util/ref_counted_string.h" #include "src/core/util/unique_type_name.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h b/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h index 6c1e3ca49839c..06e0b11c26bb7 100644 --- a/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h +++ b/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h @@ -25,6 +25,7 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/service_config/service_config_parser.h" @@ -33,7 +34,6 @@ #include "src/core/util/json/json_object_loader.h" #include "src/core/util/time.h" #include "src/core/util/validation_errors.h" -#include "absl/strings/string_view.h" // Channel arg key for enabling parsing fault injection via method config. #define GRPC_ARG_PARSE_STATEFUL_SESSION_METHOD_CONFIG \ diff --git a/src/core/ext/transport/chaotic_good/client/chaotic_good_connector.cc b/src/core/ext/transport/chaotic_good/client/chaotic_good_connector.cc index 69e261f60dc12..168b423788066 100644 --- a/src/core/ext/transport/chaotic_good/client/chaotic_good_connector.cc +++ b/src/core/ext/transport/chaotic_good/client/chaotic_good_connector.cc @@ -21,6 +21,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/bit_gen_ref.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/client_channel/client_channel_factory.h" #include "src/core/client_channel/client_channel_filter.h" #include "src/core/config/core_configuration.h" @@ -62,11 +67,6 @@ #include "src/core/util/no_destruct.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" using grpc_event_engine::experimental::ChannelArgsEndpointConfig; using grpc_event_engine::experimental::EventEngine; diff --git a/src/core/ext/transport/chaotic_good/client/chaotic_good_connector.h b/src/core/ext/transport/chaotic_good/client/chaotic_good_connector.h index 0ff707f55d557..2561ee57b9bf8 100644 --- a/src/core/ext/transport/chaotic_good/client/chaotic_good_connector.h +++ b/src/core/ext/transport/chaotic_good/client/chaotic_good_connector.h @@ -22,6 +22,8 @@ #include #include +#include "absl/random/random.h" +#include "absl/status/statusor.h" #include "src/core/client_channel/connector.h" #include "src/core/ext/transport/chaotic_good/config.h" #include "src/core/handshaker/handshaker.h" @@ -41,8 +43,6 @@ #include "src/core/util/notification.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/random/random.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good { diff --git a/src/core/ext/transport/chaotic_good/client_transport.cc b/src/core/ext/transport/chaotic_good/client_transport.cc index 594cd38503785..68a6828f47c50 100644 --- a/src/core/ext/transport/chaotic_good/client_transport.cc +++ b/src/core/ext/transport/chaotic_good/client_transport.cc @@ -26,6 +26,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/bit_gen_ref.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/ext/transport/chaotic_good/frame.h" #include "src/core/ext/transport/chaotic_good/frame_header.h" #include "src/core/ext/transport/chaotic_good/frame_transport.h" @@ -41,12 +47,6 @@ #include "src/core/lib/slice/slice_buffer.h" #include "src/core/lib/transport/promise_endpoint.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good { diff --git a/src/core/ext/transport/chaotic_good/client_transport.h b/src/core/ext/transport/chaotic_good/client_transport.h index f3f1b224b23ba..c7b9f90c4d5ea 100644 --- a/src/core/ext/transport/chaotic_good/client_transport.h +++ b/src/core/ext/transport/chaotic_good/client_transport.h @@ -33,6 +33,10 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/flat_hash_map.h" +#include "absl/random/random.h" +#include "absl/status/status.h" #include "src/core/call/metadata_batch.h" // IWYU pragma: keep #include "src/core/ext/transport/chaotic_good/config.h" #include "src/core/ext/transport/chaotic_good/frame.h" @@ -58,10 +62,6 @@ #include "src/core/lib/transport/promise_endpoint.h" #include "src/core/lib/transport/transport.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/flat_hash_map.h" -#include "absl/random/random.h" -#include "absl/status/status.h" namespace grpc_core { namespace chaotic_good { diff --git a/src/core/ext/transport/chaotic_good/config.h b/src/core/ext/transport/chaotic_good/config.h index d2eafd6d9af9a..7b8c82ba21e8d 100644 --- a/src/core/ext/transport/chaotic_good/config.h +++ b/src/core/ext/transport/chaotic_good/config.h @@ -17,13 +17,13 @@ #include +#include "absl/container/flat_hash_set.h" #include "src/core/ext/transport/chaotic_good/chaotic_good_frame.pb.h" #include "src/core/ext/transport/chaotic_good/message_chunker.h" #include "src/core/ext/transport/chaotic_good/pending_connection.h" #include "src/core/ext/transport/chaotic_good/tcp_frame_transport.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/event_engine/extensions/tcp_trace.h" -#include "absl/container/flat_hash_set.h" namespace grpc_core { namespace chaotic_good { diff --git a/src/core/ext/transport/chaotic_good/control_endpoint.h b/src/core/ext/transport/chaotic_good/control_endpoint.h index cd9d4baca7779..d35eeccba7228 100644 --- a/src/core/ext/transport/chaotic_good/control_endpoint.h +++ b/src/core/ext/transport/chaotic_good/control_endpoint.h @@ -15,10 +15,10 @@ #ifndef GRPC_SRC_CORE_EXT_TRANSPORT_CHAOTIC_GOOD_CONTROL_ENDPOINT_H #define GRPC_SRC_CORE_EXT_TRANSPORT_CHAOTIC_GOOD_CONTROL_ENDPOINT_H +#include "absl/cleanup/cleanup.h" #include "src/core/lib/promise/party.h" #include "src/core/lib/transport/promise_endpoint.h" #include "src/core/util/sync.h" -#include "absl/cleanup/cleanup.h" namespace grpc_core { namespace chaotic_good { diff --git a/src/core/ext/transport/chaotic_good/data_endpoints.cc b/src/core/ext/transport/chaotic_good/data_endpoints.cc index 3c71f617beeaa..a68ed800328ef 100644 --- a/src/core/ext/transport/chaotic_good/data_endpoints.cc +++ b/src/core/ext/transport/chaotic_good/data_endpoints.cc @@ -19,6 +19,8 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/strings/escaping.h" #include "src/core/ext/transport/chaotic_good/pending_connection.h" #include "src/core/ext/transport/chaotic_good/serialize_little_endian.h" #include "src/core/ext/transport/chaotic_good/transport_context.h" @@ -30,8 +32,6 @@ #include "src/core/lib/promise/seq.h" #include "src/core/lib/promise/try_seq.h" #include "src/core/telemetry/default_tcp_tracer.h" -#include "absl/cleanup/cleanup.h" -#include "absl/strings/escaping.h" namespace grpc_core { namespace chaotic_good { diff --git a/src/core/ext/transport/chaotic_good/frame.cc b/src/core/ext/transport/chaotic_good/frame.cc index 9f33b3954d4e5..057598a436376 100644 --- a/src/core/ext/transport/chaotic_good/frame.cc +++ b/src/core/ext/transport/chaotic_good/frame.cc @@ -23,6 +23,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/ext/transport/chaotic_good/chaotic_good_frame.pb.h" #include "src/core/ext/transport/chaotic_good/frame_header.h" #include "src/core/lib/promise/context.h" @@ -33,14 +36,12 @@ #include "src/core/util/bitset.h" #include "src/core/util/no_destruct.h" #include "src/core/util/status_helper.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good { -absl::Status ReadProto(SliceBuffer payload, google::protobuf::MessageLite& msg) { +absl::Status ReadProto(SliceBuffer payload, + google::protobuf::MessageLite& msg) { auto payload_slice = payload.JoinIntoSlice(); const bool ok = msg.ParseFromArray(payload_slice.data(), payload_slice.length()); @@ -69,7 +70,8 @@ absl::Status ReadTransportProto(const FrameHeader& header, SliceBuffer payload, } absl::Status ReadStreamProto(const FrameHeader& header, SliceBuffer payload, - google::protobuf::MessageLite& body, uint32_t& stream_id) { + google::protobuf::MessageLite& body, + uint32_t& stream_id) { if (header.stream_id == 0) { return absl::InternalError("Expected non-zero stream id"); } diff --git a/src/core/ext/transport/chaotic_good/frame.h b/src/core/ext/transport/chaotic_good/frame.h index ffc2c5f171318..6d3599762629f 100644 --- a/src/core/ext/transport/chaotic_good/frame.h +++ b/src/core/ext/transport/chaotic_good/frame.h @@ -21,6 +21,8 @@ #include #include +#include "absl/random/bit_gen_ref.h" +#include "absl/status/status.h" #include "src/core/call/message.h" #include "src/core/call/metadata.h" #include "src/core/ext/transport/chaotic_good/chaotic_good_frame.pb.h" @@ -28,8 +30,6 @@ #include "src/core/lib/resource_quota/arena.h" #include "src/core/lib/slice/slice_buffer.h" #include "src/core/util/match.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/status/status.h" namespace grpc_core { namespace chaotic_good { @@ -74,7 +74,8 @@ uint32_t ProtoPayloadSize(const google::protobuf::MessageLite& msg); absl::Status ReadTransportProto(const FrameHeader& header, SliceBuffer payload, google::protobuf::MessageLite& body); absl::Status ReadStreamProto(const FrameHeader& header, SliceBuffer payload, - google::protobuf::MessageLite& body, uint32_t& stream_id); + google::protobuf::MessageLite& body, + uint32_t& stream_id); absl::Status ReadEmptyFrame(const FrameHeader& header, uint32_t& stream_id); // Generic implementation of a transport-bound frame (stream_id is zero always) diff --git a/src/core/ext/transport/chaotic_good/frame_header.h b/src/core/ext/transport/chaotic_good/frame_header.h index 5a1ab71c89c6b..199440458974b 100644 --- a/src/core/ext/transport/chaotic_good/frame_header.h +++ b/src/core/ext/transport/chaotic_good/frame_header.h @@ -20,8 +20,8 @@ #include -#include "src/core/util/bitset.h" #include "absl/status/statusor.h" +#include "src/core/util/bitset.h" namespace grpc_core { namespace chaotic_good { diff --git a/src/core/ext/transport/chaotic_good/message_reassembly.h b/src/core/ext/transport/chaotic_good/message_reassembly.h index 305d243039b31..208fc09bb7e37 100644 --- a/src/core/ext/transport/chaotic_good/message_reassembly.h +++ b/src/core/ext/transport/chaotic_good/message_reassembly.h @@ -15,9 +15,9 @@ #ifndef GRPC_SRC_CORE_EXT_TRANSPORT_CHAOTIC_GOOD_MESSAGE_REASSEMBLY_H #define GRPC_SRC_CORE_EXT_TRANSPORT_CHAOTIC_GOOD_MESSAGE_REASSEMBLY_H +#include "absl/log/log.h" #include "src/core/call/call_spine.h" #include "src/core/ext/transport/chaotic_good/frame.h" -#include "absl/log/log.h" namespace grpc_core { namespace chaotic_good { diff --git a/src/core/ext/transport/chaotic_good/pending_connection.h b/src/core/ext/transport/chaotic_good/pending_connection.h index 947e62d8fa0e0..90c0f7df802f6 100644 --- a/src/core/ext/transport/chaotic_good/pending_connection.h +++ b/src/core/ext/transport/chaotic_good/pending_connection.h @@ -17,10 +17,10 @@ #include +#include "absl/status/statusor.h" #include "src/core/lib/promise/promise.h" #include "src/core/lib/transport/promise_endpoint.h" #include "src/core/util/dual_ref_counted.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good { diff --git a/src/core/ext/transport/chaotic_good/server/chaotic_good_server.cc b/src/core/ext/transport/chaotic_good/server/chaotic_good_server.cc index c78d9d85cada1..1cf45ac8acbf8 100644 --- a/src/core/ext/transport/chaotic_good/server/chaotic_good_server.cc +++ b/src/core/ext/transport/chaotic_good/server/chaotic_good_server.cc @@ -26,6 +26,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/bit_gen_ref.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/call/metadata.h" #include "src/core/call/metadata_batch.h" #include "src/core/ext/transport/chaotic_good/frame.h" @@ -65,11 +70,6 @@ #include "src/core/util/status_helper.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good { diff --git a/src/core/ext/transport/chaotic_good/server/chaotic_good_server.h b/src/core/ext/transport/chaotic_good/server/chaotic_good_server.h index b84968e4175fd..631931bade650 100644 --- a/src/core/ext/transport/chaotic_good/server/chaotic_good_server.h +++ b/src/core/ext/transport/chaotic_good/server/chaotic_good_server.h @@ -24,6 +24,10 @@ #include #include +#include "absl/container/flat_hash_map.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/channelz/channelz.h" #include "src/core/ext/transport/chaotic_good/config.h" #include "src/core/ext/transport/chaotic_good/pending_connection.h" @@ -42,10 +46,6 @@ #include "src/core/util/shared_bit_gen.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/container/flat_hash_map.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" // Channel arg: integer number of data connections to specify // Defaults to 1 if not set diff --git a/src/core/ext/transport/chaotic_good/server_transport.cc b/src/core/ext/transport/chaotic_good/server_transport.cc index 64296fa4dd694..9fc3bd7c2ed96 100644 --- a/src/core/ext/transport/chaotic_good/server_transport.cc +++ b/src/core/ext/transport/chaotic_good/server_transport.cc @@ -23,6 +23,13 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/bit_gen_ref.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/ext/transport/chaotic_good/frame.h" #include "src/core/ext/transport/chaotic_good/frame_header.h" #include "src/core/ext/transport/chaotic_good/frame_transport.h" @@ -41,13 +48,6 @@ #include "src/core/lib/slice/slice_buffer.h" #include "src/core/lib/transport/promise_endpoint.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/cleanup/cleanup.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good { diff --git a/src/core/ext/transport/chaotic_good/server_transport.h b/src/core/ext/transport/chaotic_good/server_transport.h index e1c29f6b442fe..7e720c5efca08 100644 --- a/src/core/ext/transport/chaotic_good/server_transport.h +++ b/src/core/ext/transport/chaotic_good/server_transport.h @@ -35,6 +35,12 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/flat_hash_map.h" +#include "absl/functional/any_invocable.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/call/metadata_batch.h" #include "src/core/ext/transport/chaotic_good/config.h" #include "src/core/ext/transport/chaotic_good/frame.h" @@ -67,12 +73,6 @@ #include "src/core/lib/transport/transport.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/flat_hash_map.h" -#include "absl/functional/any_invocable.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good { diff --git a/src/core/ext/transport/chaotic_good_legacy/chaotic_good_transport.h b/src/core/ext/transport/chaotic_good_legacy/chaotic_good_transport.h index 897f750e17910..2c1d9e1d9fea5 100644 --- a/src/core/ext/transport/chaotic_good_legacy/chaotic_good_transport.h +++ b/src/core/ext/transport/chaotic_good_legacy/chaotic_good_transport.h @@ -22,6 +22,7 @@ #include #include +#include "absl/strings/escaping.h" #include "src/core/call/call_spine.h" #include "src/core/ext/transport/chaotic_good_legacy/control_endpoint.h" #include "src/core/ext/transport/chaotic_good_legacy/data_endpoints.h" @@ -37,7 +38,6 @@ #include "src/core/lib/promise/try_join.h" #include "src/core/lib/promise/try_seq.h" #include "src/core/lib/transport/promise_endpoint.h" -#include "absl/strings/escaping.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/src/core/ext/transport/chaotic_good_legacy/client/chaotic_good_connector.cc b/src/core/ext/transport/chaotic_good_legacy/client/chaotic_good_connector.cc index d176fa1856264..6afcb5ce50978 100644 --- a/src/core/ext/transport/chaotic_good_legacy/client/chaotic_good_connector.cc +++ b/src/core/ext/transport/chaotic_good_legacy/client/chaotic_good_connector.cc @@ -21,6 +21,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/bit_gen_ref.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/client_channel/client_channel_factory.h" #include "src/core/client_channel/client_channel_filter.h" #include "src/core/config/core_configuration.h" @@ -60,11 +65,6 @@ #include "src/core/util/no_destruct.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" using grpc_event_engine::experimental::ChannelArgsEndpointConfig; using grpc_event_engine::experimental::EventEngine; diff --git a/src/core/ext/transport/chaotic_good_legacy/client/chaotic_good_connector.h b/src/core/ext/transport/chaotic_good_legacy/client/chaotic_good_connector.h index 27015490b64a3..57df9406113d0 100644 --- a/src/core/ext/transport/chaotic_good_legacy/client/chaotic_good_connector.h +++ b/src/core/ext/transport/chaotic_good_legacy/client/chaotic_good_connector.h @@ -22,6 +22,8 @@ #include #include +#include "absl/random/random.h" +#include "absl/status/statusor.h" #include "src/core/client_channel/connector.h" #include "src/core/ext/transport/chaotic_good_legacy/config.h" #include "src/core/handshaker/handshaker.h" @@ -41,8 +43,6 @@ #include "src/core/util/notification.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/random/random.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/src/core/ext/transport/chaotic_good_legacy/client_transport.cc b/src/core/ext/transport/chaotic_good_legacy/client_transport.cc index 9fbcbdae7c7c5..1ce053574fa10 100644 --- a/src/core/ext/transport/chaotic_good_legacy/client_transport.cc +++ b/src/core/ext/transport/chaotic_good_legacy/client_transport.cc @@ -26,6 +26,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/bit_gen_ref.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/ext/transport/chaotic_good_legacy/chaotic_good_transport.h" #include "src/core/ext/transport/chaotic_good_legacy/frame.h" #include "src/core/ext/transport/chaotic_good_legacy/frame_header.h" @@ -42,12 +48,6 @@ #include "src/core/lib/transport/promise_endpoint.h" #include "src/core/telemetry/metrics.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/src/core/ext/transport/chaotic_good_legacy/client_transport.h b/src/core/ext/transport/chaotic_good_legacy/client_transport.h index 2d8bc918a92f5..f931625a8efb2 100644 --- a/src/core/ext/transport/chaotic_good_legacy/client_transport.h +++ b/src/core/ext/transport/chaotic_good_legacy/client_transport.h @@ -32,6 +32,10 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/flat_hash_map.h" +#include "absl/random/random.h" +#include "absl/status/status.h" #include "src/core/call/metadata_batch.h" // IWYU pragma: keep #include "src/core/ext/transport/chaotic_good_legacy/chaotic_good_transport.h" #include "src/core/ext/transport/chaotic_good_legacy/config.h" @@ -56,10 +60,6 @@ #include "src/core/lib/transport/promise_endpoint.h" #include "src/core/lib/transport/transport.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/flat_hash_map.h" -#include "absl/random/random.h" -#include "absl/status/status.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/src/core/ext/transport/chaotic_good_legacy/config.h b/src/core/ext/transport/chaotic_good_legacy/config.h index 5af70b36cee66..fce46660a3e7c 100644 --- a/src/core/ext/transport/chaotic_good_legacy/config.h +++ b/src/core/ext/transport/chaotic_good_legacy/config.h @@ -17,13 +17,13 @@ #include +#include "absl/container/flat_hash_set.h" #include "src/core/ext/transport/chaotic_good/chaotic_good_frame.pb.h" #include "src/core/ext/transport/chaotic_good_legacy/chaotic_good_transport.h" #include "src/core/ext/transport/chaotic_good_legacy/message_chunker.h" #include "src/core/ext/transport/chaotic_good_legacy/pending_connection.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/event_engine/extensions/tcp_trace.h" -#include "absl/container/flat_hash_set.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/src/core/ext/transport/chaotic_good_legacy/control_endpoint.h b/src/core/ext/transport/chaotic_good_legacy/control_endpoint.h index 065c04871f174..c97023ab05a37 100644 --- a/src/core/ext/transport/chaotic_good_legacy/control_endpoint.h +++ b/src/core/ext/transport/chaotic_good_legacy/control_endpoint.h @@ -15,10 +15,10 @@ #ifndef GRPC_SRC_CORE_EXT_TRANSPORT_CHAOTIC_GOOD_LEGACY_CONTROL_ENDPOINT_H #define GRPC_SRC_CORE_EXT_TRANSPORT_CHAOTIC_GOOD_LEGACY_CONTROL_ENDPOINT_H +#include "absl/cleanup/cleanup.h" #include "src/core/lib/promise/party.h" #include "src/core/lib/transport/promise_endpoint.h" #include "src/core/util/sync.h" -#include "absl/cleanup/cleanup.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/src/core/ext/transport/chaotic_good_legacy/data_endpoints.cc b/src/core/ext/transport/chaotic_good_legacy/data_endpoints.cc index f8d9962ae013b..2093c52c223ac 100644 --- a/src/core/ext/transport/chaotic_good_legacy/data_endpoints.cc +++ b/src/core/ext/transport/chaotic_good_legacy/data_endpoints.cc @@ -18,6 +18,8 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/strings/escaping.h" #include "src/core/ext/transport/chaotic_good_legacy/pending_connection.h" #include "src/core/lib/event_engine/event_engine_context.h" #include "src/core/lib/event_engine/extensions/tcp_trace.h" @@ -27,8 +29,6 @@ #include "src/core/lib/promise/seq.h" #include "src/core/lib/promise/try_seq.h" #include "src/core/telemetry/default_tcp_tracer.h" -#include "absl/cleanup/cleanup.h" -#include "absl/strings/escaping.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/src/core/ext/transport/chaotic_good_legacy/frame.cc b/src/core/ext/transport/chaotic_good_legacy/frame.cc index 6a76aa2c87bf1..581db144981d7 100644 --- a/src/core/ext/transport/chaotic_good_legacy/frame.cc +++ b/src/core/ext/transport/chaotic_good_legacy/frame.cc @@ -23,6 +23,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/ext/transport/chaotic_good/chaotic_good_frame.pb.h" #include "src/core/ext/transport/chaotic_good_legacy/frame_header.h" #include "src/core/lib/promise/context.h" @@ -32,14 +35,12 @@ #include "src/core/util/bitset.h" #include "src/core/util/no_destruct.h" #include "src/core/util/status_helper.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good_legacy { -absl::Status ReadProto(SliceBuffer payload, google::protobuf::MessageLite& msg) { +absl::Status ReadProto(SliceBuffer payload, + google::protobuf::MessageLite& msg) { auto payload_slice = payload.JoinIntoSlice(); const bool ok = msg.ParseFromArray(payload_slice.data(), payload_slice.length()); @@ -68,7 +69,8 @@ absl::Status ReadTransportProto(const FrameHeader& header, SliceBuffer payload, } absl::Status ReadStreamProto(const FrameHeader& header, SliceBuffer payload, - google::protobuf::MessageLite& body, uint32_t& stream_id) { + google::protobuf::MessageLite& body, + uint32_t& stream_id) { if (header.stream_id == 0) { return absl::InternalError("Expected non-zero stream id"); } diff --git a/src/core/ext/transport/chaotic_good_legacy/frame.h b/src/core/ext/transport/chaotic_good_legacy/frame.h index 7d95d624f36df..958c8153a91e3 100644 --- a/src/core/ext/transport/chaotic_good_legacy/frame.h +++ b/src/core/ext/transport/chaotic_good_legacy/frame.h @@ -21,6 +21,8 @@ #include #include +#include "absl/random/bit_gen_ref.h" +#include "absl/status/status.h" #include "src/core/call/message.h" #include "src/core/call/metadata.h" #include "src/core/ext/transport/chaotic_good/chaotic_good_frame.pb.h" @@ -28,8 +30,6 @@ #include "src/core/lib/resource_quota/arena.h" #include "src/core/lib/slice/slice_buffer.h" #include "src/core/util/match.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/status/status.h" namespace grpc_core { namespace chaotic_good_legacy { @@ -70,7 +70,8 @@ uint32_t ProtoPayloadSize(const google::protobuf::MessageLite& msg); absl::Status ReadTransportProto(const FrameHeader& header, SliceBuffer payload, google::protobuf::MessageLite& body); absl::Status ReadStreamProto(const FrameHeader& header, SliceBuffer payload, - google::protobuf::MessageLite& body, uint32_t& stream_id); + google::protobuf::MessageLite& body, + uint32_t& stream_id); absl::Status ReadEmptyFrame(const FrameHeader& header, uint32_t& stream_id); // Generic implementation of a transport-bound frame (stream_id is zero always) diff --git a/src/core/ext/transport/chaotic_good_legacy/frame_header.h b/src/core/ext/transport/chaotic_good_legacy/frame_header.h index 19e3a451c29ad..8786cc9d6900a 100644 --- a/src/core/ext/transport/chaotic_good_legacy/frame_header.h +++ b/src/core/ext/transport/chaotic_good_legacy/frame_header.h @@ -20,8 +20,8 @@ #include -#include "src/core/util/bitset.h" #include "absl/status/statusor.h" +#include "src/core/util/bitset.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/src/core/ext/transport/chaotic_good_legacy/message_reassembly.h b/src/core/ext/transport/chaotic_good_legacy/message_reassembly.h index 05254b112641b..739df880380c5 100644 --- a/src/core/ext/transport/chaotic_good_legacy/message_reassembly.h +++ b/src/core/ext/transport/chaotic_good_legacy/message_reassembly.h @@ -15,9 +15,9 @@ #ifndef GRPC_SRC_CORE_EXT_TRANSPORT_CHAOTIC_GOOD_LEGACY_MESSAGE_REASSEMBLY_H #define GRPC_SRC_CORE_EXT_TRANSPORT_CHAOTIC_GOOD_LEGACY_MESSAGE_REASSEMBLY_H +#include "absl/log/log.h" #include "src/core/call/call_spine.h" #include "src/core/ext/transport/chaotic_good_legacy/frame.h" -#include "absl/log/log.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/src/core/ext/transport/chaotic_good_legacy/pending_connection.h b/src/core/ext/transport/chaotic_good_legacy/pending_connection.h index 120362f50ad26..06644626a5228 100644 --- a/src/core/ext/transport/chaotic_good_legacy/pending_connection.h +++ b/src/core/ext/transport/chaotic_good_legacy/pending_connection.h @@ -17,10 +17,10 @@ #include +#include "absl/status/statusor.h" #include "src/core/lib/promise/promise.h" #include "src/core/lib/transport/promise_endpoint.h" #include "src/core/util/dual_ref_counted.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/src/core/ext/transport/chaotic_good_legacy/server/chaotic_good_server.cc b/src/core/ext/transport/chaotic_good_legacy/server/chaotic_good_server.cc index d64e1505c346d..f4058d6b7809c 100644 --- a/src/core/ext/transport/chaotic_good_legacy/server/chaotic_good_server.cc +++ b/src/core/ext/transport/chaotic_good_legacy/server/chaotic_good_server.cc @@ -26,6 +26,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/bit_gen_ref.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/call/metadata.h" #include "src/core/call/metadata_batch.h" #include "src/core/ext/transport/chaotic_good_legacy/frame.h" @@ -63,11 +68,6 @@ #include "src/core/util/status_helper.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/src/core/ext/transport/chaotic_good_legacy/server/chaotic_good_server.h b/src/core/ext/transport/chaotic_good_legacy/server/chaotic_good_server.h index 864d01aed0c51..8479527e8e087 100644 --- a/src/core/ext/transport/chaotic_good_legacy/server/chaotic_good_server.h +++ b/src/core/ext/transport/chaotic_good_legacy/server/chaotic_good_server.h @@ -24,6 +24,10 @@ #include #include +#include "absl/container/flat_hash_map.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/channelz/channelz.h" #include "src/core/ext/transport/chaotic_good_legacy/config.h" #include "src/core/ext/transport/chaotic_good_legacy/pending_connection.h" @@ -42,10 +46,6 @@ #include "src/core/util/shared_bit_gen.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/container/flat_hash_map.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" // Channel arg: integer number of data connections to specify // Defaults to 1 if not set diff --git a/src/core/ext/transport/chaotic_good_legacy/server_transport.cc b/src/core/ext/transport/chaotic_good_legacy/server_transport.cc index 8fae22ecd6739..9d8412e782594 100644 --- a/src/core/ext/transport/chaotic_good_legacy/server_transport.cc +++ b/src/core/ext/transport/chaotic_good_legacy/server_transport.cc @@ -23,6 +23,13 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/bit_gen_ref.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/ext/transport/chaotic_good_legacy/chaotic_good_transport.h" #include "src/core/ext/transport/chaotic_good_legacy/frame.h" #include "src/core/ext/transport/chaotic_good_legacy/frame_header.h" @@ -41,13 +48,6 @@ #include "src/core/lib/transport/promise_endpoint.h" #include "src/core/telemetry/metrics.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/cleanup/cleanup.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/src/core/ext/transport/chaotic_good_legacy/server_transport.h b/src/core/ext/transport/chaotic_good_legacy/server_transport.h index 9bb0b2f745722..b9bef3041bac2 100644 --- a/src/core/ext/transport/chaotic_good_legacy/server_transport.h +++ b/src/core/ext/transport/chaotic_good_legacy/server_transport.h @@ -35,6 +35,12 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/flat_hash_map.h" +#include "absl/functional/any_invocable.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/call/metadata_batch.h" #include "src/core/ext/transport/chaotic_good_legacy/chaotic_good_transport.h" #include "src/core/ext/transport/chaotic_good_legacy/config.h" @@ -65,12 +71,6 @@ #include "src/core/lib/transport/transport.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/flat_hash_map.h" -#include "absl/functional/any_invocable.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/src/core/ext/transport/chttp2/alpn/alpn.cc b/src/core/ext/transport/chttp2/alpn/alpn.cc index dfa9e2f428f28..cd6119f4782a6 100644 --- a/src/core/ext/transport/chttp2/alpn/alpn.cc +++ b/src/core/ext/transport/chttp2/alpn/alpn.cc @@ -20,8 +20,8 @@ #include -#include "src/core/util/useful.h" #include "absl/log/check.h" +#include "src/core/util/useful.h" // in order of preference static const char* const supported_versions[] = {"h2"}; diff --git a/src/core/ext/transport/chttp2/client/chttp2_connector.cc b/src/core/ext/transport/chttp2/client/chttp2_connector.cc index 370814705acac..1c81fd6954f65 100644 --- a/src/core/ext/transport/chttp2/client/chttp2_connector.cc +++ b/src/core/ext/transport/chttp2/client/chttp2_connector.cc @@ -32,6 +32,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" #include "src/core/channelz/channelz.h" #include "src/core/client_channel/client_channel_factory.h" #include "src/core/client_channel/client_channel_filter.h" @@ -64,11 +69,6 @@ #include "src/core/util/status_helper.h" #include "src/core/util/time.h" #include "src/core/util/unique_type_name.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" #ifdef GPR_SUPPORT_CHANNELS_FROM_FD diff --git a/src/core/ext/transport/chttp2/client/chttp2_connector.h b/src/core/ext/transport/chttp2/client/chttp2_connector.h index 234fdeefbb062..5dc6b923afd94 100644 --- a/src/core/ext/transport/chttp2/client/chttp2_connector.h +++ b/src/core/ext/transport/chttp2/client/chttp2_connector.h @@ -24,6 +24,7 @@ #include +#include "absl/base/thread_annotations.h" #include "src/core/client_channel/connector.h" #include "src/core/handshaker/handshaker.h" #include "src/core/lib/iomgr/closure.h" @@ -31,7 +32,6 @@ #include "src/core/lib/iomgr/error.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" namespace grpc_core { diff --git a/src/core/ext/transport/chttp2/server/chttp2_server.cc b/src/core/ext/transport/chttp2/server/chttp2_server.cc index d3fe1e355e8cf..b1d16a5f4438f 100644 --- a/src/core/ext/transport/chttp2/server/chttp2_server.cc +++ b/src/core/ext/transport/chttp2/server/chttp2_server.cc @@ -37,6 +37,15 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" +#include "absl/strings/strip.h" #include "src/core/channelz/channelz.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/transport/insecure/insecure_credentials.h" @@ -81,15 +90,6 @@ #include "src/core/util/time.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/uri.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" -#include "absl/strings/strip.h" #ifdef GPR_SUPPORT_CHANNELS_FROM_FD #include "src/core/lib/iomgr/ev_posix.h" diff --git a/src/core/ext/transport/chttp2/transport/bin_decoder.cc b/src/core/ext/transport/chttp2/transport/bin_decoder.cc index b3bba2dee69fd..8ccfdc2f3cff8 100644 --- a/src/core/ext/transport/chttp2/transport/bin_decoder.cc +++ b/src/core/ext/transport/chttp2/transport/bin_decoder.cc @@ -21,10 +21,10 @@ #include #include -#include "src/core/lib/slice/slice.h" #include "absl/base/attributes.h" #include "absl/log/check.h" #include "absl/log/log.h" +#include "src/core/lib/slice/slice.h" static uint8_t decode_table[] = { 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, diff --git a/src/core/ext/transport/chttp2/transport/bin_encoder.cc b/src/core/ext/transport/chttp2/transport/bin_encoder.cc index 2a2182856fe9c..c9727428ebca3 100644 --- a/src/core/ext/transport/chttp2/transport/bin_encoder.cc +++ b/src/core/ext/transport/chttp2/transport/bin_encoder.cc @@ -22,8 +22,8 @@ #include #include -#include "src/core/ext/transport/chttp2/transport/huffsyms.h" #include "absl/log/check.h" +#include "src/core/ext/transport/chttp2/transport/huffsyms.h" static const char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc index 99a1534f609a4..675e973e47ffd 100644 --- a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc @@ -43,6 +43,18 @@ #include #include +#include "absl/base/attributes.h" +#include "absl/container/flat_hash_map.h" +#include "absl/hash/hash.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/meta/type_traits.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/strings/cord.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/call/metadata_info.h" #include "src/core/config/config_vars.h" @@ -105,18 +117,6 @@ #include "src/core/util/string.h" #include "src/core/util/time.h" #include "src/core/util/useful.h" -#include "absl/base/attributes.h" -#include "absl/container/flat_hash_map.h" -#include "absl/hash/hash.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/meta/type_traits.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/strings/cord.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" using grpc_core::Json; diff --git a/src/core/ext/transport/chttp2/transport/flow_control.cc b/src/core/ext/transport/chttp2/transport/flow_control.cc index 14430814c5e9b..91f611959d0af 100644 --- a/src/core/ext/transport/chttp2/transport/flow_control.cc +++ b/src/core/ext/transport/chttp2/transport/flow_control.cc @@ -28,15 +28,15 @@ #include #include -#include "src/core/ext/transport/chttp2/transport/http2_settings.h" -#include "src/core/lib/experiments/experiments.h" -#include "src/core/lib/resource_quota/memory_quota.h" -#include "src/core/util/useful.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" +#include "src/core/ext/transport/chttp2/transport/http2_settings.h" +#include "src/core/lib/experiments/experiments.h" +#include "src/core/lib/resource_quota/memory_quota.h" +#include "src/core/util/useful.h" namespace grpc_core { namespace chttp2 { diff --git a/src/core/ext/transport/chttp2/transport/flow_control.h b/src/core/ext/transport/chttp2/transport/flow_control.h index 45401d95e3d1b..0dd86dbaf58d0 100644 --- a/src/core/ext/transport/chttp2/transport/flow_control.h +++ b/src/core/ext/transport/chttp2/transport/flow_control.h @@ -28,15 +28,15 @@ #include #include +#include "absl/functional/function_ref.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/ext/transport/chttp2/transport/http2_settings.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/resource_quota/memory_quota.h" #include "src/core/lib/transport/bdp_estimator.h" #include "src/core/util/time.h" -#include "absl/functional/function_ref.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc { namespace testing { diff --git a/src/core/ext/transport/chttp2/transport/frame.cc b/src/core/ext/transport/chttp2/transport/frame.cc index b1874fe5398be..73a062ef27b67 100644 --- a/src/core/ext/transport/chttp2/transport/frame.cc +++ b/src/core/ext/transport/chttp2/transport/frame.cc @@ -21,12 +21,12 @@ #include #include -#include "src/core/lib/slice/slice.h" -#include "src/core/lib/slice/slice_buffer.h" -#include "src/core/util/crash.h" #include "absl/log/check.h" #include "absl/status/status.h" #include "absl/strings/str_cat.h" +#include "src/core/lib/slice/slice.h" +#include "src/core/lib/slice/slice_buffer.h" +#include "src/core/util/crash.h" namespace grpc_core { diff --git a/src/core/ext/transport/chttp2/transport/frame.h b/src/core/ext/transport/chttp2/transport/frame.h index 33ec7e90161a8..ccdf96ed9b75e 100644 --- a/src/core/ext/transport/chttp2/transport/frame.h +++ b/src/core/ext/transport/chttp2/transport/frame.h @@ -22,11 +22,11 @@ #include #include -#include "src/core/lib/slice/slice.h" -#include "src/core/lib/slice/slice_buffer.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" #include "absl/types/span.h" +#include "src/core/lib/slice/slice.h" +#include "src/core/lib/slice/slice_buffer.h" namespace grpc_core { diff --git a/src/core/ext/transport/chttp2/transport/frame_data.cc b/src/core/ext/transport/chttp2/transport/frame_data.cc index d29605496717b..03aeae0de4354 100644 --- a/src/core/ext/transport/chttp2/transport/frame_data.cc +++ b/src/core/ext/transport/chttp2/transport/frame_data.cc @@ -22,6 +22,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" #include "src/core/ext/transport/chttp2/transport/call_tracer_wrapper.h" #include "src/core/ext/transport/chttp2/transport/internal.h" #include "src/core/lib/experiments/experiments.h" @@ -30,9 +33,6 @@ #include "src/core/lib/transport/transport.h" #include "src/core/telemetry/stats.h" #include "src/core/util/status_helper.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" absl::Status grpc_chttp2_data_parser_begin_frame(uint8_t flags, uint32_t stream_id, diff --git a/src/core/ext/transport/chttp2/transport/frame_data.h b/src/core/ext/transport/chttp2/transport/frame_data.h index 7481c559d34ad..4aa2a69a21033 100644 --- a/src/core/ext/transport/chttp2/transport/frame_data.h +++ b/src/core/ext/transport/chttp2/transport/frame_data.h @@ -25,6 +25,7 @@ #include #include +#include "absl/status/status.h" #include "src/core/ext/transport/chttp2/transport/http2_ztrace_collector.h" #include "src/core/ext/transport/chttp2/transport/legacy_frame.h" #include "src/core/lib/iomgr/error.h" @@ -32,7 +33,6 @@ #include "src/core/lib/slice/slice_buffer.h" #include "src/core/lib/transport/transport.h" #include "src/core/telemetry/call_tracer.h" -#include "absl/status/status.h" // start processing a new data frame absl::Status grpc_chttp2_data_parser_begin_frame(uint8_t flags, diff --git a/src/core/ext/transport/chttp2/transport/frame_goaway.cc b/src/core/ext/transport/chttp2/transport/frame_goaway.cc index 856789fa85284..999b1e050dc8c 100644 --- a/src/core/ext/transport/chttp2/transport/frame_goaway.cc +++ b/src/core/ext/transport/chttp2/transport/frame_goaway.cc @@ -23,12 +23,12 @@ #include #include -#include "src/core/ext/transport/chttp2/transport/internal.h" #include "absl/base/attributes.h" #include "absl/log/check.h" #include "absl/status/status.h" #include "absl/strings/str_format.h" #include "absl/strings/string_view.h" +#include "src/core/ext/transport/chttp2/transport/internal.h" void grpc_chttp2_goaway_parser_init(grpc_chttp2_goaway_parser* p) { p->debug_data = nullptr; diff --git a/src/core/ext/transport/chttp2/transport/frame_ping.cc b/src/core/ext/transport/chttp2/transport/frame_ping.cc index 5d102098780f8..143810953ecde 100644 --- a/src/core/ext/transport/chttp2/transport/frame_ping.cc +++ b/src/core/ext/transport/chttp2/transport/frame_ping.cc @@ -25,15 +25,15 @@ #include -#include "src/core/ext/transport/chttp2/transport/internal.h" -#include "src/core/ext/transport/chttp2/transport/ping_abuse_policy.h" -#include "src/core/ext/transport/chttp2/transport/ping_callbacks.h" -#include "src/core/lib/debug/trace.h" #include "absl/container/flat_hash_map.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/strings/str_format.h" +#include "src/core/ext/transport/chttp2/transport/internal.h" +#include "src/core/ext/transport/chttp2/transport/ping_abuse_policy.h" +#include "src/core/ext/transport/chttp2/transport/ping_callbacks.h" +#include "src/core/lib/debug/trace.h" grpc_slice grpc_chttp2_ping_create(uint8_t ack, uint64_t opaque_8bytes) { grpc_slice slice = GRPC_SLICE_MALLOC(9 + 8); diff --git a/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc b/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc index 2d9a972c539d0..be6933dcb42ac 100644 --- a/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +++ b/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc @@ -22,6 +22,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/distributions.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" #include "src/core/call/metadata_batch.h" #include "src/core/ext/transport/chttp2/transport/call_tracer_wrapper.h" #include "src/core/ext/transport/chttp2/transport/http2_status.h" @@ -32,12 +38,6 @@ #include "src/core/lib/experiments/experiments.h" #include "src/core/util/shared_bit_gen.h" #include "src/core/util/status_helper.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/distributions.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" using grpc_core::http2::Http2ErrorCode; diff --git a/src/core/ext/transport/chttp2/transport/frame_security.cc b/src/core/ext/transport/chttp2/transport/frame_security.cc index 3228ebb528092..8fe0524bfea68 100644 --- a/src/core/ext/transport/chttp2/transport/frame_security.cc +++ b/src/core/ext/transport/chttp2/transport/frame_security.cc @@ -19,13 +19,13 @@ #include #include +#include "absl/status/status.h" #include "src/core/ext/transport/chttp2/transport/internal.h" #include "src/core/ext/transport/chttp2/transport/legacy_frame.h" #include "src/core/lib/iomgr/event_engine_shims/endpoint.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/slice/slice_buffer.h" #include "src/core/lib/transport/transport_framing_endpoint_extension.h" -#include "absl/status/status.h" absl::Status grpc_chttp2_security_frame_parser_parse(void* parser, grpc_chttp2_transport* t, diff --git a/src/core/ext/transport/chttp2/transport/frame_settings.cc b/src/core/ext/transport/chttp2/transport/frame_settings.cc index fcd511db8224e..515a0b4499b0b 100644 --- a/src/core/ext/transport/chttp2/transport/frame_settings.cc +++ b/src/core/ext/transport/chttp2/transport/frame_settings.cc @@ -24,6 +24,10 @@ #include +#include "absl/base/attributes.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" #include "src/core/ext/transport/chttp2/transport/flow_control.h" #include "src/core/ext/transport/chttp2/transport/frame_goaway.h" #include "src/core/ext/transport/chttp2/transport/http2_settings.h" @@ -36,10 +40,6 @@ #include "src/core/telemetry/stats.h" #include "src/core/util/debug_location.h" #include "src/core/util/useful.h" -#include "absl/base/attributes.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" using grpc_core::http2::Http2ErrorCode; diff --git a/src/core/ext/transport/chttp2/transport/frame_window_update.cc b/src/core/ext/transport/chttp2/transport/frame_window_update.cc index 176afaed716ff..f4a61e73357a1 100644 --- a/src/core/ext/transport/chttp2/transport/frame_window_update.cc +++ b/src/core/ext/transport/chttp2/transport/frame_window_update.cc @@ -21,6 +21,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" #include "src/core/ext/transport/chttp2/transport/call_tracer_wrapper.h" #include "src/core/ext/transport/chttp2/transport/flow_control.h" #include "src/core/ext/transport/chttp2/transport/http2_ztrace_collector.h" @@ -28,10 +32,6 @@ #include "src/core/ext/transport/chttp2/transport/stream_lists.h" #include "src/core/telemetry/stats.h" #include "src/core/util/time.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" grpc_slice grpc_chttp2_window_update_create( uint32_t id, uint32_t window_delta, diff --git a/src/core/ext/transport/chttp2/transport/header_assembler.h b/src/core/ext/transport/chttp2/transport/header_assembler.h index b1694009b6053..dfd71937d2602 100644 --- a/src/core/ext/transport/chttp2/transport/header_assembler.h +++ b/src/core/ext/transport/chttp2/transport/header_assembler.h @@ -19,12 +19,12 @@ #ifndef GRPC_SRC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_HEADER_ASSEMBLER_H #define GRPC_SRC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_HEADER_ASSEMBLER_H +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/call/message.h" #include "src/core/ext/transport/chttp2/transport/frame.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/slice/slice_buffer.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc_core { namespace http2 { diff --git a/src/core/ext/transport/chttp2/transport/hpack_encoder.cc b/src/core/ext/transport/chttp2/transport/hpack_encoder.cc index 49569fcf6d0ca..b29d2558b715c 100644 --- a/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +++ b/src/core/ext/transport/chttp2/transport/hpack_encoder.cc @@ -25,6 +25,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/ext/transport/chttp2/transport/bin_encoder.h" #include "src/core/ext/transport/chttp2/transport/hpack_constants.h" #include "src/core/ext/transport/chttp2/transport/hpack_encoder_table.h" @@ -34,8 +36,6 @@ #include "src/core/lib/surface/validate_metadata.h" #include "src/core/lib/transport/timeout_encoding.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/src/core/ext/transport/chttp2/transport/hpack_encoder.h b/src/core/ext/transport/chttp2/transport/hpack_encoder.h index 9dd91f159de04..2a17b21133388 100644 --- a/src/core/ext/transport/chttp2/transport/hpack_encoder.h +++ b/src/core/ext/transport/chttp2/transport/hpack_encoder.h @@ -27,6 +27,10 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/call/metadata_compression_traits.h" #include "src/core/ext/transport/chttp2/transport/hpack_constants.h" @@ -38,10 +42,6 @@ #include "src/core/lib/transport/transport.h" #include "src/core/telemetry/call_tracer.h" #include "src/core/util/time.h" -#include "absl/log/log.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/ext/transport/chttp2/transport/hpack_parse_result.cc b/src/core/ext/transport/chttp2/transport/hpack_parse_result.cc index 4e75e9b7ce1d5..ffead9117a94f 100644 --- a/src/core/ext/transport/chttp2/transport/hpack_parse_result.cc +++ b/src/core/ext/transport/chttp2/transport/hpack_parse_result.cc @@ -17,12 +17,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/str_format.h" #include "src/core/ext/transport/chttp2/transport/hpack_constants.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/slice/slice.h" #include "src/core/util/status_helper.h" -#include "absl/log/check.h" -#include "absl/strings/str_format.h" namespace grpc_core { diff --git a/src/core/ext/transport/chttp2/transport/hpack_parse_result.h b/src/core/ext/transport/chttp2/transport/hpack_parse_result.h index df18503b4c757..734469ede2be8 100644 --- a/src/core/ext/transport/chttp2/transport/hpack_parse_result.h +++ b/src/core/ext/transport/chttp2/transport/hpack_parse_result.h @@ -23,15 +23,15 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/surface/validate_metadata.h" #include "src/core/util/crash.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/ext/transport/chttp2/transport/hpack_parser.cc b/src/core/ext/transport/chttp2/transport/hpack_parser.cc index f2b9066f95f8f..0482afbbcfab9 100644 --- a/src/core/ext/transport/chttp2/transport/hpack_parser.cc +++ b/src/core/ext/transport/chttp2/transport/hpack_parser.cc @@ -30,6 +30,14 @@ #include #include +#include "absl/base/attributes.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "absl/types/span.h" #include "src/core/call/metadata_info.h" #include "src/core/call/parsed_metadata.h" #include "src/core/ext/transport/chttp2/transport/decode_huff.h" @@ -44,14 +52,6 @@ #include "src/core/telemetry/stats.h" #include "src/core/telemetry/stats_data.h" #include "src/core/util/match.h" -#include "absl/base/attributes.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" -#include "absl/types/span.h" // IWYU pragma: no_include diff --git a/src/core/ext/transport/chttp2/transport/hpack_parser.h b/src/core/ext/transport/chttp2/transport/hpack_parser.h index b163734bbb107..785588a638e3c 100644 --- a/src/core/ext/transport/chttp2/transport/hpack_parser.h +++ b/src/core/ext/transport/chttp2/transport/hpack_parser.h @@ -30,6 +30,10 @@ #include #include +#include "absl/random/bit_gen_ref.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "absl/types/span.h" #include "src/core/call/metadata_batch.h" #include "src/core/ext/transport/chttp2/transport/hpack_parse_result.h" #include "src/core/ext/transport/chttp2/transport/hpack_parser_table.h" @@ -39,10 +43,6 @@ #include "src/core/lib/slice/slice_refcount.h" #include "src/core/telemetry/call_tracer.h" #include "src/core/util/random_early_detection.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" -#include "absl/types/span.h" // IWYU pragma: no_include diff --git a/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc b/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc index 8d74c2496248b..b258e6ead0975 100644 --- a/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +++ b/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc @@ -26,16 +26,16 @@ #include #include -#include "src/core/ext/transport/chttp2/transport/hpack_constants.h" -#include "src/core/ext/transport/chttp2/transport/hpack_parse_result.h" -#include "src/core/lib/debug/trace.h" -#include "src/core/lib/slice/slice.h" -#include "src/core/telemetry/stats.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" +#include "src/core/ext/transport/chttp2/transport/hpack_constants.h" +#include "src/core/ext/transport/chttp2/transport/hpack_parse_result.h" +#include "src/core/lib/debug/trace.h" +#include "src/core/lib/slice/slice.h" +#include "src/core/telemetry/stats.h" namespace grpc_core { diff --git a/src/core/ext/transport/chttp2/transport/hpack_parser_table.h b/src/core/ext/transport/chttp2/transport/hpack_parser_table.h index 76f4de0c9c9a3..5c3f3e505e146 100644 --- a/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +++ b/src/core/ext/transport/chttp2/transport/hpack_parser_table.h @@ -28,13 +28,13 @@ #include #include +#include "absl/functional/function_ref.h" #include "src/core/call/metadata_batch.h" #include "src/core/call/parsed_metadata.h" #include "src/core/ext/transport/chttp2/transport/hpack_constants.h" #include "src/core/ext/transport/chttp2/transport/hpack_parse_result.h" #include "src/core/util/no_destruct.h" #include "src/core/util/unique_ptr_with_bitset.h" -#include "absl/functional/function_ref.h" namespace grpc_core { diff --git a/src/core/ext/transport/chttp2/transport/http2_client_transport.cc b/src/core/ext/transport/chttp2/transport/http2_client_transport.cc index eede30c38d1a3..16dcb7a1fe2f4 100644 --- a/src/core/ext/transport/chttp2/transport/http2_client_transport.cc +++ b/src/core/ext/transport/chttp2/transport/http2_client_transport.cc @@ -25,6 +25,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" #include "src/core/call/call_spine.h" #include "src/core/ext/transport/chttp2/transport/frame.h" #include "src/core/lib/channel/channel_args.h" @@ -44,9 +47,6 @@ #include "src/core/lib/transport/transport.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" namespace grpc_core { namespace http2 { diff --git a/src/core/ext/transport/chttp2/transport/http2_server_transport.cc b/src/core/ext/transport/chttp2/transport/http2_server_transport.cc index b0e22b232971f..5f0d05e19d78f 100644 --- a/src/core/ext/transport/chttp2/transport/http2_server_transport.cc +++ b/src/core/ext/transport/chttp2/transport/http2_server_transport.cc @@ -24,6 +24,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" #include "src/core/call/call_destination.h" #include "src/core/ext/transport/chttp2/transport/frame.h" #include "src/core/ext/transport/chttp2/transport/hpack_encoder.h" @@ -41,9 +44,6 @@ #include "src/core/lib/transport/promise_endpoint.h" #include "src/core/lib/transport/transport.h" #include "src/core/util/ref_counted.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" namespace grpc_core { namespace http2 { diff --git a/src/core/ext/transport/chttp2/transport/http2_server_transport.h b/src/core/ext/transport/chttp2/transport/http2_server_transport.h index b683803449cb3..0ea5a2cf6fa04 100644 --- a/src/core/ext/transport/chttp2/transport/http2_server_transport.h +++ b/src/core/ext/transport/chttp2/transport/http2_server_transport.h @@ -22,6 +22,7 @@ #include #include +#include "absl/container/flat_hash_map.h" #include "src/core/call/call_destination.h" #include "src/core/call/call_spine.h" #include "src/core/ext/transport/chttp2/transport/frame.h" @@ -35,7 +36,6 @@ #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/container/flat_hash_map.h" namespace grpc_core { namespace http2 { diff --git a/src/core/ext/transport/chttp2/transport/http2_settings.cc b/src/core/ext/transport/chttp2/transport/http2_settings.cc index c5660c03a5c31..1701bb1d770d3 100644 --- a/src/core/ext/transport/chttp2/transport/http2_settings.cc +++ b/src/core/ext/transport/chttp2/transport/http2_settings.cc @@ -22,10 +22,10 @@ #include +#include "absl/strings/str_cat.h" #include "src/core/ext/transport/chttp2/transport/frame.h" #include "src/core/ext/transport/chttp2/transport/http2_status.h" #include "src/core/util/useful.h" -#include "absl/strings/str_cat.h" using grpc_core::http2::Http2ErrorCode; diff --git a/src/core/ext/transport/chttp2/transport/http2_settings.h b/src/core/ext/transport/chttp2/transport/http2_settings.h index 80800785c8459..96b7fa580a5bd 100644 --- a/src/core/ext/transport/chttp2/transport/http2_settings.h +++ b/src/core/ext/transport/chttp2/transport/http2_settings.h @@ -23,12 +23,12 @@ #include #include +#include "absl/functional/function_ref.h" +#include "absl/strings/string_view.h" #include "src/core/ext/transport/chttp2/transport/frame.h" #include "src/core/ext/transport/chttp2/transport/http2_status.h" #include "src/core/util/json/json.h" #include "src/core/util/useful.h" -#include "absl/functional/function_ref.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/ext/transport/chttp2/transport/internal.h b/src/core/ext/transport/chttp2/transport/internal.h index 653c5107244d5..13c7a2a73baba 100644 --- a/src/core/ext/transport/chttp2/transport/internal.h +++ b/src/core/ext/transport/chttp2/transport/internal.h @@ -34,6 +34,10 @@ #include #include +#include "absl/container/flat_hash_map.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/channelz/channelz.h" #include "src/core/ext/transport/chttp2/transport/call_tracer_wrapper.h" @@ -76,10 +80,6 @@ #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" -#include "absl/container/flat_hash_map.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" // Flag that this closure barrier may be covering a write in a pollset, and so // we should not complete this closure until we can prove that the write got diff --git a/src/core/ext/transport/chttp2/transport/message_assembler.h b/src/core/ext/transport/chttp2/transport/message_assembler.h index ac3a05cd9b517..42d44c03239e9 100644 --- a/src/core/ext/transport/chttp2/transport/message_assembler.h +++ b/src/core/ext/transport/chttp2/transport/message_assembler.h @@ -22,12 +22,12 @@ #include #include +#include "absl/log/check.h" #include "src/core/call/message.h" #include "src/core/ext/transport/chttp2/transport/frame.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/slice/slice_buffer.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" namespace grpc_core { namespace http2 { diff --git a/src/core/ext/transport/chttp2/transport/parsing.cc b/src/core/ext/transport/chttp2/transport/parsing.cc index eb0746dfb3a0d..b64a73b14ca3d 100644 --- a/src/core/ext/transport/chttp2/transport/parsing.cc +++ b/src/core/ext/transport/chttp2/transport/parsing.cc @@ -31,6 +31,15 @@ #include #include +#include "absl/base/attributes.h" +#include "absl/container/flat_hash_map.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/bit_gen_ref.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/channelz/channelz.h" #include "src/core/ext/transport/chttp2/transport/call_tracer_wrapper.h" @@ -67,15 +76,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/shared_bit_gen.h" #include "src/core/util/status_helper.h" -#include "absl/base/attributes.h" -#include "absl/container/flat_hash_map.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" using grpc_core::HPackParser; using grpc_core::http2::Http2ErrorCode; diff --git a/src/core/ext/transport/chttp2/transport/ping_callbacks.h b/src/core/ext/transport/chttp2/transport/ping_callbacks.h index 0140d854679b2..bfc6efb6bd96f 100644 --- a/src/core/ext/transport/chttp2/transport/ping_callbacks.h +++ b/src/core/ext/transport/chttp2/transport/ping_callbacks.h @@ -24,12 +24,12 @@ #include #include -#include "src/core/lib/debug/trace.h" -#include "src/core/util/time.h" #include "absl/container/flat_hash_map.h" #include "absl/functional/any_invocable.h" #include "absl/hash/hash.h" #include "absl/random/bit_gen_ref.h" +#include "src/core/lib/debug/trace.h" +#include "src/core/util/time.h" namespace grpc_core { diff --git a/src/core/ext/transport/chttp2/transport/ping_rate_policy.cc b/src/core/ext/transport/chttp2/transport/ping_rate_policy.cc index f24be3a470d57..a9d9690072d5c 100644 --- a/src/core/ext/transport/chttp2/transport/ping_rate_policy.cc +++ b/src/core/ext/transport/chttp2/transport/ping_rate_policy.cc @@ -21,9 +21,9 @@ #include #include +#include "absl/strings/str_cat.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/util/match.h" -#include "absl/strings/str_cat.h" // How many pings do we allow to be inflight at any given time? // In older versions of gRPC this was implicitly 1. diff --git a/src/core/ext/transport/chttp2/transport/stream_lists.cc b/src/core/ext/transport/chttp2/transport/stream_lists.cc index c06ab6596d856..20d848c35bb11 100644 --- a/src/core/ext/transport/chttp2/transport/stream_lists.cc +++ b/src/core/ext/transport/chttp2/transport/stream_lists.cc @@ -20,13 +20,13 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/ext/transport/chttp2/transport/internal.h" #include "src/core/ext/transport/chttp2/transport/legacy_frame.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/util/bitset.h" -#include "absl/log/check.h" -#include "absl/log/log.h" static const char* stream_list_id_string(grpc_chttp2_stream_list_id id) { switch (id) { diff --git a/src/core/ext/transport/chttp2/transport/writing.cc b/src/core/ext/transport/chttp2/transport/writing.cc index 1b17f22a5afc4..88d296d438cd5 100644 --- a/src/core/ext/transport/chttp2/transport/writing.cc +++ b/src/core/ext/transport/chttp2/transport/writing.cc @@ -30,6 +30,10 @@ #include #include +#include "absl/container/flat_hash_map.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" #include "src/core/call/metadata_batch.h" #include "src/core/channelz/channelz.h" #include "src/core/ext/transport/chttp2/transport/call_tracer_wrapper.h" @@ -69,10 +73,6 @@ #include "src/core/util/shared_bit_gen.h" #include "src/core/util/time.h" #include "src/core/util/useful.h" -#include "absl/container/flat_hash_map.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" // IWYU pragma: no_include "src/core/util/orphanable.h" diff --git a/src/core/ext/transport/inproc/inproc_transport.cc b/src/core/ext/transport/inproc/inproc_transport.cc index 55b29f0b2846a..fd6d478f7dc97 100644 --- a/src/core/ext/transport/inproc/inproc_transport.cc +++ b/src/core/ext/transport/inproc/inproc_transport.cc @@ -20,6 +20,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" #include "src/core/call/metadata.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/inproc/legacy_inproc_transport.h" @@ -33,9 +36,6 @@ #include "src/core/server/server.h" #include "src/core/util/crash.h" #include "src/core/util/debug_location.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/src/core/ext/transport/inproc/legacy_inproc_transport.cc b/src/core/ext/transport/inproc/legacy_inproc_transport.cc index c7fd425668503..230a1829a6a41 100644 --- a/src/core/ext/transport/inproc/legacy_inproc_transport.cc +++ b/src/core/ext/transport/inproc/legacy_inproc_transport.cc @@ -35,6 +35,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/channelz/channelz.h" #include "src/core/config/core_configuration.h" @@ -58,12 +64,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/status_helper.h" #include "src/core/util/time.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace { struct inproc_stream; diff --git a/src/core/filter/auth/auth_filters.h b/src/core/filter/auth/auth_filters.h index 99050cf572133..0d46c23d02918 100644 --- a/src/core/filter/auth/auth_filters.h +++ b/src/core/filter/auth/auth_filters.h @@ -24,6 +24,7 @@ #include #include +#include "absl/status/statusor.h" #include "src/core/call/status_util.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/transport/security_connector.h" @@ -35,7 +36,6 @@ #include "src/core/lib/promise/arena_promise.h" #include "src/core/lib/transport/transport.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/filter/auth/client_auth_filter.cc b/src/core/filter/auth/client_auth_filter.cc index 145db626f8422..c43881b1941dc 100644 --- a/src/core/filter/auth/client_auth_filter.cc +++ b/src/core/filter/auth/client_auth_filter.cc @@ -29,6 +29,8 @@ #include // IWYU pragma: keep #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/call/metadata_batch.h" #include "src/core/call/security_context.h" #include "src/core/call/status_util.h" @@ -49,8 +51,6 @@ #include "src/core/transport/auth_context.h" #include "src/core/util/debug_location.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" #define MAX_CREDENTIALS_METADATA_COUNT 4 diff --git a/src/core/filter/auth/server_auth_filter.cc b/src/core/filter/auth/server_auth_filter.cc index ea2ab8f7a4f61..c01e971c52d04 100644 --- a/src/core/filter/auth/server_auth_filter.cc +++ b/src/core/filter/auth/server_auth_filter.cc @@ -30,6 +30,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/call/metadata_batch.h" #include "src/core/call/security_context.h" #include "src/core/credentials/transport/transport_credentials.h" @@ -54,10 +58,6 @@ #include "src/core/util/debug_location.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/status_helper.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/filter/blackboard.h b/src/core/filter/blackboard.h index 6a467ef71955c..19f08be382b96 100644 --- a/src/core/filter/blackboard.h +++ b/src/core/filter/blackboard.h @@ -20,14 +20,14 @@ #include #include +#include "absl/container/flat_hash_map.h" +#include "absl/strings/string_view.h" #include "src/core/resolver/endpoint_addresses.h" #include "src/core/util/debug_location.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" -#include "absl/container/flat_hash_map.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc b/src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc index c74d67c482689..b6037bfe7cb2b 100644 --- a/src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc +++ b/src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc @@ -21,6 +21,8 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/status/status.h" #include "src/core/handshaker/handshaker.h" #include "src/core/handshaker/handshaker_factory.h" #include "src/core/handshaker/handshaker_registry.h" @@ -30,8 +32,6 @@ #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/debug_location.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/src/core/handshaker/handshaker.cc b/src/core/handshaker/handshaker.cc index 02efb7018db36..fe11b205c3a57 100644 --- a/src/core/handshaker/handshaker.cc +++ b/src/core/handshaker/handshaker.cc @@ -28,6 +28,12 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/endpoint.h" @@ -36,12 +42,6 @@ #include "src/core/util/debug_location.h" #include "src/core/util/status_helper.h" #include "src/core/util/time.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" using ::grpc_event_engine::experimental::EventEngine; diff --git a/src/core/handshaker/handshaker.h b/src/core/handshaker/handshaker.h index f320a0d38f099..251ec6bf7ccd5 100644 --- a/src/core/handshaker/handshaker.h +++ b/src/core/handshaker/handshaker.h @@ -26,6 +26,8 @@ #include +#include "absl/base/thread_annotations.h" +#include "absl/container/inlined_vector.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/endpoint.h" @@ -37,8 +39,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/inlined_vector.h" namespace grpc_core { diff --git a/src/core/handshaker/http_connect/http_connect_handshaker.cc b/src/core/handshaker/http_connect/http_connect_handshaker.cc index 88dbfa64afdc6..8930eeb38678b 100644 --- a/src/core/handshaker/http_connect/http_connect_handshaker.cc +++ b/src/core/handshaker/http_connect/http_connect_handshaker.cc @@ -30,6 +30,11 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/handshaker/handshaker.h" #include "src/core/handshaker/handshaker_factory.h" @@ -48,11 +53,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/string.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/handshaker/http_connect/http_proxy_mapper.cc b/src/core/handshaker/http_connect/http_proxy_mapper.cc index b6a571f5690c4..52d9445513a39 100644 --- a/src/core/handshaker/http_connect/http_proxy_mapper.cc +++ b/src/core/handshaker/http_connect/http_proxy_mapper.cc @@ -29,16 +29,6 @@ #include #include -#include "src/core/handshaker/http_connect/http_connect_handshaker.h" -#include "src/core/lib/address_utils/parse_address.h" -#include "src/core/lib/address_utils/sockaddr_utils.h" -#include "src/core/lib/channel/channel_args.h" -#include "src/core/lib/iomgr/resolve_address.h" -#include "src/core/util/env.h" -#include "src/core/util/host_port.h" -#include "src/core/util/memory.h" -#include "src/core/util/string.h" -#include "src/core/util/uri.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" @@ -51,6 +41,16 @@ #include "absl/strings/str_split.h" #include "absl/strings/string_view.h" #include "absl/strings/strip.h" +#include "src/core/handshaker/http_connect/http_connect_handshaker.h" +#include "src/core/lib/address_utils/parse_address.h" +#include "src/core/lib/address_utils/sockaddr_utils.h" +#include "src/core/lib/channel/channel_args.h" +#include "src/core/lib/iomgr/resolve_address.h" +#include "src/core/util/env.h" +#include "src/core/util/host_port.h" +#include "src/core/util/memory.h" +#include "src/core/util/string.h" +#include "src/core/util/uri.h" namespace grpc_core { namespace { diff --git a/src/core/handshaker/http_connect/http_proxy_mapper.h b/src/core/handshaker/http_connect/http_proxy_mapper.h index 1e59c02333aa7..61bbc4bc642eb 100644 --- a/src/core/handshaker/http_connect/http_proxy_mapper.h +++ b/src/core/handshaker/http_connect/http_proxy_mapper.h @@ -24,11 +24,11 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/handshaker/proxy_mapper.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/resolved_address.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/handshaker/http_connect/xds_http_proxy_mapper.cc b/src/core/handshaker/http_connect/xds_http_proxy_mapper.cc index 26fa8ea25e3c3..4e5287e58943f 100644 --- a/src/core/handshaker/http_connect/xds_http_proxy_mapper.cc +++ b/src/core/handshaker/http_connect/xds_http_proxy_mapper.cc @@ -20,12 +20,12 @@ #include #include +#include "absl/log/log.h" #include "src/core/handshaker/http_connect/http_connect_handshaker.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/xds/grpc/xds_endpoint.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/src/core/handshaker/http_connect/xds_http_proxy_mapper.h b/src/core/handshaker/http_connect/xds_http_proxy_mapper.h index ac5615d40988b..fb448c9755d92 100644 --- a/src/core/handshaker/http_connect/xds_http_proxy_mapper.h +++ b/src/core/handshaker/http_connect/xds_http_proxy_mapper.h @@ -20,11 +20,11 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/handshaker/proxy_mapper.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/resolved_address.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/handshaker/proxy_mapper.h b/src/core/handshaker/proxy_mapper.h index 2c5ffb25386f0..0747aff03cb0e 100644 --- a/src/core/handshaker/proxy_mapper.h +++ b/src/core/handshaker/proxy_mapper.h @@ -24,9 +24,9 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/resolved_address.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/handshaker/proxy_mapper_registry.h b/src/core/handshaker/proxy_mapper_registry.h index 14d57ecc65d82..495edf6b5766a 100644 --- a/src/core/handshaker/proxy_mapper_registry.h +++ b/src/core/handshaker/proxy_mapper_registry.h @@ -27,10 +27,10 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/handshaker/proxy_mapper.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/resolved_address.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/handshaker/security/legacy_secure_endpoint.cc b/src/core/handshaker/security/legacy_secure_endpoint.cc index f006f23c9bc9f..d9f7c6d5ecfef 100644 --- a/src/core/handshaker/security/legacy_secure_endpoint.cc +++ b/src/core/handshaker/security/legacy_secure_endpoint.cc @@ -32,6 +32,11 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/handshaker/security/secure_endpoint.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/closure.h" @@ -51,11 +56,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/string.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" #define STAGING_BUFFER_SIZE 8192 diff --git a/src/core/handshaker/security/secure_endpoint.cc b/src/core/handshaker/security/secure_endpoint.cc index a0a0359d15c04..638ad32f01844 100644 --- a/src/core/handshaker/security/secure_endpoint.cc +++ b/src/core/handshaker/security/secure_endpoint.cc @@ -35,6 +35,11 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/endpoint.h" @@ -54,11 +59,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/string.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" #define STAGING_BUFFER_SIZE 8192 diff --git a/src/core/handshaker/security/security_handshaker.cc b/src/core/handshaker/security/security_handshaker.cc index bb55fc11aa0f1..3bca02fcc75f0 100644 --- a/src/core/handshaker/security/security_handshaker.cc +++ b/src/core/handshaker/security/security_handshaker.cc @@ -35,6 +35,12 @@ #include #include +#include "absl/base/attributes.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/channelz/channelz.h" #include "src/core/config/core_configuration.h" #include "src/core/handshaker/handshaker.h" @@ -58,12 +64,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" #include "src/core/util/unique_type_name.h" -#include "absl/base/attributes.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" #define GRPC_INITIAL_HANDSHAKE_BUFFER_SIZE 256 diff --git a/src/core/handshaker/security/security_handshaker.h b/src/core/handshaker/security/security_handshaker.h index 193587521d014..1c42a8e64f7e8 100644 --- a/src/core/handshaker/security/security_handshaker.h +++ b/src/core/handshaker/security/security_handshaker.h @@ -22,13 +22,13 @@ #include #include +#include "absl/status/statusor.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/handshaker/handshaker.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/tsi/transport_security_interface.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/handshaker/tcp_connect/tcp_connect_handshaker.cc b/src/core/handshaker/tcp_connect/tcp_connect_handshaker.cc index a3673f790215c..433ed2b061f89 100644 --- a/src/core/handshaker/tcp_connect/tcp_connect_handshaker.cc +++ b/src/core/handshaker/tcp_connect/tcp_connect_handshaker.cc @@ -27,6 +27,11 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/config/core_configuration.h" #include "src/core/handshaker/handshaker.h" #include "src/core/handshaker/handshaker_factory.h" @@ -48,11 +53,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" #include "src/core/util/uri.h" -#include "absl/base/thread_annotations.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/lib/address_utils/parse_address.cc b/src/core/lib/address_utils/parse_address.cc index d31db250ca7ce..8a3c270a3d103 100644 --- a/src/core/lib/address_utils/parse_address.cc +++ b/src/core/lib/address_utils/parse_address.cc @@ -41,17 +41,17 @@ #endif // GRPC_HAVE_UNIX_SOCKET #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/strip.h" #include "src/core/lib/iomgr/sockaddr.h" #include "src/core/lib/iomgr/socket_utils.h" #include "src/core/util/grpc_if_nametoindex.h" #include "src/core/util/host_port.h" #include "src/core/util/status_helper.h" #include "src/core/util/string.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/strip.h" // IWYU pragma: no_include diff --git a/src/core/lib/address_utils/parse_address.h b/src/core/lib/address_utils/parse_address.h index 59d483b344dc7..840d0c260bce2 100644 --- a/src/core/lib/address_utils/parse_address.h +++ b/src/core/lib/address_utils/parse_address.h @@ -22,11 +22,11 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/resolved_address.h" #include "src/core/util/uri.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" /// Populate \a resolved_addr from \a uri, whose path is expected to contain a /// unix socket path. Returns true upon success. diff --git a/src/core/lib/address_utils/sockaddr_utils.cc b/src/core/lib/address_utils/sockaddr_utils.cc index 880afcbd284ee..b52491637c04d 100644 --- a/src/core/lib/address_utils/sockaddr_utils.cc +++ b/src/core/lib/address_utils/sockaddr_utils.cc @@ -31,16 +31,16 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" #include "src/core/lib/iomgr/port.h" #include "src/core/lib/iomgr/sockaddr.h" #include "src/core/lib/iomgr/socket_utils.h" #include "src/core/util/crash.h" #include "src/core/util/host_port.h" #include "src/core/util/uri.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" #ifdef GRPC_HAVE_UNIX_SOCKET #ifdef GPR_WINDOWS diff --git a/src/core/lib/address_utils/sockaddr_utils.h b/src/core/lib/address_utils/sockaddr_utils.h index 9c34dc6821908..c76aa64908aba 100644 --- a/src/core/lib/address_utils/sockaddr_utils.h +++ b/src/core/lib/address_utils/sockaddr_utils.h @@ -24,8 +24,8 @@ #include -#include "src/core/lib/iomgr/resolved_address.h" #include "absl/status/statusor.h" +#include "src/core/lib/iomgr/resolved_address.h" // Returns true if addr is an IPv4-mapped IPv6 address within the // ::ffff:0.0.0.0/96 range, or false otherwise. diff --git a/src/core/lib/channel/channel_args.cc b/src/core/lib/channel/channel_args.cc index 65c3ff3fd87fc..a2c6ba422618f 100644 --- a/src/core/lib/channel/channel_args.cc +++ b/src/core/lib/channel/channel_args.cc @@ -32,13 +32,13 @@ #include #include -#include "src/core/util/useful.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/match.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" +#include "src/core/util/useful.h" namespace grpc_core { diff --git a/src/core/lib/channel/channel_args.h b/src/core/lib/channel/channel_args.h index 02dce0385b6da..d11925beb531a 100644 --- a/src/core/lib/channel/channel_args.h +++ b/src/core/lib/channel/channel_args.h @@ -33,6 +33,8 @@ #include #include +#include "absl/meta/type_traits.h" +#include "absl/strings/string_view.h" #include "src/core/lib/surface/channel_stack_type.h" #include "src/core/util/avl.h" #include "src/core/util/debug_location.h" @@ -42,8 +44,6 @@ #include "src/core/util/ref_counted_string.h" #include "src/core/util/time.h" #include "src/core/util/useful.h" -#include "absl/meta/type_traits.h" -#include "absl/strings/string_view.h" // TODO(hork): When we're ready to allow setting via a channel arg from the // application, replace this with a macro in diff --git a/src/core/lib/channel/channel_stack.cc b/src/core/lib/channel/channel_stack.cc index 386a4084f489a..0b0b0345538d3 100644 --- a/src/core/lib/channel/channel_stack.cc +++ b/src/core/lib/channel/channel_stack.cc @@ -24,12 +24,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/surface/channel_init.h" #include "src/core/util/alloc.h" -#include "absl/log/check.h" -#include "absl/log/log.h" using grpc_event_engine::experimental::EventEngine; diff --git a/src/core/lib/channel/channel_stack_builder.h b/src/core/lib/channel/channel_stack_builder.h index c40cd62f94d00..b1e7211676529 100644 --- a/src/core/lib/channel/channel_stack_builder.h +++ b/src/core/lib/channel/channel_stack_builder.h @@ -20,12 +20,12 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/surface/channel_stack_type.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/lib/channel/channel_stack_builder_impl.cc b/src/core/lib/channel/channel_stack_builder_impl.cc index 9c67fc755c4b4..3f2bec6757b32 100644 --- a/src/core/lib/channel/channel_stack_builder_impl.cc +++ b/src/core/lib/channel/channel_stack_builder_impl.cc @@ -29,6 +29,10 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/flat_hash_map.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/channel_stack.h" @@ -43,10 +47,6 @@ #include "src/core/lib/transport/transport.h" #include "src/core/util/no_destruct.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/flat_hash_map.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/src/core/lib/channel/channel_stack_builder_impl.h b/src/core/lib/channel/channel_stack_builder_impl.h index df7067d4180e9..6de06ebba7305 100644 --- a/src/core/lib/channel/channel_stack_builder_impl.h +++ b/src/core/lib/channel/channel_stack_builder_impl.h @@ -17,10 +17,10 @@ #include +#include "absl/status/statusor.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/channel_stack_builder.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/lib/channel/connected_channel.cc b/src/core/lib/channel/connected_channel.cc index 5ca7d9129963c..9487e7e21dbd9 100644 --- a/src/core/lib/channel/connected_channel.cc +++ b/src/core/lib/channel/connected_channel.cc @@ -31,6 +31,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/call/call_finalization.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" @@ -71,9 +74,6 @@ #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" typedef struct connected_channel_channel_data { grpc_core::Transport* transport; diff --git a/src/core/lib/channel/promise_based_filter.cc b/src/core/lib/channel/promise_based_filter.cc index 049dd6f54c516..d13e13bb19ae1 100644 --- a/src/core/lib/channel/promise_based_filter.cc +++ b/src/core/lib/channel/promise_based_filter.cc @@ -23,6 +23,14 @@ #include #include +#include "absl/base/attributes.h" +#include "absl/functional/function_ref.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" #include "src/core/lib/channel/channel_stack.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/error.h" @@ -32,14 +40,6 @@ #include "src/core/util/latent_see.h" #include "src/core/util/manual_constructor.h" #include "src/core/util/status_helper.h" -#include "absl/base/attributes.h" -#include "absl/functional/function_ref.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" namespace grpc_core { namespace promise_filter_detail { diff --git a/src/core/lib/channel/promise_based_filter.h b/src/core/lib/channel/promise_based_filter.h index 24b2ec721df54..631fcb8d8f9ca 100644 --- a/src/core/lib/channel/promise_based_filter.h +++ b/src/core/lib/channel/promise_based_filter.h @@ -33,6 +33,13 @@ #include #include +#include "absl/container/inlined_vector.h" +#include "absl/functional/function_ref.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/meta/type_traits.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/call/call_filters.h" #include "src/core/call/call_finalization.h" #include "src/core/call/message.h" @@ -68,13 +75,6 @@ #include "src/core/util/debug_location.h" #include "src/core/util/match.h" #include "src/core/util/time.h" -#include "absl/container/inlined_vector.h" -#include "absl/functional/function_ref.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/meta/type_traits.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/lib/compression/compression_internal.cc b/src/core/lib/compression/compression_internal.cc index dadcc35854982..0ab9a5990c6ff 100644 --- a/src/core/lib/compression/compression_internal.cc +++ b/src/core/lib/compression/compression_internal.cc @@ -24,16 +24,16 @@ #include -#include "src/core/lib/channel/channel_args.h" -#include "src/core/lib/debug/trace.h" -#include "src/core/util/crash.h" -#include "src/core/util/ref_counted_ptr.h" -#include "src/core/util/ref_counted_string.h" #include "absl/container/inlined_vector.h" #include "absl/log/check.h" #include "absl/strings/ascii.h" #include "absl/strings/str_format.h" #include "absl/strings/str_split.h" +#include "src/core/lib/channel/channel_args.h" +#include "src/core/lib/debug/trace.h" +#include "src/core/util/crash.h" +#include "src/core/util/ref_counted_ptr.h" +#include "src/core/util/ref_counted_string.h" namespace grpc_core { diff --git a/src/core/lib/compression/compression_internal.h b/src/core/lib/compression/compression_internal.h index 345c729fc0166..be558da72f0e5 100644 --- a/src/core/lib/compression/compression_internal.h +++ b/src/core/lib/compression/compression_internal.h @@ -26,10 +26,10 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/slice/slice.h" #include "src/core/util/bitset.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/lib/compression/message_compress.cc b/src/core/lib/compression/message_compress.cc index e6e7ff4e85bc6..7a731495e4a68 100644 --- a/src/core/lib/compression/message_compress.cc +++ b/src/core/lib/compression/message_compress.cc @@ -25,9 +25,9 @@ #include #include -#include "src/core/lib/slice/slice.h" #include "absl/log/check.h" #include "absl/log/log.h" +#include "src/core/lib/slice/slice.h" #define OUTPUT_BLOCK_SIZE 1024 diff --git a/src/core/lib/debug/trace.cc b/src/core/lib/debug/trace.cc index 4cd22a8e85ab3..bd4a81b8ffe39 100644 --- a/src/core/lib/debug/trace.cc +++ b/src/core/lib/debug/trace.cc @@ -25,14 +25,14 @@ #include #include -#include "src/core/config/config_vars.h" -#include "src/core/util/glob.h" #include "absl/log/log.h" #include "absl/strings/match.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_split.h" #include "absl/strings/string_view.h" #include "absl/strings/strip.h" +#include "src/core/config/config_vars.h" +#include "src/core/util/glob.h" int grpc_tracer_set_enabled(const char* name, int enabled); diff --git a/src/core/lib/event_engine/ares_resolver.cc b/src/core/lib/event_engine/ares_resolver.cc index da63f957e244e..b34b1448641a0 100644 --- a/src/core/lib/event_engine/ares_resolver.cc +++ b/src/core/lib/event_engine/ares_resolver.cc @@ -52,6 +52,14 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/hash/hash.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/match.h" +#include "absl/strings/numbers.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" #include "src/core/config/config_vars.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/address_utils/sockaddr_utils.h" @@ -64,14 +72,6 @@ #include "src/core/util/host_port.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/functional/any_invocable.h" -#include "absl/hash/hash.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/match.h" -#include "absl/strings/numbers.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" #ifdef GRPC_POSIX_SOCKET_ARES_EV_DRIVER #include "src/core/lib/event_engine/posix_engine/tcp_socket_utils.h" #endif diff --git a/src/core/lib/event_engine/ares_resolver.h b/src/core/lib/event_engine/ares_resolver.h index 38e6a34f13cdd..e49562adf47d6 100644 --- a/src/core/lib/event_engine/ares_resolver.h +++ b/src/core/lib/event_engine/ares_resolver.h @@ -18,8 +18,8 @@ #include -#include "src/core/lib/debug/trace.h" #include "absl/status/status.h" +#include "src/core/lib/debug/trace.h" #if GRPC_ARES == 1 @@ -29,14 +29,14 @@ #include #include -#include "src/core/lib/event_engine/grpc_polled_fd.h" -#include "src/core/lib/event_engine/ref_counted_dns_resolver_interface.h" -#include "src/core/util/orphanable.h" -#include "src/core/util/sync.h" #include "absl/base/thread_annotations.h" #include "absl/container/flat_hash_map.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "src/core/lib/event_engine/grpc_polled_fd.h" +#include "src/core/lib/event_engine/ref_counted_dns_resolver_interface.h" +#include "src/core/util/orphanable.h" +#include "src/core/util/sync.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/cf_engine/cf_engine.cc b/src/core/lib/event_engine/cf_engine/cf_engine.cc index 8969e47785c4c..83b1188a846ce 100644 --- a/src/core/lib/event_engine/cf_engine/cf_engine.cc +++ b/src/core/lib/event_engine/cf_engine/cf_engine.cc @@ -21,6 +21,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/event_engine/cf_engine/cf_engine.h" #include "src/core/lib/event_engine/cf_engine/cfstream_endpoint.h" #include "src/core/lib/event_engine/cf_engine/dns_service_resolver.h" @@ -29,8 +31,6 @@ #include "src/core/lib/event_engine/thread_pool/thread_pool.h" #include "src/core/lib/event_engine/utils.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" -#include "absl/log/log.h" #ifndef GRPC_CFSTREAM_MAX_THREADPOOL_SIZE #define GRPC_CFSTREAM_MAX_THREADPOOL_SIZE 16u diff --git a/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc b/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc index f5b9051ea3695..60f48bf22c710 100644 --- a/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +++ b/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc @@ -18,11 +18,11 @@ #include #ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER -#include "src/core/lib/event_engine/cf_engine/cfstream_endpoint.h" -#include "src/core/util/strerror.h" #include "absl/status/status.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" +#include "src/core/lib/event_engine/cf_engine/cfstream_endpoint.h" +#include "src/core/util/strerror.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/cf_engine/cfstream_endpoint.h b/src/core/lib/event_engine/cf_engine/cfstream_endpoint.h index fdb7d36a45965..1aa8534a20e34 100644 --- a/src/core/lib/event_engine/cf_engine/cfstream_endpoint.h +++ b/src/core/lib/event_engine/cf_engine/cfstream_endpoint.h @@ -22,6 +22,7 @@ #include #include +#include "absl/strings/str_format.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/event_engine/cf_engine/cf_engine.h" #include "src/core/lib/event_engine/cf_engine/cftype_unique_ref.h" @@ -30,7 +31,6 @@ #include "src/core/util/host_port.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/strings/str_format.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc b/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc index 4c76a06069fe2..f60101ff08bee 100644 --- a/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +++ b/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc @@ -18,14 +18,14 @@ #include #ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER +#include "absl/log/check.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/event_engine/cf_engine/dns_service_resolver.h" #include "src/core/lib/event_engine/posix_engine/lockfree_event.h" #include "src/core/lib/event_engine/tcp_socket_utils.h" #include "src/core/util/host_port.h" -#include "absl/log/check.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/cf_engine/dns_service_resolver.h b/src/core/lib/event_engine/cf_engine/dns_service_resolver.h index 08c001859d5f5..fdf4f799ab9dd 100644 --- a/src/core/lib/event_engine/cf_engine/dns_service_resolver.h +++ b/src/core/lib/event_engine/cf_engine/dns_service_resolver.h @@ -23,11 +23,11 @@ #include #include +#include "absl/container/flat_hash_map.h" +#include "absl/log/check.h" #include "src/core/lib/event_engine/cf_engine/cf_engine.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/container/flat_hash_map.h" -#include "absl/log/check.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/channel_args_endpoint_config.h b/src/core/lib/event_engine/channel_args_endpoint_config.h index e00f881ae3bfd..8499ee27ee289 100644 --- a/src/core/lib/event_engine/channel_args_endpoint_config.h +++ b/src/core/lib/event_engine/channel_args_endpoint_config.h @@ -19,8 +19,8 @@ #include -#include "src/core/lib/channel/channel_args.h" #include "absl/strings/string_view.h" +#include "src/core/lib/channel/channel_args.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/default_event_engine.cc b/src/core/lib/event_engine/default_event_engine.cc index 89597b0861a4b..10d17647c3038 100644 --- a/src/core/lib/event_engine/default_event_engine.cc +++ b/src/core/lib/event_engine/default_event_engine.cc @@ -22,6 +22,7 @@ #include #include +#include "absl/functional/any_invocable.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/event_engine/default_event_engine_factory.h" @@ -30,7 +31,6 @@ #include "src/core/util/no_destruct.h" #include "src/core/util/sync.h" #include "src/core/util/wait_for_single_owner.h" -#include "absl/functional/any_invocable.h" #ifdef GRPC_MAXIMIZE_THREADYNESS #include "src/core/lib/event_engine/thready_event_engine/thready_event_engine.h" // IWYU pragma: keep diff --git a/src/core/lib/event_engine/grpc_polled_fd.h b/src/core/lib/event_engine/grpc_polled_fd.h index 4a77540640200..b08280cd4e244 100644 --- a/src/core/lib/event_engine/grpc_polled_fd.h +++ b/src/core/lib/event_engine/grpc_polled_fd.h @@ -24,9 +24,9 @@ #include -#include "src/core/util/sync.h" #include "absl/functional/any_invocable.h" #include "absl/status/status.h" +#include "src/core/util/sync.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/memory_allocator_factory.h b/src/core/lib/event_engine/memory_allocator_factory.h index 64a4637e4f72c..ccc675dbefa7d 100644 --- a/src/core/lib/event_engine/memory_allocator_factory.h +++ b/src/core/lib/event_engine/memory_allocator_factory.h @@ -19,8 +19,8 @@ #include #include -#include "src/core/lib/resource_quota/memory_quota.h" #include "absl/strings/string_view.h" +#include "src/core/lib/resource_quota/memory_quota.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc b/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc index 0748e0ec4afe7..3c5b8be63af11 100644 --- a/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc +++ b/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc @@ -22,15 +22,15 @@ #include #include -#include "src/core/lib/event_engine/poller.h" -#include "src/core/lib/event_engine/time_util.h" -#include "src/core/lib/iomgr/port.h" -#include "src/core/util/crash.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_format.h" +#include "src/core/lib/event_engine/poller.h" +#include "src/core/lib/event_engine/time_util.h" +#include "src/core/lib/iomgr/port.h" +#include "src/core/util/crash.h" // This polling engine is only relevant on linux kernels supporting epoll // epoll_create() or epoll_create1() diff --git a/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.h b/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.h index c548dfcc58786..7ce59f4183d99 100644 --- a/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.h +++ b/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.h @@ -21,16 +21,16 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/inlined_vector.h" +#include "absl/functional/function_ref.h" +#include "absl/strings/string_view.h" #include "src/core/lib/event_engine/poller.h" #include "src/core/lib/event_engine/posix_engine/event_poller.h" #include "src/core/lib/event_engine/posix_engine/internal_errqueue.h" #include "src/core/lib/event_engine/posix_engine/wakeup_fd_posix.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/inlined_vector.h" -#include "absl/functional/function_ref.h" -#include "absl/strings/string_view.h" #ifdef GRPC_LINUX_EPOLL #include diff --git a/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc b/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc index 519b11ccdf550..6d7d54c62eecf 100644 --- a/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +++ b/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc @@ -26,17 +26,17 @@ #include #include -#include "src/core/lib/event_engine/poller.h" -#include "src/core/lib/event_engine/posix_engine/event_poller.h" -#include "src/core/lib/event_engine/posix_engine/posix_engine_closure.h" -#include "src/core/lib/iomgr/port.h" -#include "src/core/util/crash.h" #include "absl/container/inlined_vector.h" #include "absl/functional/any_invocable.h" #include "absl/log/check.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_format.h" +#include "src/core/lib/event_engine/poller.h" +#include "src/core/lib/event_engine/posix_engine/event_poller.h" +#include "src/core/lib/event_engine/posix_engine/posix_engine_closure.h" +#include "src/core/lib/iomgr/port.h" +#include "src/core/util/crash.h" #ifdef GRPC_POSIX_SOCKET_EV_POLL diff --git a/src/core/lib/event_engine/posix_engine/ev_poll_posix.h b/src/core/lib/event_engine/posix_engine/ev_poll_posix.h index d9ca9b8afe082..b083d8189366f 100644 --- a/src/core/lib/event_engine/posix_engine/ev_poll_posix.h +++ b/src/core/lib/event_engine/posix_engine/ev_poll_posix.h @@ -21,13 +21,13 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/functional/function_ref.h" +#include "absl/strings/string_view.h" #include "src/core/lib/event_engine/poller.h" #include "src/core/lib/event_engine/posix_engine/event_poller.h" #include "src/core/lib/event_engine/posix_engine/wakeup_fd_posix.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/functional/function_ref.h" -#include "absl/strings/string_view.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/posix_engine/event_poller.h b/src/core/lib/event_engine/posix_engine/event_poller.h index 2636ff9a01e9a..51184d3e59ad6 100644 --- a/src/core/lib/event_engine/posix_engine/event_poller.h +++ b/src/core/lib/event_engine/posix_engine/event_poller.h @@ -19,12 +19,12 @@ #include -#include "src/core/lib/event_engine/forkable.h" -#include "src/core/lib/event_engine/poller.h" -#include "src/core/lib/event_engine/posix_engine/posix_engine_closure.h" #include "absl/functional/any_invocable.h" #include "absl/status/status.h" #include "absl/strings/string_view.h" +#include "src/core/lib/event_engine/forkable.h" +#include "src/core/lib/event_engine/poller.h" +#include "src/core/lib/event_engine/posix_engine/posix_engine_closure.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/posix_engine/event_poller_posix_default.cc b/src/core/lib/event_engine/posix_engine/event_poller_posix_default.cc index 49225ee222b9c..c344e09c201ec 100644 --- a/src/core/lib/event_engine/posix_engine/event_poller_posix_default.cc +++ b/src/core/lib/event_engine/posix_engine/event_poller_posix_default.cc @@ -17,6 +17,8 @@ #include #include +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" #include "src/core/config/config_vars.h" #include "src/core/lib/event_engine/forkable.h" #include "src/core/lib/event_engine/posix_engine/ev_epoll1_linux.h" @@ -24,8 +26,6 @@ #include "src/core/lib/event_engine/posix_engine/event_poller.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/no_destruct.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h b/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h index 4a1da03b79890..0e38c0487b934 100644 --- a/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h +++ b/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h @@ -37,13 +37,13 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/event_engine/grpc_polled_fd.h" #include "src/core/lib/event_engine/posix_engine/event_poller.h" #include "src/core/lib/event_engine/posix_engine/posix_engine_closure.h" #include "src/core/lib/event_engine/posix_engine/tcp_socket_utils.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/posix_engine/internal_errqueue.cc b/src/core/lib/event_engine/posix_engine/internal_errqueue.cc index 54eb77b459c10..c5fa3db25b9a8 100644 --- a/src/core/lib/event_engine/posix_engine/internal_errqueue.cc +++ b/src/core/lib/event_engine/posix_engine/internal_errqueue.cc @@ -16,8 +16,8 @@ #include -#include "src/core/lib/iomgr/port.h" #include "absl/log/log.h" +#include "src/core/lib/iomgr/port.h" #ifdef GRPC_POSIX_SOCKET_TCP diff --git a/src/core/lib/event_engine/posix_engine/lockfree_event.cc b/src/core/lib/event_engine/posix_engine/lockfree_event.cc index a66f116488c60..eda19bb2dc6ce 100644 --- a/src/core/lib/event_engine/posix_engine/lockfree_event.cc +++ b/src/core/lib/event_engine/posix_engine/lockfree_event.cc @@ -19,12 +19,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" #include "src/core/lib/event_engine/posix_engine/event_poller.h" #include "src/core/lib/event_engine/posix_engine/posix_engine_closure.h" #include "src/core/util/crash.h" #include "src/core/util/status_helper.h" -#include "absl/log/check.h" -#include "absl/status/status.h" // 'state' holds the to call when the fd is readable or writable respectively. // It can contain one of the following values: diff --git a/src/core/lib/event_engine/posix_engine/lockfree_event.h b/src/core/lib/event_engine/posix_engine/lockfree_event.h index aa9ac96b7a016..36b7a0796b485 100644 --- a/src/core/lib/event_engine/posix_engine/lockfree_event.h +++ b/src/core/lib/event_engine/posix_engine/lockfree_event.h @@ -19,8 +19,8 @@ #include #include -#include "src/core/lib/event_engine/posix_engine/posix_engine_closure.h" #include "absl/status/status.h" +#include "src/core/lib/event_engine/posix_engine/posix_engine_closure.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.cc b/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.cc index c8b5d4f802de3..cbf2c6491d7e8 100644 --- a/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.cc +++ b/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.cc @@ -27,14 +27,14 @@ #include #include -#include "src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.h" -#include "src/core/util/host_port.h" -#include "src/core/util/useful.h" #include "absl/functional/any_invocable.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" +#include "src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.h" +#include "src/core/util/host_port.h" +#include "src/core/util/useful.h" namespace grpc_event_engine::experimental { namespace { diff --git a/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.h b/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.h index 90d251c108f45..df7546c809ff7 100644 --- a/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.h +++ b/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.h @@ -19,8 +19,8 @@ #include -#include "src/core/lib/iomgr/port.h" #include "absl/strings/string_view.h" +#include "src/core/lib/iomgr/port.h" #ifdef GRPC_POSIX_SOCKET_RESOLVE_ADDRESS diff --git a/src/core/lib/event_engine/posix_engine/posix_endpoint.cc b/src/core/lib/event_engine/posix_engine/posix_endpoint.cc index db6f685f9a8ee..f9cfa922797cb 100644 --- a/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +++ b/src/core/lib/event_engine/posix_engine/posix_endpoint.cc @@ -31,6 +31,12 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/event_engine/posix_engine/event_poller.h" #include "src/core/lib/event_engine/posix_engine/internal_errqueue.h" @@ -48,12 +54,6 @@ #include "src/core/util/strerror.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" #ifdef GRPC_POSIX_SOCKET_TCP #ifdef GRPC_LINUX_ERRQUEUE diff --git a/src/core/lib/event_engine/posix_engine/posix_endpoint.h b/src/core/lib/event_engine/posix_engine/posix_endpoint.h index 3d98adb2d60fd..3ddd318af7542 100644 --- a/src/core/lib/event_engine/posix_engine/posix_endpoint.h +++ b/src/core/lib/event_engine/posix_engine/posix_endpoint.h @@ -30,6 +30,14 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/flat_hash_map.h" +#include "absl/functional/any_invocable.h" +#include "absl/hash/hash.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/lib/event_engine/extensions/supports_fd.h" #include "src/core/lib/event_engine/posix.h" #include "src/core/lib/event_engine/posix_engine/event_poller.h" @@ -41,14 +49,6 @@ #include "src/core/util/crash.h" #include "src/core/util/ref_counted.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/flat_hash_map.h" -#include "absl/functional/any_invocable.h" -#include "absl/hash/hash.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" #ifdef GRPC_POSIX_SOCKET_TCP diff --git a/src/core/lib/event_engine/posix_engine/posix_engine.cc b/src/core/lib/event_engine/posix_engine/posix_engine.cc index f754d92d8c673..d5aa2a27d966b 100644 --- a/src/core/lib/event_engine/posix_engine/posix_engine.cc +++ b/src/core/lib/event_engine/posix_engine/posix_engine.cc @@ -29,6 +29,13 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/event_engine/ares_resolver.h" #include "src/core/lib/event_engine/forkable.h" @@ -46,13 +53,6 @@ #include "src/core/util/no_destruct.h" #include "src/core/util/sync.h" #include "src/core/util/useful.h" -#include "absl/cleanup/cleanup.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" #ifdef GRPC_POSIX_SOCKET_TCP #include // IWYU pragma: keep diff --git a/src/core/lib/event_engine/posix_engine/posix_engine.h b/src/core/lib/event_engine/posix_engine/posix_engine.h index 0077a4a2bdac3..d3f084572250f 100644 --- a/src/core/lib/event_engine/posix_engine/posix_engine.h +++ b/src/core/lib/event_engine/posix_engine/posix_engine.h @@ -25,6 +25,13 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/flat_hash_map.h" +#include "absl/functional/any_invocable.h" +#include "absl/hash/hash.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/event_engine/handle_containers.h" #include "src/core/lib/event_engine/posix.h" #include "src/core/lib/event_engine/posix_engine/event_poller.h" @@ -35,13 +42,6 @@ #include "src/core/lib/surface/init_internally.h" #include "src/core/util/orphanable.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/flat_hash_map.h" -#include "absl/functional/any_invocable.h" -#include "absl/hash/hash.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" #ifdef GRPC_POSIX_SOCKET_TCP #include "src/core/lib/event_engine/posix_engine/posix_engine_closure.h" diff --git a/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc b/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc index ab3bc5370b107..8906df34f0169 100644 --- a/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc +++ b/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc @@ -33,6 +33,11 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/event_engine/posix_engine/event_poller.h" #include "src/core/lib/event_engine/posix_engine/posix_endpoint.h" @@ -43,11 +48,6 @@ #include "src/core/util/status_helper.h" #include "src/core/util/strerror.h" #include "src/core/util/time.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/posix_engine/posix_engine_listener.h b/src/core/lib/event_engine/posix_engine/posix_engine_listener.h index 54c2abb4c5adf..bd7ec4f897253 100644 --- a/src/core/lib/event_engine/posix_engine/posix_engine_listener.h +++ b/src/core/lib/event_engine/posix_engine/posix_engine_listener.h @@ -27,13 +27,13 @@ #include #include -#include "src/core/lib/event_engine/posix.h" -#include "src/core/lib/iomgr/port.h" -#include "src/core/util/sync.h" #include "absl/base/thread_annotations.h" #include "absl/functional/any_invocable.h" #include "absl/status/status.h" #include "absl/status/statusor.h" +#include "src/core/lib/event_engine/posix.h" +#include "src/core/lib/iomgr/port.h" +#include "src/core/util/sync.h" #ifdef GRPC_POSIX_SOCKET_TCP #include "src/core/lib/event_engine/posix_engine/event_poller.h" diff --git a/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.cc b/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.cc index 998ea16a040f2..200aadaa5e458 100644 --- a/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.cc +++ b/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.cc @@ -24,18 +24,18 @@ #include #include -#include "src/core/lib/event_engine/posix_engine/tcp_socket_utils.h" -#include "src/core/lib/event_engine/tcp_socket_utils.h" -#include "src/core/lib/iomgr/port.h" -#include "src/core/lib/iomgr/socket_mutator.h" -#include "src/core/util/crash.h" // IWYU pragma: keep -#include "src/core/util/status_helper.h" #include "absl/cleanup/cleanup.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_replace.h" +#include "src/core/lib/event_engine/posix_engine/tcp_socket_utils.h" +#include "src/core/lib/event_engine/tcp_socket_utils.h" +#include "src/core/lib/iomgr/port.h" +#include "src/core/lib/iomgr/socket_mutator.h" +#include "src/core/util/crash.h" // IWYU pragma: keep +#include "src/core/util/status_helper.h" #define MIN_SAFE_ACCEPT_QUEUE_SIZE 100 diff --git a/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.h b/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.h index 9137edc55aaa6..3b8ab2e1c76ab 100644 --- a/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.h +++ b/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.h @@ -17,8 +17,8 @@ #include #include -#include "src/core/lib/event_engine/posix_engine/tcp_socket_utils.h" #include "absl/status/statusor.h" +#include "src/core/lib/event_engine/posix_engine/tcp_socket_utils.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc b/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc index c5e9123490edf..6b70439d0cef0 100644 --- a/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +++ b/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc @@ -23,13 +23,13 @@ #include +#include "absl/cleanup/cleanup.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/crash.h" // IWYU pragma: keep #include "src/core/util/time.h" #include "src/core/util/useful.h" -#include "absl/cleanup/cleanup.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" #ifdef GRPC_POSIX_SOCKET_UTILS_COMMON #include // IWYU pragma: keep @@ -47,12 +47,12 @@ #include #include -#include "src/core/lib/event_engine/tcp_socket_utils.h" -#include "src/core/util/status_helper.h" -#include "src/core/util/strerror.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" +#include "src/core/lib/event_engine/tcp_socket_utils.h" +#include "src/core/util/status_helper.h" +#include "src/core/util/strerror.h" #ifdef GRPC_HAVE_UNIX_SOCKET #ifdef GPR_WINDOWS diff --git a/src/core/lib/event_engine/posix_engine/tcp_socket_utils.h b/src/core/lib/event_engine/posix_engine/tcp_socket_utils.h index 0ec6a3a4a3201..2b07e16f5e276 100644 --- a/src/core/lib/event_engine/posix_engine/tcp_socket_utils.h +++ b/src/core/lib/event_engine/posix_engine/tcp_socket_utils.h @@ -25,13 +25,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/lib/iomgr/port.h" #include "src/core/lib/iomgr/socket_mutator.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" #ifdef GRPC_POSIX_SOCKET_UTILS_COMMON #include diff --git a/src/core/lib/event_engine/posix_engine/timer.h b/src/core/lib/event_engine/posix_engine/timer.h index 3ef231a7a678c..87c502c32f3e1 100644 --- a/src/core/lib/event_engine/posix_engine/timer.h +++ b/src/core/lib/event_engine/posix_engine/timer.h @@ -29,11 +29,11 @@ #include #include +#include "absl/base/thread_annotations.h" #include "src/core/lib/event_engine/posix_engine/timer_heap.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" #include "src/core/util/time_averaged_stats.h" -#include "absl/base/thread_annotations.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/posix_engine/timer_manager.cc b/src/core/lib/event_engine/posix_engine/timer_manager.cc index a094034ebb203..2ce6087b74092 100644 --- a/src/core/lib/event_engine/posix_engine/timer_manager.cc +++ b/src/core/lib/event_engine/posix_engine/timer_manager.cc @@ -25,10 +25,10 @@ #include #include -#include "src/core/lib/debug/trace.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/time/time.h" +#include "src/core/lib/debug/trace.h" static thread_local bool g_timer_thread; diff --git a/src/core/lib/event_engine/posix_engine/timer_manager.h b/src/core/lib/event_engine/posix_engine/timer_manager.h index 36bf4ca49df5c..a051bff32c57c 100644 --- a/src/core/lib/event_engine/posix_engine/timer_manager.h +++ b/src/core/lib/event_engine/posix_engine/timer_manager.h @@ -27,13 +27,13 @@ #include #include +#include "absl/base/thread_annotations.h" #include "src/core/lib/event_engine/forkable.h" #include "src/core/lib/event_engine/posix_engine/timer.h" #include "src/core/lib/event_engine/thread_pool/thread_pool.h" #include "src/core/util/notification.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/base/thread_annotations.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/posix_engine/traced_buffer_list.cc b/src/core/lib/event_engine/posix_engine/traced_buffer_list.cc index 98cdf43da80f5..6db28efd6faf6 100644 --- a/src/core/lib/event_engine/posix_engine/traced_buffer_list.cc +++ b/src/core/lib/event_engine/posix_engine/traced_buffer_list.cc @@ -23,10 +23,10 @@ #include -#include "src/core/lib/iomgr/port.h" -#include "src/core/util/sync.h" #include "absl/functional/any_invocable.h" #include "absl/log/log.h" +#include "src/core/lib/iomgr/port.h" +#include "src/core/util/sync.h" #ifdef GRPC_LINUX_ERRQUEUE #include // IWYU pragma: keep diff --git a/src/core/lib/event_engine/posix_engine/traced_buffer_list.h b/src/core/lib/event_engine/posix_engine/traced_buffer_list.h index 728f975a7ce96..c7f9761815d81 100644 --- a/src/core/lib/event_engine/posix_engine/traced_buffer_list.h +++ b/src/core/lib/event_engine/posix_engine/traced_buffer_list.h @@ -21,11 +21,11 @@ #include +#include "absl/functional/any_invocable.h" +#include "absl/status/status.h" #include "src/core/lib/event_engine/posix_engine/internal_errqueue.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/sync.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/status.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.cc b/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.cc index d5c0faded2adb..3d1217dae31dd 100644 --- a/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.cc +++ b/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.cc @@ -16,9 +16,9 @@ #include +#include "absl/strings/str_cat.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/crash.h" // IWYU pragma: keep -#include "absl/strings/str_cat.h" #ifdef GRPC_LINUX_EVENTFD diff --git a/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.h b/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.h index 4ca29e83c85e7..c664202f7986c 100644 --- a/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.h +++ b/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.h @@ -18,9 +18,9 @@ #include -#include "src/core/lib/event_engine/posix_engine/wakeup_fd_posix.h" #include "absl/status/status.h" #include "absl/status/statusor.h" +#include "src/core/lib/event_engine/posix_engine/wakeup_fd_posix.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.cc b/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.cc index 3fe7ac2e679e5..7f5e2900f4c18 100644 --- a/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.cc +++ b/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.cc @@ -17,9 +17,9 @@ #include #include +#include "absl/strings/str_cat.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/crash.h" // IWYU pragma: keep -#include "absl/strings/str_cat.h" #ifdef GRPC_POSIX_WAKEUP_FD #include diff --git a/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.h b/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.h index 2e7eda8c2582a..29d1fd41377bf 100644 --- a/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.h +++ b/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.h @@ -18,9 +18,9 @@ #include -#include "src/core/lib/event_engine/posix_engine/wakeup_fd_posix.h" #include "absl/status/status.h" #include "absl/status/statusor.h" +#include "src/core/lib/event_engine/posix_engine/wakeup_fd_posix.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/posix_engine/wakeup_fd_posix_default.cc b/src/core/lib/event_engine/posix_engine/wakeup_fd_posix_default.cc index 5045b74bf7d7b..ad948b4d2cd42 100644 --- a/src/core/lib/event_engine/posix_engine/wakeup_fd_posix_default.cc +++ b/src/core/lib/event_engine/posix_engine/wakeup_fd_posix_default.cc @@ -15,12 +15,12 @@ #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.h" #include "src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.h" #include "src/core/lib/event_engine/posix_engine/wakeup_fd_posix.h" #include "src/core/lib/iomgr/port.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/ref_counted_dns_resolver_interface.h b/src/core/lib/event_engine/ref_counted_dns_resolver_interface.h index 86ff4dc7bfda0..768e34ec4b695 100644 --- a/src/core/lib/event_engine/ref_counted_dns_resolver_interface.h +++ b/src/core/lib/event_engine/ref_counted_dns_resolver_interface.h @@ -19,8 +19,8 @@ #include #include -#include "src/core/util/orphanable.h" #include "absl/strings/string_view.h" +#include "src/core/util/orphanable.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/resolved_address.cc b/src/core/lib/event_engine/resolved_address.cc index 4e66a40e9cff8..ac7ba92563096 100644 --- a/src/core/lib/event_engine/resolved_address.cc +++ b/src/core/lib/event_engine/resolved_address.cc @@ -18,8 +18,8 @@ #include #include -#include "src/core/lib/event_engine/resolved_address_internal.h" #include "absl/log/check.h" +#include "src/core/lib/event_engine/resolved_address_internal.h" // IWYU pragma: no_include diff --git a/src/core/lib/event_engine/slice.cc b/src/core/lib/event_engine/slice.cc index 314b732507296..851d3f7de4900 100644 --- a/src/core/lib/event_engine/slice.cc +++ b/src/core/lib/event_engine/slice.cc @@ -22,9 +22,9 @@ #include #include +#include "absl/log/check.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/lib/slice/slice_refcount.h" -#include "absl/log/check.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/tcp_socket_utils.cc b/src/core/lib/event_engine/tcp_socket_utils.cc index 75ecd9d5824dc..2ba754595868b 100644 --- a/src/core/lib/event_engine/tcp_socket_utils.cc +++ b/src/core/lib/event_engine/tcp_socket_utils.cc @@ -53,15 +53,15 @@ #include -#include "src/core/lib/iomgr/resolved_address.h" -#include "src/core/util/host_port.h" -#include "src/core/util/status_helper.h" -#include "src/core/util/uri.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" +#include "src/core/lib/iomgr/resolved_address.h" +#include "src/core/util/host_port.h" +#include "src/core/util/status_helper.h" +#include "src/core/util/uri.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/thread_pool/thread_count.cc b/src/core/lib/event_engine/thread_pool/thread_count.cc index 33cffb999cc81..3bf4885eb5b1a 100644 --- a/src/core/lib/event_engine/thread_pool/thread_count.cc +++ b/src/core/lib/event_engine/thread_pool/thread_count.cc @@ -18,12 +18,12 @@ #include -#include "src/core/util/time.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/strings/str_format.h" #include "absl/time/clock.h" #include "absl/time/time.h" +#include "src/core/util/time.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/thread_pool/thread_count.h b/src/core/lib/event_engine/thread_pool/thread_count.h index b9b759df07eb7..a873e34ee0dec 100644 --- a/src/core/lib/event_engine/thread_pool/thread_count.h +++ b/src/core/lib/event_engine/thread_pool/thread_count.h @@ -24,10 +24,10 @@ #include #include +#include "absl/base/thread_annotations.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" #include "src/core/util/useful.h" -#include "absl/base/thread_annotations.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/thread_pool/thread_pool.h b/src/core/lib/event_engine/thread_pool/thread_pool.h index 58d0b159eaa8e..3d1d5a9a16edf 100644 --- a/src/core/lib/event_engine/thread_pool/thread_pool.h +++ b/src/core/lib/event_engine/thread_pool/thread_pool.h @@ -19,8 +19,8 @@ #include -#include "src/core/lib/event_engine/forkable.h" #include "absl/functional/any_invocable.h" +#include "src/core/lib/event_engine/forkable.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc b/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc index ed61017fd308f..c855dd180f337 100644 --- a/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc +++ b/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc @@ -28,6 +28,11 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/event_engine/common_closures.h" #include "src/core/lib/event_engine/thread_local.h" @@ -39,11 +44,6 @@ #include "src/core/util/examine_stack.h" #include "src/core/util/thd.h" #include "src/core/util/time.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" #ifdef GPR_POSIX_SYNC #include diff --git a/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.h b/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.h index 6cd99805e4e51..b38b36993134f 100644 --- a/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.h +++ b/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.h @@ -27,6 +27,9 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/flat_hash_set.h" +#include "absl/functional/any_invocable.h" #include "src/core/lib/event_engine/thread_pool/thread_count.h" #include "src/core/lib/event_engine/thread_pool/thread_pool.h" #include "src/core/lib/event_engine/work_queue/basic_work_queue.h" @@ -35,9 +38,6 @@ #include "src/core/util/notification.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/flat_hash_set.h" -#include "absl/functional/any_invocable.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/utils.cc b/src/core/lib/event_engine/utils.cc index 0ac8420575990..48eeb3916879f 100644 --- a/src/core/lib/event_engine/utils.cc +++ b/src/core/lib/event_engine/utils.cc @@ -19,11 +19,11 @@ #include +#include "absl/strings/str_cat.h" #include "src/core/lib/event_engine/extensions/blocking_dns.h" #include "src/core/lib/event_engine/query_extensions.h" #include "src/core/util/notification.h" #include "src/core/util/time.h" -#include "absl/strings/str_cat.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/utils.h b/src/core/lib/event_engine/utils.h index aed7612e40946..997897c200652 100644 --- a/src/core/lib/event_engine/utils.h +++ b/src/core/lib/event_engine/utils.h @@ -21,9 +21,9 @@ #include #include -#include "src/core/util/time.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "src/core/util/time.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc b/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc index bc4c1ccf3eead..c022e35d0ece0 100644 --- a/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc +++ b/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc @@ -22,6 +22,10 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/event_engine/ares_resolver.h" #include "src/core/lib/event_engine/grpc_polled_fd.h" @@ -31,10 +35,6 @@ #include "src/core/lib/slice/slice.h" #include "src/core/util/debug_location.h" #include "src/core/util/sync.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" // TODO(apolcyn): remove this hack after fixing upstream. // Our grpc/c-ares code on Windows uses the ares_set_socket_functions API, diff --git a/src/core/lib/event_engine/windows/grpc_polled_fd_windows.h b/src/core/lib/event_engine/windows/grpc_polled_fd_windows.h index 3f12da7040a75..8d32863d7f27b 100644 --- a/src/core/lib/event_engine/windows/grpc_polled_fd_windows.h +++ b/src/core/lib/event_engine/windows/grpc_polled_fd_windows.h @@ -26,13 +26,13 @@ #include +#include "absl/functional/any_invocable.h" +#include "absl/status/status.h" #include "src/core/lib/event_engine/common_closures.h" #include "src/core/lib/event_engine/grpc_polled_fd.h" #include "src/core/lib/event_engine/windows/iocp.h" #include "src/core/lib/event_engine/windows/win_socket.h" #include "src/core/util/sync.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/status.h" struct iovec; diff --git a/src/core/lib/event_engine/windows/iocp.cc b/src/core/lib/event_engine/windows/iocp.cc index a3d744557289d..45da92053764a 100644 --- a/src/core/lib/event_engine/windows/iocp.cc +++ b/src/core/lib/event_engine/windows/iocp.cc @@ -20,14 +20,14 @@ #include +#include "absl/log/check.h" +#include "absl/strings/str_format.h" #include "src/core/lib/event_engine/thread_pool/thread_pool.h" #include "src/core/lib/event_engine/time_util.h" #include "src/core/lib/event_engine/windows/iocp.h" #include "src/core/lib/event_engine/windows/win_socket.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" -#include "absl/strings/str_format.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/windows/iocp.h b/src/core/lib/event_engine/windows/iocp.h index f52fca20d5324..5d5aed03c542c 100644 --- a/src/core/lib/event_engine/windows/iocp.h +++ b/src/core/lib/event_engine/windows/iocp.h @@ -20,10 +20,10 @@ #include +#include "absl/status/status.h" #include "src/core/lib/event_engine/poller.h" #include "src/core/lib/event_engine/thread_pool/thread_pool.h" #include "src/core/lib/event_engine/windows/win_socket.h" -#include "absl/status/status.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/windows/native_windows_dns_resolver.cc b/src/core/lib/event_engine/windows/native_windows_dns_resolver.cc index 6ca21dd075688..225cc630e7aca 100644 --- a/src/core/lib/event_engine/windows/native_windows_dns_resolver.cc +++ b/src/core/lib/event_engine/windows/native_windows_dns_resolver.cc @@ -21,12 +21,12 @@ #include +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" #include "src/core/lib/event_engine/windows/native_windows_dns_resolver.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/host_port.h" #include "src/core/util/status_helper.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/windows/win_socket.cc b/src/core/lib/event_engine/windows/win_socket.cc index f7ec673a7ecf0..dd7e3e99c9598 100644 --- a/src/core/lib/event_engine/windows/win_socket.cc +++ b/src/core/lib/event_engine/windows/win_socket.cc @@ -17,14 +17,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/event_engine/tcp_socket_utils.h" #include "src/core/lib/event_engine/thread_pool/thread_pool.h" #include "src/core/lib/event_engine/windows/win_socket.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/debug_location.h" #include "src/core/util/sync.h" -#include "absl/log/check.h" -#include "absl/log/log.h" #if defined(__MSYS__) && defined(GPR_ARCH_64) // Nasty workaround for nasty bug when using the 64 bits msys compiler diff --git a/src/core/lib/event_engine/windows/win_socket.h b/src/core/lib/event_engine/windows/win_socket.h index 34943b0508028..9e1293a0ae737 100644 --- a/src/core/lib/event_engine/windows/win_socket.h +++ b/src/core/lib/event_engine/windows/win_socket.h @@ -20,11 +20,11 @@ #include +#include "absl/base/thread_annotations.h" +#include "absl/functional/any_invocable.h" #include "src/core/lib/event_engine/thread_pool/thread_pool.h" #include "src/core/util/debug_location.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/functional/any_invocable.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/windows/windows_endpoint.cc b/src/core/lib/event_engine/windows/windows_endpoint.cc index 15dd4437b28f8..a0a8a304959db 100644 --- a/src/core/lib/event_engine/windows/windows_endpoint.cc +++ b/src/core/lib/event_engine/windows/windows_endpoint.cc @@ -18,6 +18,12 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" #include "src/core/lib/event_engine/tcp_socket_utils.h" #include "src/core/lib/event_engine/thread_pool/thread_pool.h" #include "src/core/lib/event_engine/windows/win_socket.h" @@ -25,12 +31,6 @@ #include "src/core/lib/iomgr/error.h" #include "src/core/util/debug_location.h" #include "src/core/util/status_helper.h" -#include "absl/cleanup/cleanup.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/windows/windows_engine.cc b/src/core/lib/event_engine/windows/windows_engine.cc index ae219cb73640e..e9fe08ad58330 100644 --- a/src/core/lib/event_engine/windows/windows_engine.cc +++ b/src/core/lib/event_engine/windows/windows_engine.cc @@ -24,6 +24,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" #include "src/core/lib/event_engine/common_closures.h" #include "src/core/lib/event_engine/handle_containers.h" @@ -44,11 +49,6 @@ #include "src/core/util/dump_args.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/windows/windows_engine.h b/src/core/lib/event_engine/windows/windows_engine.h index 70957ecc09dee..7bfbde4fb814b 100644 --- a/src/core/lib/event_engine/windows/windows_engine.h +++ b/src/core/lib/event_engine/windows/windows_engine.h @@ -27,6 +27,9 @@ #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/event_engine/ares_resolver.h" #include "src/core/lib/event_engine/extensions/supports_win_sockets.h" #include "src/core/lib/event_engine/handle_containers.h" @@ -38,9 +41,6 @@ #include "src/core/lib/surface/init_internally.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/windows/windows_listener.cc b/src/core/lib/event_engine/windows/windows_listener.cc index 31bc7a8b93a05..79f178e68f662 100644 --- a/src/core/lib/event_engine/windows/windows_listener.cc +++ b/src/core/lib/event_engine/windows/windows_listener.cc @@ -15,6 +15,10 @@ #ifdef GPR_WINDOWS +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" #include "src/core/lib/event_engine/extensions/iomgr_compatible.h" #include "src/core/lib/event_engine/tcp_socket_utils.h" #include "src/core/lib/event_engine/windows/iocp.h" @@ -25,10 +29,6 @@ #include "src/core/lib/iomgr/port.h" #include "src/core/util/crash.h" #include "src/core/util/sync.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/event_engine/windows/windows_listener.h b/src/core/lib/event_engine/windows/windows_listener.h index 536865e26ea3e..98f399f2af11e 100644 --- a/src/core/lib/event_engine/windows/windows_listener.h +++ b/src/core/lib/event_engine/windows/windows_listener.h @@ -23,6 +23,8 @@ #include +#include "absl/base/thread_annotations.h" +#include "absl/status/statusor.h" #include "src/core/lib/event_engine/common_closures.h" #include "src/core/lib/event_engine/extensions/iomgr_compatible.h" #include "src/core/lib/event_engine/query_extensions.h" @@ -30,8 +32,6 @@ #include "src/core/lib/event_engine/windows/iocp.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/status/statusor.h" #ifdef GRPC_HAVE_UNIX_SOCKET // clang-format off diff --git a/src/core/lib/event_engine/work_queue/basic_work_queue.h b/src/core/lib/event_engine/work_queue/basic_work_queue.h index 0e164c9ad5daf..6a8879fab8922 100644 --- a/src/core/lib/event_engine/work_queue/basic_work_queue.h +++ b/src/core/lib/event_engine/work_queue/basic_work_queue.h @@ -19,10 +19,10 @@ #include -#include "src/core/lib/event_engine/work_queue/work_queue.h" -#include "src/core/util/sync.h" #include "absl/base/thread_annotations.h" #include "absl/functional/any_invocable.h" +#include "src/core/lib/event_engine/work_queue/work_queue.h" +#include "src/core/util/sync.h" namespace grpc_event_engine::experimental { diff --git a/src/core/lib/experiments/config.cc b/src/core/lib/experiments/config.cc index 1fe41fb575dd6..0488c5a5da11b 100644 --- a/src/core/lib/experiments/config.cc +++ b/src/core/lib/experiments/config.cc @@ -24,10 +24,6 @@ #include #include -#include "src/core/config/config_vars.h" -#include "src/core/lib/experiments/experiments.h" -#include "src/core/util/crash.h" // IWYU pragma: keep -#include "src/core/util/no_destruct.h" #include "absl/functional/any_invocable.h" #include "absl/log/check.h" #include "absl/log/log.h" @@ -35,6 +31,10 @@ #include "absl/strings/str_split.h" #include "absl/strings/string_view.h" #include "absl/strings/strip.h" +#include "src/core/config/config_vars.h" +#include "src/core/lib/experiments/experiments.h" +#include "src/core/util/crash.h" // IWYU pragma: keep +#include "src/core/util/no_destruct.h" #ifndef GRPC_EXPERIMENTS_ARE_FINAL namespace grpc_core { diff --git a/src/core/lib/iomgr/buffer_list.cc b/src/core/lib/iomgr/buffer_list.cc index e469d43b12229..73d225a99b081 100644 --- a/src/core/lib/iomgr/buffer_list.cc +++ b/src/core/lib/iomgr/buffer_list.cc @@ -21,10 +21,10 @@ #include #include +#include "absl/log/log.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/crash.h" #include "src/core/util/sync.h" -#include "absl/log/log.h" #ifdef GRPC_LINUX_ERRQUEUE #include diff --git a/src/core/lib/iomgr/call_combiner.cc b/src/core/lib/iomgr/call_combiner.cc index 4c1a97e3099c6..8459f415157db 100644 --- a/src/core/lib/iomgr/call_combiner.cc +++ b/src/core/lib/iomgr/call_combiner.cc @@ -21,11 +21,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/telemetry/stats.h" #include "src/core/telemetry/stats_data.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/src/core/lib/iomgr/call_combiner.h b/src/core/lib/iomgr/call_combiner.h index 36833e054d1fa..9bb8c0ed6fcb9 100644 --- a/src/core/lib/iomgr/call_combiner.h +++ b/src/core/lib/iomgr/call_combiner.h @@ -23,14 +23,14 @@ #include #include +#include "absl/container/inlined_vector.h" +#include "absl/log/log.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/dynamic_annotations.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/mpscq.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/container/inlined_vector.h" -#include "absl/log/log.h" // A simple, lock-free mechanism for serializing activity related to a // single call. This is similar to a combiner but is more lightweight. diff --git a/src/core/lib/iomgr/cfstream_handle.cc b/src/core/lib/iomgr/cfstream_handle.cc index 46a25a803fb4d..892c8bedf4744 100644 --- a/src/core/lib/iomgr/cfstream_handle.cc +++ b/src/core/lib/iomgr/cfstream_handle.cc @@ -27,13 +27,13 @@ #include #include +#include "absl/log/log.h" #include "src/core/lib/debug/trace.h" #import "src/core/lib/iomgr/cfstream_handle.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/error_cfstream.h" #include "src/core/lib/iomgr/ev_apple.h" #include "src/core/lib/iomgr/exec_ctx.h" -#include "absl/log/log.h" GrpcLibraryInitHolder::GrpcLibraryInitHolder() { grpc_init(); } diff --git a/src/core/lib/iomgr/closure.h b/src/core/lib/iomgr/closure.h index 609177f8a4aa8..e8f7a0b7812b5 100644 --- a/src/core/lib/iomgr/closure.h +++ b/src/core/lib/iomgr/closure.h @@ -24,13 +24,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/crash.h" #include "src/core/util/debug_location.h" #include "src/core/util/manual_constructor.h" #include "src/core/util/mpscq.h" -#include "absl/log/check.h" -#include "absl/log/log.h" struct grpc_closure; typedef struct grpc_closure grpc_closure; @@ -211,10 +211,7 @@ inline grpc_closure* grpc_closure_create(grpc_iomgr_cb_func cb, void* cb_arg) { grpc_closure_create(cb, cb_arg) #endif -#define GRPC_CLOSURE_LIST_INIT \ - { \ - nullptr, nullptr \ - } +#define GRPC_CLOSURE_LIST_INIT {nullptr, nullptr} inline void grpc_closure_list_init(grpc_closure_list* closure_list) { closure_list->head = closure_list->tail = nullptr; diff --git a/src/core/lib/iomgr/combiner.cc b/src/core/lib/iomgr/combiner.cc index d8bcc449f1db8..f0417e3cedbdd 100644 --- a/src/core/lib/iomgr/combiner.cc +++ b/src/core/lib/iomgr/combiner.cc @@ -24,13 +24,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/iomgr/executor.h" #include "src/core/lib/iomgr/iomgr_internal.h" #include "src/core/util/crash.h" #include "src/core/util/mpscq.h" -#include "absl/log/check.h" -#include "absl/log/log.h" #define STATE_UNORPHANED 1 #define STATE_ELEM_COUNT_LOW_BIT 2 diff --git a/src/core/lib/iomgr/endpoint.h b/src/core/lib/iomgr/endpoint.h index e927d847b47d9..9825d21a6b50a 100644 --- a/src/core/lib/iomgr/endpoint.h +++ b/src/core/lib/iomgr/endpoint.h @@ -24,9 +24,9 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/lib/iomgr/pollset.h" #include "src/core/lib/iomgr/pollset_set.h" -#include "absl/strings/string_view.h" // An endpoint caps a streaming channel between two communicating processes. // Examples may be: a tcp socket, , or some shared memory. diff --git a/src/core/lib/iomgr/endpoint_cfstream.cc b/src/core/lib/iomgr/endpoint_cfstream.cc index 177331436c9d2..3177567e94829 100644 --- a/src/core/lib/iomgr/endpoint_cfstream.cc +++ b/src/core/lib/iomgr/endpoint_cfstream.cc @@ -27,6 +27,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/iomgr/cfstream_handle.h" #include "src/core/lib/iomgr/closure.h" @@ -38,8 +40,6 @@ #include "src/core/lib/slice/slice_internal.h" #include "src/core/lib/slice/slice_string_helpers.h" #include "src/core/util/string.h" -#include "absl/log/check.h" -#include "absl/log/log.h" struct CFStreamEndpoint { grpc_endpoint base; diff --git a/src/core/lib/iomgr/endpoint_pair_posix.cc b/src/core/lib/iomgr/endpoint_pair_posix.cc index fae1279040630..a06e76f4c06a6 100644 --- a/src/core/lib/iomgr/endpoint_pair_posix.cc +++ b/src/core/lib/iomgr/endpoint_pair_posix.cc @@ -30,6 +30,8 @@ #include +#include "absl/log/check.h" +#include "absl/strings/str_cat.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" #include "src/core/lib/event_engine/extensions/supports_fd.h" @@ -42,8 +44,6 @@ #include "src/core/lib/iomgr/tcp_posix.h" #include "src/core/lib/iomgr/unix_sockets_posix.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" -#include "absl/strings/str_cat.h" namespace { using grpc_event_engine::experimental::ChannelArgsEndpointConfig; diff --git a/src/core/lib/iomgr/endpoint_pair_windows.cc b/src/core/lib/iomgr/endpoint_pair_windows.cc index b143570f80538..0ae85a3fdc414 100644 --- a/src/core/lib/iomgr/endpoint_pair_windows.cc +++ b/src/core/lib/iomgr/endpoint_pair_windows.cc @@ -25,6 +25,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" @@ -36,8 +38,6 @@ #include "src/core/lib/iomgr/socket_windows.h" #include "src/core/lib/iomgr/tcp_windows.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" -#include "absl/log/log.h" static void create_sockets(SOCKET sv[2]) { SOCKET svr_sock = INVALID_SOCKET; diff --git a/src/core/lib/iomgr/error.cc b/src/core/lib/iomgr/error.cc index 862cd13e6cc58..246aced29fc46 100644 --- a/src/core/lib/iomgr/error.cc +++ b/src/core/lib/iomgr/error.cc @@ -24,11 +24,11 @@ #include #include -#include "src/core/util/crash.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" +#include "src/core/util/crash.h" #ifdef GPR_WINDOWS #include diff --git a/src/core/lib/iomgr/error.h b/src/core/lib/iomgr/error.h index a9af0233a3257..0171c5048113f 100644 --- a/src/core/lib/iomgr/error.h +++ b/src/core/lib/iomgr/error.h @@ -26,13 +26,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/crash.h" #include "src/core/util/spinlock.h" #include "src/core/util/status_helper.h" -#include "absl/log/check.h" -#include "absl/status/status.h" /// Opaque representation of an error. diff --git a/src/core/lib/iomgr/error_cfstream.cc b/src/core/lib/iomgr/error_cfstream.cc index b71978f72e531..b9f7cdf199236 100644 --- a/src/core/lib/iomgr/error_cfstream.cc +++ b/src/core/lib/iomgr/error_cfstream.cc @@ -24,8 +24,8 @@ #include -#include "src/core/lib/iomgr/error.h" #include "absl/strings/str_format.h" +#include "src/core/lib/iomgr/error.h" #define MAX_ERROR_DESCRIPTION 256 diff --git a/src/core/lib/iomgr/ev_apple.cc b/src/core/lib/iomgr/ev_apple.cc index f65d0b4cca7fd..17d400c64a58c 100644 --- a/src/core/lib/iomgr/ev_apple.cc +++ b/src/core/lib/iomgr/ev_apple.cc @@ -33,10 +33,10 @@ #include +#include "absl/time/time.h" #include "src/core/lib/iomgr/ev_apple.h" #include "src/core/util/thd.h" #include "src/core/util/time_util.h" -#include "absl/time/time.h" #define GRPC_POLLSET_KICK_BROADCAST ((grpc_pollset_worker*)1) diff --git a/src/core/lib/iomgr/ev_epoll1_linux.cc b/src/core/lib/iomgr/ev_epoll1_linux.cc index 8a4f16d398972..599a76c238f33 100644 --- a/src/core/lib/iomgr/ev_epoll1_linux.cc +++ b/src/core/lib/iomgr/ev_epoll1_linux.cc @@ -40,6 +40,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/iomgr/block_annotate.h" #include "src/core/lib/iomgr/ev_epoll1_linux.h" @@ -53,11 +58,6 @@ #include "src/core/util/strerror.h" #include "src/core/util/string.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" static grpc_wakeup_fd global_wakeup_fd; static bool g_is_shutdown = true; diff --git a/src/core/lib/iomgr/ev_poll_posix.cc b/src/core/lib/iomgr/ev_poll_posix.cc index 629a61809c4e7..de456e850de2b 100644 --- a/src/core/lib/iomgr/ev_poll_posix.cc +++ b/src/core/lib/iomgr/ev_poll_posix.cc @@ -34,6 +34,10 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/iomgr/block_annotate.h" #include "src/core/lib/iomgr/ev_poll_posix.h" @@ -44,10 +48,6 @@ #include "src/core/util/crash.h" #include "src/core/util/thd.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" #define GRPC_POLLSET_KICK_BROADCAST ((grpc_pollset_worker*)1) diff --git a/src/core/lib/iomgr/ev_posix.cc b/src/core/lib/iomgr/ev_posix.cc index 48b828ea1483c..532a611d3304d 100644 --- a/src/core/lib/iomgr/ev_posix.cc +++ b/src/core/lib/iomgr/ev_posix.cc @@ -27,6 +27,9 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_split.h" #include "src/core/config/config_vars.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/ev_epoll1_linux.h" @@ -35,9 +38,6 @@ #include "src/core/lib/iomgr/internal_errqueue.h" #include "src/core/util/crash.h" #include "src/core/util/useful.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_split.h" /// Default poll() function - a pointer so that it can be overridden by some /// tests diff --git a/src/core/lib/iomgr/event_engine_shims/closure.cc b/src/core/lib/iomgr/event_engine_shims/closure.cc index a678145eb2327..91ff2f4710603 100644 --- a/src/core/lib/iomgr/event_engine_shims/closure.cc +++ b/src/core/lib/iomgr/event_engine_shims/closure.cc @@ -16,12 +16,12 @@ #include #include -#include "src/core/lib/iomgr/closure.h" -#include "src/core/lib/iomgr/exec_ctx.h" -#include "src/core/lib/transport/error_utils.h" #include "absl/functional/any_invocable.h" #include "absl/log/log.h" #include "absl/status/status.h" +#include "src/core/lib/iomgr/closure.h" +#include "src/core/lib/iomgr/exec_ctx.h" +#include "src/core/lib/transport/error_utils.h" namespace grpc_event_engine { namespace experimental { diff --git a/src/core/lib/iomgr/event_engine_shims/closure.h b/src/core/lib/iomgr/event_engine_shims/closure.h index 16e2c0aee6596..2272f68fed704 100644 --- a/src/core/lib/iomgr/event_engine_shims/closure.h +++ b/src/core/lib/iomgr/event_engine_shims/closure.h @@ -17,9 +17,9 @@ #include #include +#include "absl/functional/any_invocable.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/error.h" -#include "absl/functional/any_invocable.h" namespace grpc_event_engine { namespace experimental { diff --git a/src/core/lib/iomgr/event_engine_shims/endpoint.cc b/src/core/lib/iomgr/event_engine_shims/endpoint.cc index 0de935e6142c8..c633517fe1821 100644 --- a/src/core/lib/iomgr/event_engine_shims/endpoint.cc +++ b/src/core/lib/iomgr/event_engine_shims/endpoint.cc @@ -24,6 +24,12 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/event_engine/extensions/can_track_errors.h" #include "src/core/lib/event_engine/extensions/supports_fd.h" @@ -41,12 +47,6 @@ #include "src/core/util/debug_location.h" #include "src/core/util/string.h" #include "src/core/util/sync.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_event_engine { namespace experimental { diff --git a/src/core/lib/iomgr/event_engine_shims/tcp_client.cc b/src/core/lib/iomgr/event_engine_shims/tcp_client.cc index 6f90743f05b65..5dca83903e5e4 100644 --- a/src/core/lib/iomgr/event_engine_shims/tcp_client.cc +++ b/src/core/lib/iomgr/event_engine_shims/tcp_client.cc @@ -17,6 +17,8 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/event_engine/default_event_engine.h" @@ -28,8 +30,6 @@ #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/lib/transport/error_utils.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_event_engine { namespace experimental { diff --git a/src/core/lib/iomgr/exec_ctx.cc b/src/core/lib/iomgr/exec_ctx.cc index 80f698238e829..9e3c470917925 100644 --- a/src/core/lib/iomgr/exec_ctx.cc +++ b/src/core/lib/iomgr/exec_ctx.cc @@ -21,12 +21,12 @@ #include #include -#include "src/core/lib/iomgr/combiner.h" -#include "src/core/lib/iomgr/error.h" -#include "src/core/util/crash.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/str_format.h" +#include "src/core/lib/iomgr/combiner.h" +#include "src/core/lib/iomgr/error.h" +#include "src/core/util/crash.h" static void exec_ctx_run(grpc_closure* closure) { #ifndef NDEBUG diff --git a/src/core/lib/iomgr/exec_ctx.h b/src/core/lib/iomgr/exec_ctx.h index c723999c5faef..24b10413006b0 100644 --- a/src/core/lib/iomgr/exec_ctx.h +++ b/src/core/lib/iomgr/exec_ctx.h @@ -33,6 +33,7 @@ #include #include +#include "absl/log/check.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/util/debug_location.h" @@ -40,7 +41,6 @@ #include "src/core/util/latent_see.h" #include "src/core/util/time.h" #include "src/core/util/time_precise.h" -#include "absl/log/check.h" #if !defined(_WIN32) || !defined(_DLL) #define EXEC_CTX exec_ctx_ diff --git a/src/core/lib/iomgr/executor.cc b/src/core/lib/iomgr/executor.cc index af5479bcb930a..f85266fd33d26 100644 --- a/src/core/lib/iomgr/executor.cc +++ b/src/core/lib/iomgr/executor.cc @@ -24,15 +24,15 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_format.h" #include "src/core/lib/debug/trace_impl.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/iomgr_internal.h" #include "src/core/util/crash.h" #include "src/core/util/memory.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" #define MAX_DEPTH 2 diff --git a/src/core/lib/iomgr/fork_posix.cc b/src/core/lib/iomgr/fork_posix.cc index 6751c836f3a75..0d784ea53ccf5 100644 --- a/src/core/lib/iomgr/fork_posix.cc +++ b/src/core/lib/iomgr/fork_posix.cc @@ -30,6 +30,7 @@ #include #include +#include "absl/log/log.h" #include "src/core/lib/iomgr/ev_posix.h" #include "src/core/lib/iomgr/executor.h" #include "src/core/lib/iomgr/timer_manager.h" @@ -38,7 +39,6 @@ #include "src/core/util/crash.h" #include "src/core/util/fork.h" #include "src/core/util/thd.h" -#include "absl/log/log.h" // // NOTE: FORKING IS NOT GENERALLY SUPPORTED, THIS IS ONLY INTENDED TO WORK diff --git a/src/core/lib/iomgr/internal_errqueue.cc b/src/core/lib/iomgr/internal_errqueue.cc index f24ea037e9170..d5386498a53e6 100644 --- a/src/core/lib/iomgr/internal_errqueue.cc +++ b/src/core/lib/iomgr/internal_errqueue.cc @@ -16,8 +16,8 @@ #include -#include "src/core/lib/iomgr/port.h" #include "absl/log/log.h" +#include "src/core/lib/iomgr/port.h" #ifdef GRPC_POSIX_SOCKET_TCP diff --git a/src/core/lib/iomgr/iocp_windows.cc b/src/core/lib/iomgr/iocp_windows.cc index 4f5fd16a097ea..12b8cb31c6326 100644 --- a/src/core/lib/iomgr/iocp_windows.cc +++ b/src/core/lib/iomgr/iocp_windows.cc @@ -28,6 +28,8 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/iomgr/iocp_windows.h" #include "src/core/lib/iomgr/iomgr_internal.h" #include "src/core/lib/iomgr/socket_windows.h" @@ -36,8 +38,6 @@ #include "src/core/telemetry/stats_data.h" #include "src/core/util/crash.h" #include "src/core/util/thd.h" -#include "absl/log/check.h" -#include "absl/log/log.h" static ULONG g_iocp_kick_token; static OVERLAPPED g_iocp_custom_overlap; diff --git a/src/core/lib/iomgr/iomgr.cc b/src/core/lib/iomgr/iomgr.cc index 43cbd81e719cf..3b571df5687e6 100644 --- a/src/core/lib/iomgr/iomgr.cc +++ b/src/core/lib/iomgr/iomgr.cc @@ -26,6 +26,7 @@ #include #include +#include "absl/log/log.h" #include "src/core/config/config_vars.h" #include "src/core/lib/iomgr/buffer_list.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -38,7 +39,6 @@ #include "src/core/util/string.h" #include "src/core/util/thd.h" #include "src/core/util/useful.h" -#include "absl/log/log.h" static gpr_mu g_mu; static gpr_cv g_rcv; diff --git a/src/core/lib/iomgr/iomgr_windows.cc b/src/core/lib/iomgr/iomgr_windows.cc index 4d2d9caa73e52..38e61b8122547 100644 --- a/src/core/lib/iomgr/iomgr_windows.cc +++ b/src/core/lib/iomgr/iomgr_windows.cc @@ -22,6 +22,7 @@ #ifdef GRPC_WINSOCK_SOCKET +#include "absl/log/check.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/iomgr/iocp_windows.h" #include "src/core/lib/iomgr/iomgr.h" @@ -34,7 +35,6 @@ #include "src/core/lib/iomgr/tcp_server.h" #include "src/core/lib/iomgr/timer.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" extern grpc_tcp_server_vtable grpc_windows_tcp_server_vtable; extern grpc_tcp_server_vtable grpc_windows_event_engine_tcp_server_vtable; diff --git a/src/core/lib/iomgr/lockfree_event.cc b/src/core/lib/iomgr/lockfree_event.cc index 308b7fd1b6062..42023ef4615e2 100644 --- a/src/core/lib/iomgr/lockfree_event.cc +++ b/src/core/lib/iomgr/lockfree_event.cc @@ -20,11 +20,11 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" -#include "absl/log/log.h" // 'state' holds the to call when the fd is readable or writable respectively. // It can contain one of the following values: diff --git a/src/core/lib/iomgr/polling_entity.cc b/src/core/lib/iomgr/polling_entity.cc index ad31ba09d10f6..bf65f0065cb1d 100644 --- a/src/core/lib/iomgr/polling_entity.cc +++ b/src/core/lib/iomgr/polling_entity.cc @@ -21,9 +21,9 @@ #include #include -#include "src/core/util/crash.h" #include "absl/log/check.h" #include "absl/strings/str_format.h" +#include "src/core/util/crash.h" grpc_polling_entity grpc_polling_entity_create_from_pollset_set( grpc_pollset_set* pollset_set) { diff --git a/src/core/lib/iomgr/resolve_address.cc b/src/core/lib/iomgr/resolve_address.cc index 5c16102d5d0de..3a0d1b106e1d7 100644 --- a/src/core/lib/iomgr/resolve_address.cc +++ b/src/core/lib/iomgr/resolve_address.cc @@ -21,9 +21,9 @@ #include #include +#include "absl/strings/str_cat.h" #include "src/core/util/crash.h" #include "src/core/util/no_destruct.h" -#include "absl/strings/str_cat.h" namespace grpc_core { const char* kDefaultSecurePort = "https"; diff --git a/src/core/lib/iomgr/resolve_address.h b/src/core/lib/iomgr/resolve_address.h index 6b169b5a5e86b..5a8279ae9c49a 100644 --- a/src/core/lib/iomgr/resolve_address.h +++ b/src/core/lib/iomgr/resolve_address.h @@ -23,14 +23,14 @@ #include #include +#include "absl/container/flat_hash_set.h" +#include "absl/status/statusor.h" #include "src/core/lib/event_engine/handle_containers.h" #include "src/core/lib/iomgr/pollset_set.h" #include "src/core/lib/iomgr/port.h" #include "src/core/lib/iomgr/resolved_address.h" #include "src/core/util/orphanable.h" #include "src/core/util/time.h" -#include "absl/container/flat_hash_set.h" -#include "absl/status/statusor.h" #define GRPC_MAX_SOCKADDR_SIZE 128 diff --git a/src/core/lib/iomgr/resolve_address_windows.cc b/src/core/lib/iomgr/resolve_address_windows.cc index 69877e4ff9f46..f7efe8a965a11 100644 --- a/src/core/lib/iomgr/resolve_address_windows.cc +++ b/src/core/lib/iomgr/resolve_address_windows.cc @@ -29,6 +29,7 @@ #include +#include "absl/strings/str_format.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/iomgr/block_annotate.h" @@ -43,7 +44,6 @@ #include "src/core/util/host_port.h" #include "src/core/util/string.h" #include "src/core/util/thd.h" -#include "absl/strings/str_format.h" namespace grpc_core { namespace { diff --git a/src/core/lib/iomgr/sockaddr_utils_posix.cc b/src/core/lib/iomgr/sockaddr_utils_posix.cc index 919d54b217721..a522df8aecda0 100644 --- a/src/core/lib/iomgr/sockaddr_utils_posix.cc +++ b/src/core/lib/iomgr/sockaddr_utils_posix.cc @@ -39,9 +39,9 @@ #include +#include "absl/log/check.h" #include "src/core/lib/iomgr/sockaddr.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" uint16_t grpc_htons(uint16_t hostshort) { return htons(hostshort); } diff --git a/src/core/lib/iomgr/socket_utils_common_posix.cc b/src/core/lib/iomgr/socket_utils_common_posix.cc index 6dfa1b4de5368..8a9eb54dd5f4b 100644 --- a/src/core/lib/iomgr/socket_utils_common_posix.cc +++ b/src/core/lib/iomgr/socket_utils_common_posix.cc @@ -46,15 +46,15 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/iomgr/sockaddr.h" #include "src/core/lib/iomgr/socket_factory_posix.h" #include "src/core/util/crash.h" #include "src/core/util/strerror.h" #include "src/core/util/string.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" // set a socket to use zerocopy grpc_error_handle grpc_set_socket_zerocopy(int fd) { diff --git a/src/core/lib/iomgr/socket_windows.cc b/src/core/lib/iomgr/socket_windows.cc index 5d87895030d3d..8ec4eaa1366f2 100644 --- a/src/core/lib/iomgr/socket_windows.cc +++ b/src/core/lib/iomgr/socket_windows.cc @@ -29,6 +29,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_format.h" #include "src/core/lib/iomgr/iocp_windows.h" #include "src/core/lib/iomgr/iomgr_internal.h" #include "src/core/lib/iomgr/pollset.h" @@ -36,9 +39,6 @@ #include "src/core/lib/iomgr/sockaddr_windows.h" #include "src/core/lib/iomgr/socket_windows.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" static DWORD s_wsa_socket_flags; diff --git a/src/core/lib/iomgr/tcp_client_cfstream.cc b/src/core/lib/iomgr/tcp_client_cfstream.cc index 99989459477ef..6788d1d0d0980 100644 --- a/src/core/lib/iomgr/tcp_client_cfstream.cc +++ b/src/core/lib/iomgr/tcp_client_cfstream.cc @@ -30,6 +30,7 @@ #include #include +#include "absl/log/log.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/event_engine/shim.h" #include "src/core/lib/iomgr/cfstream_handle.h" @@ -42,7 +43,6 @@ #include "src/core/lib/iomgr/timer.h" #include "src/core/util/crash.h" #include "src/core/util/host_port.h" -#include "absl/log/log.h" struct CFStreamConnect { gpr_mu mu; diff --git a/src/core/lib/iomgr/tcp_client_posix.cc b/src/core/lib/iomgr/tcp_client_posix.cc index 3655ed403aa0f..f83f1411a2af7 100644 --- a/src/core/lib/iomgr/tcp_client_posix.cc +++ b/src/core/lib/iomgr/tcp_client_posix.cc @@ -30,6 +30,10 @@ #include #include +#include "absl/container/flat_hash_map.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/event_engine/resolved_address_internal.h" #include "src/core/lib/event_engine/shim.h" @@ -49,10 +53,6 @@ #include "src/core/util/crash.h" #include "src/core/util/status_helper.h" #include "src/core/util/string.h" -#include "absl/container/flat_hash_map.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" using ::grpc_event_engine::experimental::EndpointConfig; diff --git a/src/core/lib/iomgr/tcp_client_windows.cc b/src/core/lib/iomgr/tcp_client_windows.cc index c512e0ece724a..7d464759575ab 100644 --- a/src/core/lib/iomgr/tcp_client_windows.cc +++ b/src/core/lib/iomgr/tcp_client_windows.cc @@ -28,6 +28,7 @@ #include #include +#include "absl/log/check.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/event_engine/shim.h" #include "src/core/lib/iomgr/event_engine_shims/tcp_client.h" @@ -41,7 +42,6 @@ #include "src/core/lib/resource_quota/api.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" using ::grpc_event_engine::experimental::EndpointConfig; diff --git a/src/core/lib/iomgr/tcp_posix.cc b/src/core/lib/iomgr/tcp_posix.cc index c8f51fd8f2e94..e09f28e4d5a53 100644 --- a/src/core/lib/iomgr/tcp_posix.cc +++ b/src/core/lib/iomgr/tcp_posix.cc @@ -45,6 +45,12 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" @@ -69,12 +75,6 @@ #include "src/core/util/string.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" #ifndef SOL_TCP #define SOL_TCP IPPROTO_TCP diff --git a/src/core/lib/iomgr/tcp_server_posix.cc b/src/core/lib/iomgr/tcp_server_posix.cc index a68f90fb788af..5d719390b6bca 100644 --- a/src/core/lib/iomgr/tcp_server_posix.cc +++ b/src/core/lib/iomgr/tcp_server_posix.cc @@ -50,6 +50,10 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/event_engine/memory_allocator_factory.h" @@ -71,10 +75,6 @@ #include "src/core/lib/iomgr/vsock.h" #include "src/core/lib/transport/error_utils.h" #include "src/core/util/strerror.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" static std::atomic num_dropped_connections{0}; static constexpr grpc_core::Duration kRetryAcceptWaitTime{ diff --git a/src/core/lib/iomgr/tcp_server_utils_posix.h b/src/core/lib/iomgr/tcp_server_utils_posix.h index 9b9fdd9df4d70..a726c75027946 100644 --- a/src/core/lib/iomgr/tcp_server_utils_posix.h +++ b/src/core/lib/iomgr/tcp_server_utils_posix.h @@ -23,6 +23,7 @@ #include +#include "absl/container/flat_hash_map.h" #include "src/core/lib/event_engine/posix.h" #include "src/core/lib/iomgr/ev_posix.h" #include "src/core/lib/iomgr/resolve_address.h" @@ -30,7 +31,6 @@ #include "src/core/lib/iomgr/tcp_server.h" #include "src/core/lib/iomgr/timer.h" #include "src/core/lib/resource_quota/memory_quota.h" -#include "absl/container/flat_hash_map.h" // one listening port typedef struct grpc_tcp_listener { diff --git a/src/core/lib/iomgr/tcp_server_utils_posix_common.cc b/src/core/lib/iomgr/tcp_server_utils_posix_common.cc index f43624e92889d..ab66cf5e2fef1 100644 --- a/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +++ b/src/core/lib/iomgr/tcp_server_utils_posix_common.cc @@ -33,6 +33,9 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/sockaddr.h" @@ -40,9 +43,6 @@ #include "src/core/lib/iomgr/unix_sockets_posix.h" #include "src/core/lib/iomgr/vsock.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" #define MIN_SAFE_ACCEPT_QUEUE_SIZE 100 diff --git a/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc b/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc index b63786fd51d77..1f130682fbc33 100644 --- a/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc +++ b/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc @@ -31,14 +31,14 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/sockaddr.h" #include "src/core/lib/iomgr/tcp_server_utils_posix.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" // Return the listener in s with address addr or NULL. static grpc_tcp_listener* find_listener_with_addr(grpc_tcp_server* s, diff --git a/src/core/lib/iomgr/tcp_server_windows.cc b/src/core/lib/iomgr/tcp_server_windows.cc index f3fcae3c43049..be583568f0871 100644 --- a/src/core/lib/iomgr/tcp_server_windows.cc +++ b/src/core/lib/iomgr/tcp_server_windows.cc @@ -35,6 +35,9 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/event_engine/memory_allocator_factory.h" #include "src/core/lib/event_engine/resolved_address_internal.h" @@ -55,9 +58,6 @@ #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" #define MIN_SAFE_ACCEPT_QUEUE_SIZE 100 diff --git a/src/core/lib/iomgr/tcp_windows.cc b/src/core/lib/iomgr/tcp_windows.cc index 8b088dcbaf5c5..e52ca28089f3d 100644 --- a/src/core/lib/iomgr/tcp_windows.cc +++ b/src/core/lib/iomgr/tcp_windows.cc @@ -27,6 +27,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/iomgr/iocp_windows.h" #include "src/core/lib/iomgr/sockaddr.h" @@ -40,8 +42,6 @@ #include "src/core/util/crash.h" #include "src/core/util/string.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" #if defined(__MSYS__) && defined(GPR_ARCH_64) // Nasty workaround for nasty bug when using the 64 bits msys compiler diff --git a/src/core/lib/iomgr/timer_generic.cc b/src/core/lib/iomgr/timer_generic.cc index d3d437f1399f5..19f9e67f22cf0 100644 --- a/src/core/lib/iomgr/timer_generic.cc +++ b/src/core/lib/iomgr/timer_generic.cc @@ -24,6 +24,10 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/port.h" @@ -35,10 +39,6 @@ #include "src/core/util/time.h" #include "src/core/util/time_averaged_stats.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" #define INVALID_HEAP_INDEX 0xffffffffu diff --git a/src/core/lib/iomgr/timer_manager.cc b/src/core/lib/iomgr/timer_manager.cc index c6a3c24f209aa..2fe1af5c12258 100644 --- a/src/core/lib/iomgr/timer_manager.cc +++ b/src/core/lib/iomgr/timer_manager.cc @@ -22,12 +22,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/timer.h" #include "src/core/util/crash.h" #include "src/core/util/thd.h" -#include "absl/log/check.h" -#include "absl/log/log.h" struct completed_thread { grpc_core::Thread thd; diff --git a/src/core/lib/iomgr/unix_sockets_posix.cc b/src/core/lib/iomgr/unix_sockets_posix.cc index 6d5d6783a1419..90ae7817d7818 100644 --- a/src/core/lib/iomgr/unix_sockets_posix.cc +++ b/src/core/lib/iomgr/unix_sockets_posix.cc @@ -35,14 +35,14 @@ #include +#include "absl/log/check.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/iomgr/sockaddr.h" #include "src/core/lib/iomgr/unix_sockets_posix.h" #include "src/core/lib/transport/error_utils.h" #include "src/core/util/crash.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/strings/str_cat.h" void grpc_create_socketpair_if_unix(int sv[2]) { #ifdef GPR_WINDOWS diff --git a/src/core/lib/iomgr/unix_sockets_posix.h b/src/core/lib/iomgr/unix_sockets_posix.h index 1943a2196229b..f6e6418a31264 100644 --- a/src/core/lib/iomgr/unix_sockets_posix.h +++ b/src/core/lib/iomgr/unix_sockets_posix.h @@ -24,9 +24,9 @@ #include +#include "absl/strings/string_view.h" #include "src/core/lib/iomgr/port.h" #include "src/core/lib/iomgr/resolve_address.h" -#include "absl/strings/string_view.h" void grpc_create_socketpair_if_unix(int sv[2]); diff --git a/src/core/lib/iomgr/vsock.cc b/src/core/lib/iomgr/vsock.cc index 9d11faa75c9cc..a830668cf4c30 100644 --- a/src/core/lib/iomgr/vsock.cc +++ b/src/core/lib/iomgr/vsock.cc @@ -26,12 +26,12 @@ #include #include +#include "absl/strings/str_cat.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/iomgr/sockaddr.h" #include "src/core/lib/transport/error_utils.h" #include "src/core/util/crash.h" #include "src/core/util/useful.h" -#include "absl/strings/str_cat.h" absl::StatusOr> grpc_resolve_vsock_address( absl::string_view name) { diff --git a/src/core/lib/iomgr/vsock.h b/src/core/lib/iomgr/vsock.h index a01aa6ab6f98f..1bd3a2c71feee 100644 --- a/src/core/lib/iomgr/vsock.h +++ b/src/core/lib/iomgr/vsock.h @@ -24,9 +24,9 @@ #include +#include "absl/strings/string_view.h" #include "src/core/lib/iomgr/port.h" #include "src/core/lib/iomgr/resolve_address.h" -#include "absl/strings/string_view.h" absl::StatusOr> grpc_resolve_vsock_address( absl::string_view name); diff --git a/src/core/lib/iomgr/wakeup_fd_pipe.cc b/src/core/lib/iomgr/wakeup_fd_pipe.cc index 7cd2f370ed20c..b21daf21d6b79 100644 --- a/src/core/lib/iomgr/wakeup_fd_pipe.cc +++ b/src/core/lib/iomgr/wakeup_fd_pipe.cc @@ -26,12 +26,12 @@ #include #include +#include "absl/log/log.h" #include "src/core/lib/iomgr/socket_utils_posix.h" #include "src/core/lib/iomgr/wakeup_fd_pipe.h" #include "src/core/lib/iomgr/wakeup_fd_posix.h" #include "src/core/util/crash.h" #include "src/core/util/strerror.h" -#include "absl/log/log.h" static grpc_error_handle pipe_init(grpc_wakeup_fd* fd_info) { int pipefd[2]; diff --git a/src/core/lib/promise/activity.cc b/src/core/lib/promise/activity.cc index cb0c012e7979f..5c067f46c7933 100644 --- a/src/core/lib/promise/activity.cc +++ b/src/core/lib/promise/activity.cc @@ -19,11 +19,11 @@ #include -#include "src/core/util/atomic_utils.h" #include "absl/log/check.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" +#include "src/core/util/atomic_utils.h" namespace grpc_core { diff --git a/src/core/lib/promise/activity.h b/src/core/lib/promise/activity.h index e2c7688323f44..d08ef2dd6a4d4 100644 --- a/src/core/lib/promise/activity.h +++ b/src/core/lib/promise/activity.h @@ -25,6 +25,10 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/promise/context.h" #include "src/core/lib/promise/detail/promise_factory.h" @@ -36,10 +40,6 @@ #include "src/core/util/no_destruct.h" #include "src/core/util/orphanable.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/src/core/lib/promise/all_ok.h b/src/core/lib/promise/all_ok.h index 77b04382beb93..e6957f2427027 100644 --- a/src/core/lib/promise/all_ok.h +++ b/src/core/lib/promise/all_ok.h @@ -20,14 +20,14 @@ #include #include +#include "absl/meta/type_traits.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/lib/promise/detail/join_state.h" #include "src/core/lib/promise/detail/promise_factory.h" #include "src/core/lib/promise/map.h" #include "src/core/lib/promise/poll.h" #include "src/core/lib/promise/status_flag.h" -#include "absl/meta/type_traits.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { // AllOk promise combinator. diff --git a/src/core/lib/promise/arena_promise.h b/src/core/lib/promise/arena_promise.h index 5d067b17f95af..e03d628082931 100644 --- a/src/core/lib/promise/arena_promise.h +++ b/src/core/lib/promise/arena_promise.h @@ -23,11 +23,11 @@ #include #include +#include "absl/meta/type_traits.h" #include "src/core/lib/promise/context.h" #include "src/core/lib/promise/poll.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/util/construct_destruct.h" -#include "absl/meta/type_traits.h" namespace grpc_core { diff --git a/src/core/lib/promise/context.h b/src/core/lib/promise/context.h index b06fe2a48b0f3..65ee6f1a4a8ab 100644 --- a/src/core/lib/promise/context.h +++ b/src/core/lib/promise/context.h @@ -19,9 +19,9 @@ #include -#include "src/core/util/down_cast.h" #include "absl/log/check.h" #include "absl/meta/type_traits.h" +#include "src/core/util/down_cast.h" namespace grpc_core { diff --git a/src/core/lib/promise/event_engine_wakeup_scheduler.h b/src/core/lib/promise/event_engine_wakeup_scheduler.h index 3abe200120416..8c01e7b2df654 100644 --- a/src/core/lib/promise/event_engine_wakeup_scheduler.h +++ b/src/core/lib/promise/event_engine_wakeup_scheduler.h @@ -21,8 +21,8 @@ #include #include -#include "src/core/lib/iomgr/exec_ctx.h" #include "absl/log/check.h" +#include "src/core/lib/iomgr/exec_ctx.h" namespace grpc_core { diff --git a/src/core/lib/promise/exec_ctx_wakeup_scheduler.h b/src/core/lib/promise/exec_ctx_wakeup_scheduler.h index cfec463906b94..c66fc233b2198 100644 --- a/src/core/lib/promise/exec_ctx_wakeup_scheduler.h +++ b/src/core/lib/promise/exec_ctx_wakeup_scheduler.h @@ -17,11 +17,11 @@ #include +#include "absl/status/status.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/debug_location.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/src/core/lib/promise/for_each.h b/src/core/lib/promise/for_each.h index d0f1ceb6628c4..5219995962bca 100644 --- a/src/core/lib/promise/for_each.h +++ b/src/core/lib/promise/for_each.h @@ -21,6 +21,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/detail/promise_factory.h" @@ -28,10 +32,6 @@ #include "src/core/lib/promise/poll.h" #include "src/core/lib/promise/status_flag.h" #include "src/core/util/construct_destruct.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/src/core/lib/promise/if.h b/src/core/lib/promise/if.h index 39caf863a41ea..7df1b1d815b91 100644 --- a/src/core/lib/promise/if.h +++ b/src/core/lib/promise/if.h @@ -21,11 +21,11 @@ #include #include +#include "absl/status/statusor.h" #include "src/core/lib/promise/detail/promise_factory.h" #include "src/core/lib/promise/detail/promise_like.h" #include "src/core/lib/promise/poll.h" #include "src/core/util/construct_destruct.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/lib/promise/inter_activity_latch.h b/src/core/lib/promise/inter_activity_latch.h index c5f8b8fa2357b..37dd9d689d8b5 100644 --- a/src/core/lib/promise/inter_activity_latch.h +++ b/src/core/lib/promise/inter_activity_latch.h @@ -20,14 +20,14 @@ #include +#include "absl/base/thread_annotations.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/poll.h" #include "src/core/lib/promise/wait_set.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/src/core/lib/promise/inter_activity_mutex.h b/src/core/lib/promise/inter_activity_mutex.h index 36f64fda26cef..2b292058c6098 100644 --- a/src/core/lib/promise/inter_activity_mutex.h +++ b/src/core/lib/promise/inter_activity_mutex.h @@ -18,11 +18,11 @@ #include #include +#include "absl/log/log.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/poll.h" #include "src/core/util/dump_args.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/src/core/lib/promise/inter_activity_pipe.h b/src/core/lib/promise/inter_activity_pipe.h index 436328fe3f8fb..7a28340f3cb17 100644 --- a/src/core/lib/promise/inter_activity_pipe.h +++ b/src/core/lib/promise/inter_activity_pipe.h @@ -22,13 +22,13 @@ #include #include +#include "absl/base/thread_annotations.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/poll.h" #include "src/core/util/manual_constructor.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" namespace grpc_core { diff --git a/src/core/lib/promise/interceptor_list.h b/src/core/lib/promise/interceptor_list.h index 3a28b6d4b6535..dbdd738e648da 100644 --- a/src/core/lib/promise/interceptor_list.h +++ b/src/core/lib/promise/interceptor_list.h @@ -24,16 +24,16 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" #include "src/core/lib/promise/context.h" #include "src/core/lib/promise/detail/promise_factory.h" #include "src/core/lib/promise/poll.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/util/construct_destruct.h" #include "src/core/util/debug_location.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" namespace grpc_core { diff --git a/src/core/lib/promise/join.h b/src/core/lib/promise/join.h index 17123945966d4..946923928bbcf 100644 --- a/src/core/lib/promise/join.h +++ b/src/core/lib/promise/join.h @@ -20,10 +20,10 @@ #include +#include "absl/meta/type_traits.h" #include "src/core/lib/promise/detail/join_state.h" #include "src/core/lib/promise/detail/promise_factory.h" #include "src/core/lib/promise/map.h" -#include "absl/meta/type_traits.h" namespace grpc_core { namespace promise_detail { diff --git a/src/core/lib/promise/latch.h b/src/core/lib/promise/latch.h index eda0bf87073a3..772204547d609 100644 --- a/src/core/lib/promise/latch.h +++ b/src/core/lib/promise/latch.h @@ -22,12 +22,12 @@ #include #include -#include "src/core/lib/debug/trace.h" -#include "src/core/lib/promise/activity.h" -#include "src/core/lib/promise/poll.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/str_cat.h" +#include "src/core/lib/debug/trace.h" +#include "src/core/lib/promise/activity.h" +#include "src/core/lib/promise/poll.h" namespace grpc_core { diff --git a/src/core/lib/promise/loop.h b/src/core/lib/promise/loop.h index 4e296ba37638c..de8898ca97a5c 100644 --- a/src/core/lib/promise/loop.h +++ b/src/core/lib/promise/loop.h @@ -20,12 +20,12 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/promise/detail/promise_factory.h" #include "src/core/lib/promise/poll.h" #include "src/core/util/construct_destruct.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/lib/promise/map.h b/src/core/lib/promise/map.h index 04b2ba19a6e86..4a39227ab5003 100644 --- a/src/core/lib/promise/map.h +++ b/src/core/lib/promise/map.h @@ -22,11 +22,11 @@ #include #include -#include "src/core/lib/promise/detail/promise_like.h" -#include "src/core/lib/promise/poll.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" +#include "src/core/lib/promise/detail/promise_like.h" +#include "src/core/lib/promise/poll.h" namespace grpc_core { diff --git a/src/core/lib/promise/map_pipe.h b/src/core/lib/promise/map_pipe.h index c42f82a4a9134..13ab7a688bca6 100644 --- a/src/core/lib/promise/map_pipe.h +++ b/src/core/lib/promise/map_pipe.h @@ -17,14 +17,14 @@ #include +#include "absl/log/log.h" +#include "absl/status/status.h" #include "src/core/lib/promise/detail/promise_factory.h" #include "src/core/lib/promise/for_each.h" #include "src/core/lib/promise/map.h" #include "src/core/lib/promise/pipe.h" #include "src/core/lib/promise/poll.h" #include "src/core/lib/promise/try_seq.h" -#include "absl/log/log.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/src/core/lib/promise/mpsc.h b/src/core/lib/promise/mpsc.h index 88e81f72d23aa..c888a7e9bea3b 100644 --- a/src/core/lib/promise/mpsc.h +++ b/src/core/lib/promise/mpsc.h @@ -24,6 +24,8 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/poll.h" #include "src/core/lib/promise/status_flag.h" @@ -32,8 +34,6 @@ #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/src/core/lib/promise/observable.h b/src/core/lib/promise/observable.h index 33f62b68e8913..671348ff9a25c 100644 --- a/src/core/lib/promise/observable.h +++ b/src/core/lib/promise/observable.h @@ -17,12 +17,12 @@ #include -#include "src/core/lib/promise/activity.h" -#include "src/core/lib/promise/poll.h" -#include "src/core/util/sync.h" #include "absl/container/flat_hash_set.h" #include "absl/functional/any_invocable.h" #include "absl/log/check.h" +#include "src/core/lib/promise/activity.h" +#include "src/core/lib/promise/poll.h" +#include "src/core/util/sync.h" namespace grpc_core { diff --git a/src/core/lib/promise/party.cc b/src/core/lib/promise/party.cc index 79348d954722a..e28ab56df1675 100644 --- a/src/core/lib/promise/party.cc +++ b/src/core/lib/promise/party.cc @@ -20,20 +20,20 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_format.h" #include "src/core/lib/event_engine/event_engine_context.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/promise/activity.h" #include "src/core/util/latent_see.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" #ifdef GRPC_MAXIMIZE_THREADYNESS -#include "src/core/lib/iomgr/exec_ctx.h" // IWYU pragma: keep -#include "src/core/util/thd.h" // IWYU pragma: keep -#include "absl/random/random.h" // IWYU pragma: keep +#include "absl/random/random.h" // IWYU pragma: keep +#include "src/core/lib/iomgr/exec_ctx.h" // IWYU pragma: keep +#include "src/core/util/thd.h" // IWYU pragma: keep #endif namespace grpc_core { diff --git a/src/core/lib/promise/party.h b/src/core/lib/promise/party.h index 0e13cbffd68f1..2fd25210de111 100644 --- a/src/core/lib/promise/party.h +++ b/src/core/lib/promise/party.h @@ -25,6 +25,9 @@ #include #include +#include "absl/base/attributes.h" +#include "absl/log/check.h" +#include "absl/strings/string_view.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/event_engine/event_engine_context.h" #include "src/core/lib/promise/activity.h" @@ -37,9 +40,6 @@ #include "src/core/util/crash.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/base/attributes.h" -#include "absl/log/check.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/lib/promise/pipe.h b/src/core/lib/promise/pipe.h index e19212631b6eb..95799f39ef472 100644 --- a/src/core/lib/promise/pipe.h +++ b/src/core/lib/promise/pipe.h @@ -25,6 +25,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/context.h" #include "src/core/lib/promise/if.h" @@ -35,9 +38,6 @@ #include "src/core/lib/resource_quota/arena.h" #include "src/core/util/debug_location.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/src/core/lib/promise/poll.h b/src/core/lib/promise/poll.h index 8c1905330c575..aaf3d12eaea7e 100644 --- a/src/core/lib/promise/poll.h +++ b/src/core/lib/promise/poll.h @@ -21,10 +21,10 @@ #include #include -#include "src/core/util/construct_destruct.h" #include "absl/log/check.h" #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" +#include "src/core/util/construct_destruct.h" namespace grpc_core { diff --git a/src/core/lib/promise/promise.h b/src/core/lib/promise/promise.h index 7aded4bca0e14..2e6f3d4f1e127 100644 --- a/src/core/lib/promise/promise.h +++ b/src/core/lib/promise/promise.h @@ -20,10 +20,10 @@ #include #include -#include "src/core/lib/promise/detail/promise_like.h" -#include "src/core/lib/promise/poll.h" #include "absl/functional/any_invocable.h" #include "absl/status/status.h" +#include "src/core/lib/promise/detail/promise_like.h" +#include "src/core/lib/promise/poll.h" namespace grpc_core { diff --git a/src/core/lib/promise/promise_mutex.h b/src/core/lib/promise/promise_mutex.h index 2ca5e7ad44a4b..c17750ff06625 100644 --- a/src/core/lib/promise/promise_mutex.h +++ b/src/core/lib/promise/promise_mutex.h @@ -19,9 +19,9 @@ #include +#include "absl/log/check.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/poll.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/src/core/lib/promise/sleep.h b/src/core/lib/promise/sleep.h index e3b776f04eb33..13460abe6cfbb 100644 --- a/src/core/lib/promise/sleep.h +++ b/src/core/lib/promise/sleep.h @@ -21,10 +21,10 @@ #include #include +#include "absl/status/status.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/poll.h" #include "src/core/util/time.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/src/core/lib/promise/status_flag.h b/src/core/lib/promise/status_flag.h index 61ee5d9ada1db..bbca80098f8bd 100644 --- a/src/core/lib/promise/status_flag.h +++ b/src/core/lib/promise/status_flag.h @@ -20,12 +20,12 @@ #include #include -#include "src/core/lib/promise/detail/status.h" #include "absl/log/check.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" +#include "src/core/lib/promise/detail/status.h" namespace grpc_core { diff --git a/src/core/lib/promise/try_join.h b/src/core/lib/promise/try_join.h index fef8d940e7bc6..6ff9a1348a12f 100644 --- a/src/core/lib/promise/try_join.h +++ b/src/core/lib/promise/try_join.h @@ -20,14 +20,14 @@ #include #include -#include "src/core/lib/promise/detail/join_state.h" -#include "src/core/lib/promise/map.h" -#include "src/core/lib/promise/poll.h" -#include "src/core/lib/promise/status_flag.h" #include "absl/log/check.h" #include "absl/meta/type_traits.h" #include "absl/status/status.h" #include "absl/status/statusor.h" +#include "src/core/lib/promise/detail/join_state.h" +#include "src/core/lib/promise/map.h" +#include "src/core/lib/promise/poll.h" +#include "src/core/lib/promise/status_flag.h" namespace grpc_core { diff --git a/src/core/lib/promise/try_seq.h b/src/core/lib/promise/try_seq.h index 50e40ffd6259f..7501af89055ff 100644 --- a/src/core/lib/promise/try_seq.h +++ b/src/core/lib/promise/try_seq.h @@ -21,16 +21,16 @@ #include #include +#include "absl/log/check.h" +#include "absl/meta/type_traits.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/lib/promise/detail/basic_seq.h" #include "src/core/lib/promise/detail/promise_like.h" #include "src/core/lib/promise/detail/seq_state.h" #include "src/core/lib/promise/detail/status.h" #include "src/core/lib/promise/poll.h" #include "src/core/lib/promise/status_flag.h" -#include "absl/log/check.h" -#include "absl/meta/type_traits.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/lib/promise/wait_for_callback.h b/src/core/lib/promise/wait_for_callback.h index 5b9c1cf7fc3ff..cdebb5f085a3c 100644 --- a/src/core/lib/promise/wait_for_callback.h +++ b/src/core/lib/promise/wait_for_callback.h @@ -20,10 +20,10 @@ #include #include +#include "absl/base/thread_annotations.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/poll.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" namespace grpc_core { diff --git a/src/core/lib/promise/wait_set.h b/src/core/lib/promise/wait_set.h index 6f564aa83ece0..eb585203194cf 100644 --- a/src/core/lib/promise/wait_set.h +++ b/src/core/lib/promise/wait_set.h @@ -19,10 +19,10 @@ #include -#include "src/core/lib/promise/activity.h" -#include "src/core/lib/promise/poll.h" #include "absl/container/flat_hash_set.h" #include "absl/hash/hash.h" +#include "src/core/lib/promise/activity.h" +#include "src/core/lib/promise/poll.h" namespace grpc_core { diff --git a/src/core/lib/resource_quota/api.cc b/src/core/lib/resource_quota/api.cc index 7388d0c881667..8438fdc35f555 100644 --- a/src/core/lib/resource_quota/api.cc +++ b/src/core/lib/resource_quota/api.cc @@ -24,13 +24,13 @@ #include #include +#include "absl/strings/str_cat.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/resource_quota/memory_quota.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/lib/resource_quota/thread_quota.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/src/core/lib/resource_quota/arena.cc b/src/core/lib/resource_quota/arena.cc index 9e64c1357ad79..e3b24dc739b3e 100644 --- a/src/core/lib/resource_quota/arena.cc +++ b/src/core/lib/resource_quota/arena.cc @@ -24,9 +24,9 @@ #include #include +#include "absl/log/log.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/alloc.h" -#include "absl/log/log.h" namespace grpc_core { namespace { diff --git a/src/core/lib/resource_quota/connection_quota.h b/src/core/lib/resource_quota/connection_quota.h index 05eb6eecb555e..f30ea21806329 100644 --- a/src/core/lib/resource_quota/connection_quota.h +++ b/src/core/lib/resource_quota/connection_quota.h @@ -20,11 +20,11 @@ #include #include +#include "absl/base/thread_annotations.h" #include "src/core/lib/resource_quota/memory_quota.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" namespace grpc_core { diff --git a/src/core/lib/resource_quota/memory_quota.cc b/src/core/lib/resource_quota/memory_quota.cc index d360beb2174e3..4dd9c0d9f4343 100644 --- a/src/core/lib/resource_quota/memory_quota.cc +++ b/src/core/lib/resource_quota/memory_quota.cc @@ -28,6 +28,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/promise/exec_ctx_wakeup_scheduler.h" #include "src/core/lib/promise/loop.h" @@ -37,10 +41,6 @@ #include "src/core/lib/slice/slice_refcount.h" #include "src/core/util/mpscq.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/src/core/lib/resource_quota/memory_quota.h b/src/core/lib/resource_quota/memory_quota.h index f84b32147d44c..0a786c01cf499 100644 --- a/src/core/lib/resource_quota/memory_quota.h +++ b/src/core/lib/resource_quota/memory_quota.h @@ -30,6 +30,11 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/flat_hash_set.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/string_view.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/promise/activity.h" @@ -40,11 +45,6 @@ #include "src/core/util/sync.h" #include "src/core/util/time.h" #include "src/core/util/useful.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/flat_hash_set.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/lib/resource_quota/periodic_update.h b/src/core/lib/resource_quota/periodic_update.h index f8635c1866b93..950df574815dd 100644 --- a/src/core/lib/resource_quota/periodic_update.h +++ b/src/core/lib/resource_quota/periodic_update.h @@ -20,8 +20,8 @@ #include -#include "src/core/util/time.h" #include "absl/functional/function_ref.h" +#include "src/core/util/time.h" namespace grpc_core { diff --git a/src/core/lib/resource_quota/resource_quota.h b/src/core/lib/resource_quota/resource_quota.h index 630d2a5855b67..ffe61903255ff 100644 --- a/src/core/lib/resource_quota/resource_quota.h +++ b/src/core/lib/resource_quota/resource_quota.h @@ -22,13 +22,13 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/lib/resource_quota/memory_quota.h" #include "src/core/lib/resource_quota/thread_quota.h" #include "src/core/util/cpp_impl_of.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/useful.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/lib/resource_quota/thread_quota.h b/src/core/lib/resource_quota/thread_quota.h index 35a051408906f..18a6e13e7f1bf 100644 --- a/src/core/lib/resource_quota/thread_quota.h +++ b/src/core/lib/resource_quota/thread_quota.h @@ -20,10 +20,10 @@ #include #include +#include "absl/base/thread_annotations.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" namespace grpc_core { diff --git a/src/core/lib/security/authorization/audit_logging.cc b/src/core/lib/security/authorization/audit_logging.cc index d4b6ea1b3459e..4a6b8b97b25e1 100644 --- a/src/core/lib/security/authorization/audit_logging.cc +++ b/src/core/lib/security/authorization/audit_logging.cc @@ -26,13 +26,13 @@ #include #include -#include "src/core/lib/security/authorization/stdout_logger.h" -#include "src/core/util/sync.h" #include "absl/log/check.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_format.h" #include "absl/strings/string_view.h" +#include "src/core/lib/security/authorization/stdout_logger.h" +#include "src/core/util/sync.h" namespace grpc_core { namespace experimental { diff --git a/src/core/lib/security/authorization/audit_logging.h b/src/core/lib/security/authorization/audit_logging.h index 4636f9a6c1e22..899e0dcc13107 100644 --- a/src/core/lib/security/authorization/audit_logging.h +++ b/src/core/lib/security/authorization/audit_logging.h @@ -26,10 +26,10 @@ #include #include -#include "src/core/util/sync.h" #include "absl/base/thread_annotations.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "src/core/util/sync.h" namespace grpc_core { namespace experimental { diff --git a/src/core/lib/security/authorization/authorization_policy_provider.h b/src/core/lib/security/authorization/authorization_policy_provider.h index 0c116b4f15628..ce0a9c7604f52 100644 --- a/src/core/lib/security/authorization/authorization_policy_provider.h +++ b/src/core/lib/security/authorization/authorization_policy_provider.h @@ -19,11 +19,11 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/lib/security/authorization/authorization_engine.h" #include "src/core/util/dual_ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/useful.h" -#include "absl/strings/string_view.h" struct grpc_authorization_policy_provider : public grpc_core::DualRefCounted { diff --git a/src/core/lib/security/authorization/cel_authorization_engine.cc b/src/core/lib/security/authorization/cel_authorization_engine.cc index 4f991d9beeb6a..0f508f5a6bf15 100644 --- a/src/core/lib/security/authorization/cel_authorization_engine.cc +++ b/src/core/lib/security/authorization/cel_authorization_engine.cc @@ -89,7 +89,8 @@ CelAuthorizationEngine::CelAuthorizationEngine( const char* serialized = google_api_expr_v1alpha1_Expr_serialize( condition, temp_arena.ptr(), &serial_len); const google_api_expr_v1alpha1_Expr* parsed_condition = - google_api_expr_v1alpha1_Expr_parse(serialized, serial_len, arena_.ptr()); + google_api_expr_v1alpha1_Expr_parse(serialized, serial_len, + arena_.ptr()); if (envoy_config_rbac_v3_RBAC_action(rbac_policy) == kAllow) { allow_if_matched_.insert(std::pair(policy_name, parsed_condition)); } else { diff --git a/src/core/lib/security/authorization/cel_authorization_engine.h b/src/core/lib/security/authorization/cel_authorization_engine.h index 99999f520fa2e..75130df8cea6e 100644 --- a/src/core/lib/security/authorization/cel_authorization_engine.h +++ b/src/core/lib/security/authorization/cel_authorization_engine.h @@ -23,12 +23,12 @@ #include #include +#include "absl/container/flat_hash_set.h" +#include "envoy/config/rbac/v3/rbac.upb.h" #include "google/api/expr/v1alpha1/syntax.upb.h" #include "src/core/lib/security/authorization/evaluate_args.h" #include "src/core/lib/security/authorization/mock_cel/activation.h" #include "src/core/lib/security/authorization/mock_cel/cel_value.h" -#include "absl/container/flat_hash_set.h" -#include "envoy/config/rbac/v3/rbac.upb.h" #include "upb/mem/arena.hpp" namespace grpc_core { @@ -68,8 +68,10 @@ class CelAuthorizationEngine { std::unique_ptr CreateActivation( const EvaluateArgs& args); - std::map deny_if_matched_; - std::map allow_if_matched_; + std::map + deny_if_matched_; + std::map + allow_if_matched_; upb::Arena arena_; absl::flat_hash_set envoy_attributes_; absl::flat_hash_set header_keys_; diff --git a/src/core/lib/security/authorization/evaluate_args.cc b/src/core/lib/security/authorization/evaluate_args.cc index 4c93467173e36..c5501f1d5e413 100644 --- a/src/core/lib/security/authorization/evaluate_args.cc +++ b/src/core/lib/security/authorization/evaluate_args.cc @@ -18,17 +18,17 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/match.h" +#include "absl/strings/numbers.h" #include "src/core/credentials/transport/tls/tls_utils.h" #include "src/core/handshaker/endpoint_info/endpoint_info_handshaker.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/slice/slice.h" #include "src/core/util/host_port.h" #include "src/core/util/uri.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/match.h" -#include "absl/strings/numbers.h" namespace grpc_core { diff --git a/src/core/lib/security/authorization/evaluate_args.h b/src/core/lib/security/authorization/evaluate_args.h index 208b22eff400b..07e181b3d76af 100644 --- a/src/core/lib/security/authorization/evaluate_args.h +++ b/src/core/lib/security/authorization/evaluate_args.h @@ -22,10 +22,10 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/resolved_address.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/lib/security/authorization/grpc_authorization_engine.cc b/src/core/lib/security/authorization/grpc_authorization_engine.cc index 49f49a44a7ab8..a2b38af3d399b 100644 --- a/src/core/lib/security/authorization/grpc_authorization_engine.cc +++ b/src/core/lib/security/authorization/grpc_authorization_engine.cc @@ -20,9 +20,9 @@ #include #include +#include "absl/log/check.h" #include "src/core/lib/security/authorization/audit_logging.h" #include "src/core/lib/security/authorization/authorization_engine.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/src/core/lib/security/authorization/grpc_authorization_policy_provider.cc b/src/core/lib/security/authorization/grpc_authorization_policy_provider.cc index d84c05bc913f7..6b7a1ccec9f1c 100644 --- a/src/core/lib/security/authorization/grpc_authorization_policy_provider.cc +++ b/src/core/lib/security/authorization/grpc_authorization_policy_provider.cc @@ -25,6 +25,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/security/authorization/grpc_authorization_engine.h" @@ -34,8 +36,6 @@ #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/load_file.h" #include "src/core/util/status_helper.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/src/core/lib/security/authorization/grpc_authorization_policy_provider.h b/src/core/lib/security/authorization/grpc_authorization_policy_provider.h index bee14159e9748..bac11102126e6 100644 --- a/src/core/lib/security/authorization/grpc_authorization_policy_provider.h +++ b/src/core/lib/security/authorization/grpc_authorization_policy_provider.h @@ -23,16 +23,16 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/security/authorization/authorization_engine.h" #include "src/core/lib/security/authorization/authorization_policy_provider.h" #include "src/core/lib/security/authorization/rbac_translator.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" #include "src/core/util/thd.h" -#include "absl/base/thread_annotations.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/lib/security/authorization/grpc_server_authz_filter.cc b/src/core/lib/security/authorization/grpc_server_authz_filter.cc index 9d125242b1010..4e88deb2a0c45 100644 --- a/src/core/lib/security/authorization/grpc_server_authz_filter.cc +++ b/src/core/lib/security/authorization/grpc_server_authz_filter.cc @@ -21,6 +21,9 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_join.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/channel/channel_stack.h" #include "src/core/lib/channel/promise_based_filter.h" @@ -30,9 +33,6 @@ #include "src/core/lib/security/authorization/evaluate_args.h" #include "src/core/lib/transport/transport.h" #include "src/core/util/latent_see.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_join.h" namespace grpc_core { diff --git a/src/core/lib/security/authorization/grpc_server_authz_filter.h b/src/core/lib/security/authorization/grpc_server_authz_filter.h index 19036e2088c33..b716ed515fa66 100644 --- a/src/core/lib/security/authorization/grpc_server_authz_filter.h +++ b/src/core/lib/security/authorization/grpc_server_authz_filter.h @@ -18,6 +18,7 @@ #include #include +#include "absl/status/statusor.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/promise_based_filter.h" @@ -27,7 +28,6 @@ #include "src/core/lib/transport/transport.h" #include "src/core/transport/auth_context.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/lib/security/authorization/matchers.cc b/src/core/lib/security/authorization/matchers.cc index 77ac0d932b7ea..c113514f2334b 100644 --- a/src/core/lib/security/authorization/matchers.cc +++ b/src/core/lib/security/authorization/matchers.cc @@ -20,12 +20,12 @@ #include -#include "src/core/lib/address_utils/parse_address.h" -#include "src/core/lib/address_utils/sockaddr_utils.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "src/core/lib/address_utils/parse_address.h" +#include "src/core/lib/address_utils/sockaddr_utils.h" namespace grpc_core { diff --git a/src/core/lib/security/authorization/rbac_translator.cc b/src/core/lib/security/authorization/rbac_translator.cc index c4c3b01094dc1..21e6358e5f405 100644 --- a/src/core/lib/security/authorization/rbac_translator.cc +++ b/src/core/lib/security/authorization/rbac_translator.cc @@ -26,11 +26,6 @@ #include #include -#include "src/core/lib/security/authorization/audit_logging.h" -#include "src/core/util/json/json.h" -#include "src/core/util/json/json_reader.h" -#include "src/core/util/matchers.h" -#include "src/core/util/useful.h" #include "absl/log/check.h" #include "absl/status/status.h" #include "absl/status/statusor.h" @@ -39,6 +34,11 @@ #include "absl/strings/str_format.h" #include "absl/strings/string_view.h" #include "absl/strings/strip.h" +#include "src/core/lib/security/authorization/audit_logging.h" +#include "src/core/util/json/json.h" +#include "src/core/util/json/json_reader.h" +#include "src/core/util/matchers.h" +#include "src/core/util/useful.h" namespace grpc_core { diff --git a/src/core/lib/security/authorization/rbac_translator.h b/src/core/lib/security/authorization/rbac_translator.h index 7de088f1431a0..538aa78a5b4ff 100644 --- a/src/core/lib/security/authorization/rbac_translator.h +++ b/src/core/lib/security/authorization/rbac_translator.h @@ -19,9 +19,9 @@ #include -#include "src/core/lib/security/authorization/rbac_policy.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "src/core/lib/security/authorization/rbac_policy.h" namespace grpc_core { diff --git a/src/core/lib/slice/percent_encoding.cc b/src/core/lib/slice/percent_encoding.cc index bd901f2d4ad23..88af7e0a20fde 100644 --- a/src/core/lib/slice/percent_encoding.cc +++ b/src/core/lib/slice/percent_encoding.cc @@ -24,8 +24,8 @@ #include #include -#include "src/core/util/bitset.h" #include "absl/log/check.h" +#include "src/core/util/bitset.h" namespace grpc_core { diff --git a/src/core/lib/slice/slice.cc b/src/core/lib/slice/slice.cc index e155350be14db..52af6a4e28875 100644 --- a/src/core/lib/slice/slice.cc +++ b/src/core/lib/slice/slice.cc @@ -25,10 +25,10 @@ #include +#include "absl/log/check.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/lib/slice/slice_refcount.h" #include "src/core/util/memory.h" -#include "absl/log/check.h" char* grpc_slice_to_c_string(grpc_slice slice) { char* out = static_cast(gpr_malloc(GRPC_SLICE_LENGTH(slice) + 1)); diff --git a/src/core/lib/slice/slice.h b/src/core/lib/slice/slice.h index e340e3b5a0309..1e6608f8a45dd 100644 --- a/src/core/lib/slice/slice.h +++ b/src/core/lib/slice/slice.h @@ -25,12 +25,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/string_view.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/lib/slice/slice_refcount.h" #include "src/core/util/debug_location.h" #include "src/core/util/string.h" -#include "absl/log/check.h" -#include "absl/strings/string_view.h" // Herein lies grpc_core::Slice and its team of thin wrappers around grpc_slice. // They aim to keep you safe by providing strong guarantees around lifetime and diff --git a/src/core/lib/slice/slice_buffer.cc b/src/core/lib/slice/slice_buffer.cc index 4b22982f851d8..9b6b3a3f69b39 100644 --- a/src/core/lib/slice/slice_buffer.cc +++ b/src/core/lib/slice/slice_buffer.cc @@ -26,8 +26,8 @@ #include -#include "src/core/lib/slice/slice_internal.h" #include "absl/log/check.h" +#include "src/core/lib/slice/slice_internal.h" namespace grpc_core { diff --git a/src/core/lib/slice/slice_internal.h b/src/core/lib/slice/slice_internal.h index e4ca519deca85..9c05f6fdacdeb 100644 --- a/src/core/lib/slice/slice_internal.h +++ b/src/core/lib/slice/slice_internal.h @@ -26,10 +26,10 @@ #include #include -#include "src/core/util/memory.h" #include "absl/hash/hash.h" #include "absl/log/check.h" #include "absl/strings/string_view.h" +#include "src/core/util/memory.h" // Returns a pointer to the first slice in the slice buffer without giving // ownership to or a reference count on that slice. diff --git a/src/core/lib/surface/byte_buffer_reader.cc b/src/core/lib/surface/byte_buffer_reader.cc index 43d3e457366dc..52bf3795c905e 100644 --- a/src/core/lib/surface/byte_buffer_reader.cc +++ b/src/core/lib/surface/byte_buffer_reader.cc @@ -24,9 +24,9 @@ #include #include +#include "absl/log/check.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/slice/slice.h" -#include "absl/log/check.h" int grpc_byte_buffer_reader_init(grpc_byte_buffer_reader* reader, grpc_byte_buffer* buffer) { diff --git a/src/core/lib/surface/call.cc b/src/core/lib/surface/call.cc index 61f3a4e82bc86..b1e0ba3207ef7 100644 --- a/src/core/lib/surface/call.cc +++ b/src/core/lib/surface/call.cc @@ -47,6 +47,14 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" #include "src/core/call/call_finalization.h" #include "src/core/call/metadata.h" #include "src/core/call/metadata_batch.h" @@ -97,14 +105,6 @@ #include "src/core/util/sync.h" #include "src/core/util/time_precise.h" #include "src/core/util/useful.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/lib/surface/call.h b/src/core/lib/surface/call.h index bc41dc12819ca..bc7220ac60918 100644 --- a/src/core/lib/surface/call.h +++ b/src/core/lib/surface/call.h @@ -28,6 +28,10 @@ #include +#include "absl/functional/any_invocable.h" +#include "absl/functional/function_ref.h" +#include "absl/log/check.h" +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/channel_stack.h" #include "src/core/lib/debug/trace.h" @@ -44,10 +48,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" #include "src/core/util/time_precise.h" -#include "absl/functional/any_invocable.h" -#include "absl/functional/function_ref.h" -#include "absl/log/check.h" -#include "absl/strings/string_view.h" typedef void (*grpc_ioreq_completion_func)(grpc_call* call, int success, void* user_data); diff --git a/src/core/lib/surface/call_log_batch.cc b/src/core/lib/surface/call_log_batch.cc index c6934c84b4a79..2162ac2831b1a 100644 --- a/src/core/lib/surface/call_log_batch.cc +++ b/src/core/lib/surface/call_log_batch.cc @@ -26,12 +26,12 @@ #include #include +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/lib/slice/slice_string_helpers.h" #include "src/core/lib/surface/call.h" #include "src/core/util/string.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" static void add_metadata(const grpc_metadata* md, size_t count, std::vector* b) { diff --git a/src/core/lib/surface/call_utils.cc b/src/core/lib/surface/call_utils.cc index c4d577e8ebeb8..18f613ba55589 100644 --- a/src/core/lib/surface/call_utils.cc +++ b/src/core/lib/surface/call_utils.cc @@ -40,6 +40,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata.h" #include "src/core/call/metadata_batch.h" #include "src/core/call/status_util.h" @@ -55,12 +61,6 @@ #include "src/core/util/crash.h" #include "src/core/util/debug_location.h" #include "src/core/util/match.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/lib/surface/call_utils.h b/src/core/lib/surface/call_utils.h index d2f2754ec41e0..01574d318fb39 100644 --- a/src/core/lib/surface/call_utils.h +++ b/src/core/lib/surface/call_utils.h @@ -40,6 +40,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/call/message.h" #include "src/core/call/metadata.h" #include "src/core/call/metadata_batch.h" @@ -51,10 +55,6 @@ #include "src/core/lib/promise/status_flag.h" #include "src/core/lib/surface/completion_queue.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/lib/surface/channel.cc b/src/core/lib/surface/channel.cc index fdcf1bc3f8cae..39606bf479a5a 100644 --- a/src/core/lib/surface/channel.cc +++ b/src/core/lib/surface/channel.cc @@ -22,6 +22,7 @@ #include #include +#include "absl/log/check.h" #include "src/core/channelz/channel_trace.h" #include "src/core/channelz/channelz.h" #include "src/core/lib/channel/channel_args.h" @@ -30,7 +31,6 @@ #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/telemetry/stats.h" #include "src/core/telemetry/stats_data.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/src/core/lib/surface/channel.h b/src/core/lib/surface/channel.h index 67478dbff6566..c1de0a8e0b93f 100644 --- a/src/core/lib/surface/channel.h +++ b/src/core/lib/surface/channel.h @@ -27,6 +27,9 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/call/call_arena_allocator.h" #include "src/core/call/call_destination.h" #include "src/core/channelz/channelz.h" @@ -42,9 +45,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/base/thread_annotations.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" // Forward declaration to avoid dependency loop. struct grpc_channel_stack; diff --git a/src/core/lib/surface/channel_create.cc b/src/core/lib/surface/channel_create.cc index 728b86c8a5a94..741406cd63f66 100644 --- a/src/core/lib/surface/channel_create.cc +++ b/src/core/lib/surface/channel_create.cc @@ -20,6 +20,7 @@ #include #include +#include "absl/log/check.h" #include "src/core/channelz/channelz.h" #include "src/core/client_channel/client_channel.h" #include "src/core/client_channel/direct_channel.h" @@ -32,7 +33,6 @@ #include "src/core/lib/surface/legacy_channel.h" #include "src/core/telemetry/stats.h" #include "src/core/telemetry/stats_data.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/src/core/lib/surface/channel_create.h b/src/core/lib/surface/channel_create.h index 88721457506da..187748cc2a3ac 100644 --- a/src/core/lib/surface/channel_create.h +++ b/src/core/lib/surface/channel_create.h @@ -21,10 +21,10 @@ #include +#include "absl/status/statusor.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/surface/channel.h" #include "src/core/lib/surface/channel_stack_type.h" -#include "absl/status/statusor.h" #define GRPC_ARG_USE_V3_STACK "grpc.internal.use_v3_stack" diff --git a/src/core/lib/surface/channel_init.cc b/src/core/lib/surface/channel_init.cc index dce075719aa99..d458888bcd8d6 100644 --- a/src/core/lib/surface/channel_init.cc +++ b/src/core/lib/surface/channel_init.cc @@ -29,16 +29,16 @@ #include #include -#include "src/core/lib/debug/trace.h" -#include "src/core/lib/surface/channel_stack_type.h" -#include "src/core/util/crash.h" -#include "src/core/util/sync.h" -#include "src/core/util/unique_type_name.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" #include "absl/strings/string_view.h" +#include "src/core/lib/debug/trace.h" +#include "src/core/lib/surface/channel_stack_type.h" +#include "src/core/util/crash.h" +#include "src/core/util/sync.h" +#include "src/core/util/unique_type_name.h" namespace grpc_core { diff --git a/src/core/lib/surface/channel_init.h b/src/core/lib/surface/channel_init.h index 5547daadde77f..6c70b78ece9e9 100644 --- a/src/core/lib/surface/channel_init.h +++ b/src/core/lib/surface/channel_init.h @@ -28,6 +28,8 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" #include "src/core/call/call_filters.h" #include "src/core/call/interception_chain.h" #include "src/core/lib/channel/channel_args.h" @@ -36,8 +38,6 @@ #include "src/core/lib/surface/channel_stack_type.h" #include "src/core/util/debug_location.h" #include "src/core/util/unique_type_name.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" /// This module provides a way for plugins (and the grpc core library itself) /// to register mutators for channel stacks. diff --git a/src/core/lib/surface/completion_queue.cc b/src/core/lib/surface/completion_queue.cc index 37a9ec4dee7bf..5e9b82871e626 100644 --- a/src/core/lib/surface/completion_queue.cc +++ b/src/core/lib/surface/completion_queue.cc @@ -32,6 +32,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" #include "src/core/lib/event_engine/shim.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -45,11 +50,6 @@ #include "src/core/util/spinlock.h" #include "src/core/util/status_helper.h" #include "src/core/util/time.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" namespace { diff --git a/src/core/lib/surface/completion_queue_factory.cc b/src/core/lib/surface/completion_queue_factory.cc index ba51f1d2f2522..c88360772aa76 100644 --- a/src/core/lib/surface/completion_queue_factory.cc +++ b/src/core/lib/surface/completion_queue_factory.cc @@ -21,9 +21,9 @@ #include #include +#include "absl/log/check.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/surface/completion_queue.h" -#include "absl/log/check.h" // // == Default completion queue factory implementation == diff --git a/src/core/lib/surface/filter_stack_call.cc b/src/core/lib/surface/filter_stack_call.cc index 77ba6e8e803b1..857e18d287d21 100644 --- a/src/core/lib/surface/filter_stack_call.cc +++ b/src/core/lib/surface/filter_stack_call.cc @@ -37,6 +37,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/channelz/channelz.h" #include "src/core/lib/channel/channel_stack.h" @@ -65,11 +70,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/status_helper.h" #include "src/core/util/time_precise.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/lib/surface/filter_stack_call.h b/src/core/lib/surface/filter_stack_call.h index f3384d14b255c..e77359d6c5597 100644 --- a/src/core/lib/surface/filter_stack_call.h +++ b/src/core/lib/surface/filter_stack_call.h @@ -38,6 +38,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/channel/channel_stack.h" #include "src/core/lib/iomgr/call_combiner.h" @@ -54,10 +58,6 @@ #include "src/core/util/alloc.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/lib/surface/init.cc b/src/core/lib/surface/init.cc index ba49396843245..97ec51fc52f34 100644 --- a/src/core/lib/surface/init.cc +++ b/src/core/lib/surface/init.cc @@ -27,6 +27,10 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/log.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/transport/security_connector.h" @@ -44,10 +48,6 @@ #include "src/core/util/fork.h" #include "src/core/util/sync.h" #include "src/core/util/thd.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/log.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" // Remnants of the old plugin system void grpc_resolver_dns_ares_init(void); diff --git a/src/core/lib/surface/lame_client.cc b/src/core/lib/surface/lame_client.cc index a466cac546fcb..2596d3f1b314c 100644 --- a/src/core/lib/surface/lame_client.cc +++ b/src/core/lib/surface/lame_client.cc @@ -26,6 +26,8 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" @@ -44,8 +46,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" #include "src/core/util/useful.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" // Avoid some IWYU confusion: // IWYU pragma: no_include "src/core/util/orphanable.h" diff --git a/src/core/lib/surface/lame_client.h b/src/core/lib/surface/lame_client.h index ab5e730b3b1f6..85c4c6e2992aa 100644 --- a/src/core/lib/surface/lame_client.h +++ b/src/core/lib/surface/lame_client.h @@ -24,6 +24,9 @@ #include +#include "absl/base/thread_annotations.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/promise_based_filter.h" @@ -32,9 +35,6 @@ #include "src/core/lib/transport/connectivity_state.h" #include "src/core/lib/transport/transport.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" #define GRPC_ARG_LAME_FILTER_ERROR "grpc.lame_filter_error" diff --git a/src/core/lib/surface/legacy_channel.cc b/src/core/lib/surface/legacy_channel.cc index 61156d18652c5..e18a7093e5346 100644 --- a/src/core/lib/surface/legacy_channel.cc +++ b/src/core/lib/surface/legacy_channel.cc @@ -26,6 +26,10 @@ #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" #include "src/core/channelz/channelz.h" #include "src/core/client_channel/client_channel_filter.h" #include "src/core/config/core_configuration.h" @@ -54,10 +58,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/src/core/lib/surface/legacy_channel.h b/src/core/lib/surface/legacy_channel.h index be38a3e276c27..43ab7a34f5ce1 100644 --- a/src/core/lib/surface/legacy_channel.h +++ b/src/core/lib/surface/legacy_channel.h @@ -26,6 +26,7 @@ #include #include +#include "absl/status/statusor.h" #include "src/core/call/call_arena_allocator.h" #include "src/core/client_channel/client_channel_filter.h" #include "src/core/lib/channel/channel_args.h" @@ -39,7 +40,6 @@ #include "src/core/telemetry/stats.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/lib/surface/validate_metadata.cc b/src/core/lib/surface/validate_metadata.cc index f416aa7f50440..684cad74e530e 100644 --- a/src/core/lib/surface/validate_metadata.cc +++ b/src/core/lib/surface/validate_metadata.cc @@ -21,11 +21,11 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/bitset.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/lib/surface/validate_metadata.h b/src/core/lib/surface/validate_metadata.h index 599a8234e8875..f4630ea2d48db 100644 --- a/src/core/lib/surface/validate_metadata.h +++ b/src/core/lib/surface/validate_metadata.h @@ -25,9 +25,9 @@ #include -#include "src/core/lib/iomgr/error.h" #include "absl/log/check.h" #include "absl/strings/string_view.h" +#include "src/core/lib/iomgr/error.h" namespace grpc_core { diff --git a/src/core/lib/transport/bdp_estimator.h b/src/core/lib/transport/bdp_estimator.h index 96398a5ed79aa..c5879d939c3ef 100644 --- a/src/core/lib/transport/bdp_estimator.h +++ b/src/core/lib/transport/bdp_estimator.h @@ -25,11 +25,11 @@ #include -#include "src/core/lib/debug/trace.h" -#include "src/core/util/time.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/string_view.h" +#include "src/core/lib/debug/trace.h" +#include "src/core/util/time.h" namespace grpc_core { diff --git a/src/core/lib/transport/connectivity_state.cc b/src/core/lib/transport/connectivity_state.cc index b98918679cfd6..2a9e86c9e3db9 100644 --- a/src/core/lib/transport/connectivity_state.cc +++ b/src/core/lib/transport/connectivity_state.cc @@ -20,12 +20,12 @@ #include +#include "absl/log/log.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/debug_location.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/src/core/lib/transport/connectivity_state.h b/src/core/lib/transport/connectivity_state.h index 2902c49661ea5..fc9512bba107c 100644 --- a/src/core/lib/transport/connectivity_state.h +++ b/src/core/lib/transport/connectivity_state.h @@ -27,11 +27,11 @@ #include #include +#include "absl/container/flat_hash_set.h" +#include "absl/status/status.h" #include "src/core/lib/debug/trace.h" #include "src/core/util/orphanable.h" #include "src/core/util/work_serializer.h" -#include "absl/container/flat_hash_set.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/src/core/lib/transport/error_utils.h b/src/core/lib/transport/error_utils.h index cd21d6cf2c155..f6577e9f18d06 100644 --- a/src/core/lib/transport/error_utils.h +++ b/src/core/lib/transport/error_utils.h @@ -24,10 +24,10 @@ #include +#include "absl/status/status.h" #include "src/core/ext/transport/chttp2/transport/http2_status.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/time.h" -#include "absl/status/status.h" /// A utility function to get the status code and message to be returned /// to the application. If not set in the top-level message, looks diff --git a/src/core/lib/transport/promise_endpoint.cc b/src/core/lib/transport/promise_endpoint.cc index ac1bf515ba88b..866be78b87748 100644 --- a/src/core/lib/transport/promise_endpoint.cc +++ b/src/core/lib/transport/promise_endpoint.cc @@ -25,10 +25,10 @@ #include #include -#include "src/core/lib/slice/slice_buffer.h" -#include "src/core/util/sync.h" #include "absl/log/check.h" #include "absl/status/status.h" +#include "src/core/lib/slice/slice_buffer.h" +#include "src/core/util/sync.h" namespace grpc_core { diff --git a/src/core/lib/transport/promise_endpoint.h b/src/core/lib/transport/promise_endpoint.h index 2b47113cfc0d5..f7d79e19a9a90 100644 --- a/src/core/lib/transport/promise_endpoint.h +++ b/src/core/lib/transport/promise_endpoint.h @@ -30,6 +30,10 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/lib/event_engine/extensions/chaotic_good_extension.h" #include "src/core/lib/event_engine/query_extensions.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -41,10 +45,6 @@ #include "src/core/lib/slice/slice.h" #include "src/core/lib/slice/slice_buffer.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/lib/transport/transport.cc b/src/core/lib/transport/transport.cc index a7218ddb1b7bb..9ac2b5ed49446 100644 --- a/src/core/lib/transport/transport.cc +++ b/src/core/lib/transport/transport.cc @@ -26,6 +26,9 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/promise/for_each.h" @@ -34,9 +37,6 @@ #include "src/core/lib/slice/slice.h" #include "src/core/lib/transport/error_utils.h" #include "src/core/util/time.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" void grpc_stream_destroy(grpc_stream_refcount* refcount) { if ((grpc_core::ExecCtx::Get()->flags() & diff --git a/src/core/lib/transport/transport.h b/src/core/lib/transport/transport.h index d277bea133251..8db4c583570d5 100644 --- a/src/core/lib/transport/transport.h +++ b/src/core/lib/transport/transport.h @@ -33,6 +33,10 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/call/call_destination.h" #include "src/core/call/call_spine.h" #include "src/core/call/message.h" @@ -56,10 +60,6 @@ #include "src/core/lib/transport/transport_fwd.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" // Minimum and maximum protocol accepted versions. #define GRPC_PROTOCOL_VERSION_MAX_MAJOR 2 diff --git a/src/core/lib/transport/transport_framing_endpoint_extension.h b/src/core/lib/transport/transport_framing_endpoint_extension.h index 1ce8da29b9c59..fe46b4baf60c1 100644 --- a/src/core/lib/transport/transport_framing_endpoint_extension.h +++ b/src/core/lib/transport/transport_framing_endpoint_extension.h @@ -17,9 +17,9 @@ #include -#include "src/core/lib/slice/slice_buffer.h" #include "absl/functional/any_invocable.h" #include "absl/strings/string_view.h" +#include "src/core/lib/slice/slice_buffer.h" namespace grpc_core { diff --git a/src/core/lib/transport/transport_op_string.cc b/src/core/lib/transport/transport_op_string.cc index 87c52fca1514a..c1f4a07a02033 100644 --- a/src/core/lib/transport/transport_op_string.cc +++ b/src/core/lib/transport/transport_op_string.cc @@ -21,6 +21,8 @@ #include #include +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/slice/slice_buffer.h" @@ -28,8 +30,6 @@ #include "src/core/lib/transport/transport.h" #include "src/core/util/orphanable.h" #include "src/core/util/status_helper.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" // These routines are here to facilitate debugging - they produce string // representations of various transport data structures diff --git a/src/core/load_balancing/address_filtering.cc b/src/core/load_balancing/address_filtering.cc index ed5b1e0feb8a2..1a19cfca33a77 100644 --- a/src/core/load_balancing/address_filtering.cc +++ b/src/core/load_balancing/address_filtering.cc @@ -21,10 +21,10 @@ #include +#include "absl/functional/function_ref.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/resolved_address.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/functional/function_ref.h" namespace grpc_core { diff --git a/src/core/load_balancing/address_filtering.h b/src/core/load_balancing/address_filtering.h index f759243a61556..31b4510828532 100644 --- a/src/core/load_balancing/address_filtering.h +++ b/src/core/load_balancing/address_filtering.h @@ -24,11 +24,11 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/resolver/endpoint_addresses.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_string.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" // The resolver returns a flat list of addresses. When a hierarchy of // LB policies is in use, each leaf of the hierarchy will need a diff --git a/src/core/load_balancing/backend_metric_parser.cc b/src/core/load_balancing/backend_metric_parser.cc index fde0ec6a818a3..02aa3e29f4991 100644 --- a/src/core/load_balancing/backend_metric_parser.cc +++ b/src/core/load_balancing/backend_metric_parser.cc @@ -22,10 +22,10 @@ #include #include "absl/strings/string_view.h" -#include "xds/data/orca/v3/orca_load_report.upb.h" #include "upb/base/string_view.h" #include "upb/mem/arena.hpp" #include "upb/message/map.h" +#include "xds/data/orca/v3/orca_load_report.upb.h" namespace grpc_core { diff --git a/src/core/load_balancing/backend_metric_parser.h b/src/core/load_balancing/backend_metric_parser.h index f7134b4ec237d..c6bf0b08729e5 100644 --- a/src/core/load_balancing/backend_metric_parser.h +++ b/src/core/load_balancing/backend_metric_parser.h @@ -20,8 +20,8 @@ #include #include -#include "src/core/load_balancing/backend_metric_data.h" #include "absl/strings/string_view.h" +#include "src/core/load_balancing/backend_metric_data.h" namespace grpc_core { diff --git a/src/core/load_balancing/child_policy_handler.cc b/src/core/load_balancing/child_policy_handler.cc index 76b35d3a810d9..3048508314931 100644 --- a/src/core/load_balancing/child_policy_handler.cc +++ b/src/core/load_balancing/child_policy_handler.cc @@ -22,6 +22,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/pollset_set.h" @@ -31,11 +36,6 @@ #include "src/core/load_balancing/lb_policy_registry.h" #include "src/core/load_balancing/subchannel_interface.h" #include "src/core/util/debug_location.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/child_policy_handler.h b/src/core/load_balancing/child_policy_handler.h index 64fd274d81b80..e22da5cb32272 100644 --- a/src/core/load_balancing/child_policy_handler.h +++ b/src/core/load_balancing/child_policy_handler.h @@ -20,13 +20,13 @@ #include +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" #include "src/core/load_balancing/lb_policy.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/delegating_helper.h b/src/core/load_balancing/delegating_helper.h index 2b0479929c12b..1428aa37d2d70 100644 --- a/src/core/load_balancing/delegating_helper.h +++ b/src/core/load_balancing/delegating_helper.h @@ -24,6 +24,8 @@ #include +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/transport_credentials.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/resolved_address.h" @@ -31,8 +33,6 @@ #include "src/core/load_balancing/subchannel_interface.h" #include "src/core/util/debug_location.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/endpoint_list.cc b/src/core/load_balancing/endpoint_list.cc index 030f0458db4c8..8dd402f9cfc5e 100644 --- a/src/core/load_balancing/endpoint_list.cc +++ b/src/core/load_balancing/endpoint_list.cc @@ -26,6 +26,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/pollset_set.h" @@ -38,10 +42,6 @@ #include "src/core/util/json/json.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/load_balancing/endpoint_list.h b/src/core/load_balancing/endpoint_list.h index 6a6767b67fa59..d36c606c10fc9 100644 --- a/src/core/load_balancing/endpoint_list.h +++ b/src/core/load_balancing/endpoint_list.h @@ -26,6 +26,8 @@ #include #include +#include "absl/functional/function_ref.h" +#include "absl/status/status.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/resolved_address.h" #include "src/core/load_balancing/lb_policy.h" @@ -36,8 +38,6 @@ #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/work_serializer.h" -#include "absl/functional/function_ref.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/src/core/load_balancing/grpclb/client_load_reporting_filter.h b/src/core/load_balancing/grpclb/client_load_reporting_filter.h index 4f7b26d77bd10..aecab0e101b0c 100644 --- a/src/core/load_balancing/grpclb/client_load_reporting_filter.h +++ b/src/core/load_balancing/grpclb/client_load_reporting_filter.h @@ -21,13 +21,13 @@ #include +#include "absl/status/statusor.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/promise_based_filter.h" #include "src/core/lib/promise/arena_promise.h" #include "src/core/lib/transport/transport.h" #include "src/core/load_balancing/grpclb/grpclb_client_stats.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/load_balancing/grpclb/grpclb.cc b/src/core/load_balancing/grpclb/grpclb.cc index 23219691efc27..714538504485e 100644 --- a/src/core/load_balancing/grpclb/grpclb.cc +++ b/src/core/load_balancing/grpclb/grpclb.cc @@ -80,6 +80,17 @@ #include #include +#include "absl/container/inlined_vector.h" +#include "absl/functional/function_ref.h" +#include "absl/log/check.h" +#include "absl/log/globals.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/channelz/channelz.h" #include "src/core/client_channel/client_channel_filter.h" @@ -129,17 +140,6 @@ #include "src/core/util/useful.h" #include "src/core/util/validation_errors.h" #include "src/core/util/work_serializer.h" -#include "absl/container/inlined_vector.h" -#include "absl/functional/function_ref.h" -#include "absl/log/check.h" -#include "absl/log/globals.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" #include "upb/mem/arena.hpp" #define GRPC_GRPCLB_INITIAL_CONNECT_BACKOFF_SECONDS 1 diff --git a/src/core/load_balancing/grpclb/grpclb_client_stats.h b/src/core/load_balancing/grpclb/grpclb_client_stats.h index 6bd2309dabd74..332f942fe524e 100644 --- a/src/core/load_balancing/grpclb/grpclb_client_stats.h +++ b/src/core/load_balancing/grpclb/grpclb_client_stats.h @@ -26,11 +26,11 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/inlined_vector.h" #include "src/core/util/memory.h" #include "src/core/util/ref_counted.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/inlined_vector.h" namespace grpc_core { diff --git a/src/core/load_balancing/grpclb/load_balancer_api.cc b/src/core/load_balancing/grpclb/load_balancer_api.cc index e37f78c9758f1..6fd1eafd9ff64 100644 --- a/src/core/load_balancing/grpclb/load_balancer_api.cc +++ b/src/core/load_balancing/grpclb/load_balancer_api.cc @@ -24,10 +24,10 @@ #include +#include "absl/log/log.h" #include "google/protobuf/duration.upb.h" #include "google/protobuf/timestamp.upb.h" #include "src/core/util/memory.h" -#include "absl/log/log.h" #include "src/proto/grpc/lb/v1/load_balancer.upb.h" #include "upb/base/string_view.h" diff --git a/src/core/load_balancing/grpclb/load_balancer_api.h b/src/core/load_balancing/grpclb/load_balancer_api.h index 779a3aca8b2bf..c2aa2db7713ca 100644 --- a/src/core/load_balancing/grpclb/load_balancer_api.h +++ b/src/core/load_balancing/grpclb/load_balancer_api.h @@ -24,9 +24,9 @@ #include +#include "absl/strings/string_view.h" #include "src/core/load_balancing/grpclb/grpclb_client_stats.h" #include "src/core/util/time.h" -#include "absl/strings/string_view.h" #include "upb/mem/arena.h" #define GRPC_GRPCLB_SERVICE_NAME_MAX_LENGTH 128 diff --git a/src/core/load_balancing/health_check_client.cc b/src/core/load_balancing/health_check_client.cc index 1c51fc5d27c97..e1bb7b2fbe348 100644 --- a/src/core/load_balancing/health_check_client.cc +++ b/src/core/load_balancing/health_check_client.cc @@ -30,6 +30,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/channelz/channel_trace.h" #include "src/core/client_channel/client_channel_internal.h" #include "src/core/client_channel/subchannel.h" @@ -51,12 +57,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" #include "src/core/util/work_serializer.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" #include "src/proto/grpc/health/v1/health.upb.h" #include "upb/base/string_view.h" #include "upb/mem/arena.hpp" diff --git a/src/core/load_balancing/health_check_client_internal.h b/src/core/load_balancing/health_check_client_internal.h index fc6a6de460abd..ccb2aa22fb999 100644 --- a/src/core/load_balancing/health_check_client_internal.h +++ b/src/core/load_balancing/health_check_client_internal.h @@ -27,6 +27,9 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/client_channel/subchannel.h" #include "src/core/client_channel/subchannel_interface_internal.h" #include "src/core/client_channel/subchannel_stream_client.h" @@ -38,9 +41,6 @@ #include "src/core/util/sync.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/work_serializer.h" -#include "absl/base/thread_annotations.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/lb_policy.h b/src/core/load_balancing/lb_policy.h index 34f7c52b01c78..d1f508e9e56da 100644 --- a/src/core/load_balancing/lb_policy.h +++ b/src/core/load_balancing/lb_policy.h @@ -31,6 +31,11 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/inlined_vector.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/iomgr_fwd.h" @@ -46,11 +51,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" #include "src/core/util/work_serializer.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/inlined_vector.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/lb_policy_factory.h b/src/core/load_balancing/lb_policy_factory.h index d1855a4531804..c8b710b1247c9 100644 --- a/src/core/load_balancing/lb_policy_factory.h +++ b/src/core/load_balancing/lb_policy_factory.h @@ -19,12 +19,12 @@ #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/load_balancing/lb_policy.h" #include "src/core/util/json/json.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/lb_policy_registry.cc b/src/core/load_balancing/lb_policy_registry.cc index 31ab0ac106fab..20ef3a110117e 100644 --- a/src/core/load_balancing/lb_policy_registry.cc +++ b/src/core/load_balancing/lb_policy_registry.cc @@ -25,7 +25,6 @@ #include #include -#include "src/core/load_balancing/lb_policy.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" @@ -33,6 +32,7 @@ #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" #include "absl/strings/string_view.h" +#include "src/core/load_balancing/lb_policy.h" namespace grpc_core { diff --git a/src/core/load_balancing/lb_policy_registry.h b/src/core/load_balancing/lb_policy_registry.h index 0304f04bbf608..86bc7ccd2eb47 100644 --- a/src/core/load_balancing/lb_policy_registry.h +++ b/src/core/load_balancing/lb_policy_registry.h @@ -22,13 +22,13 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/load_balancing/lb_policy.h" #include "src/core/load_balancing/lb_policy_factory.h" #include "src/core/util/json/json.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/oob_backend_metric.cc b/src/core/load_balancing/oob_backend_metric.cc index fac1d69cc8ca0..4b29bd2584768 100644 --- a/src/core/load_balancing/oob_backend_metric.cc +++ b/src/core/load_balancing/oob_backend_metric.cc @@ -29,6 +29,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "google/protobuf/duration.upb.h" #include "src/core/channelz/channel_trace.h" #include "src/core/client_channel/subchannel.h" @@ -48,12 +52,8 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" -#include "xds/service/orca/v3/orca.upb.h" #include "upb/mem/arena.hpp" +#include "xds/service/orca/v3/orca.upb.h" namespace grpc_core { diff --git a/src/core/load_balancing/oob_backend_metric_internal.h b/src/core/load_balancing/oob_backend_metric_internal.h index 37ac64a39b945..647f45d7eaa32 100644 --- a/src/core/load_balancing/oob_backend_metric_internal.h +++ b/src/core/load_balancing/oob_backend_metric_internal.h @@ -24,6 +24,8 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/strings/string_view.h" #include "src/core/client_channel/subchannel.h" #include "src/core/client_channel/subchannel_interface_internal.h" #include "src/core/client_channel/subchannel_stream_client.h" @@ -34,8 +36,6 @@ #include "src/core/util/sync.h" #include "src/core/util/time.h" #include "src/core/util/unique_type_name.h" -#include "absl/base/thread_annotations.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/outlier_detection/outlier_detection.cc b/src/core/load_balancing/outlier_detection/outlier_detection.cc index 76776f460fc5f..bf66f392dfe33 100644 --- a/src/core/load_balancing/outlier_detection/outlier_detection.cc +++ b/src/core/load_balancing/outlier_detection/outlier_detection.cc @@ -34,6 +34,14 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/meta/type_traits.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/client_channel/subchannel_interface_internal.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/address_utils/sockaddr_utils.h" @@ -63,14 +71,6 @@ #include "src/core/util/unique_type_name.h" #include "src/core/util/validation_errors.h" #include "src/core/util/work_serializer.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/meta/type_traits.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/pick_first/pick_first.cc b/src/core/load_balancing/pick_first/pick_first.cc index 11b282b706f32..63ab187bbf407 100644 --- a/src/core/load_balancing/pick_first/pick_first.cc +++ b/src/core/load_balancing/pick_first/pick_first.cc @@ -31,6 +31,14 @@ #include #include +#include "absl/algorithm/container.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/channel/channel_args.h" @@ -57,14 +65,6 @@ #include "src/core/util/time.h" #include "src/core/util/useful.h" #include "src/core/util/work_serializer.h" -#include "absl/algorithm/container.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/priority/priority.cc b/src/core/load_balancing/priority/priority.cc index 0efa24b5849a3..83bb952598107 100644 --- a/src/core/load_balancing/priority/priority.cc +++ b/src/core/load_balancing/priority/priority.cc @@ -30,6 +30,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" @@ -53,13 +60,6 @@ #include "src/core/util/time.h" #include "src/core/util/validation_errors.h" #include "src/core/util/work_serializer.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/ring_hash/ring_hash.cc b/src/core/load_balancing/ring_hash/ring_hash.cc index 3591950ba950e..8c2e33e8a220b 100644 --- a/src/core/load_balancing/ring_hash/ring_hash.cc +++ b/src/core/load_balancing/ring_hash/ring_hash.cc @@ -32,6 +32,15 @@ #include #include +#include "absl/base/attributes.h" +#include "absl/container/inlined_vector.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/client_channel/client_channel_internal.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/address_utils/sockaddr_utils.h" @@ -60,15 +69,6 @@ #include "src/core/util/unique_type_name.h" #include "src/core/util/work_serializer.h" #include "src/core/util/xxhash_inline.h" -#include "absl/base/attributes.h" -#include "absl/container/inlined_vector.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/rls/rls.cc b/src/core/load_balancing/rls/rls.cc index 9a9ed1cf1a2e8..53ff7ed7a7e74 100644 --- a/src/core/load_balancing/rls/rls.cc +++ b/src/core/load_balancing/rls/rls.cc @@ -51,6 +51,17 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/hash/hash.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" #include "src/core/channelz/channelz.h" #include "src/core/client_channel/client_channel_filter.h" #include "src/core/config/core_configuration.h" @@ -94,17 +105,6 @@ #include "src/core/util/uuid_v4.h" #include "src/core/util/validation_errors.h" #include "src/core/util/work_serializer.h" -#include "absl/base/thread_annotations.h" -#include "absl/hash/hash.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" #include "src/proto/grpc/lookup/v1/rls.upb.h" #include "upb/base/string_view.h" #include "upb/mem/arena.hpp" diff --git a/src/core/load_balancing/round_robin/round_robin.cc b/src/core/load_balancing/round_robin/round_robin.cc index e035c48456941..5f54b870d2323 100644 --- a/src/core/load_balancing/round_robin/round_robin.cc +++ b/src/core/load_balancing/round_robin/round_robin.cc @@ -27,6 +27,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/meta/type_traits.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" @@ -41,14 +49,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/shared_bit_gen.h" #include "src/core/util/work_serializer.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/meta/type_traits.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/subchannel_interface.h b/src/core/load_balancing/subchannel_interface.h index 4af6ffb0efddd..0042a9f0ea251 100644 --- a/src/core/load_balancing/subchannel_interface.h +++ b/src/core/load_balancing/subchannel_interface.h @@ -23,11 +23,11 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/lib/iomgr/iomgr_fwd.h" #include "src/core/util/dual_ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/weighted_round_robin/weighted_round_robin.cc b/src/core/load_balancing/weighted_round_robin/weighted_round_robin.cc index 9f5eca5041b9b..a458bc8041f58 100644 --- a/src/core/load_balancing/weighted_round_robin/weighted_round_robin.cc +++ b/src/core/load_balancing/weighted_round_robin/weighted_round_robin.cc @@ -32,6 +32,16 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/meta/type_traits.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" @@ -63,16 +73,6 @@ #include "src/core/util/time.h" #include "src/core/util/validation_errors.h" #include "src/core/util/work_serializer.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/meta/type_traits.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/weighted_target/weighted_target.cc b/src/core/load_balancing/weighted_target/weighted_target.cc index d19824ee40a71..0c94c91e3ffa6 100644 --- a/src/core/load_balancing/weighted_target/weighted_target.cc +++ b/src/core/load_balancing/weighted_target/weighted_target.cc @@ -30,6 +30,16 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/meta/type_traits.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" @@ -54,16 +64,6 @@ #include "src/core/util/time.h" #include "src/core/util/validation_errors.h" #include "src/core/util/work_serializer.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/meta/type_traits.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" // IWYU pragma: no_include diff --git a/src/core/load_balancing/xds/cds.cc b/src/core/load_balancing/xds/cds.cc index 25c684ec5c5c4..cbdd0db6bdf7d 100644 --- a/src/core/load_balancing/xds/cds.cc +++ b/src/core/load_balancing/xds/cds.cc @@ -30,6 +30,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" @@ -57,12 +63,6 @@ #include "src/core/xds/grpc/xds_cluster.h" #include "src/core/xds/grpc/xds_common_types.h" #include "src/core/xds/grpc/xds_health_status.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/xds/xds_cluster_impl.cc b/src/core/load_balancing/xds/xds_cluster_impl.cc index f0cb6a3f3d8f3..45edef70d103c 100644 --- a/src/core/load_balancing/xds/xds_cluster_impl.cc +++ b/src/core/load_balancing/xds/xds_cluster_impl.cc @@ -28,6 +28,13 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/client_channel/client_channel_internal.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/transport/xds/xds_credentials.h" @@ -65,13 +72,6 @@ #include "src/core/xds/xds_client/xds_bootstrap.h" #include "src/core/xds/xds_client/xds_client.h" #include "src/core/xds/xds_client/xds_locality.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/xds/xds_cluster_manager.cc b/src/core/load_balancing/xds/xds_cluster_manager.cc index 4332e7a6b7bbd..5f91209fe898b 100644 --- a/src/core/load_balancing/xds/xds_cluster_manager.cc +++ b/src/core/load_balancing/xds/xds_cluster_manager.cc @@ -29,6 +29,12 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" #include "src/core/client_channel/client_channel_internal.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" @@ -52,12 +58,6 @@ #include "src/core/util/time.h" #include "src/core/util/validation_errors.h" #include "src/core/util/work_serializer.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/xds/xds_override_host.cc b/src/core/load_balancing/xds/xds_override_host.cc index b06c1a1273649..12b4e4831292d 100644 --- a/src/core/load_balancing/xds/xds_override_host.cc +++ b/src/core/load_balancing/xds/xds_override_host.cc @@ -34,6 +34,17 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/functional/function_ref.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" +#include "absl/types/span.h" #include "src/core/client_channel/client_channel_internal.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/filters/stateful_session/stateful_session_filter.h" @@ -69,17 +80,6 @@ #include "src/core/util/validation_errors.h" #include "src/core/util/work_serializer.h" #include "src/core/xds/grpc/xds_health_status.h" -#include "absl/base/thread_annotations.h" -#include "absl/functional/function_ref.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" -#include "absl/types/span.h" namespace grpc_core { diff --git a/src/core/load_balancing/xds/xds_override_host.h b/src/core/load_balancing/xds/xds_override_host.h index 22b1eea7d3e61..55317bd4756b0 100644 --- a/src/core/load_balancing/xds/xds_override_host.h +++ b/src/core/load_balancing/xds/xds_override_host.h @@ -19,13 +19,13 @@ #include +#include "absl/strings/string_view.h" #include "src/core/load_balancing/lb_policy.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_args.h" #include "src/core/util/json/json_object_loader.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/validation_errors.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/load_balancing/xds/xds_wrr_locality.cc b/src/core/load_balancing/xds/xds_wrr_locality.cc index 100b4765a537e..25c4f95fdb55f 100644 --- a/src/core/load_balancing/xds/xds_wrr_locality.cc +++ b/src/core/load_balancing/xds/xds_wrr_locality.cc @@ -25,6 +25,11 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" @@ -45,11 +50,6 @@ #include "src/core/util/ref_counted_string.h" #include "src/core/util/validation_errors.h" #include "src/core/xds/xds_client/xds_locality.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/resolver/dns/c_ares/dns_resolver_ares.cc b/src/core/resolver/dns/c_ares/dns_resolver_ares.cc index 55c740381e698..8e1ab42584b1e 100644 --- a/src/core/resolver/dns/c_ares/dns_resolver_ares.cc +++ b/src/core/resolver/dns/c_ares/dns_resolver_ares.cc @@ -27,6 +27,13 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/match.h" +#include "absl/strings/string_view.h" +#include "absl/strings/strip.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/closure.h" @@ -45,18 +52,12 @@ #include "src/core/util/sync.h" #include "src/core/util/time.h" #include "src/core/util/uri.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/match.h" -#include "absl/strings/string_view.h" -#include "absl/strings/strip.h" #if GRPC_ARES == 1 #include +#include "absl/strings/str_cat.h" #include "src/core/config/config_vars.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/resolve_address.h" @@ -67,7 +68,6 @@ #include "src/core/resolver/polling_resolver.h" #include "src/core/service_config/service_config_impl.h" #include "src/core/util/backoff.h" -#include "absl/strings/str_cat.h" #define GRPC_DNS_INITIAL_CONNECT_BACKOFF_SECONDS 1 #define GRPC_DNS_RECONNECT_BACKOFF_MULTIPLIER 1.6 diff --git a/src/core/resolver/dns/c_ares/dns_resolver_ares.h b/src/core/resolver/dns/c_ares/dns_resolver_ares.h index d9ebe9675c927..ad37e610a872c 100644 --- a/src/core/resolver/dns/c_ares/dns_resolver_ares.h +++ b/src/core/resolver/dns/c_ares/dns_resolver_ares.h @@ -16,8 +16,8 @@ #include -#include "src/core/config/core_configuration.h" #include "absl/strings/string_view.h" +#include "src/core/config/core_configuration.h" namespace grpc_core { diff --git a/src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h b/src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h index 0f1297ad14403..eeaeddf0cdf2c 100644 --- a/src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h +++ b/src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h @@ -24,12 +24,12 @@ #include +#include "absl/base/thread_annotations.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/iomgr_fwd.h" #include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" namespace grpc_core { diff --git a/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc b/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc index 83585c3133f02..7341ffba63938 100644 --- a/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +++ b/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc @@ -34,6 +34,9 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/ev_posix.h" @@ -42,9 +45,6 @@ #include "src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h" #include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc b/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc index a2f36ba31f622..f30826bbb43dc 100644 --- a/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +++ b/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc @@ -31,6 +31,9 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/strings/str_format.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/iomgr/iocp_windows.h" #include "src/core/lib/iomgr/sockaddr_windows.h" @@ -43,9 +46,6 @@ #include "src/core/util/crash.h" #include "src/core/util/memory.h" #include "src/core/util/string.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/strings/str_format.h" // TODO(apolcyn): remove this hack after fixing upstream. // Our grpc/c-ares code on Windows uses the ares_set_socket_functions API, diff --git a/src/core/resolver/dns/c_ares/grpc_ares_wrapper.cc b/src/core/resolver/dns/c_ares/grpc_ares_wrapper.cc index a4f8cd49c0852..cad4cfa1918fc 100644 --- a/src/core/resolver/dns/c_ares/grpc_ares_wrapper.cc +++ b/src/core/resolver/dns/c_ares/grpc_ares_wrapper.cc @@ -22,9 +22,9 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/lib/iomgr/sockaddr.h" #include "src/core/util/status_helper.h" -#include "absl/strings/string_view.h" // IWYU pragma: no_include // IWYU pragma: no_include @@ -47,6 +47,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/channel/channel_args.h" @@ -61,12 +67,6 @@ #include "src/core/util/host_port.h" #include "src/core/util/string.h" #include "src/core/util/time.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" using grpc_core::EndpointAddresses; using grpc_core::EndpointAddressesList; diff --git a/src/core/resolver/dns/c_ares/grpc_ares_wrapper.h b/src/core/resolver/dns/c_ares/grpc_ares_wrapper.h index a9ba64b1c559d..7ceae3da27f8a 100644 --- a/src/core/resolver/dns/c_ares/grpc_ares_wrapper.h +++ b/src/core/resolver/dns/c_ares/grpc_ares_wrapper.h @@ -25,14 +25,14 @@ #include +#include "absl/base/thread_annotations.h" +#include "absl/log/log.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/iomgr_fwd.h" #include "src/core/resolver/endpoint_addresses.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/log.h" #if GRPC_ARES == 1 diff --git a/src/core/resolver/dns/dns_resolver_plugin.cc b/src/core/resolver/dns/dns_resolver_plugin.cc index d3d2d0b719e6e..92fff39943fcc 100644 --- a/src/core/resolver/dns/dns_resolver_plugin.cc +++ b/src/core/resolver/dns/dns_resolver_plugin.cc @@ -17,6 +17,8 @@ #include +#include "absl/log/log.h" +#include "absl/strings/match.h" #include "src/core/config/config_vars.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/resolver/dns/c_ares/dns_resolver_ares.h" @@ -24,8 +26,6 @@ #include "src/core/resolver/dns/native/dns_resolver.h" #include "src/core/resolver/resolver_factory.h" #include "src/core/util/crash.h" -#include "absl/log/log.h" -#include "absl/strings/match.h" namespace grpc_core { diff --git a/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.cc b/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.cc index d98e29ad6321a..0458781078a0e 100644 --- a/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.cc +++ b/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.cc @@ -27,6 +27,15 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/cleanup/cleanup.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/strip.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/event_engine/resolved_address_internal.h" @@ -46,15 +55,6 @@ #include "src/core/util/sync.h" #include "src/core/util/time.h" #include "src/core/util/validation_errors.h" -#include "absl/base/thread_annotations.h" -#include "absl/cleanup/cleanup.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/strip.h" // IWYU pragma: no_include diff --git a/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.h b/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.h index acc86672e4164..1a4fb852856b6 100644 --- a/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.h +++ b/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.h @@ -15,11 +15,11 @@ #define GRPC_SRC_CORE_RESOLVER_DNS_EVENT_ENGINE_EVENT_ENGINE_CLIENT_CHANNEL_RESOLVER_H #include +#include "absl/strings/string_view.h" #include "src/core/resolver/resolver.h" #include "src/core/resolver/resolver_factory.h" #include "src/core/util/orphanable.h" #include "src/core/util/uri.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/resolver/dns/event_engine/service_config_helper.cc b/src/core/resolver/dns/event_engine/service_config_helper.cc index f8f7fc7ee9128..068ff200292f9 100644 --- a/src/core/resolver/dns/event_engine/service_config_helper.cc +++ b/src/core/resolver/dns/event_engine/service_config_helper.cc @@ -19,6 +19,8 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/util/gethostname.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_args.h" @@ -26,8 +28,6 @@ #include "src/core/util/json/json_reader.h" #include "src/core/util/json/json_writer.h" #include "src/core/util/status_helper.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/resolver/dns/native/dns_resolver.cc b/src/core/resolver/dns/native/dns_resolver.cc index 5b280d0b60dc6..97012d43401ad 100644 --- a/src/core/resolver/dns/native/dns_resolver.cc +++ b/src/core/resolver/dns/native/dns_resolver.cc @@ -23,6 +23,13 @@ #include #include +#include "absl/functional/bind_front.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "absl/strings/strip.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" @@ -38,13 +45,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" #include "src/core/util/uri.h" -#include "absl/functional/bind_front.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" -#include "absl/strings/strip.h" #define GRPC_DNS_INITIAL_CONNECT_BACKOFF_SECONDS 1 #define GRPC_DNS_RECONNECT_BACKOFF_MULTIPLIER 1.6 diff --git a/src/core/resolver/endpoint_addresses.cc b/src/core/resolver/endpoint_addresses.cc index cd1a93caded54..aa5f46e3abdbc 100644 --- a/src/core/resolver/endpoint_addresses.cc +++ b/src/core/resolver/endpoint_addresses.cc @@ -25,14 +25,14 @@ #include #include -#include "src/core/lib/address_utils/sockaddr_utils.h" -#include "src/core/lib/channel/channel_args.h" -#include "src/core/util/useful.h" #include "absl/log/check.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" +#include "src/core/lib/address_utils/sockaddr_utils.h" +#include "src/core/lib/channel/channel_args.h" +#include "src/core/util/useful.h" // IWYU pragma: no_include diff --git a/src/core/resolver/endpoint_addresses.h b/src/core/resolver/endpoint_addresses.h index 9fa08b9122ff9..bd5c0091be164 100644 --- a/src/core/resolver/endpoint_addresses.h +++ b/src/core/resolver/endpoint_addresses.h @@ -26,9 +26,9 @@ #include #include +#include "absl/functional/function_ref.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/resolved_address.h" -#include "absl/functional/function_ref.h" // A channel arg key prefix used for args that are intended to be used // only internally to resolvers and LB policies and should not be part diff --git a/src/core/resolver/fake/fake_resolver.cc b/src/core/resolver/fake/fake_resolver.cc index d96dc9547eee3..68348d1ce09b7 100644 --- a/src/core/resolver/fake/fake_resolver.cc +++ b/src/core/resolver/fake/fake_resolver.cc @@ -25,6 +25,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/resolver/resolver_factory.h" @@ -33,8 +35,6 @@ #include "src/core/util/uri.h" #include "src/core/util/useful.h" #include "src/core/util/work_serializer.h" -#include "absl/log/check.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/resolver/fake/fake_resolver.h b/src/core/resolver/fake/fake_resolver.h index 216adb49df8fe..d99248f36f736 100644 --- a/src/core/resolver/fake/fake_resolver.h +++ b/src/core/resolver/fake/fake_resolver.h @@ -23,15 +23,15 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/strings/string_view.h" +#include "absl/time/time.h" #include "src/core/resolver/resolver.h" #include "src/core/util/notification.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" #include "src/core/util/useful.h" -#include "absl/base/thread_annotations.h" -#include "absl/strings/string_view.h" -#include "absl/time/time.h" #define GRPC_ARG_FAKE_RESOLVER_RESPONSE_GENERATOR \ "grpc.fake_resolver.response_generator" diff --git a/src/core/resolver/google_c2p/google_c2p_resolver.cc b/src/core/resolver/google_c2p/google_c2p_resolver.cc index 11594f39d8f2b..5fa6c8664b936 100644 --- a/src/core/resolver/google_c2p/google_c2p_resolver.cc +++ b/src/core/resolver/google_c2p/google_c2p_resolver.cc @@ -25,6 +25,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "absl/strings/strip.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/transport/alts/check_gcp_environment.h" #include "src/core/lib/channel/channel_args.h" @@ -45,12 +51,6 @@ #include "src/core/util/work_serializer.h" #include "src/core/xds/grpc/xds_client_grpc.h" #include "src/core/xds/xds_client/xds_bootstrap.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" -#include "absl/strings/strip.h" namespace grpc_core { diff --git a/src/core/resolver/polling_resolver.cc b/src/core/resolver/polling_resolver.cc index f9fdfea882cfa..1ace2198dc4d0 100644 --- a/src/core/resolver/polling_resolver.cc +++ b/src/core/resolver/polling_resolver.cc @@ -24,6 +24,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/strip.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/resolver/endpoint_addresses.h" @@ -33,12 +39,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/uri.h" #include "src/core/util/work_serializer.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/strip.h" namespace grpc_core { diff --git a/src/core/resolver/polling_resolver.h b/src/core/resolver/polling_resolver.h index b93609dbaa3f4..e0197265008a3 100644 --- a/src/core/resolver/polling_resolver.h +++ b/src/core/resolver/polling_resolver.h @@ -24,6 +24,7 @@ #include #include +#include "absl/status/status.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/iomgr_fwd.h" @@ -33,7 +34,6 @@ #include "src/core/util/orphanable.h" #include "src/core/util/time.h" #include "src/core/util/work_serializer.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/src/core/resolver/resolver.h b/src/core/resolver/resolver.h index 8518914ffda2a..5cabc99b270c5 100644 --- a/src/core/resolver/resolver.h +++ b/src/core/resolver/resolver.h @@ -22,6 +22,8 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" #include "src/core/resolver/endpoint_addresses.h" @@ -29,8 +31,6 @@ #include "src/core/service_config/service_config.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/resolver/resolver_factory.h b/src/core/resolver/resolver_factory.h index 56ff203f3bc25..41df42060fcec 100644 --- a/src/core/resolver/resolver_factory.h +++ b/src/core/resolver/resolver_factory.h @@ -22,13 +22,13 @@ #include #include +#include "absl/strings/string_view.h" +#include "absl/strings/strip.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/iomgr_fwd.h" #include "src/core/resolver/resolver.h" #include "src/core/util/orphanable.h" #include "src/core/util/uri.h" -#include "absl/strings/string_view.h" -#include "absl/strings/strip.h" namespace grpc_core { diff --git a/src/core/resolver/resolver_registry.h b/src/core/resolver/resolver_registry.h index 1d5ca1b2388f0..c25f2524578ba 100644 --- a/src/core/resolver/resolver_registry.h +++ b/src/core/resolver/resolver_registry.h @@ -24,13 +24,13 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/iomgr_fwd.h" #include "src/core/resolver/resolver.h" #include "src/core/resolver/resolver_factory.h" #include "src/core/util/orphanable.h" #include "src/core/util/uri.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/resolver/sockaddr/sockaddr_resolver.cc b/src/core/resolver/sockaddr/sockaddr_resolver.cc index 1ae660b1d42bd..0e433d29ad051 100644 --- a/src/core/resolver/sockaddr/sockaddr_resolver.cc +++ b/src/core/resolver/sockaddr/sockaddr_resolver.cc @@ -21,6 +21,10 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/channel/channel_args.h" @@ -31,10 +35,6 @@ #include "src/core/resolver/resolver_factory.h" #include "src/core/util/orphanable.h" #include "src/core/util/uri.h" -#include "absl/log/log.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/resolver/xds/xds_config.cc b/src/core/resolver/xds/xds_config.cc index 3f685107ee2a9..b055572ac00c6 100644 --- a/src/core/resolver/xds/xds_config.cc +++ b/src/core/resolver/xds/xds_config.cc @@ -21,9 +21,9 @@ #include #include -#include "src/core/util/match.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" +#include "src/core/util/match.h" namespace grpc_core { diff --git a/src/core/resolver/xds/xds_config.h b/src/core/resolver/xds/xds_config.h index a5c57ac824e09..55c37620bef52 100644 --- a/src/core/resolver/xds/xds_config.h +++ b/src/core/resolver/xds/xds_config.h @@ -23,14 +23,14 @@ #include #include +#include "absl/container/flat_hash_map.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/util/ref_counted.h" #include "src/core/xds/grpc/xds_cluster.h" #include "src/core/xds/grpc/xds_endpoint.h" #include "src/core/xds/grpc/xds_listener.h" #include "src/core/xds/grpc/xds_route_config.h" -#include "absl/container/flat_hash_map.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/resolver/xds/xds_dependency_manager.cc b/src/core/resolver/xds/xds_dependency_manager.cc index 87cdb57a6d5fa..3257dd20d0571 100644 --- a/src/core/resolver/xds/xds_dependency_manager.cc +++ b/src/core/resolver/xds/xds_dependency_manager.cc @@ -18,6 +18,9 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_join.h" #include "src/core/config/core_configuration.h" #include "src/core/load_balancing/xds/xds_channel_args.h" #include "src/core/resolver/fake/fake_resolver.h" @@ -27,9 +30,6 @@ #include "src/core/xds/grpc/xds_listener_parser.h" #include "src/core/xds/grpc/xds_route_config_parser.h" #include "src/core/xds/grpc/xds_routing.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_join.h" namespace grpc_core { diff --git a/src/core/resolver/xds/xds_dependency_manager.h b/src/core/resolver/xds/xds_dependency_manager.h index be042b1338899..16f76feeba42f 100644 --- a/src/core/resolver/xds/xds_dependency_manager.h +++ b/src/core/resolver/xds/xds_dependency_manager.h @@ -17,6 +17,9 @@ #ifndef GRPC_SRC_CORE_RESOLVER_XDS_XDS_DEPENDENCY_MANAGER_H #define GRPC_SRC_CORE_RESOLVER_XDS_XDS_DEPENDENCY_MANAGER_H +#include "absl/container/flat_hash_map.h" +#include "absl/container/flat_hash_set.h" +#include "absl/strings/string_view.h" #include "src/core/resolver/resolver.h" #include "src/core/resolver/xds/xds_config.h" #include "src/core/util/ref_counted.h" @@ -25,9 +28,6 @@ #include "src/core/xds/grpc/xds_endpoint.h" #include "src/core/xds/grpc/xds_listener.h" #include "src/core/xds/grpc/xds_route_config.h" -#include "absl/container/flat_hash_map.h" -#include "absl/container/flat_hash_set.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/resolver/xds/xds_resolver.cc b/src/core/resolver/xds/xds_resolver.cc index d2572c3081512..3682c2c8a0942 100644 --- a/src/core/resolver/xds/xds_resolver.cc +++ b/src/core/resolver/xds/xds_resolver.cc @@ -32,6 +32,20 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/meta/type_traits.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "absl/strings/str_replace.h" +#include "absl/strings/string_view.h" +#include "absl/strings/strip.h" +#include "re2/re2.h" #include "src/core/call/metadata_batch.h" #include "src/core/call/status_util.h" #include "src/core/client_channel/client_channel_internal.h" @@ -76,20 +90,6 @@ #include "src/core/xds/grpc/xds_route_config.h" #include "src/core/xds/grpc/xds_routing.h" #include "src/core/xds/xds_client/xds_bootstrap.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/meta/type_traits.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "absl/strings/str_replace.h" -#include "absl/strings/string_view.h" -#include "absl/strings/strip.h" -#include "re2/re2.h" namespace grpc_core { diff --git a/src/core/resolver/xds/xds_resolver_attributes.h b/src/core/resolver/xds/xds_resolver_attributes.h index ac0b801fa1b9b..c0d2795afe4cb 100644 --- a/src/core/resolver/xds/xds_resolver_attributes.h +++ b/src/core/resolver/xds/xds_resolver_attributes.h @@ -19,10 +19,10 @@ #include +#include "absl/strings/string_view.h" #include "src/core/service_config/service_config_call_data.h" #include "src/core/util/unique_type_name.h" #include "src/core/xds/grpc/xds_route_config.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/server/server.cc b/src/core/server/server.cc index c194970e5dc49..96ea65e4197de 100644 --- a/src/core/server/server.cc +++ b/src/core/server/server.cc @@ -39,6 +39,11 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/container/flat_hash_map.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" #include "src/core/call/interception_chain.h" #include "src/core/call/server_call.h" #include "src/core/channelz/channel_trace.h" @@ -79,11 +84,6 @@ #include "src/core/util/shared_bit_gen.h" #include "src/core/util/status_helper.h" #include "src/core/util/useful.h" -#include "absl/cleanup/cleanup.h" -#include "absl/container/flat_hash_map.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/src/core/server/server.h b/src/core/server/server.h index 1fc424abe626f..f09b8ce77d97b 100644 --- a/src/core/server/server.h +++ b/src/core/server/server.h @@ -36,6 +36,13 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/flat_hash_map.h" +#include "absl/container/flat_hash_set.h" +#include "absl/hash/hash.h" +#include "absl/random/random.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/channelz/channelz.h" #include "src/core/lib/channel/channel_args.h" @@ -63,13 +70,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/flat_hash_map.h" -#include "absl/container/flat_hash_set.h" -#include "absl/hash/hash.h" -#include "absl/random/random.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" #define GRPC_ARG_SERVER_MAX_PENDING_REQUESTS "grpc.server.max_pending_requests" #define GRPC_ARG_SERVER_MAX_PENDING_REQUESTS_HARD_LIMIT \ diff --git a/src/core/server/server_call_tracer_filter.cc b/src/core/server/server_call_tracer_filter.cc index a147c2bcce11c..cc85a700f6539 100644 --- a/src/core/server/server_call_tracer_filter.cc +++ b/src/core/server/server_call_tracer_filter.cc @@ -22,6 +22,8 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/call/call_finalization.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" @@ -37,8 +39,6 @@ #include "src/core/lib/transport/transport.h" #include "src/core/telemetry/call_tracer.h" #include "src/core/util/latent_see.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/server/server_config_selector.h b/src/core/server/server_config_selector.h index 6ad2ef6b4161f..2379315266397 100644 --- a/src/core/server/server_config_selector.h +++ b/src/core/server/server_config_selector.h @@ -21,6 +21,8 @@ #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/service_config/service_config.h" #include "src/core/service_config/service_config_parser.h" @@ -28,8 +30,6 @@ #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/useful.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/server/server_config_selector_filter.cc b/src/core/server/server_config_selector_filter.cc index 9b4cf9cc390ea..a15aef703ef65 100644 --- a/src/core/server/server_config_selector_filter.cc +++ b/src/core/server/server_config_selector_filter.cc @@ -21,6 +21,10 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/promise_based_filter.h" @@ -37,10 +41,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/status_helper.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/server/xds_channel_stack_modifier.h b/src/core/server/xds_channel_stack_modifier.h index 7b375ddd1bfbe..11ec0f06325eb 100644 --- a/src/core/server/xds_channel_stack_modifier.h +++ b/src/core/server/xds_channel_stack_modifier.h @@ -25,12 +25,12 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/channel_stack_builder.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/useful.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/server/xds_server_config_fetcher.cc b/src/core/server/xds_server_config_fetcher.cc index 7b0898ef79103..6f62d3697f8bc 100644 --- a/src/core/server/xds_server_config_fetcher.cc +++ b/src/core/server/xds_server_config_fetcher.cc @@ -34,6 +34,17 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/match.h" +#include "absl/strings/numbers.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" +#include "absl/strings/str_replace.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_distributor.h" @@ -78,17 +89,6 @@ #include "src/core/xds/grpc/xds_route_config_parser.h" #include "src/core/xds/grpc/xds_routing.h" #include "src/core/xds/xds_client/xds_client.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/match.h" -#include "absl/strings/numbers.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" -#include "absl/strings/str_replace.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace { diff --git a/src/core/service_config/service_config.h b/src/core/service_config/service_config.h index e960596a17ab6..801205ed43e09 100644 --- a/src/core/service_config/service_config.h +++ b/src/core/service_config/service_config.h @@ -21,10 +21,10 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/service_config/service_config_parser.h" #include "src/core/util/ref_counted.h" #include "src/core/util/useful.h" -#include "absl/strings/string_view.h" // The main purpose of the code here is to parse the service config in // JSON form, which will look like this: diff --git a/src/core/service_config/service_config_channel_arg_filter.cc b/src/core/service_config/service_config_channel_arg_filter.cc index 6ce8e2436b0ca..bd51db9a968ca 100644 --- a/src/core/service_config/service_config_channel_arg_filter.cc +++ b/src/core/service_config/service_config_channel_arg_filter.cc @@ -26,6 +26,9 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/filters/message_size/message_size_filter.h" @@ -44,9 +47,6 @@ #include "src/core/service_config/service_config_parser.h" #include "src/core/util/latent_see.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/service_config/service_config_impl.cc b/src/core/service_config/service_config_impl.cc index a4174cac4f005..f77b06bde3845 100644 --- a/src/core/service_config/service_config_impl.cc +++ b/src/core/service_config/service_config_impl.cc @@ -23,6 +23,9 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/slice/slice_internal.h" @@ -34,9 +37,6 @@ #include "src/core/util/json/json_writer.h" #include "src/core/util/memory.h" #include "src/core/util/validation_errors.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/src/core/service_config/service_config_impl.h b/src/core/service_config/service_config_impl.h index 85b3e7ece903c..9d6ae2a46d34c 100644 --- a/src/core/service_config/service_config_impl.h +++ b/src/core/service_config/service_config_impl.h @@ -26,6 +26,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/service_config/service_config.h" @@ -33,9 +36,6 @@ #include "src/core/util/json/json.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/validation_errors.h" -#include "absl/log/check.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" // The main purpose of the code here is to parse the service config in // JSON form, which will look like this: diff --git a/src/core/service_config/service_config_parser.h b/src/core/service_config/service_config_parser.h index 100df51774ed4..763e7f897854e 100644 --- a/src/core/service_config/service_config_parser.h +++ b/src/core/service_config/service_config_parser.h @@ -25,10 +25,10 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/json/json.h" #include "src/core/util/validation_errors.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/telemetry/call_tracer.cc b/src/core/telemetry/call_tracer.cc index 38421b42cf54d..6014458f2754e 100644 --- a/src/core/telemetry/call_tracer.cc +++ b/src/core/telemetry/call_tracer.cc @@ -24,9 +24,9 @@ #include #include +#include "absl/log/check.h" #include "src/core/lib/promise/context.h" #include "src/core/telemetry/tcp_tracer.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/src/core/telemetry/call_tracer.h b/src/core/telemetry/call_tracer.h index ed68560447bb0..a07ae668d257d 100644 --- a/src/core/telemetry/call_tracer.h +++ b/src/core/telemetry/call_tracer.h @@ -26,6 +26,8 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/call/message.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/channel/channel_args.h" @@ -36,8 +38,6 @@ #include "src/core/lib/transport/call_final_info.h" #include "src/core/telemetry/tcp_tracer.h" #include "src/core/util/ref_counted_string.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/telemetry/metrics.cc b/src/core/telemetry/metrics.cc index 324748df97155..21a409814e3e6 100644 --- a/src/core/telemetry/metrics.cc +++ b/src/core/telemetry/metrics.cc @@ -19,8 +19,8 @@ #include #include -#include "src/core/util/crash.h" #include "absl/log/check.h" +#include "src/core/util/crash.h" namespace grpc_core { diff --git a/src/core/telemetry/metrics.h b/src/core/telemetry/metrics.h index c72d2977e3182..4d2c8acad501c 100644 --- a/src/core/telemetry/metrics.h +++ b/src/core/telemetry/metrics.h @@ -23,16 +23,16 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/functional/function_ref.h" +#include "absl/strings/string_view.h" +#include "absl/types/span.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/slice/slice.h" #include "src/core/telemetry/call_tracer.h" #include "src/core/util/no_destruct.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "absl/functional/any_invocable.h" -#include "absl/functional/function_ref.h" -#include "absl/strings/string_view.h" -#include "absl/types/span.h" namespace grpc_core { diff --git a/src/core/telemetry/stats.h b/src/core/telemetry/stats.h index 044a9c7da43e9..43ac7c4344e71 100644 --- a/src/core/telemetry/stats.h +++ b/src/core/telemetry/stats.h @@ -25,10 +25,10 @@ #include #include -#include "src/core/telemetry/histogram_view.h" -#include "src/core/telemetry/stats_data.h" #include "absl/strings/string_view.h" #include "absl/types/span.h" +#include "src/core/telemetry/histogram_view.h" +#include "src/core/telemetry/stats_data.h" namespace grpc_core { diff --git a/src/core/transport/auth_context.cc b/src/core/transport/auth_context.cc index cce7d3b4e949e..ceba020ef0fbc 100644 --- a/src/core/transport/auth_context.cc +++ b/src/core/transport/auth_context.cc @@ -25,13 +25,13 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/log/log.h" void grpc_auth_context_release(grpc_auth_context* context) { GRPC_TRACE_LOG(api, INFO) diff --git a/src/core/transport/auth_context.h b/src/core/transport/auth_context.h index df6ad0d8e4b5c..e603660042302 100644 --- a/src/core/transport/auth_context.h +++ b/src/core/transport/auth_context.h @@ -27,6 +27,7 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/lib/surface/connection_context.h" @@ -35,7 +36,6 @@ #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/useful.h" -#include "absl/strings/string_view.h" // --- grpc_auth_context --- diff --git a/src/core/tsi/alts/crypt/aes_gcm.cc b/src/core/tsi/alts/crypt/aes_gcm.cc index 5f3150d59d968..d768f85b21697 100644 --- a/src/core/tsi/alts/crypt/aes_gcm.cc +++ b/src/core/tsi/alts/crypt/aes_gcm.cc @@ -27,8 +27,8 @@ #include -#include "src/core/tsi/alts/crypt/gsec.h" #include "absl/types/span.h" +#include "src/core/tsi/alts/crypt/gsec.h" constexpr size_t kKdfKeyLen = 32; constexpr size_t kKdfCounterLen = 6; diff --git a/src/core/tsi/alts/frame_protector/alts_frame_protector.cc b/src/core/tsi/alts/frame_protector/alts_frame_protector.cc index 9cd4a60399698..534e8555465de 100644 --- a/src/core/tsi/alts/frame_protector/alts_frame_protector.cc +++ b/src/core/tsi/alts/frame_protector/alts_frame_protector.cc @@ -26,13 +26,13 @@ #include #include +#include "absl/log/log.h" +#include "absl/types/span.h" #include "src/core/tsi/alts/crypt/gsec.h" #include "src/core/tsi/alts/frame_protector/alts_crypter.h" #include "src/core/tsi/alts/frame_protector/frame_handler.h" #include "src/core/tsi/transport_security.h" #include "src/core/util/memory.h" -#include "absl/log/log.h" -#include "absl/types/span.h" constexpr size_t kMinFrameLength = 1024; constexpr size_t kDefaultFrameLength = 16 * 1024; diff --git a/src/core/tsi/alts/frame_protector/frame_handler.cc b/src/core/tsi/alts/frame_protector/frame_handler.cc index ebc15e998628d..7fcbcce34bb90 100644 --- a/src/core/tsi/alts/frame_protector/frame_handler.cc +++ b/src/core/tsi/alts/frame_protector/frame_handler.cc @@ -26,9 +26,9 @@ #include +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/core/util/memory.h" -#include "absl/log/log.h" // Use little endian to interpret a string of bytes as uint32_t. static uint32_t load_32_le(const unsigned char* buffer) { diff --git a/src/core/tsi/alts/handshaker/alts_handshaker_client.cc b/src/core/tsi/alts/handshaker/alts_handshaker_client.cc index 3b5d5a9b51225..bf74e0d297d86 100644 --- a/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +++ b/src/core/tsi/alts/handshaker/alts_handshaker_client.cc @@ -24,6 +24,9 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/numbers.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/lib/surface/call.h" #include "src/core/lib/surface/channel.h" @@ -33,9 +36,6 @@ #include "src/core/util/crash.h" #include "src/core/util/env.h" #include "src/core/util/sync.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/numbers.h" #include "upb/mem/arena.hpp" #define TSI_ALTS_INITIAL_BUFFER_SIZE 256 diff --git a/src/core/tsi/alts/handshaker/alts_shared_resource.cc b/src/core/tsi/alts/handshaker/alts_shared_resource.cc index e6b2badac49e5..ec1fe8129632f 100644 --- a/src/core/tsi/alts/handshaker/alts_shared_resource.cc +++ b/src/core/tsi/alts/handshaker/alts_shared_resource.cc @@ -20,10 +20,10 @@ #include +#include "absl/log/check.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/tsi/alts/handshaker/alts_handshaker_client.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" static alts_shared_resource_dedicated g_alts_resource_dedicated; diff --git a/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc b/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc index 67a147c36da52..038383c629979 100644 --- a/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +++ b/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc @@ -29,6 +29,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/surface/channel.h" @@ -38,8 +40,6 @@ #include "src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h" #include "src/core/util/memory.h" #include "src/core/util/sync.h" -#include "absl/log/check.h" -#include "absl/log/log.h" #include "upb/mem/arena.hpp" // Main struct for ALTS TSI handshaker. diff --git a/src/core/tsi/alts/handshaker/alts_tsi_utils.cc b/src/core/tsi/alts/handshaker/alts_tsi_utils.cc index 09529eeef8786..cc8f6dc78bd59 100644 --- a/src/core/tsi/alts/handshaker/alts_tsi_utils.cc +++ b/src/core/tsi/alts/handshaker/alts_tsi_utils.cc @@ -21,10 +21,10 @@ #include #include -#include "src/core/lib/slice/slice.h" -#include "src/core/lib/slice/slice_internal.h" #include "absl/log/check.h" #include "absl/log/log.h" +#include "src/core/lib/slice/slice.h" +#include "src/core/lib/slice/slice_internal.h" tsi_result alts_tsi_utils_convert_to_tsi_result(grpc_status_code code) { switch (code) { diff --git a/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.cc b/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.cc index 3c7b319aafd25..5bde0334f503b 100644 --- a/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.cc +++ b/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.cc @@ -22,13 +22,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.h" #include "src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" -#include "absl/log/log.h" // Main struct for alts_grpc_integrity_only_record_protocol. typedef struct alts_grpc_integrity_only_record_protocol { diff --git a/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.cc b/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.cc index 58e86fabcd4da..cc10ddb8eb487 100644 --- a/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.cc +++ b/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.cc @@ -21,12 +21,12 @@ #include #include +#include "absl/log/log.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.h" #include "src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h" #include "src/core/util/crash.h" -#include "absl/log/log.h" // Privacy-integrity alts_grpc_record_protocol object uses the same struct // defined in alts_grpc_record_protocol_common.h. diff --git a/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc b/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc index a386094bce95f..76cf72290cc99 100644 --- a/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc +++ b/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc @@ -22,12 +22,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/crash.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" const size_t kInitialIovecBufferSize = 8; diff --git a/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc b/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc index 9679d9129d207..65c3e21a801ab 100644 --- a/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc +++ b/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc @@ -25,14 +25,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/tsi/alts/crypt/gsec.h" #include "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.h" #include "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.h" #include "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol.h" #include "src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h" #include "src/core/tsi/transport_security_grpc.h" -#include "absl/log/check.h" -#include "absl/log/log.h" constexpr size_t kMinFrameLength = 1024; constexpr size_t kDefaultFrameLength = 16 * 1024; diff --git a/src/core/tsi/fake_transport_security.cc b/src/core/tsi/fake_transport_security.cc index 04db9ec616983..595a239051bf3 100644 --- a/src/core/tsi/fake_transport_security.cc +++ b/src/core/tsi/fake_transport_security.cc @@ -23,13 +23,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/tsi/transport_security_grpc.h" #include "src/core/tsi/transport_security_interface.h" #include "src/core/util/crash.h" #include "src/core/util/memory.h" -#include "absl/log/check.h" -#include "absl/log/log.h" // --- Constants. --- #define TSI_FAKE_FRAME_HEADER_SIZE 4 diff --git a/src/core/tsi/local_transport_security.cc b/src/core/tsi/local_transport_security.cc index 34e9ba78ff886..ced2ef2baa16f 100644 --- a/src/core/tsi/local_transport_security.cc +++ b/src/core/tsi/local_transport_security.cc @@ -25,10 +25,10 @@ #include #include +#include "absl/log/log.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/tsi/transport_security_grpc.h" #include "src/core/util/crash.h" -#include "absl/log/log.h" namespace { diff --git a/src/core/tsi/ssl/key_logging/ssl_key_logging.cc b/src/core/tsi/ssl/key_logging/ssl_key_logging.cc index c141f8618e41f..b0f961a41c827 100644 --- a/src/core/tsi/ssl/key_logging/ssl_key_logging.cc +++ b/src/core/tsi/ssl/key_logging/ssl_key_logging.cc @@ -18,12 +18,12 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/crash.h" #include "src/core/util/sync.h" -#include "absl/log/check.h" -#include "absl/log/log.h" using TlsSessionKeyLogger = tsi::TlsSessionKeyLoggerCache::TlsSessionKeyLogger; diff --git a/src/core/tsi/ssl/key_logging/ssl_key_logging.h b/src/core/tsi/ssl/key_logging/ssl_key_logging.h index 60b0e62e6c51b..472ddc70a09b0 100644 --- a/src/core/tsi/ssl/key_logging/ssl_key_logging.h +++ b/src/core/tsi/ssl/key_logging/ssl_key_logging.h @@ -24,10 +24,10 @@ #include #include +#include "absl/base/thread_annotations.h" #include "src/core/util/memory.h" #include "src/core/util/ref_counted.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" namespace tsi { diff --git a/src/core/tsi/ssl/session_cache/ssl_session_cache.cc b/src/core/tsi/ssl/session_cache/ssl_session_cache.cc index 6eb392cc16e94..6e107c066c51e 100644 --- a/src/core/tsi/ssl/session_cache/ssl_session_cache.cc +++ b/src/core/tsi/ssl/session_cache/ssl_session_cache.cc @@ -21,12 +21,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/tsi/ssl/session_cache/ssl_session.h" #include "src/core/util/crash.h" #include "src/core/util/sync.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace tsi { diff --git a/src/core/tsi/ssl/session_cache/ssl_session_openssl.cc b/src/core/tsi/ssl/session_cache/ssl_session_openssl.cc index b6014066915e9..f44b4cb7335ef 100644 --- a/src/core/tsi/ssl/session_cache/ssl_session_openssl.cc +++ b/src/core/tsi/ssl/session_cache/ssl_session_openssl.cc @@ -17,14 +17,14 @@ // #include +#include "absl/log/check.h" #include "src/core/tsi/ssl/session_cache/ssl_session.h" #include "src/core/util/crash.h" -#include "absl/log/check.h" #ifndef OPENSSL_IS_BORINGSSL -#include "src/core/lib/slice/slice.h" #include "absl/memory/memory.h" +#include "src/core/lib/slice/slice.h" // OpenSSL invalidates SSL_SESSION on SSL destruction making it pointless // to cache sessions. The workaround is to serialize (relatively expensive) diff --git a/src/core/tsi/ssl_transport_security.cc b/src/core/tsi/ssl_transport_security.cc index cf50627309804..f81f195a68fd9 100644 --- a/src/core/tsi/ssl_transport_security.cc +++ b/src/core/tsi/ssl_transport_security.cc @@ -55,6 +55,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/tls/grpc_tls_crl_provider.h" #include "src/core/tsi/ssl/key_logging/ssl_key_logging.h" #include "src/core/tsi/ssl/session_cache/ssl_session_cache.h" @@ -63,11 +68,6 @@ #include "src/core/tsi/transport_security.h" #include "src/core/util/crash.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" // --- Constants. --- diff --git a/src/core/tsi/ssl_transport_security.h b/src/core/tsi/ssl_transport_security.h index 869f6e3f0da9f..6a4c0ad234b72 100644 --- a/src/core/tsi/ssl_transport_security.h +++ b/src/core/tsi/ssl_transport_security.h @@ -26,10 +26,10 @@ #include +#include "absl/strings/string_view.h" #include "src/core/tsi/ssl/key_logging/ssl_key_logging.h" #include "src/core/tsi/ssl_transport_security_utils.h" #include "src/core/tsi/transport_security_interface.h" -#include "absl/strings/string_view.h" // Value for the TSI_CERTIFICATE_TYPE_PEER_PROPERTY property for X509 certs. #define TSI_X509_CERTIFICATE_TYPE "X509" diff --git a/src/core/tsi/ssl_transport_security_utils.cc b/src/core/tsi/ssl_transport_security_utils.cc index 4107a540f0cc8..5c3b828751ebc 100644 --- a/src/core/tsi/ssl_transport_security_utils.cc +++ b/src/core/tsi/ssl_transport_security_utils.cc @@ -30,11 +30,11 @@ #include #include -#include "src/core/tsi/transport_security_interface.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/status/statusor.h" +#include "src/core/tsi/transport_security_interface.h" namespace grpc_core { diff --git a/src/core/tsi/ssl_transport_security_utils.h b/src/core/tsi/ssl_transport_security_utils.h index ba25348cbe8a0..038b40dcaba68 100644 --- a/src/core/tsi/ssl_transport_security_utils.h +++ b/src/core/tsi/ssl_transport_security_utils.h @@ -24,11 +24,11 @@ #include #include -#include "src/core/tsi/ssl/key_logging/ssl_key_logging.h" -#include "src/core/tsi/transport_security_interface.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "src/core/tsi/ssl/key_logging/ssl_key_logging.h" +#include "src/core/tsi/transport_security_interface.h" namespace grpc_core { diff --git a/src/core/util/alloc.cc b/src/core/util/alloc.cc index aa11d37b34498..2ce94f9db7834 100644 --- a/src/core/util/alloc.cc +++ b/src/core/util/alloc.cc @@ -21,8 +21,8 @@ #include #include -#include "src/core/util/crash.h" #include "absl/log/check.h" +#include "src/core/util/crash.h" void* gpr_malloc(size_t size) { void* p; diff --git a/src/core/util/backoff.h b/src/core/util/backoff.h index f4e9086cc9393..0996f6a6cd532 100644 --- a/src/core/util/backoff.h +++ b/src/core/util/backoff.h @@ -19,8 +19,8 @@ #ifndef GRPC_SRC_CORE_UTIL_BACKOFF_H #define GRPC_SRC_CORE_UTIL_BACKOFF_H -#include "src/core/util/time.h" #include "absl/random/random.h" +#include "src/core/util/time.h" namespace grpc_core { diff --git a/src/core/util/chunked_vector.h b/src/core/util/chunked_vector.h index 5659f136ad263..d3a1d6ba93002 100644 --- a/src/core/util/chunked_vector.h +++ b/src/core/util/chunked_vector.h @@ -21,9 +21,9 @@ #include #include +#include "absl/log/check.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/util/manual_constructor.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/src/core/util/crash.h b/src/core/util/crash.h index d4a756b749113..ece32088903ad 100644 --- a/src/core/util/crash.h +++ b/src/core/util/crash.h @@ -17,8 +17,8 @@ #include -#include "src/core/util/debug_location.h" #include "absl/strings/string_view.h" +#include "src/core/util/debug_location.h" namespace grpc_core { diff --git a/src/core/util/dual_ref_counted.h b/src/core/util/dual_ref_counted.h index 2d6a6a6015ba0..4742c62bc2c6c 100644 --- a/src/core/util/dual_ref_counted.h +++ b/src/core/util/dual_ref_counted.h @@ -22,13 +22,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/util/debug_location.h" #include "src/core/util/down_cast.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/src/core/util/event_log.h b/src/core/util/event_log.h index 542c557ed35da..47254348db5e7 100644 --- a/src/core/util/event_log.h +++ b/src/core/util/event_log.h @@ -22,12 +22,12 @@ #include #include -#include "src/core/util/per_cpu.h" -#include "src/core/util/sync.h" -#include "src/core/util/time_precise.h" #include "absl/base/thread_annotations.h" #include "absl/strings/string_view.h" #include "absl/types/span.h" +#include "src/core/util/per_cpu.h" +#include "src/core/util/sync.h" +#include "src/core/util/time_precise.h" namespace grpc_core { diff --git a/src/core/util/gcp_metadata_query.cc b/src/core/util/gcp_metadata_query.cc index aaa1ba635f3ab..c1c07731b7b44 100644 --- a/src/core/util/gcp_metadata_query.cc +++ b/src/core/util/gcp_metadata_query.cc @@ -27,18 +27,18 @@ #include #include -#include "src/core/credentials/transport/transport_credentials.h" -#include "src/core/lib/debug/trace.h" -#include "src/core/util/ref_counted_ptr.h" -#include "src/core/util/status_helper.h" -#include "src/core/util/time.h" -#include "src/core/util/uri.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_format.h" #include "absl/strings/string_view.h" +#include "src/core/credentials/transport/transport_credentials.h" +#include "src/core/lib/debug/trace.h" +#include "src/core/util/ref_counted_ptr.h" +#include "src/core/util/status_helper.h" +#include "src/core/util/time.h" +#include "src/core/util/uri.h" namespace grpc_core { diff --git a/src/core/util/gcp_metadata_query.h b/src/core/util/gcp_metadata_query.h index 413ad8aad997f..a72ff5ae4d004 100644 --- a/src/core/util/gcp_metadata_query.h +++ b/src/core/util/gcp_metadata_query.h @@ -21,6 +21,8 @@ #include +#include "absl/functional/any_invocable.h" +#include "absl/status/statusor.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/polling_entity.h" @@ -28,8 +30,6 @@ #include "src/core/util/http_client/parser.h" #include "src/core/util/orphanable.h" #include "src/core/util/time.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/src/core/util/grpc_if_nametoindex_posix.cc b/src/core/util/grpc_if_nametoindex_posix.cc index e45622d7e04de..1d5b866e5e044 100644 --- a/src/core/util/grpc_if_nametoindex_posix.cc +++ b/src/core/util/grpc_if_nametoindex_posix.cc @@ -25,9 +25,9 @@ #include #include +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/core/util/grpc_if_nametoindex.h" -#include "absl/log/log.h" uint32_t grpc_if_nametoindex(char* name) { uint32_t out = if_nametoindex(name); diff --git a/src/core/util/grpc_if_nametoindex_unsupported.cc b/src/core/util/grpc_if_nametoindex_unsupported.cc index 8e358a9dd5585..cabca947c60c7 100644 --- a/src/core/util/grpc_if_nametoindex_unsupported.cc +++ b/src/core/util/grpc_if_nametoindex_unsupported.cc @@ -22,9 +22,9 @@ #if GRPC_IF_NAMETOINDEX == 0 || !defined(GRPC_POSIX_SOCKET_IF_NAMETOINDEX) +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/core/util/grpc_if_nametoindex.h" -#include "absl/log/log.h" uint32_t grpc_if_nametoindex(char* name) { VLOG(2) << "Not attempting to convert interface name " << name diff --git a/src/core/util/http_client/format_request.cc b/src/core/util/http_client/format_request.cc index 3deb851202728..8c56935dad065 100644 --- a/src/core/util/http_client/format_request.cc +++ b/src/core/util/http_client/format_request.cc @@ -27,11 +27,11 @@ #include #include -#include "src/core/util/http_client/httpcli.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" #include "absl/strings/string_view.h" +#include "src/core/util/http_client/httpcli.h" static void fill_common_header(const grpc_http_request* request, const char* host, const char* path, diff --git a/src/core/util/http_client/httpcli.cc b/src/core/util/http_client/httpcli.cc index 36af6d5ee0806..2abfc53dbf3d4 100644 --- a/src/core/util/http_client/httpcli.cc +++ b/src/core/util/http_client/httpcli.cc @@ -27,6 +27,10 @@ #include #include +#include "absl/functional/bind_front.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/credentials/transport/transport_credentials.h" @@ -47,10 +51,6 @@ #include "src/core/util/http_client/format_request.h" #include "src/core/util/http_client/parser.h" #include "src/core/util/status_helper.h" -#include "absl/functional/bind_front.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" namespace grpc_core { diff --git a/src/core/util/http_client/httpcli.h b/src/core/util/http_client/httpcli.h index 563454552fbe7..525e61b8c9c87 100644 --- a/src/core/util/http_client/httpcli.h +++ b/src/core/util/http_client/httpcli.h @@ -30,6 +30,10 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/handshaker/handshaker.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/endpoint.h" @@ -47,10 +51,6 @@ #include "src/core/util/sync.h" #include "src/core/util/time.h" #include "src/core/util/uri.h" -#include "absl/base/thread_annotations.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" // User agent this library reports #define GRPC_HTTPCLI_USER_AGENT "grpc-httpcli/0.0" diff --git a/src/core/util/http_client/httpcli_security_connector.cc b/src/core/util/http_client/httpcli_security_connector.cc index 85848f911e145..85f9a34621185 100644 --- a/src/core/util/http_client/httpcli_security_connector.cc +++ b/src/core/util/http_client/httpcli_security_connector.cc @@ -28,6 +28,10 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/credentials/transport/tls/ssl_utils.h" #include "src/core/credentials/transport/transport_credentials.h" @@ -46,10 +50,6 @@ #include "src/core/util/debug_location.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/unique_type_name.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/util/json/json_channel_args.h b/src/core/util/json/json_channel_args.h index a4de1437025cf..9b70ea3f53c8b 100644 --- a/src/core/util/json/json_channel_args.h +++ b/src/core/util/json/json_channel_args.h @@ -19,9 +19,9 @@ #include +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/json/json_args.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/util/json/json_object_loader.h b/src/core/util/json/json_object_loader.h index 435c59e30d3b6..9a32cd62a88f8 100644 --- a/src/core/util/json/json_object_loader.h +++ b/src/core/util/json/json_object_loader.h @@ -25,18 +25,18 @@ #include #include -#include "src/core/util/json/json.h" -#include "src/core/util/json/json_args.h" -#include "src/core/util/no_destruct.h" -#include "src/core/util/ref_counted_ptr.h" -#include "src/core/util/time.h" -#include "src/core/util/validation_errors.h" #include "absl/meta/type_traits.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/numbers.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" +#include "src/core/util/json/json.h" +#include "src/core/util/json/json_args.h" +#include "src/core/util/no_destruct.h" +#include "src/core/util/ref_counted_ptr.h" +#include "src/core/util/time.h" +#include "src/core/util/validation_errors.h" // Provides a means to load JSON objects into C++ objects, with the aim of // minimizing object code size. diff --git a/src/core/util/json/json_reader.cc b/src/core/util/json/json_reader.cc index f1458ff14a1f6..5b437af925ef2 100644 --- a/src/core/util/json/json_reader.cc +++ b/src/core/util/json/json_reader.cc @@ -26,8 +26,6 @@ #include #include -#include "src/core/util/json/json.h" -#include "src/core/util/match.h" #include "absl/base/attributes.h" #include "absl/log/check.h" #include "absl/status/status.h" @@ -36,6 +34,8 @@ #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" #include "absl/strings/string_view.h" +#include "src/core/util/json/json.h" +#include "src/core/util/match.h" #define GRPC_JSON_MAX_DEPTH 255 #define GRPC_JSON_MAX_ERRORS 16 diff --git a/src/core/util/json/json_reader.h b/src/core/util/json/json_reader.h index 7ba5220a5ee9a..127b3808807ac 100644 --- a/src/core/util/json/json_reader.h +++ b/src/core/util/json/json_reader.h @@ -19,9 +19,9 @@ #include -#include "src/core/util/json/json.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "src/core/util/json/json.h" namespace grpc_core { diff --git a/src/core/util/json/json_util.h b/src/core/util/json/json_util.h index 70e61b51cf0b3..7cb5b8b110303 100644 --- a/src/core/util/json/json_util.h +++ b/src/core/util/json/json_util.h @@ -28,12 +28,12 @@ #include #include -#include "src/core/lib/iomgr/error.h" -#include "src/core/util/json/json.h" -#include "src/core/util/time.h" #include "absl/strings/numbers.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" +#include "src/core/lib/iomgr/error.h" +#include "src/core/util/json/json.h" +#include "src/core/util/time.h" namespace grpc_core { diff --git a/src/core/util/json/json_writer.cc b/src/core/util/json/json_writer.cc index 04dfb113338c3..ebe075172b70b 100644 --- a/src/core/util/json/json_writer.cc +++ b/src/core/util/json/json_writer.cc @@ -25,8 +25,8 @@ #include #include -#include "src/core/util/json/json.h" #include "absl/strings/string_view.h" +#include "src/core/util/json/json.h" namespace grpc_core { diff --git a/src/core/util/latent_see.cc b/src/core/util/latent_see.cc index a6b11840549fe..97d483cf7faa8 100644 --- a/src/core/util/latent_see.cc +++ b/src/core/util/latent_see.cc @@ -22,10 +22,10 @@ #include #include -#include "src/core/util/ring_buffer.h" -#include "src/core/util/sync.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" +#include "src/core/util/ring_buffer.h" +#include "src/core/util/sync.h" namespace grpc_core { namespace latent_see { diff --git a/src/core/util/latent_see.h b/src/core/util/latent_see.h index e06ccf1887c96..c0b5831eb7900 100644 --- a/src/core/util/latent_see.h +++ b/src/core/util/latent_see.h @@ -31,13 +31,13 @@ #include #include -#include "src/core/util/per_cpu.h" -#include "src/core/util/sync.h" #include "absl/base/thread_annotations.h" #include "absl/functional/any_invocable.h" #include "absl/functional/function_ref.h" #include "absl/log/log.h" #include "absl/strings/string_view.h" +#include "src/core/util/per_cpu.h" +#include "src/core/util/sync.h" #define TAGGED_POINTER_SIZE_BITS 48 diff --git a/src/core/util/linux/cpu.cc b/src/core/util/linux/cpu.cc index 40ff1e1a24887..41730292e89fe 100644 --- a/src/core/util/linux/cpu.cc +++ b/src/core/util/linux/cpu.cc @@ -31,9 +31,9 @@ #include #include +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/core/util/strerror.h" -#include "absl/log/log.h" static int ncpus = 0; diff --git a/src/core/util/load_file.cc b/src/core/util/load_file.cc index c9e6a204063e5..445452c6e9d88 100644 --- a/src/core/util/load_file.cc +++ b/src/core/util/load_file.cc @@ -21,10 +21,10 @@ #include #include -#include "src/core/util/strerror.h" #include "absl/cleanup/cleanup.h" #include "absl/status/status.h" #include "absl/strings/str_cat.h" +#include "src/core/util/strerror.h" namespace grpc_core { diff --git a/src/core/util/load_file.h b/src/core/util/load_file.h index 26163f5100ba3..980e0c11af6f1 100644 --- a/src/core/util/load_file.h +++ b/src/core/util/load_file.h @@ -19,8 +19,8 @@ #include -#include "src/core/lib/slice/slice.h" #include "absl/status/statusor.h" +#include "src/core/lib/slice/slice.h" namespace grpc_core { diff --git a/src/core/util/log.cc b/src/core/util/log.cc index 1ba371acf0a8a..f627f7622a304 100644 --- a/src/core/util/log.cc +++ b/src/core/util/log.cc @@ -25,13 +25,13 @@ #include #include -#include "src/core/config/config_vars.h" -#include "src/core/util/crash.h" -#include "src/core/util/string.h" #include "absl/log/check.h" #include "absl/log/globals.h" #include "absl/strings/match.h" #include "absl/strings/str_cat.h" +#include "src/core/config/config_vars.h" +#include "src/core/util/crash.h" +#include "src/core/util/string.h" void gpr_unreachable_code(const char* reason, const char* file, int line) { grpc_core::Crash(absl::StrCat("UNREACHABLE CODE: ", reason), diff --git a/src/core/util/mpscq.h b/src/core/util/mpscq.h index bd48f88940e51..44502a0b352e9 100644 --- a/src/core/util/mpscq.h +++ b/src/core/util/mpscq.h @@ -23,8 +23,8 @@ #include -#include "src/core/util/sync.h" #include "absl/log/check.h" +#include "src/core/util/sync.h" namespace grpc_core { diff --git a/src/core/util/notification.h b/src/core/util/notification.h index 0dcce670c2d92..4fca3d26cb539 100644 --- a/src/core/util/notification.h +++ b/src/core/util/notification.h @@ -17,9 +17,9 @@ #include -#include "src/core/util/sync.h" #include "absl/time/clock.h" #include "absl/time/time.h" +#include "src/core/util/sync.h" namespace grpc_core { diff --git a/src/core/util/posix/cpu.cc b/src/core/util/posix/cpu.cc index 4e7d7ceaf131e..92a9e45635e51 100644 --- a/src/core/util/posix/cpu.cc +++ b/src/core/util/posix/cpu.cc @@ -27,9 +27,9 @@ #include #include +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/core/util/useful.h" -#include "absl/log/log.h" static long ncpus = 0; diff --git a/src/core/util/posix/stat.cc b/src/core/util/posix/stat.cc index aad6eb6d2cdfb..5de6f456321e5 100644 --- a/src/core/util/posix/stat.cc +++ b/src/core/util/posix/stat.cc @@ -27,10 +27,10 @@ #include #include -#include "src/core/util/stat.h" -#include "src/core/util/strerror.h" #include "absl/log/check.h" #include "absl/log/log.h" +#include "src/core/util/stat.h" +#include "src/core/util/strerror.h" namespace grpc_core { diff --git a/src/core/util/posix/thd.cc b/src/core/util/posix/thd.cc index cc9956c9936de..764882dd676d5 100644 --- a/src/core/util/posix/thd.cc +++ b/src/core/util/posix/thd.cc @@ -34,13 +34,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/core/util/fork.h" #include "src/core/util/strerror.h" #include "src/core/util/thd.h" #include "src/core/util/useful.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc_core { namespace { diff --git a/src/core/util/posix/tmpfile.cc b/src/core/util/posix/tmpfile.cc index 2becde2c40a95..832391f1599e7 100644 --- a/src/core/util/posix/tmpfile.cc +++ b/src/core/util/posix/tmpfile.cc @@ -27,12 +27,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/core/util/strerror.h" #include "src/core/util/string.h" #include "src/core/util/tmpfile.h" -#include "absl/log/check.h" -#include "absl/log/log.h" FILE* gpr_tmpfile(const char* prefix, char** tmp_filename) { FILE* result = nullptr; diff --git a/src/core/util/ref_counted.h b/src/core/util/ref_counted.h index 66674ff364bb4..b82a99b83f717 100644 --- a/src/core/util/ref_counted.h +++ b/src/core/util/ref_counted.h @@ -25,12 +25,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/util/atomic_utils.h" #include "src/core/util/debug_location.h" #include "src/core/util/down_cast.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/src/core/util/ref_counted_ptr.h b/src/core/util/ref_counted_ptr.h index e5640891e04cf..b6df399c949d1 100644 --- a/src/core/util/ref_counted_ptr.h +++ b/src/core/util/ref_counted_ptr.h @@ -26,9 +26,9 @@ #include #include +#include "absl/hash/hash.h" #include "src/core/util/debug_location.h" #include "src/core/util/down_cast.h" -#include "absl/hash/hash.h" namespace grpc_core { diff --git a/src/core/util/ref_counted_string.h b/src/core/util/ref_counted_string.h index 186256c93f70a..936d9c5742f9b 100644 --- a/src/core/util/ref_counted_string.h +++ b/src/core/util/ref_counted_string.h @@ -22,9 +22,9 @@ #include +#include "absl/strings/string_view.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/util/single_set_ptr.h b/src/core/util/single_set_ptr.h index 54363f0f81dbd..56b1188ae093b 100644 --- a/src/core/util/single_set_ptr.h +++ b/src/core/util/single_set_ptr.h @@ -20,8 +20,8 @@ #include #include -#include "src/core/util/ref_counted_ptr.h" #include "absl/log/check.h" +#include "src/core/util/ref_counted_ptr.h" namespace grpc_core { diff --git a/src/core/util/status_helper.cc b/src/core/util/status_helper.cc index ba874b640fc7a..e7c956e5ec94a 100644 --- a/src/core/util/status_helper.cc +++ b/src/core/util/status_helper.cc @@ -23,13 +23,6 @@ #include -#include "google/protobuf/any.upb.h" -#include "google/rpc/status.upb.h" -#include "src/core/lib/experiments/experiments.h" -#include "src/core/lib/slice/percent_encoding.h" -#include "src/core/lib/slice/slice.h" -#include "src/core/lib/transport/status_conversion.h" -#include "src/core/util/time.h" #include "absl/log/check.h" #include "absl/strings/cord.h" #include "absl/strings/escaping.h" @@ -38,6 +31,13 @@ #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" #include "absl/time/clock.h" +#include "google/protobuf/any.upb.h" +#include "google/rpc/status.upb.h" +#include "src/core/lib/experiments/experiments.h" +#include "src/core/lib/slice/percent_encoding.h" +#include "src/core/lib/slice/slice.h" +#include "src/core/lib/transport/status_conversion.h" +#include "src/core/util/time.h" #include "upb/base/string_view.h" #include "upb/mem/arena.hpp" diff --git a/src/core/util/status_helper.h b/src/core/util/status_helper.h index 9dd07c11cecc1..ea580d7ae796a 100644 --- a/src/core/util/status_helper.h +++ b/src/core/util/status_helper.h @@ -26,10 +26,10 @@ #include #include -#include "src/core/util/debug_location.h" #include "absl/status/status.h" #include "absl/strings/string_view.h" #include "absl/time/time.h" +#include "src/core/util/debug_location.h" extern "C" { struct google_rpc_Status; diff --git a/src/core/util/string.cc b/src/core/util/string.cc index c96c99e67da03..00cf0b0026991 100644 --- a/src/core/util/string.cc +++ b/src/core/util/string.cc @@ -29,10 +29,10 @@ #include #include -#include "src/core/util/crash.h" -#include "src/core/util/useful.h" #include "absl/strings/str_cat.h" #include "absl/time/time.h" +#include "src/core/util/crash.h" +#include "src/core/util/useful.h" char* gpr_strdup(const char* src) { char* dst; diff --git a/src/core/util/subprocess_posix.cc b/src/core/util/subprocess_posix.cc index a4d33b17cf4c3..ef4512b3734f7 100644 --- a/src/core/util/subprocess_posix.cc +++ b/src/core/util/subprocess_posix.cc @@ -29,12 +29,12 @@ #include -#include "src/core/util/memory.h" -#include "src/core/util/strerror.h" -#include "src/core/util/subprocess.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/substitute.h" +#include "src/core/util/memory.h" +#include "src/core/util/strerror.h" +#include "src/core/util/subprocess.h" struct gpr_subprocess { int pid; diff --git a/src/core/util/subprocess_windows.cc b/src/core/util/subprocess_windows.cc index 42e39573a6c03..71fd6497e785a 100644 --- a/src/core/util/subprocess_windows.cc +++ b/src/core/util/subprocess_windows.cc @@ -25,13 +25,13 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/str_join.h" +#include "absl/types/span.h" #include "src/core/util/crash.h" #include "src/core/util/string.h" #include "src/core/util/subprocess.h" #include "src/core/util/tchar.h" -#include "absl/log/log.h" -#include "absl/strings/str_join.h" -#include "absl/types/span.h" struct gpr_subprocess { PROCESS_INFORMATION pi; diff --git a/src/core/util/sync_abseil.cc b/src/core/util/sync_abseil.cc index d1cd7f71a33b9..e39085197d2ee 100644 --- a/src/core/util/sync_abseil.cc +++ b/src/core/util/sync_abseil.cc @@ -26,11 +26,11 @@ #include #include -#include "src/core/util/time_util.h" #include "absl/base/call_once.h" #include "absl/synchronization/mutex.h" #include "absl/time/clock.h" #include "absl/time/time.h" +#include "src/core/util/time_util.h" void gpr_mu_init(gpr_mu* mu) { static_assert(sizeof(gpr_mu) == sizeof(absl::Mutex), diff --git a/src/core/util/table.h b/src/core/util/table.h index f2e962ada2644..a9b27379d5584 100644 --- a/src/core/util/table.h +++ b/src/core/util/table.h @@ -23,9 +23,9 @@ #include #include -#include "src/core/util/bitset.h" #include "absl/meta/type_traits.h" #include "absl/utility/utility.h" +#include "src/core/util/bitset.h" namespace grpc_core { diff --git a/src/core/util/time.cc b/src/core/util/time.cc index cd43903963589..f14ae8c03880b 100644 --- a/src/core/util/time.cc +++ b/src/core/util/time.cc @@ -23,10 +23,10 @@ #include #include -#include "src/core/util/no_destruct.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/str_format.h" +#include "src/core/util/no_destruct.h" // IWYU pragma: no_include diff --git a/src/core/util/time_precise.cc b/src/core/util/time_precise.cc index 49c9c5de2b72b..76dce6d57dfba 100644 --- a/src/core/util/time_precise.cc +++ b/src/core/util/time_precise.cc @@ -27,8 +27,8 @@ #include -#include "src/core/util/time_precise.h" #include "absl/log/log.h" +#include "src/core/util/time_precise.h" #ifndef GPR_CYCLE_COUNTER_CUSTOM #if GPR_CYCLE_COUNTER_RDTSC_32 || GPR_CYCLE_COUNTER_RDTSC_64 diff --git a/src/core/util/unique_type_name.h b/src/core/util/unique_type_name.h index d762483180c75..fa723dc8d0c9e 100644 --- a/src/core/util/unique_type_name.h +++ b/src/core/util/unique_type_name.h @@ -21,8 +21,8 @@ #include -#include "src/core/util/useful.h" #include "absl/strings/string_view.h" +#include "src/core/util/useful.h" // Provides a type name that is unique by instance rather than by // string content. This is useful in cases where there are different diff --git a/src/core/util/wait_for_single_owner.h b/src/core/util/wait_for_single_owner.h index 79f3a0376f101..2b201a94f6996 100644 --- a/src/core/util/wait_for_single_owner.h +++ b/src/core/util/wait_for_single_owner.h @@ -17,9 +17,9 @@ #include +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/core/util/time.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/src/core/util/windows/directory_reader.cc b/src/core/util/windows/directory_reader.cc index bb36fc248e6a2..9ae07c6357b54 100644 --- a/src/core/util/windows/directory_reader.cc +++ b/src/core/util/windows/directory_reader.cc @@ -26,10 +26,10 @@ #include #include -#include "src/core/util/directory_reader.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" +#include "src/core/util/directory_reader.h" namespace grpc_core { diff --git a/src/core/util/windows/stat.cc b/src/core/util/windows/stat.cc index 5404459469d47..5ac15a407cfd8 100644 --- a/src/core/util/windows/stat.cc +++ b/src/core/util/windows/stat.cc @@ -22,11 +22,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/core/util/stat.h" #include "src/core/util/strerror.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/src/core/util/windows/thd.cc b/src/core/util/windows/thd.cc index c28d2cb5e4c01..464d8a6d06ccd 100644 --- a/src/core/util/windows/thd.cc +++ b/src/core/util/windows/thd.cc @@ -27,11 +27,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/core/util/memory.h" #include "src/core/util/thd.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace { class ThreadInternalsWindows; diff --git a/src/core/util/windows/time.cc b/src/core/util/windows/time.cc index 181074ee09619..1e8bb4b068712 100644 --- a/src/core/util/windows/time.cc +++ b/src/core/util/windows/time.cc @@ -27,8 +27,8 @@ #include #include -#include "src/core/util/time_precise.h" #include "absl/log/check.h" +#include "src/core/util/time_precise.h" static LARGE_INTEGER g_start_time = []() { LARGE_INTEGER x; diff --git a/src/core/util/work_serializer.cc b/src/core/util/work_serializer.cc index ca0aa2afc111f..72cf7323e69f9 100644 --- a/src/core/util/work_serializer.cc +++ b/src/core/util/work_serializer.cc @@ -28,6 +28,9 @@ #include #include +#include "absl/container/inlined_vector.h" +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -38,9 +41,6 @@ #include "src/core/util/mpscq.h" #include "src/core/util/orphanable.h" #include "src/core/util/sync.h" -#include "absl/container/inlined_vector.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/src/core/util/work_serializer.h b/src/core/util/work_serializer.h index 3c1cf696047b2..3232fa8d8ee2f 100644 --- a/src/core/util/work_serializer.h +++ b/src/core/util/work_serializer.h @@ -23,10 +23,10 @@ #include #include -#include "src/core/util/debug_location.h" -#include "src/core/util/orphanable.h" #include "absl/base/thread_annotations.h" #include "absl/functional/any_invocable.h" +#include "src/core/util/debug_location.h" +#include "src/core/util/orphanable.h" namespace grpc_core { diff --git a/src/core/xds/grpc/certificate_provider_store.cc b/src/core/xds/grpc/certificate_provider_store.cc index 0aeee1594481c..028e1cb047a10 100644 --- a/src/core/xds/grpc/certificate_provider_store.cc +++ b/src/core/xds/grpc/certificate_provider_store.cc @@ -21,10 +21,10 @@ #include #include -#include "src/core/config/core_configuration.h" -#include "src/core/credentials/transport/tls/certificate_provider_registry.h" #include "absl/log/log.h" #include "absl/strings/str_cat.h" +#include "src/core/config/core_configuration.h" +#include "src/core/credentials/transport/tls/certificate_provider_registry.h" namespace grpc_core { diff --git a/src/core/xds/grpc/certificate_provider_store.h b/src/core/xds/grpc/certificate_provider_store.h index 515f7774c5cb3..481141ede8e69 100644 --- a/src/core/xds/grpc/certificate_provider_store.h +++ b/src/core/xds/grpc/certificate_provider_store.h @@ -26,6 +26,8 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/tls/certificate_provider_factory.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_distributor.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_provider.h" @@ -38,8 +40,6 @@ #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" #include "src/core/util/validation_errors.h" -#include "absl/base/thread_annotations.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/xds/grpc/file_watcher_certificate_provider_factory.cc b/src/core/xds/grpc/file_watcher_certificate_provider_factory.cc index 845cc666229ca..5f2fd3d4f8b0a 100644 --- a/src/core/xds/grpc/file_watcher_certificate_provider_factory.cc +++ b/src/core/xds/grpc/file_watcher_certificate_provider_factory.cc @@ -25,12 +25,12 @@ #include #include -#include "src/core/config/core_configuration.h" -#include "src/core/credentials/transport/tls/grpc_tls_certificate_provider.h" -#include "src/core/util/down_cast.h" #include "absl/log/log.h" #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" +#include "src/core/config/core_configuration.h" +#include "src/core/credentials/transport/tls/grpc_tls_certificate_provider.h" +#include "src/core/util/down_cast.h" namespace grpc_core { diff --git a/src/core/xds/grpc/file_watcher_certificate_provider_factory.h b/src/core/xds/grpc/file_watcher_certificate_provider_factory.h index 1a3b3d03032db..d65e4b3bebf03 100644 --- a/src/core/xds/grpc/file_watcher_certificate_provider_factory.h +++ b/src/core/xds/grpc/file_watcher_certificate_provider_factory.h @@ -24,6 +24,7 @@ #include +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/tls/certificate_provider_factory.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_args.h" @@ -31,7 +32,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" #include "src/core/util/validation_errors.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_audit_logger_registry.cc b/src/core/xds/grpc/xds_audit_logger_registry.cc index b564713062877..dfb8149c41e3b 100644 --- a/src/core/xds/grpc/xds_audit_logger_registry.cc +++ b/src/core/xds/grpc/xds_audit_logger_registry.cc @@ -22,16 +22,16 @@ #include #include -#include "src/core/lib/security/authorization/audit_logging.h" -#include "src/core/util/match.h" -#include "src/core/util/validation_errors.h" -#include "src/core/xds/grpc/xds_common_types.h" -#include "src/core/xds/grpc/xds_common_types_parser.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" #include "envoy/config/core/v3/extension.upb.h" #include "envoy/config/rbac/v3/rbac.upb.h" +#include "src/core/lib/security/authorization/audit_logging.h" +#include "src/core/util/match.h" +#include "src/core/util/validation_errors.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_common_types_parser.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_audit_logger_registry.h b/src/core/xds/grpc/xds_audit_logger_registry.h index 969705502329e..cb35fd53d863a 100644 --- a/src/core/xds/grpc/xds_audit_logger_registry.h +++ b/src/core/xds/grpc/xds_audit_logger_registry.h @@ -22,11 +22,11 @@ #include #include +#include "absl/strings/string_view.h" +#include "envoy/config/rbac/v3/rbac.upb.h" #include "src/core/util/json/json.h" #include "src/core/util/validation_errors.h" #include "src/core/xds/xds_client/xds_resource_type.h" -#include "absl/strings/string_view.h" -#include "envoy/config/rbac/v3/rbac.upb.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_bootstrap_grpc.cc b/src/core/xds/grpc/xds_bootstrap_grpc.cc index c04f0d5eeb4b3..a598a74919ec3 100644 --- a/src/core/xds/grpc/xds_bootstrap_grpc.cc +++ b/src/core/xds/grpc/xds_bootstrap_grpc.cc @@ -24,13 +24,6 @@ #include #include -#include "src/core/util/down_cast.h" -#include "src/core/util/json/json.h" -#include "src/core/util/json/json_object_loader.h" -#include "src/core/util/json/json_reader.h" -#include "src/core/util/json/json_writer.h" -#include "src/core/util/ref_counted_ptr.h" -#include "src/core/util/string.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/match.h" @@ -38,6 +31,13 @@ #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" #include "absl/strings/string_view.h" +#include "src/core/util/down_cast.h" +#include "src/core/util/json/json.h" +#include "src/core/util/json/json_object_loader.h" +#include "src/core/util/json/json_reader.h" +#include "src/core/util/json/json_writer.h" +#include "src/core/util/ref_counted_ptr.h" +#include "src/core/util/string.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_bootstrap_grpc.h b/src/core/xds/grpc/xds_bootstrap_grpc.h index 05fc93c850826..5f7a272d9d26f 100644 --- a/src/core/xds/grpc/xds_bootstrap_grpc.h +++ b/src/core/xds/grpc/xds_bootstrap_grpc.h @@ -25,6 +25,8 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_args.h" #include "src/core/util/json/json_object_loader.h" @@ -37,8 +39,6 @@ #include "src/core/xds/grpc/xds_lb_policy_registry.h" #include "src/core/xds/grpc/xds_server_grpc.h" #include "src/core/xds/xds_client/xds_bootstrap.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_certificate_provider.cc b/src/core/xds/grpc/xds_certificate_provider.cc index 54bd48c8570d2..25fcd6b960880 100644 --- a/src/core/xds/grpc/xds_certificate_provider.cc +++ b/src/core/xds/grpc/xds_certificate_provider.cc @@ -23,11 +23,11 @@ #include #include +#include "absl/functional/bind_front.h" +#include "absl/log/check.h" #include "src/core/credentials/transport/tls/ssl_utils.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/error.h" -#include "absl/functional/bind_front.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_certificate_provider.h b/src/core/xds/grpc/xds_certificate_provider.h index 4d7f95ff591ff..1ee87746386e9 100644 --- a/src/core/xds/grpc/xds_certificate_provider.h +++ b/src/core/xds/grpc/xds_certificate_provider.h @@ -28,6 +28,8 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_distributor.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_provider.h" #include "src/core/util/matchers.h" @@ -35,8 +37,6 @@ #include "src/core/util/sync.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" -#include "absl/base/thread_annotations.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_client_grpc.cc b/src/core/xds/grpc/xds_client_grpc.cc index 1811f59ba698b..788c439ba7f54 100644 --- a/src/core/xds/grpc/xds_client_grpc.cc +++ b/src/core/xds/grpc/xds_client_grpc.cc @@ -30,6 +30,12 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "envoy/service/status/v3/csds.upb.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" @@ -56,12 +62,6 @@ #include "src/core/xds/xds_client/xds_channel_args.h" #include "src/core/xds/xds_client/xds_client.h" #include "src/core/xds/xds_client/xds_transport.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" -#include "envoy/service/status/v3/csds.upb.h" #include "upb/base/string_view.h" // If gRPC is built with -DGRPC_XDS_USER_AGENT_NAME_SUFFIX="...", that string diff --git a/src/core/xds/grpc/xds_client_grpc.h b/src/core/xds/grpc/xds_client_grpc.h index 23684fe79b40a..f412495c7da91 100644 --- a/src/core/xds/grpc/xds_client_grpc.h +++ b/src/core/xds/grpc/xds_client_grpc.h @@ -22,6 +22,8 @@ #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/iomgr_fwd.h" #include "src/core/resolver/endpoint_addresses.h" @@ -34,8 +36,6 @@ #include "src/core/xds/xds_client/lrs_client.h" #include "src/core/xds/xds_client/xds_client.h" #include "src/core/xds/xds_client/xds_transport.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_cluster.cc b/src/core/xds/grpc/xds_cluster.cc index 7306964b52c22..6a3e5c8bbf7b3 100644 --- a/src/core/xds/grpc/xds_cluster.cc +++ b/src/core/xds/grpc/xds_cluster.cc @@ -16,12 +16,12 @@ #include "src/core/xds/grpc/xds_cluster.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" #include "src/core/util/json/json_writer.h" #include "src/core/util/match.h" #include "src/core/util/time.h" #include "src/core/xds/grpc/xds_common_types.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_cluster.h b/src/core/xds/grpc/xds_cluster.h index d89ed1a936e4b..475d4b555554e 100644 --- a/src/core/xds/grpc/xds_cluster.h +++ b/src/core/xds/grpc/xds_cluster.h @@ -22,6 +22,7 @@ #include #include +#include "absl/container/flat_hash_map.h" #include "src/core/load_balancing/outlier_detection/outlier_detection.h" #include "src/core/util/json/json.h" #include "src/core/xds/grpc/xds_common_types.h" @@ -31,7 +32,6 @@ #include "src/core/xds/xds_client/xds_backend_metric_propagation.h" #include "src/core/xds/xds_client/xds_resource_type.h" #include "src/core/xds/xds_client/xds_resource_type_impl.h" -#include "absl/container/flat_hash_map.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_cluster_parser.cc b/src/core/xds/grpc/xds_cluster_parser.cc index fa3f0239cd692..1fd6b6109cf0e 100644 --- a/src/core/xds/grpc/xds_cluster_parser.cc +++ b/src/core/xds/grpc/xds_cluster_parser.cc @@ -19,26 +19,6 @@ #include #include -#include "google/protobuf/any.upb.h" -#include "google/protobuf/duration.upb.h" -#include "google/protobuf/struct.upb.h" -#include "google/protobuf/wrappers.upb.h" -#include "src/core/config/core_configuration.h" -#include "src/core/lib/debug/trace.h" -#include "src/core/load_balancing/lb_policy_registry.h" -#include "src/core/util/down_cast.h" -#include "src/core/util/env.h" -#include "src/core/util/host_port.h" -#include "src/core/util/time.h" -#include "src/core/util/upb_utils.h" -#include "src/core/util/validation_errors.h" -#include "src/core/xds/grpc/xds_bootstrap_grpc.h" -#include "src/core/xds/grpc/xds_common_types.h" -#include "src/core/xds/grpc/xds_common_types_parser.h" -#include "src/core/xds/grpc/xds_lb_policy_registry.h" -#include "src/core/xds/grpc/xds_metadata_parser.h" -#include "src/core/xds/xds_client/lrs_client.h" -#include "src/core/xds/xds_client/xds_backend_metric_propagation.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" @@ -61,6 +41,26 @@ #include "envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb.h" #include "envoy/extensions/transport_sockets/tls/v3/tls.upb.h" #include "envoy/extensions/upstreams/http/v3/http_protocol_options.upb.h" +#include "google/protobuf/any.upb.h" +#include "google/protobuf/duration.upb.h" +#include "google/protobuf/struct.upb.h" +#include "google/protobuf/wrappers.upb.h" +#include "src/core/config/core_configuration.h" +#include "src/core/lib/debug/trace.h" +#include "src/core/load_balancing/lb_policy_registry.h" +#include "src/core/util/down_cast.h" +#include "src/core/util/env.h" +#include "src/core/util/host_port.h" +#include "src/core/util/time.h" +#include "src/core/util/upb_utils.h" +#include "src/core/util/validation_errors.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_common_types_parser.h" +#include "src/core/xds/grpc/xds_lb_policy_registry.h" +#include "src/core/xds/grpc/xds_metadata_parser.h" +#include "src/core/xds/xds_client/lrs_client.h" +#include "src/core/xds/xds_client/xds_backend_metric_propagation.h" #include "upb/base/string_view.h" #include "upb/text/encode.h" diff --git a/src/core/xds/grpc/xds_cluster_parser.h b/src/core/xds/grpc/xds_cluster_parser.h index 350d63fae1e49..5ef66b5c864c8 100644 --- a/src/core/xds/grpc/xds_cluster_parser.h +++ b/src/core/xds/grpc/xds_cluster_parser.h @@ -17,16 +17,16 @@ #ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_CLUSTER_PARSER_H #define GRPC_SRC_CORE_XDS_GRPC_XDS_CLUSTER_PARSER_H -#include "src/core/xds/grpc/xds_cluster.h" -#include "src/core/xds/xds_client/xds_client.h" -#include "src/core/xds/xds_client/xds_resource_type.h" -#include "src/core/xds/xds_client/xds_resource_type_impl.h" #include "absl/strings/string_view.h" #include "envoy/config/cluster/v3/cluster.upbdefs.h" #include "envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h" #include "envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upbdefs.h" #include "envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h" #include "envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.h" +#include "src/core/xds/grpc/xds_cluster.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_resource_type.h" +#include "src/core/xds/xds_client/xds_resource_type_impl.h" #include "upb/reflection/def.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_cluster_specifier_plugin.cc b/src/core/xds/grpc/xds_cluster_specifier_plugin.cc index 8d19bf35b3f29..12d56543813f5 100644 --- a/src/core/xds/grpc/xds_cluster_specifier_plugin.cc +++ b/src/core/xds/grpc/xds_cluster_specifier_plugin.cc @@ -24,11 +24,11 @@ #include #include -#include "src/core/util/json/json.h" -#include "src/core/util/json/json_reader.h" #include "absl/log/check.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" +#include "src/core/util/json/json.h" +#include "src/core/util/json/json_reader.h" #include "src/proto/grpc/lookup/v1/rls_config.upb.h" #include "src/proto/grpc/lookup/v1/rls_config.upbdefs.h" #include "upb/base/status.hpp" diff --git a/src/core/xds/grpc/xds_cluster_specifier_plugin.h b/src/core/xds/grpc/xds_cluster_specifier_plugin.h index 9818fbe5455ef..4ae87310904cf 100644 --- a/src/core/xds/grpc/xds_cluster_specifier_plugin.h +++ b/src/core/xds/grpc/xds_cluster_specifier_plugin.h @@ -23,10 +23,10 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/util/json/json.h" #include "src/core/util/validation_errors.h" #include "src/core/xds/grpc/xds_common_types.h" -#include "absl/strings/string_view.h" #include "upb/mem/arena.h" #include "upb/reflection/def.h" diff --git a/src/core/xds/grpc/xds_common_types.cc b/src/core/xds/grpc/xds_common_types.cc index b75eecac9bd8d..b6344aa9254d1 100644 --- a/src/core/xds/grpc/xds_common_types.cc +++ b/src/core/xds/grpc/xds_common_types.cc @@ -16,10 +16,10 @@ #include "src/core/xds/grpc/xds_common_types.h" -#include "src/core/util/match.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" +#include "src/core/util/match.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_common_types.h b/src/core/xds/grpc/xds_common_types.h index 71ab561ad6a72..955395bba6323 100644 --- a/src/core/xds/grpc/xds_common_types.h +++ b/src/core/xds/grpc/xds_common_types.h @@ -21,10 +21,10 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/util/json/json.h" #include "src/core/util/matchers.h" #include "src/core/util/validation_errors.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_common_types_parser.cc b/src/core/xds/grpc/xds_common_types_parser.cc index 2a29932b8a4a6..eb4daca3477da 100644 --- a/src/core/xds/grpc/xds_common_types_parser.cc +++ b/src/core/xds/grpc/xds_common_types_parser.cc @@ -24,6 +24,16 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "envoy/config/core/v3/address.upb.h" +#include "envoy/extensions/transport_sockets/tls/v3/common.upb.h" +#include "envoy/extensions/transport_sockets/tls/v3/tls.upb.h" +#include "envoy/type/matcher/v3/regex.upb.h" +#include "envoy/type/matcher/v3/string.upb.h" #include "google/protobuf/any.upb.h" #include "google/protobuf/struct.upb.h" #include "google/protobuf/struct.upbdefs.h" @@ -35,20 +45,10 @@ #include "src/core/util/upb_utils.h" #include "src/core/xds/grpc/xds_bootstrap_grpc.h" #include "src/core/xds/xds_client/xds_client.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "envoy/config/core/v3/address.upb.h" -#include "envoy/extensions/transport_sockets/tls/v3/common.upb.h" -#include "envoy/extensions/transport_sockets/tls/v3/tls.upb.h" -#include "envoy/type/matcher/v3/regex.upb.h" -#include "envoy/type/matcher/v3/string.upb.h" -#include "xds/type/v3/typed_struct.upb.h" #include "upb/base/status.hpp" #include "upb/json/encode.h" #include "upb/mem/arena.h" +#include "xds/type/v3/typed_struct.upb.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_common_types_parser.h b/src/core/xds/grpc/xds_common_types_parser.h index 1be560bbfe1de..67c755bf3819f 100644 --- a/src/core/xds/grpc/xds_common_types_parser.h +++ b/src/core/xds/grpc/xds_common_types_parser.h @@ -19,6 +19,8 @@ #include +#include "envoy/config/core/v3/base.upb.h" +#include "envoy/extensions/transport_sockets/tls/v3/tls.upb.h" #include "google/protobuf/any.upb.h" #include "google/protobuf/duration.upb.h" #include "google/protobuf/struct.upb.h" @@ -28,8 +30,6 @@ #include "src/core/util/validation_errors.h" #include "src/core/xds/grpc/xds_common_types.h" #include "src/core/xds/xds_client/xds_resource_type.h" -#include "envoy/config/core/v3/base.upb.h" -#include "envoy/extensions/transport_sockets/tls/v3/tls.upb.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_endpoint.h b/src/core/xds/grpc/xds_endpoint.h index dc6c7096222e5..99ad92da8d330 100644 --- a/src/core/xds/grpc/xds_endpoint.h +++ b/src/core/xds/grpc/xds_endpoint.h @@ -22,6 +22,8 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/random/random.h" #include "src/core/resolver/endpoint_addresses.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" @@ -29,8 +31,6 @@ #include "src/core/xds/xds_client/xds_locality.h" #include "src/core/xds/xds_client/xds_resource_type.h" #include "src/core/xds/xds_client/xds_resource_type_impl.h" -#include "absl/base/thread_annotations.h" -#include "absl/random/random.h" // Per-endpoint channel arg key for xDS-configured HTTP CONNECT proxy. #define GRPC_ARG_XDS_HTTP_PROXY "grpc.internal.xds_http_proxy" diff --git a/src/core/xds/grpc/xds_endpoint_parser.cc b/src/core/xds/grpc/xds_endpoint_parser.cc index 4be744c681254..0980eb51149b4 100644 --- a/src/core/xds/grpc/xds_endpoint_parser.cc +++ b/src/core/xds/grpc/xds_endpoint_parser.cc @@ -27,6 +27,18 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" +#include "envoy/config/core/v3/address.upb.h" +#include "envoy/config/core/v3/base.upb.h" +#include "envoy/config/endpoint/v3/endpoint.upb.h" +#include "envoy/config/endpoint/v3/endpoint.upbdefs.h" +#include "envoy/config/endpoint/v3/endpoint_components.upb.h" +#include "envoy/type/v3/percent.upb.h" #include "google/protobuf/wrappers.upb.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/address_utils/sockaddr_utils.h" @@ -46,18 +58,6 @@ #include "src/core/xds/grpc/xds_health_status.h" #include "src/core/xds/grpc/xds_metadata_parser.h" #include "src/core/xds/xds_client/xds_resource_type.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" -#include "envoy/config/core/v3/address.upb.h" -#include "envoy/config/core/v3/base.upb.h" -#include "envoy/config/endpoint/v3/endpoint.upb.h" -#include "envoy/config/endpoint/v3/endpoint.upbdefs.h" -#include "envoy/config/endpoint/v3/endpoint_components.upb.h" -#include "envoy/type/v3/percent.upb.h" #include "upb/text/encode.h" // IWYU pragma: no_include "absl/meta/type_traits.h" diff --git a/src/core/xds/grpc/xds_endpoint_parser.h b/src/core/xds/grpc/xds_endpoint_parser.h index 1b07865a08fa4..e543bab6356f2 100644 --- a/src/core/xds/grpc/xds_endpoint_parser.h +++ b/src/core/xds/grpc/xds_endpoint_parser.h @@ -17,12 +17,12 @@ #ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_ENDPOINT_PARSER_H #define GRPC_SRC_CORE_XDS_GRPC_XDS_ENDPOINT_PARSER_H +#include "absl/strings/string_view.h" +#include "envoy/config/endpoint/v3/endpoint.upbdefs.h" #include "src/core/xds/grpc/xds_endpoint.h" #include "src/core/xds/xds_client/xds_client.h" #include "src/core/xds/xds_client/xds_resource_type.h" #include "src/core/xds/xds_client/xds_resource_type_impl.h" -#include "absl/strings/string_view.h" -#include "envoy/config/endpoint/v3/endpoint.upbdefs.h" #include "upb/reflection/def.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_health_status.h b/src/core/xds/grpc/xds_health_status.h index 4e461bc4fcfcd..df7148d52856a 100644 --- a/src/core/xds/grpc/xds_health_status.h +++ b/src/core/xds/grpc/xds_health_status.h @@ -21,9 +21,9 @@ #include -#include "src/core/resolver/endpoint_addresses.h" #include "absl/strings/string_view.h" #include "absl/types/span.h" +#include "src/core/resolver/endpoint_addresses.h" // Channel arg key for xDS health status. // Value is an XdsHealthStatus::HealthStatus enum. diff --git a/src/core/xds/grpc/xds_http_fault_filter.cc b/src/core/xds/grpc/xds_http_fault_filter.cc index fc51548215604..913269b553e4a 100644 --- a/src/core/xds/grpc/xds_http_fault_filter.cc +++ b/src/core/xds/grpc/xds_http_fault_filter.cc @@ -25,6 +25,13 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "envoy/extensions/filters/common/fault/v3/fault.upb.h" +#include "envoy/extensions/filters/http/fault/v3/fault.upb.h" +#include "envoy/extensions/filters/http/fault/v3/fault.upbdefs.h" +#include "envoy/type/v3/percent.upb.h" #include "google/protobuf/wrappers.upb.h" #include "src/core/call/status_util.h" #include "src/core/ext/filters/fault_injection/fault_injection_filter.h" @@ -38,13 +45,6 @@ #include "src/core/xds/grpc/xds_common_types.h" #include "src/core/xds/grpc/xds_common_types_parser.h" #include "src/core/xds/grpc/xds_http_filter.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" -#include "envoy/extensions/filters/common/fault/v3/fault.upb.h" -#include "envoy/extensions/filters/http/fault/v3/fault.upb.h" -#include "envoy/extensions/filters/http/fault/v3/fault.upbdefs.h" -#include "envoy/type/v3/percent.upb.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_http_fault_filter.h b/src/core/xds/grpc/xds_http_fault_filter.h index b9402beb8f0c3..f4a25a7c0cd64 100644 --- a/src/core/xds/grpc/xds_http_fault_filter.h +++ b/src/core/xds/grpc/xds_http_fault_filter.h @@ -21,14 +21,14 @@ #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/util/validation_errors.h" #include "src/core/xds/grpc/xds_common_types.h" #include "src/core/xds/grpc/xds_http_filter.h" #include "src/core/xds/xds_client/xds_resource_type.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" #include "upb/reflection/def.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_http_filter.h b/src/core/xds/grpc/xds_http_filter.h index f05861355c905..f8e2ffac846e8 100644 --- a/src/core/xds/grpc/xds_http_filter.h +++ b/src/core/xds/grpc/xds_http_filter.h @@ -20,6 +20,9 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/call/interception_chain.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" @@ -28,9 +31,6 @@ #include "src/core/util/validation_errors.h" #include "src/core/xds/grpc/xds_common_types.h" #include "src/core/xds/xds_client/xds_resource_type.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" #include "upb/reflection/def.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_http_filter_registry.cc b/src/core/xds/grpc/xds_http_filter_registry.cc index 5963619d42ac0..ec64f365599e5 100644 --- a/src/core/xds/grpc/xds_http_filter_registry.cc +++ b/src/core/xds/grpc/xds_http_filter_registry.cc @@ -23,15 +23,15 @@ #include #include +#include "absl/log/check.h" +#include "envoy/extensions/filters/http/router/v3/router.upb.h" +#include "envoy/extensions/filters/http/router/v3/router.upbdefs.h" #include "src/core/util/json/json.h" #include "src/core/xds/grpc/xds_http_fault_filter.h" #include "src/core/xds/grpc/xds_http_gcp_authn_filter.h" #include "src/core/xds/grpc/xds_http_rbac_filter.h" #include "src/core/xds/grpc/xds_http_stateful_session_filter.h" #include "src/core/xds/grpc/xds_metadata_parser.h" -#include "absl/log/check.h" -#include "envoy/extensions/filters/http/router/v3/router.upb.h" -#include "envoy/extensions/filters/http/router/v3/router.upbdefs.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_http_filter_registry.h b/src/core/xds/grpc/xds_http_filter_registry.h index 1deed3e8bbdc8..e22bf5d515ba6 100644 --- a/src/core/xds/grpc/xds_http_filter_registry.h +++ b/src/core/xds/grpc/xds_http_filter_registry.h @@ -24,6 +24,8 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/call/interception_chain.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" @@ -31,8 +33,6 @@ #include "src/core/xds/grpc/xds_common_types.h" #include "src/core/xds/grpc/xds_http_filter.h" #include "src/core/xds/xds_client/xds_resource_type.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" #include "upb/reflection/def.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_http_gcp_authn_filter.cc b/src/core/xds/grpc/xds_http_gcp_authn_filter.cc index 8cebebce71f4d..b88568d05f644 100644 --- a/src/core/xds/grpc/xds_http_gcp_authn_filter.cc +++ b/src/core/xds/grpc/xds_http_gcp_authn_filter.cc @@ -22,6 +22,10 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" +#include "envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb.h" +#include "envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.h" #include "src/core/ext/filters/gcp_authentication/gcp_authentication_filter.h" #include "src/core/ext/filters/gcp_authentication/gcp_authentication_service_config_parser.h" #include "src/core/lib/channel/channel_args.h" @@ -31,10 +35,6 @@ #include "src/core/xds/grpc/xds_common_types.h" #include "src/core/xds/grpc/xds_common_types_parser.h" #include "src/core/xds/grpc/xds_http_filter.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" -#include "envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb.h" -#include "envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_http_gcp_authn_filter.h b/src/core/xds/grpc/xds_http_gcp_authn_filter.h index 4f577cd837514..df68dcd39493d 100644 --- a/src/core/xds/grpc/xds_http_gcp_authn_filter.h +++ b/src/core/xds/grpc/xds_http_gcp_authn_filter.h @@ -19,14 +19,14 @@ #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/util/validation_errors.h" #include "src/core/xds/grpc/xds_common_types.h" #include "src/core/xds/grpc/xds_http_filter.h" #include "src/core/xds/xds_client/xds_resource_type.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" #include "upb/reflection/def.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_http_rbac_filter.cc b/src/core/xds/grpc/xds_http_rbac_filter.cc index b02640754d394..bad87c36bbfe4 100644 --- a/src/core/xds/grpc/xds_http_rbac_filter.cc +++ b/src/core/xds/grpc/xds_http_rbac_filter.cc @@ -25,6 +25,19 @@ #include #include +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "envoy/config/core/v3/address.upb.h" +#include "envoy/config/rbac/v3/rbac.upb.h" +#include "envoy/config/route/v3/route_components.upb.h" +#include "envoy/extensions/filters/http/rbac/v3/rbac.upb.h" +#include "envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h" +#include "envoy/type/matcher/v3/metadata.upb.h" +#include "envoy/type/matcher/v3/path.upb.h" +#include "envoy/type/matcher/v3/regex.upb.h" +#include "envoy/type/matcher/v3/string.upb.h" +#include "envoy/type/v3/range.upb.h" #include "google/protobuf/wrappers.upb.h" #include "src/core/ext/filters/rbac/rbac_filter.h" #include "src/core/ext/filters/rbac/rbac_service_config_parser.h" @@ -39,19 +52,6 @@ #include "src/core/xds/grpc/xds_bootstrap_grpc.h" #include "src/core/xds/grpc/xds_common_types_parser.h" #include "src/core/xds/xds_client/xds_client.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" -#include "envoy/config/core/v3/address.upb.h" -#include "envoy/config/rbac/v3/rbac.upb.h" -#include "envoy/config/route/v3/route_components.upb.h" -#include "envoy/extensions/filters/http/rbac/v3/rbac.upb.h" -#include "envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h" -#include "envoy/type/matcher/v3/metadata.upb.h" -#include "envoy/type/matcher/v3/path.upb.h" -#include "envoy/type/matcher/v3/regex.upb.h" -#include "envoy/type/matcher/v3/string.upb.h" -#include "envoy/type/v3/range.upb.h" #include "upb/base/string_view.h" #include "upb/message/array.h" #include "upb/message/map.h" diff --git a/src/core/xds/grpc/xds_http_rbac_filter.h b/src/core/xds/grpc/xds_http_rbac_filter.h index 065ec85c9fd08..2db5a7f3d762c 100644 --- a/src/core/xds/grpc/xds_http_rbac_filter.h +++ b/src/core/xds/grpc/xds_http_rbac_filter.h @@ -21,14 +21,14 @@ #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/util/validation_errors.h" #include "src/core/xds/grpc/xds_common_types.h" #include "src/core/xds/grpc/xds_http_filter.h" #include "src/core/xds/xds_client/xds_resource_type.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" #include "upb/reflection/def.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_http_stateful_session_filter.cc b/src/core/xds/grpc/xds_http_stateful_session_filter.cc index acb72eb374e5b..6f8cbd83c3960 100644 --- a/src/core/xds/grpc/xds_http_stateful_session_filter.cc +++ b/src/core/xds/grpc/xds_http_stateful_session_filter.cc @@ -23,6 +23,14 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" +#include "envoy/config/core/v3/extension.upb.h" +#include "envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h" +#include "envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h" +#include "envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h" +#include "envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h" +#include "envoy/type/http/v3/cookie.upb.h" #include "src/core/ext/filters/stateful_session/stateful_session_filter.h" #include "src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h" #include "src/core/lib/channel/channel_args.h" @@ -34,14 +42,6 @@ #include "src/core/xds/grpc/xds_common_types.h" #include "src/core/xds/grpc/xds_common_types_parser.h" #include "src/core/xds/grpc/xds_http_filter.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" -#include "envoy/config/core/v3/extension.upb.h" -#include "envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h" -#include "envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h" -#include "envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h" -#include "envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h" -#include "envoy/type/http/v3/cookie.upb.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_http_stateful_session_filter.h b/src/core/xds/grpc/xds_http_stateful_session_filter.h index 1a0cb9ab9874f..09fa04bd66a3a 100644 --- a/src/core/xds/grpc/xds_http_stateful_session_filter.h +++ b/src/core/xds/grpc/xds_http_stateful_session_filter.h @@ -21,14 +21,14 @@ #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/util/validation_errors.h" #include "src/core/xds/grpc/xds_common_types.h" #include "src/core/xds/grpc/xds_http_filter.h" #include "src/core/xds/xds_client/xds_resource_type.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" #include "upb/reflection/def.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_lb_policy_registry.cc b/src/core/xds/grpc/xds_lb_policy_registry.cc index 7ac9b4d7e18e9..dc54a821a87dc 100644 --- a/src/core/xds/grpc/xds_lb_policy_registry.cc +++ b/src/core/xds/grpc/xds_lb_policy_registry.cc @@ -26,6 +26,12 @@ #include #include +#include "absl/strings/str_cat.h" +#include "envoy/config/core/v3/extension.upb.h" +#include "envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h" +#include "envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h" +#include "envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h" +#include "envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h" #include "google/protobuf/wrappers.upb.h" #include "src/core/config/core_configuration.h" #include "src/core/load_balancing/lb_policy_registry.h" @@ -33,12 +39,6 @@ #include "src/core/util/validation_errors.h" #include "src/core/xds/grpc/xds_common_types.h" #include "src/core/xds/grpc/xds_common_types_parser.h" -#include "absl/strings/str_cat.h" -#include "envoy/config/core/v3/extension.upb.h" -#include "envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h" -#include "envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h" -#include "envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h" -#include "envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_lb_policy_registry.h b/src/core/xds/grpc/xds_lb_policy_registry.h index 4852abc27bbab..5b1fe7913f07d 100644 --- a/src/core/xds/grpc/xds_lb_policy_registry.h +++ b/src/core/xds/grpc/xds_lb_policy_registry.h @@ -22,11 +22,11 @@ #include #include +#include "absl/strings/string_view.h" +#include "envoy/config/cluster/v3/cluster.upb.h" #include "src/core/util/json/json.h" #include "src/core/util/validation_errors.h" #include "src/core/xds/xds_client/xds_resource_type.h" -#include "absl/strings/string_view.h" -#include "envoy/config/cluster/v3/cluster.upb.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_listener.cc b/src/core/xds/grpc/xds_listener.cc index 2ac21a7060282..4dbb359c782d7 100644 --- a/src/core/xds/grpc/xds_listener.cc +++ b/src/core/xds/grpc/xds_listener.cc @@ -16,11 +16,11 @@ #include "src/core/xds/grpc/xds_listener.h" -#include "src/core/lib/address_utils/sockaddr_utils.h" -#include "src/core/util/match.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" +#include "src/core/lib/address_utils/sockaddr_utils.h" +#include "src/core/util/match.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_listener_parser.cc b/src/core/xds/grpc/xds_listener_parser.cc index d4eded429ca3d..51afd86cf0070 100644 --- a/src/core/xds/grpc/xds_listener_parser.cc +++ b/src/core/xds/grpc/xds_listener_parser.cc @@ -21,22 +21,6 @@ #include #include -#include "google/protobuf/any.upb.h" -#include "google/protobuf/duration.upb.h" -#include "google/protobuf/wrappers.upb.h" -#include "src/core/lib/address_utils/parse_address.h" -#include "src/core/lib/address_utils/sockaddr_utils.h" -#include "src/core/lib/debug/trace.h" -#include "src/core/lib/iomgr/sockaddr.h" -#include "src/core/util/down_cast.h" -#include "src/core/util/host_port.h" -#include "src/core/util/match.h" -#include "src/core/util/upb_utils.h" -#include "src/core/util/validation_errors.h" -#include "src/core/xds/grpc/xds_common_types.h" -#include "src/core/xds/grpc/xds_common_types_parser.h" -#include "src/core/xds/grpc/xds_route_config_parser.h" -#include "src/core/xds/xds_client/xds_resource_type.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" @@ -56,6 +40,22 @@ #include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h" #include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h" #include "envoy/extensions/transport_sockets/tls/v3/tls.upb.h" +#include "google/protobuf/any.upb.h" +#include "google/protobuf/duration.upb.h" +#include "google/protobuf/wrappers.upb.h" +#include "src/core/lib/address_utils/parse_address.h" +#include "src/core/lib/address_utils/sockaddr_utils.h" +#include "src/core/lib/debug/trace.h" +#include "src/core/lib/iomgr/sockaddr.h" +#include "src/core/util/down_cast.h" +#include "src/core/util/host_port.h" +#include "src/core/util/match.h" +#include "src/core/util/upb_utils.h" +#include "src/core/util/validation_errors.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_common_types_parser.h" +#include "src/core/xds/grpc/xds_route_config_parser.h" +#include "src/core/xds/xds_client/xds_resource_type.h" #include "upb/text/encode.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_listener_parser.h b/src/core/xds/grpc/xds_listener_parser.h index ca6ce3de04825..ed0c88b85d6ac 100644 --- a/src/core/xds/grpc/xds_listener_parser.h +++ b/src/core/xds/grpc/xds_listener_parser.h @@ -17,6 +17,9 @@ #ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_LISTENER_PARSER_H #define GRPC_SRC_CORE_XDS_GRPC_XDS_LISTENER_PARSER_H +#include "absl/strings/string_view.h" +#include "envoy/config/listener/v3/listener.upbdefs.h" +#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h" #include "src/core/util/down_cast.h" #include "src/core/xds/grpc/xds_bootstrap_grpc.h" #include "src/core/xds/grpc/xds_http_filter_registry.h" @@ -24,9 +27,6 @@ #include "src/core/xds/xds_client/xds_client.h" #include "src/core/xds/xds_client/xds_resource_type.h" #include "src/core/xds/xds_client/xds_resource_type_impl.h" -#include "absl/strings/string_view.h" -#include "envoy/config/listener/v3/listener.upbdefs.h" -#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h" #include "upb/reflection/def.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_metadata.h b/src/core/xds/grpc/xds_metadata.h index 66fbc9530f344..419540cb3631b 100644 --- a/src/core/xds/grpc/xds_metadata.h +++ b/src/core/xds/grpc/xds_metadata.h @@ -21,13 +21,13 @@ #include #include +#include "absl/container/flat_hash_map.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/util/down_cast.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_writer.h" #include "src/core/util/validation_errors.h" -#include "absl/container/flat_hash_map.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_metadata_parser.cc b/src/core/xds/grpc/xds_metadata_parser.cc index 39932b049919e..3df94e6033003 100644 --- a/src/core/xds/grpc/xds_metadata_parser.cc +++ b/src/core/xds/grpc/xds_metadata_parser.cc @@ -19,6 +19,12 @@ #include #include +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "envoy/config/core/v3/address.upb.h" +#include "envoy/config/core/v3/address.upbdefs.h" +#include "envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb.h" +#include "envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/util/env.h" #include "src/core/util/string.h" @@ -27,12 +33,6 @@ #include "src/core/xds/grpc/xds_cluster_parser.h" #include "src/core/xds/grpc/xds_common_types.h" #include "src/core/xds/grpc/xds_common_types_parser.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" -#include "envoy/config/core/v3/address.upb.h" -#include "envoy/config/core/v3/address.upbdefs.h" -#include "envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb.h" -#include "envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.h" #include "upb/base/string_view.h" #include "upb/message/array.h" #include "upb/message/map.h" diff --git a/src/core/xds/grpc/xds_metadata_parser.h b/src/core/xds/grpc/xds_metadata_parser.h index f8bb1abe4b488..7cb9d55daa705 100644 --- a/src/core/xds/grpc/xds_metadata_parser.h +++ b/src/core/xds/grpc/xds_metadata_parser.h @@ -17,10 +17,10 @@ #ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_METADATA_PARSER_H #define GRPC_SRC_CORE_XDS_GRPC_XDS_METADATA_PARSER_H +#include "envoy/config/core/v3/base.upb.h" #include "src/core/util/validation_errors.h" #include "src/core/xds/grpc/xds_metadata.h" #include "src/core/xds/xds_client/xds_resource_type.h" -#include "envoy/config/core/v3/base.upb.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_route_config.cc b/src/core/xds/grpc/xds_route_config.cc index ce3593c08f508..29abfdecb8733 100644 --- a/src/core/xds/grpc/xds_route_config.cc +++ b/src/core/xds/grpc/xds_route_config.cc @@ -22,12 +22,12 @@ #include #include -#include "src/core/util/match.h" -#include "src/core/util/matchers.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" #include "re2/re2.h" +#include "src/core/util/match.h" +#include "src/core/util/matchers.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_route_config.h b/src/core/xds/grpc/xds_route_config.h index da98911ad6c9e..c42dc2253b05c 100644 --- a/src/core/xds/grpc/xds_route_config.h +++ b/src/core/xds/grpc/xds_route_config.h @@ -27,13 +27,13 @@ #include #include +#include "re2/re2.h" #include "src/core/call/status_util.h" #include "src/core/util/matchers.h" #include "src/core/util/time.h" #include "src/core/xds/grpc/xds_http_filter.h" #include "src/core/xds/xds_client/xds_resource_type.h" #include "src/core/xds/xds_client/xds_resource_type_impl.h" -#include "re2/re2.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_route_config_parser.cc b/src/core/xds/grpc/xds_route_config_parser.cc index 8e616876e2abe..e3435056de2c5 100644 --- a/src/core/xds/grpc/xds_route_config_parser.cc +++ b/src/core/xds/grpc/xds_route_config_parser.cc @@ -30,9 +30,28 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" +#include "envoy/config/core/v3/base.upb.h" +#include "envoy/config/core/v3/extension.upb.h" +#include "envoy/config/route/v3/route.upb.h" +#include "envoy/config/route/v3/route.upbdefs.h" +#include "envoy/config/route/v3/route_components.upb.h" +#include "envoy/type/matcher/v3/regex.upb.h" +#include "envoy/type/matcher/v3/string.upb.h" +#include "envoy/type/v3/percent.upb.h" +#include "envoy/type/v3/range.upb.h" #include "google/protobuf/any.upb.h" #include "google/protobuf/duration.upb.h" #include "google/protobuf/wrappers.upb.h" +#include "re2/re2.h" #include "src/core/call/status_util.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/debug/trace.h" @@ -54,25 +73,6 @@ #include "src/core/xds/grpc/xds_http_filter_registry.h" #include "src/core/xds/grpc/xds_routing.h" #include "src/core/xds/xds_client/xds_resource_type.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" -#include "envoy/config/core/v3/base.upb.h" -#include "envoy/config/core/v3/extension.upb.h" -#include "envoy/config/route/v3/route.upb.h" -#include "envoy/config/route/v3/route.upbdefs.h" -#include "envoy/config/route/v3/route_components.upb.h" -#include "envoy/type/matcher/v3/regex.upb.h" -#include "envoy/type/matcher/v3/string.upb.h" -#include "envoy/type/v3/percent.upb.h" -#include "envoy/type/v3/range.upb.h" -#include "re2/re2.h" #include "upb/base/string_view.h" #include "upb/message/map.h" #include "upb/text/encode.h" diff --git a/src/core/xds/grpc/xds_route_config_parser.h b/src/core/xds/grpc/xds_route_config_parser.h index a1f3e4a390989..68d400e9d036b 100644 --- a/src/core/xds/grpc/xds_route_config_parser.h +++ b/src/core/xds/grpc/xds_route_config_parser.h @@ -27,6 +27,10 @@ #include #include +#include "absl/strings/string_view.h" +#include "envoy/config/route/v3/route.upb.h" +#include "envoy/config/route/v3/route.upbdefs.h" +#include "re2/re2.h" #include "src/core/call/status_util.h" #include "src/core/util/down_cast.h" #include "src/core/util/time.h" @@ -38,10 +42,6 @@ #include "src/core/xds/xds_client/xds_client.h" #include "src/core/xds/xds_client/xds_resource_type.h" #include "src/core/xds/xds_client/xds_resource_type_impl.h" -#include "absl/strings/string_view.h" -#include "envoy/config/route/v3/route.upb.h" -#include "envoy/config/route/v3/route.upbdefs.h" -#include "re2/re2.h" #include "upb/reflection/def.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_routing.cc b/src/core/xds/grpc/xds_routing.cc index 7b1c547c9802e..ca45f10f825c3 100644 --- a/src/core/xds/grpc/xds_routing.cc +++ b/src/core/xds/grpc/xds_routing.cc @@ -26,14 +26,14 @@ #include #include -#include "src/core/lib/channel/channel_args.h" -#include "src/core/util/matchers.h" -#include "src/core/xds/grpc/xds_http_filter.h" #include "absl/log/check.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/match.h" #include "absl/strings/str_cat.h" +#include "src/core/lib/channel/channel_args.h" +#include "src/core/util/matchers.h" +#include "src/core/xds/grpc/xds_http_filter.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_routing.h b/src/core/xds/grpc/xds_routing.h index 4f097e0ba09b2..44060b8fe0cb4 100644 --- a/src/core/xds/grpc/xds_routing.h +++ b/src/core/xds/grpc/xds_routing.h @@ -27,13 +27,13 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/xds/grpc/xds_http_filter_registry.h" #include "src/core/xds/grpc/xds_listener.h" #include "src/core/xds/grpc/xds_route_config.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_server_grpc.cc b/src/core/xds/grpc/xds_server_grpc.cc index 3937e05b72332..16f0981a78289 100644 --- a/src/core/xds/grpc/xds_server_grpc.cc +++ b/src/core/xds/grpc/xds_server_grpc.cc @@ -23,12 +23,12 @@ #include #include +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/util/down_cast.h" #include "src/core/util/json/json_reader.h" #include "src/core/util/json/json_writer.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_transport_grpc.cc b/src/core/xds/grpc/xds_transport_grpc.cc index 2e7668721cdfd..9047b25cd2575 100644 --- a/src/core/xds/grpc/xds_transport_grpc.cc +++ b/src/core/xds/grpc/xds_transport_grpc.cc @@ -31,6 +31,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/str_cat.h" #include "src/core/client_channel/client_channel_filter.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/transport/channel_creds_registry.h" @@ -57,8 +59,6 @@ #include "src/core/util/time.h" #include "src/core/xds/grpc/xds_server_grpc_interface.h" #include "src/core/xds/xds_client/xds_bootstrap.h" -#include "absl/log/check.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/src/core/xds/grpc/xds_transport_grpc.h b/src/core/xds/grpc/xds_transport_grpc.h index 5556de4ff1ea5..b2454488ea863 100644 --- a/src/core/xds/grpc/xds_transport_grpc.h +++ b/src/core/xds/grpc/xds_transport_grpc.h @@ -26,6 +26,8 @@ #include #include +#include "absl/container/flat_hash_map.h" +#include "absl/status/status.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/error.h" @@ -36,8 +38,6 @@ #include "src/core/util/sync.h" #include "src/core/xds/xds_client/xds_bootstrap.h" #include "src/core/xds/xds_client/xds_transport.h" -#include "absl/container/flat_hash_map.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/src/core/xds/xds_client/lrs_client.cc b/src/core/xds/xds_client/lrs_client.cc index 188096b5fec11..a7b0787401fe6 100644 --- a/src/core/xds/xds_client/lrs_client.cc +++ b/src/core/xds/xds_client/lrs_client.cc @@ -24,6 +24,14 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/string_view.h" +#include "envoy/config/core/v3/base.upb.h" +#include "envoy/config/endpoint/v3/load_report.upb.h" +#include "envoy/service/load_stats/v3/lrs.upb.h" +#include "envoy/service/load_stats/v3/lrs.upbdefs.h" #include "google/protobuf/duration.upb.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -39,14 +47,6 @@ #include "src/core/xds/xds_client/xds_api.h" #include "src/core/xds/xds_client/xds_bootstrap.h" #include "src/core/xds/xds_client/xds_locality.h" -#include "absl/cleanup/cleanup.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/string_view.h" -#include "envoy/config/core/v3/base.upb.h" -#include "envoy/config/endpoint/v3/load_report.upb.h" -#include "envoy/service/load_stats/v3/lrs.upb.h" -#include "envoy/service/load_stats/v3/lrs.upbdefs.h" #include "upb/base/string_view.h" #include "upb/mem/arena.h" #include "upb/reflection/def.h" diff --git a/src/core/xds/xds_client/lrs_client.h b/src/core/xds/xds_client/lrs_client.h index c4703807d818f..ce25993a5ebce 100644 --- a/src/core/xds/xds_client/lrs_client.h +++ b/src/core/xds/xds_client/lrs_client.h @@ -26,6 +26,10 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/lib/debug/trace.h" #include "src/core/load_balancing/backend_metric_data.h" #include "src/core/util/dual_ref_counted.h" @@ -44,10 +48,6 @@ #include "src/core/xds/xds_client/xds_metrics.h" #include "src/core/xds/xds_client/xds_resource_type.h" #include "src/core/xds/xds_client/xds_transport.h" -#include "absl/base/thread_annotations.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" #include "upb/reflection/def.hpp" namespace grpc_core { diff --git a/src/core/xds/xds_client/xds_api.h b/src/core/xds/xds_client/xds_api.h index 3c9955ad28f6a..3a0b59732c103 100644 --- a/src/core/xds/xds_client/xds_api.h +++ b/src/core/xds/xds_client/xds_api.h @@ -17,9 +17,9 @@ #ifndef GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_API_H #define GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_API_H -#include "src/core/xds/xds_client/xds_bootstrap.h" #include "absl/strings/string_view.h" #include "envoy/config/core/v3/base.upb.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" #include "upb/mem/arena.h" namespace grpc_core { diff --git a/src/core/xds/xds_client/xds_backend_metric_propagation.cc b/src/core/xds/xds_client/xds_backend_metric_propagation.cc index 6b8f10d9c8626..edb2f852f71f7 100644 --- a/src/core/xds/xds_client/xds_backend_metric_propagation.cc +++ b/src/core/xds/xds_client/xds_backend_metric_propagation.cc @@ -18,9 +18,9 @@ #include -#include "src/core/util/useful.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" +#include "src/core/util/useful.h" namespace grpc_core { diff --git a/src/core/xds/xds_client/xds_backend_metric_propagation.h b/src/core/xds/xds_client/xds_backend_metric_propagation.h index 12c58403854e6..3b9af885f7132 100644 --- a/src/core/xds/xds_client/xds_backend_metric_propagation.h +++ b/src/core/xds/xds_client/xds_backend_metric_propagation.h @@ -19,9 +19,9 @@ #include +#include "absl/container/flat_hash_set.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/container/flat_hash_set.h" namespace grpc_core { diff --git a/src/core/xds/xds_client/xds_client.cc b/src/core/xds/xds_client/xds_client.cc index 992f8067d1013..69af1eccb5b87 100644 --- a/src/core/xds/xds_client/xds_client.cc +++ b/src/core/xds/xds_client/xds_client.cc @@ -29,6 +29,18 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" +#include "absl/strings/strip.h" +#include "envoy/config/core/v3/base.upb.h" +#include "envoy/service/discovery/v3/discovery.upb.h" +#include "envoy/service/discovery/v3/discovery.upbdefs.h" #include "google/protobuf/any.upb.h" #include "google/protobuf/timestamp.upb.h" #include "google/rpc/status.upb.h" @@ -43,18 +55,6 @@ #include "src/core/xds/xds_client/xds_api.h" #include "src/core/xds/xds_client/xds_bootstrap.h" #include "src/core/xds/xds_client/xds_locality.h" -#include "absl/cleanup/cleanup.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" -#include "absl/strings/strip.h" -#include "envoy/config/core/v3/base.upb.h" -#include "envoy/service/discovery/v3/discovery.upb.h" -#include "envoy/service/discovery/v3/discovery.upbdefs.h" #include "upb/base/string_view.h" #include "upb/mem/arena.h" #include "upb/reflection/def.h" diff --git a/src/core/xds/xds_client/xds_client.h b/src/core/xds/xds_client/xds_client.h index 11e5ec510bb89..31fe33a592dce 100644 --- a/src/core/xds/xds_client/xds_client.h +++ b/src/core/xds/xds_client/xds_client.h @@ -27,6 +27,13 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/container/flat_hash_set.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" +#include "envoy/admin/v3/config_dump_shared.upb.h" +#include "envoy/service/status/v3/csds.upb.h" #include "src/core/lib/debug/trace.h" #include "src/core/util/dual_ref_counted.h" #include "src/core/util/orphanable.h" @@ -42,13 +49,6 @@ #include "src/core/xds/xds_client/xds_metrics.h" #include "src/core/xds/xds_client/xds_resource_type.h" #include "src/core/xds/xds_client/xds_transport.h" -#include "absl/base/thread_annotations.h" -#include "absl/container/flat_hash_set.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" -#include "envoy/admin/v3/config_dump_shared.upb.h" -#include "envoy/service/status/v3/csds.upb.h" #include "upb/reflection/def.hpp" namespace grpc_core { diff --git a/src/core/xds/xds_client/xds_locality.h b/src/core/xds/xds_client/xds_locality.h index 9b5b11c843540..7fb469ba41578 100644 --- a/src/core/xds/xds_client/xds_locality.h +++ b/src/core/xds/xds_client/xds_locality.h @@ -22,13 +22,13 @@ #include #include +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" #include "src/core/resolver/endpoint_addresses.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/ref_counted_string.h" #include "src/core/util/useful.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/xds/xds_client/xds_resource_type.h b/src/core/xds/xds_client/xds_resource_type.h index a4941dc86bd95..ab45ac79da02c 100644 --- a/src/core/xds/xds_client/xds_resource_type.h +++ b/src/core/xds/xds_client/xds_resource_type.h @@ -22,10 +22,10 @@ #include #include -#include "src/core/lib/debug/trace.h" -#include "src/core/xds/xds_client/xds_bootstrap.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "src/core/lib/debug/trace.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" #include "upb/mem/arena.h" #include "upb/reflection/def.h" diff --git a/src/core/xds/xds_client/xds_resource_type_impl.h b/src/core/xds/xds_client/xds_resource_type_impl.h index f386cc8378b05..bb54cbc650ee7 100644 --- a/src/core/xds/xds_client/xds_resource_type_impl.h +++ b/src/core/xds/xds_client/xds_resource_type_impl.h @@ -20,11 +20,11 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/util/down_cast.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/xds/xds_client/xds_client.h" #include "src/core/xds/xds_client/xds_resource_type.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/core/xds/xds_client/xds_transport.h b/src/core/xds/xds_client/xds_transport.h index ade31d658592e..c7a569d3c149a 100644 --- a/src/core/xds/xds_client/xds_transport.h +++ b/src/core/xds/xds_client/xds_transport.h @@ -20,11 +20,11 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/util/dual_ref_counted.h" #include "src/core/util/orphanable.h" #include "src/core/xds/xds_client/xds_bootstrap.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/src/cpp/client/channel_cc.cc b/src/cpp/client/channel_cc.cc index b566c14a3a567..e99c416d17577 100644 --- a/src/cpp/client/channel_cc.cc +++ b/src/cpp/client/channel_cc.cc @@ -39,8 +39,8 @@ #include #include -#include "src/core/lib/iomgr/iomgr.h" #include "absl/log/check.h" +#include "src/core/lib/iomgr/iomgr.h" namespace grpc { diff --git a/src/cpp/client/client_context.cc b/src/cpp/client/client_context.cc index 600a19b033461..d5dd3055c294c 100644 --- a/src/cpp/client/client_context.cc +++ b/src/cpp/client/client_context.cc @@ -37,9 +37,9 @@ #include #include -#include "src/core/util/crash.h" #include "absl/log/check.h" #include "absl/strings/str_format.h" +#include "src/core/util/crash.h" namespace grpc { diff --git a/src/cpp/client/secure_credentials.cc b/src/cpp/client/secure_credentials.cc index 1ec7aa42f2d1e..d306677bea85f 100644 --- a/src/cpp/client/secure_credentials.cc +++ b/src/cpp/client/secure_credentials.cc @@ -39,6 +39,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_join.h" #include "src/core/credentials/call/json_util.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -48,11 +53,6 @@ #include "src/core/util/load_file.h" #include "src/cpp/common/secure_auth_context.h" #include "src/cpp/server/thread_pool_interface.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_join.h" namespace grpc { diff --git a/src/cpp/common/alarm.cc b/src/cpp/common/alarm.cc index 0f4c99feda040..5536e923faae4 100644 --- a/src/cpp/common/alarm.cc +++ b/src/cpp/common/alarm.cc @@ -29,13 +29,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/surface/completion_queue.h" #include "src/core/util/time.h" -#include "absl/log/check.h" -#include "absl/status/status.h" namespace grpc { diff --git a/src/cpp/common/alts_util.cc b/src/cpp/common/alts_util.cc index ef9185af47bdb..1a0a2149b1f4c 100644 --- a/src/cpp/common/alts_util.cc +++ b/src/cpp/common/alts_util.cc @@ -28,8 +28,8 @@ #include #include -#include "src/core/tsi/alts/handshaker/alts_tsi_handshaker.h" #include "absl/log/log.h" +#include "src/core/tsi/alts/handshaker/alts_tsi_handshaker.h" #include "src/proto/grpc/gcp/altscontext.upb.h" #include "upb/mem/arena.hpp" diff --git a/src/cpp/common/channel_arguments.cc b/src/cpp/common/channel_arguments.cc index b964eb7cc5a52..af1838571ca74 100644 --- a/src/cpp/common/channel_arguments.cc +++ b/src/cpp/common/channel_arguments.cc @@ -26,9 +26,9 @@ #include #include +#include "absl/log/check.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/socket_mutator.h" -#include "absl/log/check.h" namespace grpc { diff --git a/src/cpp/common/completion_queue_cc.cc b/src/cpp/common/completion_queue_cc.cc index ce6e5f60a669f..e82b6260358ab 100644 --- a/src/cpp/common/completion_queue_cc.cc +++ b/src/cpp/common/completion_queue_cc.cc @@ -25,14 +25,14 @@ #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/util/crash.h" #include "src/core/util/sync.h" #include "src/core/util/thd.h" #include "src/core/util/useful.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc { namespace { diff --git a/src/cpp/common/tls_certificate_provider.cc b/src/cpp/common/tls_certificate_provider.cc index 0860726a08a8f..da0d3b1407c7b 100644 --- a/src/cpp/common/tls_certificate_provider.cc +++ b/src/cpp/common/tls_certificate_provider.cc @@ -21,8 +21,8 @@ #include #include -#include "src/core/credentials/transport/tls/grpc_tls_certificate_provider.h" #include "absl/log/check.h" +#include "src/core/credentials/transport/tls/grpc_tls_certificate_provider.h" namespace grpc { namespace experimental { diff --git a/src/cpp/common/validate_service_config.cc b/src/cpp/common/validate_service_config.cc index be8a7c7729832..6869617036a27 100644 --- a/src/cpp/common/validate_service_config.cc +++ b/src/cpp/common/validate_service_config.cc @@ -21,12 +21,12 @@ #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/service_config/service_config.h" #include "src/core/service_config/service_config_impl.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc { namespace experimental { diff --git a/src/cpp/ext/csm/csm_observability.cc b/src/cpp/ext/csm/csm_observability.cc index 2ef11fc309bcb..c2acd8f0ecec4 100644 --- a/src/cpp/ext/csm/csm_observability.cc +++ b/src/cpp/ext/csm/csm_observability.cc @@ -26,6 +26,10 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/log.h" +#include "absl/status/statusor.h" +#include "google/cloud/opentelemetry/resource_detector.h" #include "opentelemetry/sdk/metrics/meter_provider.h" #include "opentelemetry/sdk/resource/resource.h" #include "opentelemetry/sdk/resource/resource_detector.h" @@ -34,10 +38,6 @@ #include "src/core/xds/grpc/xds_enabled_server.h" #include "src/cpp/ext/csm/metadata_exchange.h" #include "src/cpp/ext/otel/otel_plugin.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/log.h" -#include "absl/status/statusor.h" -#include "google/cloud/opentelemetry/resource_detector.h" namespace grpc { diff --git a/src/cpp/ext/csm/csm_observability.h b/src/cpp/ext/csm/csm_observability.h index 8ae58817f54d1..a42831a4f4ac4 100644 --- a/src/cpp/ext/csm/csm_observability.h +++ b/src/cpp/ext/csm/csm_observability.h @@ -21,8 +21,8 @@ #include -#include "src/core/lib/channel/channel_args.h" #include "absl/strings/string_view.h" +#include "src/core/lib/channel/channel_args.h" namespace grpc { namespace internal { diff --git a/src/cpp/ext/csm/metadata_exchange.cc b/src/cpp/ext/csm/metadata_exchange.cc index 069ad32b2dfad..abe38ccd853f2 100644 --- a/src/cpp/ext/csm/metadata_exchange.cc +++ b/src/cpp/ext/csm/metadata_exchange.cc @@ -29,18 +29,18 @@ #include #include -#include "opentelemetry/sdk/resource/semantic_conventions.h" -#include "src/core/lib/iomgr/error.h" -#include "src/core/lib/slice/slice_internal.h" -#include "src/core/telemetry/call_tracer.h" -#include "src/core/util/env.h" -#include "src/cpp/ext/otel/key_value_iterable.h" #include "absl/log/check.h" #include "absl/status/statusor.h" #include "absl/strings/escaping.h" #include "absl/strings/str_split.h" #include "absl/strings/string_view.h" #include "absl/strings/strip.h" +#include "opentelemetry/sdk/resource/semantic_conventions.h" +#include "src/core/lib/iomgr/error.h" +#include "src/core/lib/slice/slice_internal.h" +#include "src/core/telemetry/call_tracer.h" +#include "src/core/util/env.h" +#include "src/cpp/ext/otel/key_value_iterable.h" #include "upb/base/string_view.h" namespace grpc { diff --git a/src/cpp/ext/csm/metadata_exchange.h b/src/cpp/ext/csm/metadata_exchange.h index 25b55b67af3ea..40988327a900d 100644 --- a/src/cpp/ext/csm/metadata_exchange.h +++ b/src/cpp/ext/csm/metadata_exchange.h @@ -26,12 +26,12 @@ #include #include +#include "absl/strings/string_view.h" #include "google/protobuf/struct.upb.h" #include "opentelemetry/sdk/common/attribute_utils.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/slice/slice.h" #include "src/cpp/ext/otel/otel_plugin.h" -#include "absl/strings/string_view.h" #include "upb/mem/arena.hpp" namespace grpc { diff --git a/src/cpp/ext/filters/census/client_filter.cc b/src/cpp/ext/filters/census/client_filter.cc index c49bbdb1f8aa7..399d9eea86269 100644 --- a/src/cpp/ext/filters/census/client_filter.cc +++ b/src/cpp/ext/filters/census/client_filter.cc @@ -35,6 +35,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" #include "opencensus/stats/stats.h" #include "opencensus/tags/tag_key.h" #include "opencensus/tags/tag_map.h" @@ -57,13 +64,6 @@ #include "src/cpp/ext/filters/census/grpc_plugin.h" #include "src/cpp/ext/filters/census/measures.h" #include "src/cpp/ext/filters/census/open_census_call_tracer.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" namespace grpc { namespace internal { diff --git a/src/cpp/ext/filters/census/client_filter.h b/src/cpp/ext/filters/census/client_filter.h index 38043347eaaf2..e1ee13b087f08 100644 --- a/src/cpp/ext/filters/census/client_filter.h +++ b/src/cpp/ext/filters/census/client_filter.h @@ -23,12 +23,12 @@ #include #include +#include "absl/status/statusor.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/promise_based_filter.h" #include "src/core/lib/promise/arena_promise.h" #include "src/core/lib/transport/transport.h" -#include "absl/status/statusor.h" namespace grpc { namespace internal { diff --git a/src/cpp/ext/filters/census/context.h b/src/cpp/ext/filters/census/context.h index c72723b08b607..fcee940713907 100644 --- a/src/cpp/ext/filters/census/context.h +++ b/src/cpp/ext/filters/census/context.h @@ -27,12 +27,12 @@ #include #include +#include "absl/strings/string_view.h" +#include "absl/strings/strip.h" #include "opencensus/trace/span.h" #include "opencensus/trace/span_context.h" #include "src/core/lib/channel/channel_stack.h" #include "src/core/lib/slice/slice.h" -#include "absl/strings/string_view.h" -#include "absl/strings/strip.h" namespace grpc { diff --git a/src/cpp/ext/filters/census/grpc_plugin.cc b/src/cpp/ext/filters/census/grpc_plugin.cc index f89f4ce5d20f4..c97b7f0bca1eb 100644 --- a/src/cpp/ext/filters/census/grpc_plugin.cc +++ b/src/cpp/ext/filters/census/grpc_plugin.cc @@ -24,6 +24,8 @@ #include +#include "absl/base/attributes.h" +#include "absl/strings/string_view.h" #include "opencensus/tags/tag_key.h" #include "opencensus/trace/span.h" #include "src/core/config/core_configuration.h" @@ -33,8 +35,6 @@ #include "src/cpp/ext/filters/census/client_filter.h" #include "src/cpp/ext/filters/census/measures.h" #include "src/cpp/ext/filters/census/server_call_tracer.h" -#include "absl/base/attributes.h" -#include "absl/strings/string_view.h" namespace grpc { diff --git a/src/cpp/ext/filters/census/grpc_plugin.h b/src/cpp/ext/filters/census/grpc_plugin.h index a9c40676c3a0e..af647d33af1d4 100644 --- a/src/cpp/ext/filters/census/grpc_plugin.h +++ b/src/cpp/ext/filters/census/grpc_plugin.h @@ -28,10 +28,10 @@ #include #include +#include "absl/strings/string_view.h" #include "opencensus/stats/stats.h" #include "opencensus/tags/tag_key.h" #include "opencensus/tags/tag_map.h" -#include "absl/strings/string_view.h" namespace grpc { diff --git a/src/cpp/ext/filters/census/open_census_call_tracer.h b/src/cpp/ext/filters/census/open_census_call_tracer.h index be2abe287e4f3..a147035a1d24f 100644 --- a/src/cpp/ext/filters/census/open_census_call_tracer.h +++ b/src/cpp/ext/filters/census/open_census_call_tracer.h @@ -28,6 +28,10 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" +#include "absl/time/time.h" #include "opencensus/trace/span.h" #include "opencensus/trace/span_context.h" #include "opencensus/trace/span_id.h" @@ -41,10 +45,6 @@ #include "src/core/telemetry/call_tracer.h" #include "src/core/telemetry/tcp_tracer.h" #include "src/core/util/sync.h" -#include "absl/base/thread_annotations.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" -#include "absl/time/time.h" // TODO(yashykt): This might not be the right place for this channel arg, but we // don't have a better place for this right now. diff --git a/src/cpp/ext/filters/census/server_call_tracer.cc b/src/cpp/ext/filters/census/server_call_tracer.cc index 0066a6f631027..22bc798e39ea3 100644 --- a/src/cpp/ext/filters/census/server_call_tracer.cc +++ b/src/cpp/ext/filters/census/server_call_tracer.cc @@ -31,6 +31,11 @@ #include #include +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" #include "opencensus/stats/stats.h" #include "opencensus/tags/tag_key.h" #include "opencensus/tags/tag_map.h" @@ -50,11 +55,6 @@ #include "src/cpp/ext/filters/census/context.h" #include "src/cpp/ext/filters/census/grpc_plugin.h" #include "src/cpp/ext/filters/census/measures.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" namespace grpc { namespace internal { diff --git a/src/cpp/ext/filters/census/views.cc b/src/cpp/ext/filters/census/views.cc index ffec907e3c9a0..3fa27ff57a6d3 100644 --- a/src/cpp/ext/filters/census/views.cc +++ b/src/cpp/ext/filters/census/views.cc @@ -21,9 +21,9 @@ #include +#include "absl/time/time.h" #include "opencensus/stats/stats.h" #include "src/cpp/ext/filters/census/grpc_plugin.h" -#include "absl/time/time.h" namespace grpc { diff --git a/src/cpp/ext/gcp/environment_autodetect.cc b/src/cpp/ext/gcp/environment_autodetect.cc index baaea41ac5e41..98d9b89c4d187 100644 --- a/src/cpp/ext/gcp/environment_autodetect.cc +++ b/src/cpp/ext/gcp/environment_autodetect.cc @@ -27,6 +27,11 @@ #include #include +#include "absl/container/flat_hash_map.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/iomgr/closure.h" @@ -43,11 +48,6 @@ #include "src/core/util/orphanable.h" #include "src/core/util/status_helper.h" #include "src/core/util/time.h" -#include "absl/container/flat_hash_map.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc { namespace internal { diff --git a/src/cpp/ext/gcp/environment_autodetect.h b/src/cpp/ext/gcp/environment_autodetect.h index 6203876cd1dcc..21ccfdf47a7f7 100644 --- a/src/cpp/ext/gcp/environment_autodetect.h +++ b/src/cpp/ext/gcp/environment_autodetect.h @@ -25,10 +25,10 @@ #include #include -#include "src/core/util/sync.h" #include "absl/base/thread_annotations.h" #include "absl/functional/any_invocable.h" #include "absl/status/status.h" +#include "src/core/util/sync.h" namespace grpc { diff --git a/src/cpp/ext/gcp/observability.cc b/src/cpp/ext/gcp/observability.cc index 848dca0b5a545..10e119e327a9b 100644 --- a/src/cpp/ext/gcp/observability.cc +++ b/src/cpp/ext/gcp/observability.cc @@ -31,6 +31,11 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" #include "google/api/monitored_resource.pb.h" #include "google/devtools/cloudtrace/v2/tracing.grpc.pb.h" #include "google/monitoring/v3/metric_service.grpc.pb.h" @@ -49,11 +54,6 @@ #include "src/cpp/ext/gcp/environment_autodetect.h" #include "src/cpp/ext/gcp/observability_config.h" #include "src/cpp/ext/gcp/observability_logging_sink.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" namespace grpc { diff --git a/src/cpp/ext/gcp/observability_config.cc b/src/cpp/ext/gcp/observability_config.cc index 0a39b0c21e1eb..f1c247ebe0c6a 100644 --- a/src/cpp/ext/gcp/observability_config.cc +++ b/src/cpp/ext/gcp/observability_config.cc @@ -25,6 +25,11 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/lib/transport/error_utils.h" @@ -34,11 +39,6 @@ #include "src/core/util/load_file.h" #include "src/core/util/status_helper.h" #include "src/core/util/validation_errors.h" -#include "absl/status/status.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" namespace grpc { namespace internal { diff --git a/src/cpp/ext/gcp/observability_config.h b/src/cpp/ext/gcp/observability_config.h index b04a6a092ee67..243aa79775c71 100644 --- a/src/cpp/ext/gcp/observability_config.h +++ b/src/cpp/ext/gcp/observability_config.h @@ -25,12 +25,12 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_args.h" #include "src/core/util/json/json_object_loader.h" #include "src/core/util/validation_errors.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc { namespace internal { diff --git a/src/cpp/ext/gcp/observability_logging_sink.cc b/src/cpp/ext/gcp/observability_logging_sink.cc index bdfb4b9f120f4..9b3488a649c8b 100644 --- a/src/cpp/ext/gcp/observability_logging_sink.cc +++ b/src/cpp/ext/gcp/observability_logging_sink.cc @@ -31,6 +31,11 @@ #include #include +#include "absl/log/log.h" +#include "absl/numeric/int128.h" +#include "absl/strings/escaping.h" +#include "absl/strings/match.h" +#include "absl/strings/str_format.h" #include "google/api/monitored_resource.pb.h" #include "google/logging/v2/log_entry.pb.h" #include "google/logging/v2/logging.grpc.pb.h" @@ -42,11 +47,6 @@ #include "src/core/util/time.h" #include "src/core/util/uuid_v4.h" #include "src/cpp/ext/filters/census/open_census_call_tracer.h" -#include "absl/log/log.h" -#include "absl/numeric/int128.h" -#include "absl/strings/escaping.h" -#include "absl/strings/match.h" -#include "absl/strings/str_format.h" // IWYU pragma: no_include "google/protobuf/struct.pb.h" // IWYU pragma: no_include "google/protobuf/timestamp.pb.h" @@ -364,7 +364,8 @@ void ObservabilityLoggingSink::FlushEntriesHelper( << ". Dumping log entries."; for (auto& entry : call->request.entries()) { std::string output; - ::google::protobuf::TextFormat::PrintToString(entry.json_payload(), &output); + ::google::protobuf::TextFormat::PrintToString(entry.json_payload(), + &output); LOG(INFO) << "Log Entry recorded at time: " << grpc_core::Timestamp::FromTimespecRoundUp( gpr_timespec{entry.timestamp().seconds(), diff --git a/src/cpp/ext/gcp/observability_logging_sink.h b/src/cpp/ext/gcp/observability_logging_sink.h index d1ad19c4ed93a..a61765118c28f 100644 --- a/src/cpp/ext/gcp/observability_logging_sink.h +++ b/src/cpp/ext/gcp/observability_logging_sink.h @@ -29,13 +29,13 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/strings/string_view.h" #include "google/logging/v2/logging.grpc.pb.h" #include "src/core/ext/filters/logging/logging_sink.h" #include "src/core/util/sync.h" #include "src/cpp/ext/gcp/environment_autodetect.h" #include "src/cpp/ext/gcp/observability_config.h" -#include "absl/base/thread_annotations.h" -#include "absl/strings/string_view.h" namespace grpc { namespace internal { @@ -96,8 +96,8 @@ class ObservabilityLoggingSink : public grpc_core::LoggingSink { bool registered_env_fetch_notification_ = false; std::shared_ptr ABSL_GUARDED_BY( mu_) event_engine_; - std::unique_ptr - stub_ ABSL_GUARDED_BY(mu_); + std::unique_ptr stub_ + ABSL_GUARDED_BY(mu_); std::vector entries_ ABSL_GUARDED_BY(mu_); uint64_t entries_memory_footprint_ ABSL_GUARDED_BY(mu_) = 0; const EnvironmentAutoDetect::ResourceType* resource_ ABSL_GUARDED_BY(mu_) = diff --git a/src/cpp/ext/otel/key_value_iterable.h b/src/cpp/ext/otel/key_value_iterable.h index ef65dc2b063f6..c6f7f154f3efc 100644 --- a/src/cpp/ext/otel/key_value_iterable.h +++ b/src/cpp/ext/otel/key_value_iterable.h @@ -25,14 +25,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/string_view.h" +#include "absl/types/span.h" #include "opentelemetry/common/attribute_value.h" #include "opentelemetry/common/key_value_iterable.h" #include "opentelemetry/nostd/function_ref.h" #include "opentelemetry/nostd/string_view.h" #include "src/cpp/ext/otel/otel_plugin.h" -#include "absl/log/check.h" -#include "absl/strings/string_view.h" -#include "absl/types/span.h" namespace grpc { namespace internal { diff --git a/src/cpp/ext/otel/otel_client_call_tracer.cc b/src/cpp/ext/otel/otel_client_call_tracer.cc index bcceb053d6d2a..2812809089b8f 100644 --- a/src/cpp/ext/otel/otel_client_call_tracer.cc +++ b/src/cpp/ext/otel/otel_client_call_tracer.cc @@ -30,6 +30,15 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" +#include "absl/strings/strip.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" +#include "absl/types/span.h" #include "opentelemetry/context/context.h" #include "opentelemetry/metrics/sync_instruments.h" #include "opentelemetry/trace/context.h" @@ -48,15 +57,6 @@ #include "src/core/util/sync.h" #include "src/cpp/ext/otel/key_value_iterable.h" #include "src/cpp/ext/otel/otel_plugin.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" -#include "absl/strings/strip.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" -#include "absl/types/span.h" namespace grpc { namespace internal { diff --git a/src/cpp/ext/otel/otel_client_call_tracer.h b/src/cpp/ext/otel/otel_client_call_tracer.h index b5b9cffeae06b..35fc9abf23412 100644 --- a/src/cpp/ext/otel/otel_client_call_tracer.h +++ b/src/cpp/ext/otel/otel_client_call_tracer.h @@ -26,6 +26,10 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" +#include "absl/time/time.h" #include "opentelemetry/trace/span.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/iomgr/error.h" @@ -37,10 +41,6 @@ #include "src/core/telemetry/tcp_tracer.h" #include "src/core/util/sync.h" #include "src/cpp/ext/otel/otel_plugin.h" -#include "absl/base/thread_annotations.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" -#include "absl/time/time.h" namespace grpc { namespace internal { diff --git a/src/cpp/ext/otel/otel_plugin.cc b/src/cpp/ext/otel/otel_plugin.cc index 7dcece82eb644..ce6ee234b70f1 100644 --- a/src/cpp/ext/otel/otel_plugin.cc +++ b/src/cpp/ext/otel/otel_plugin.cc @@ -26,6 +26,7 @@ #include #include +#include "absl/log/check.h" #include "opentelemetry/metrics/meter.h" #include "opentelemetry/metrics/meter_provider.h" #include "opentelemetry/metrics/sync_instruments.h" @@ -42,7 +43,6 @@ #include "src/cpp/ext/otel/key_value_iterable.h" #include "src/cpp/ext/otel/otel_client_call_tracer.h" #include "src/cpp/ext/otel/otel_server_call_tracer.h" -#include "absl/log/check.h" using opentelemetry::context::propagation::TextMapPropagator; using opentelemetry::trace::SpanContext; diff --git a/src/cpp/ext/otel/otel_plugin.h b/src/cpp/ext/otel/otel_plugin.h index 6fd319daddd4f..2ffd50f659c4f 100644 --- a/src/cpp/ext/otel/otel_plugin.h +++ b/src/cpp/ext/otel/otel_plugin.h @@ -31,6 +31,10 @@ #include #include +#include "absl/container/flat_hash_map.h" +#include "absl/container/flat_hash_set.h" +#include "absl/functional/any_invocable.h" +#include "absl/strings/string_view.h" #include "opentelemetry/metrics/async_instruments.h" #include "opentelemetry/metrics/meter_provider.h" #include "opentelemetry/metrics/observer_result.h" @@ -41,10 +45,6 @@ #include "src/core/lib/channel/channel_args.h" #include "src/core/telemetry/metrics.h" #include "src/core/util/down_cast.h" -#include "absl/container/flat_hash_map.h" -#include "absl/container/flat_hash_set.h" -#include "absl/functional/any_invocable.h" -#include "absl/strings/string_view.h" namespace grpc { namespace internal { diff --git a/src/cpp/ext/otel/otel_server_call_tracer.cc b/src/cpp/ext/otel/otel_server_call_tracer.cc index a8d6f7ab045e4..b24641043395f 100644 --- a/src/cpp/ext/otel/otel_server_call_tracer.cc +++ b/src/cpp/ext/otel/otel_server_call_tracer.cc @@ -26,6 +26,12 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" +#include "absl/types/span.h" #include "opentelemetry/context/context.h" #include "opentelemetry/metrics/sync_instruments.h" #include "src/core/call/metadata_batch.h" @@ -40,12 +46,6 @@ #include "src/core/telemetry/tcp_tracer.h" #include "src/cpp/ext/otel/key_value_iterable.h" #include "src/cpp/ext/otel/otel_plugin.h" -#include "absl/functional/any_invocable.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" -#include "absl/types/span.h" namespace grpc { namespace internal { diff --git a/src/cpp/ext/otel/otel_server_call_tracer.h b/src/cpp/ext/otel/otel_server_call_tracer.h index e23caa662e6d3..1c8253a122e0d 100644 --- a/src/cpp/ext/otel/otel_server_call_tracer.h +++ b/src/cpp/ext/otel/otel_server_call_tracer.h @@ -21,10 +21,10 @@ #include +#include "absl/strings/strip.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/telemetry/call_tracer.h" #include "src/cpp/ext/otel/otel_plugin.h" -#include "absl/strings/strip.h" namespace grpc { namespace internal { diff --git a/src/cpp/server/backend_metric_recorder.cc b/src/cpp/server/backend_metric_recorder.cc index 35016836be202..6670878c7c247 100644 --- a/src/cpp/server/backend_metric_recorder.cc +++ b/src/cpp/server/backend_metric_recorder.cc @@ -26,9 +26,9 @@ #include #include +#include "absl/log/log.h" #include "src/core/lib/debug/trace.h" #include "src/core/load_balancing/backend_metric_data.h" -#include "absl/log/log.h" using grpc_core::BackendMetricData; diff --git a/src/cpp/server/backend_metric_recorder.h b/src/cpp/server/backend_metric_recorder.h index 646f6aca99e6d..a556cb9b57f9d 100644 --- a/src/cpp/server/backend_metric_recorder.h +++ b/src/cpp/server/backend_metric_recorder.h @@ -28,10 +28,10 @@ #include #include -#include "src/core/ext/filters/backend_metrics/backend_metric_provider.h" -#include "src/core/load_balancing/backend_metric_data.h" #include "absl/base/thread_annotations.h" #include "absl/strings/string_view.h" +#include "src/core/ext/filters/backend_metrics/backend_metric_provider.h" +#include "src/core/load_balancing/backend_metric_data.h" namespace grpc { namespace experimental { diff --git a/src/cpp/server/health/default_health_check_service.h b/src/cpp/server/health/default_health_check_service.h index 0f42f15edc5d1..3a12f66f3a6fc 100644 --- a/src/cpp/server/health/default_health_check_service.h +++ b/src/cpp/server/health/default_health_check_service.h @@ -32,9 +32,9 @@ #include #include +#include "absl/base/thread_annotations.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/base/thread_annotations.h" namespace grpc { diff --git a/src/cpp/server/load_reporter/get_cpu_stats_unsupported.cc b/src/cpp/server/load_reporter/get_cpu_stats_unsupported.cc index 664a3115b8821..05790f69fa8c4 100644 --- a/src/cpp/server/load_reporter/get_cpu_stats_unsupported.cc +++ b/src/cpp/server/load_reporter/get_cpu_stats_unsupported.cc @@ -20,9 +20,9 @@ #if !defined(GPR_LINUX) && !defined(GPR_WINDOWS) && !defined(GPR_APPLE) +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/cpp/server/load_reporter/get_cpu_stats.h" -#include "absl/log/log.h" namespace grpc { namespace load_reporter { diff --git a/src/cpp/server/load_reporter/load_data_store.cc b/src/cpp/server/load_reporter/load_data_store.cc index 7090cb1861dfe..5faa03a4fadcb 100644 --- a/src/cpp/server/load_reporter/load_data_store.cc +++ b/src/cpp/server/load_reporter/load_data_store.cc @@ -27,10 +27,10 @@ #include #include -#include "src/core/lib/iomgr/socket_utils.h" -#include "src/cpp/server/load_reporter/constants.h" #include "absl/log/check.h" #include "absl/log/log.h" +#include "src/core/lib/iomgr/socket_utils.h" +#include "src/cpp/server/load_reporter/constants.h" namespace grpc { namespace load_reporter { diff --git a/src/cpp/server/load_reporter/load_reporter.cc b/src/cpp/server/load_reporter/load_reporter.cc index 118b7d8176a07..c2aae6635fc9d 100644 --- a/src/cpp/server/load_reporter/load_reporter.cc +++ b/src/cpp/server/load_reporter/load_reporter.cc @@ -28,11 +28,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "opencensus/tags/tag_key.h" #include "src/cpp/server/load_reporter/constants.h" #include "src/cpp/server/load_reporter/get_cpu_stats.h" -#include "absl/log/check.h" -#include "absl/log/log.h" // IWYU pragma: no_include "google/protobuf/duration.pb.h" @@ -290,8 +290,9 @@ LoadReporter::GenerateLoadBalancingFeedback() { return feedback; } -::google::protobuf::RepeatedPtrField LoadReporter::GenerateLoads( - const std::string& hostname, const std::string& lb_id) { +::google::protobuf::RepeatedPtrField +LoadReporter::GenerateLoads(const std::string& hostname, + const std::string& lb_id) { grpc_core::MutexLock lock(&store_mu_); auto assigned_stores = load_data_store_.GetAssignedStores(hostname, lb_id); CHECK_NE(assigned_stores, nullptr); diff --git a/src/cpp/server/load_reporter/load_reporter.h b/src/cpp/server/load_reporter/load_reporter.h index 67229e17f9f85..b0123724b6ace 100644 --- a/src/cpp/server/load_reporter/load_reporter.h +++ b/src/cpp/server/load_reporter/load_reporter.h @@ -19,6 +19,7 @@ #ifndef GRPC_SRC_CPP_SERVER_LOAD_REPORTER_LOAD_REPORTER_H #define GRPC_SRC_CPP_SERVER_LOAD_REPORTER_LOAD_REPORTER_H +#include #include #include @@ -37,7 +38,6 @@ #include "src/core/util/sync.h" #include "src/cpp/server/load_reporter/load_data_store.h" #include "src/proto/grpc/lb/v1/load_reporter.grpc.pb.h" -#include // IWYU pragma: no_include diff --git a/src/cpp/server/load_reporter/load_reporter_async_service_impl.cc b/src/cpp/server/load_reporter/load_reporter_async_service_impl.cc index af696e0a48234..9870bf4d0d6b6 100644 --- a/src/cpp/server/load_reporter/load_reporter_async_service_impl.cc +++ b/src/cpp/server/load_reporter/load_reporter_async_service_impl.cc @@ -18,15 +18,15 @@ #include "src/cpp/server/load_reporter/load_reporter_async_service_impl.h" +#include #include #include #include #include -#include "src/cpp/server/load_reporter/constants.h" #include "absl/log/check.h" #include "absl/log/log.h" -#include +#include "src/cpp/server/load_reporter/constants.h" // IWYU pragma: no_include "google/protobuf/duration.pb.h" diff --git a/src/cpp/server/load_reporter/load_reporter_async_service_impl.h b/src/cpp/server/load_reporter/load_reporter_async_service_impl.h index 5fb4acd3fca37..e5597a3818855 100644 --- a/src/cpp/server/load_reporter/load_reporter_async_service_impl.h +++ b/src/cpp/server/load_reporter/load_reporter_async_service_impl.h @@ -32,11 +32,11 @@ #include #include +#include "absl/log/check.h" #include "src/core/util/sync.h" #include "src/core/util/thd.h" #include "src/cpp/server/load_reporter/load_reporter.h" #include "src/proto/grpc/lb/v1/load_reporter.grpc.pb.h" -#include "absl/log/check.h" namespace grpc { namespace load_reporter { diff --git a/src/cpp/server/orca/orca_service.cc b/src/cpp/server/orca/orca_service.cc index f1f5a837898c7..64d05c13404a1 100644 --- a/src/cpp/server/orca/orca_service.cc +++ b/src/cpp/server/orca/orca_service.cc @@ -35,6 +35,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/string_view.h" +#include "absl/time/time.h" #include "google/protobuf/duration.upb.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -42,14 +46,10 @@ #include "src/core/util/debug_location.h" #include "src/core/util/time.h" #include "src/cpp/server/backend_metric_recorder.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/string_view.h" -#include "absl/time/time.h" -#include "xds/data/orca/v3/orca_load_report.upb.h" -#include "xds/service/orca/v3/orca.upb.h" #include "upb/base/string_view.h" #include "upb/mem/arena.hpp" +#include "xds/data/orca/v3/orca_load_report.upb.h" +#include "xds/service/orca/v3/orca.upb.h" namespace grpc { namespace experimental { diff --git a/src/cpp/server/orca/orca_service.h b/src/cpp/server/orca/orca_service.h index 62aebb147c111..193151ca4f5c4 100644 --- a/src/cpp/server/orca/orca_service.h +++ b/src/cpp/server/orca/orca_service.h @@ -28,9 +28,9 @@ #include #include -#include "src/core/util/ref_counted.h" #include "absl/base/thread_annotations.h" #include "absl/strings/string_view.h" +#include "src/core/util/ref_counted.h" namespace grpc { namespace experimental { diff --git a/src/cpp/server/server_builder.cc b/src/cpp/server/server_builder.cc index b52df8388d823..113f282a20abc 100644 --- a/src/cpp/server/server_builder.cc +++ b/src/cpp/server/server_builder.cc @@ -44,13 +44,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/ext/transport/chttp2/server/chttp2_server.h" #include "src/core/server/server.h" #include "src/core/util/string.h" #include "src/core/util/useful.h" #include "src/cpp/server/external_connection_acceptor_impl.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc { namespace { diff --git a/src/cpp/server/server_cc.cc b/src/cpp/server/server_cc.cc index 041a80beaafb1..5407efd9885be 100644 --- a/src/cpp/server/server_cc.cc +++ b/src/cpp/server/server_cc.cc @@ -63,6 +63,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" #include "src/core/ext/transport/inproc/inproc_transport.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/iomgr.h" @@ -74,9 +77,6 @@ #include "src/cpp/server/external_connection_acceptor_impl.h" #include "src/cpp/server/health/default_health_check_service.h" #include "src/cpp/thread_manager/thread_manager.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" namespace grpc { namespace { diff --git a/src/cpp/server/server_context.cc b/src/cpp/server/server_context.cc index 109c4394cbbf5..19e6df7146cb7 100644 --- a/src/cpp/server/server_context.cc +++ b/src/cpp/server/server_context.cc @@ -50,16 +50,16 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/lib/surface/call.h" #include "src/core/util/crash.h" #include "src/core/util/ref_counted.h" #include "src/core/util/sync.h" #include "src/cpp/server/backend_metric_recorder.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" namespace grpc { diff --git a/src/cpp/thread_manager/thread_manager.cc b/src/cpp/thread_manager/thread_manager.cc index 463ecd1f41e28..6cdf78c95bca8 100644 --- a/src/cpp/thread_manager/thread_manager.cc +++ b/src/cpp/thread_manager/thread_manager.cc @@ -20,13 +20,13 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_format.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/crash.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/thd.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" namespace grpc { diff --git a/src/python/grpcio_observability/_parallel_compile_patch.py b/src/python/grpcio_observability/_parallel_compile_patch.py index f77539e83fbec..e91dee1eb0aa1 100644 --- a/src/python/grpcio_observability/_parallel_compile_patch.py +++ b/src/python/grpcio_observability/_parallel_compile_patch.py @@ -27,15 +27,15 @@ import os try: - BUILD_EXT_COMPILER_JOBS = int( - os.environ["GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS"] - ) + BUILD_EXT_COMPILER_JOBS = int( + os.environ["GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS"] + ) except KeyError: - import multiprocessing + import multiprocessing - BUILD_EXT_COMPILER_JOBS = multiprocessing.cpu_count() + BUILD_EXT_COMPILER_JOBS = multiprocessing.cpu_count() except ValueError: - BUILD_EXT_COMPILER_JOBS = 1 + BUILD_EXT_COMPILER_JOBS = 1 # monkey-patch for parallel compilation @@ -50,36 +50,36 @@ def _parallel_compile( extra_postargs=None, depends=None, ): - # setup the same way as distutils.ccompiler.CCompiler - # https://github.com/python/cpython/blob/31368a4f0e531c19affe2a1becd25fc316bc7501/Lib/distutils/ccompiler.py#L564 - macros, objects, extra_postargs, pp_opts, build = self._setup_compile( - str(output_dir), macros, include_dirs, sources, depends, extra_postargs - ) - cc_args = self._get_cc_args(pp_opts, debug, extra_preargs) + # setup the same way as distutils.ccompiler.CCompiler + # https://github.com/python/cpython/blob/31368a4f0e531c19affe2a1becd25fc316bc7501/Lib/distutils/ccompiler.py#L564 + macros, objects, extra_postargs, pp_opts, build = self._setup_compile( + str(output_dir), macros, include_dirs, sources, depends, extra_postargs + ) + cc_args = self._get_cc_args(pp_opts, debug, extra_preargs) - def _compile_single_file(obj): - try: - src, ext = build[obj] - except KeyError: - return - self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) + def _compile_single_file(obj): + try: + src, ext = build[obj] + except KeyError: + return + self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) - # run compilation of individual files in parallel - import multiprocessing.pool + # run compilation of individual files in parallel + import multiprocessing.pool - multiprocessing.pool.ThreadPool(BUILD_EXT_COMPILER_JOBS).map( - _compile_single_file, objects - ) - return objects + multiprocessing.pool.ThreadPool(BUILD_EXT_COMPILER_JOBS).map( + _compile_single_file, objects + ) + return objects def monkeypatch_compile_maybe(): - """Monkeypatching is dumb, but the build speed gain is worth it. + """ + Monkeypatching is dumb, but the build speed gain is worth it. + After python 3.12, we won't find distutils if SETUPTOOLS_USE_DISTUTILS=stdlib. + """ + use_distutils = os.environ.get("SETUPTOOLS_USE_DISTUTILS", "") + if BUILD_EXT_COMPILER_JOBS > 1 and use_distutils != "stdlib": + import distutils.ccompiler # pylint: disable=wrong-import-position - After python 3.12, we won't find distutils if SETUPTOOLS_USE_DISTUTILS=stdlib. - """ - use_distutils = os.environ.get("SETUPTOOLS_USE_DISTUTILS", "") - if BUILD_EXT_COMPILER_JOBS > 1 and use_distutils != "stdlib": - import distutils.ccompiler # pylint: disable=wrong-import-position - - distutils.ccompiler.CCompiler.compile = _parallel_compile + distutils.ccompiler.CCompiler.compile = _parallel_compile diff --git a/src/python/grpcio_observability/grpc_observability/_observability.py b/src/python/grpcio_observability/grpc_observability/_observability.py index 19b2ffc558e81..2283f95e2cd88 100644 --- a/src/python/grpcio_observability/grpc_observability/_observability.py +++ b/src/python/grpcio_observability/grpc_observability/_observability.py @@ -21,99 +21,99 @@ class Exporter(metaclass=abc.ABCMeta): - """Abstract base class for census data exporters.""" + """Abstract base class for census data exporters.""" - @abc.abstractmethod - def export_stats_data(self, stats_data: List[TracingData]) -> None: - """Exports a list of TracingData objects to the exporter's destination. + @abc.abstractmethod + def export_stats_data(self, stats_data: List[TracingData]) -> None: + """Exports a list of TracingData objects to the exporter's destination. - Args: - stats_data: A list of TracingData objects to export. - """ - raise NotImplementedError() + Args: + stats_data: A list of TracingData objects to export. + """ + raise NotImplementedError() - @abc.abstractmethod - def export_tracing_data(self, tracing_data: List[StatsData]) -> None: - """Exports a list of StatsData objects to the exporter's destination. + @abc.abstractmethod + def export_tracing_data(self, tracing_data: List[StatsData]) -> None: + """Exports a list of StatsData objects to the exporter's destination. - Args: - tracing_data: A list of StatsData objects to export. - """ - raise NotImplementedError() + Args: + tracing_data: A list of StatsData objects to export. + """ + raise NotImplementedError() @dataclass(frozen=True) class StatsData: - """A data class representing stats data. - - Attributes: - name: An element of grpc_observability._cyobservability.MetricsName, e.g. - MetricsName.CLIENT_STARTED_RPCS. - measure_double: A bool indicate whether the metric is a floating-point - value. - value_int: The actual metric value if measure_double is False. - value_float: The actual metric value if measure_double is True. - include_exchange_labels: Whether this data should include exchanged labels. - labels: A dictionary that maps label tags associated with this metric to - corresponding label value. - identifiers: A set of strings identifying which stats plugins this StatsData - belongs to. - registered_method: Whether the method in this data is a registered method in - stubs. - """ - - name: "grpc_observability._cyobservability.MetricsName" - measure_double: bool - value_int: int = 0 - value_float: float = 0.0 - include_exchange_labels: bool = False - labels: Dict[str, AnyStr] = field(default_factory=dict) - identifiers: Set[str] = field(default_factory=set) - registered_method: bool = False + """A data class representing stats data. + + Attributes: + name: An element of grpc_observability._cyobservability.MetricsName, e.g. + MetricsName.CLIENT_STARTED_RPCS. + measure_double: A bool indicate whether the metric is a floating-point + value. + value_int: The actual metric value if measure_double is False. + value_float: The actual metric value if measure_double is True. + include_exchange_labels: Whether this data should include exchanged labels. + labels: A dictionary that maps label tags associated with this metric to + corresponding label value. + identifiers: A set of strings identifying which stats plugins this StatsData + belongs to. + registered_method: Whether the method in this data is a registered method in + stubs. + """ + + name: "grpc_observability._cyobservability.MetricsName" + measure_double: bool + value_int: int = 0 + value_float: float = 0.0 + include_exchange_labels: bool = False + labels: Dict[str, AnyStr] = field(default_factory=dict) + identifiers: Set[str] = field(default_factory=set) + registered_method: bool = False @dataclass(frozen=True) class TracingData: - """A data class representing tracing data. - - Attributes: - name: The name for tracing data, also the name for the Span. - start_time: The start time for the span in RFC3339 UTC "Zulu" format, e.g. - 2014-10-02T15:01:23Z - end_time: The end time for the span in RFC3339 UTC "Zulu" format, e.g. - 2014-10-02T15:01:23Z - trace_id: The identifier for the trace associated with this span as a - 32-character hexadecimal encoded string, e.g. - 26ed0036f2eff2b7317bccce3e28d01f - span_id: The identifier for the span as a 16-character hexadecimal encoded - string. e.g. 113ec879e62583bc - parent_span_id: An option identifier for the span's parent id. - status: An element of grpc.StatusCode in string format representing the - final status for the trace data. - should_sample: A bool indicates whether the span is sampled. - child_span_count: The number of child span associated with this span. - span_labels: A dictionary that maps labels tags associated with this span to - corresponding label value. - span_annotations: A dictionary that maps annotation timeStamp with - description. The timeStamp have a format which can be converted to Python - datetime.datetime, e.g. 2023-05-29 17:07:09.895 - """ - - name: str - start_time: str - end_time: str - trace_id: str - span_id: str - parent_span_id: str - status: str - should_sample: bool - child_span_count: int - span_labels: Mapping[str, AnyStr] = field(default_factory=dict) - span_annotations: List[Tuple[str, str]] = field(default_factory=list) + """A data class representing tracing data. + + Attributes: + name: The name for tracing data, also the name for the Span. + start_time: The start time for the span in RFC3339 UTC "Zulu" format, e.g. + 2014-10-02T15:01:23Z + end_time: The end time for the span in RFC3339 UTC "Zulu" format, e.g. + 2014-10-02T15:01:23Z + trace_id: The identifier for the trace associated with this span as a + 32-character hexadecimal encoded string, e.g. + 26ed0036f2eff2b7317bccce3e28d01f + span_id: The identifier for the span as a 16-character hexadecimal encoded + string. e.g. 113ec879e62583bc + parent_span_id: An option identifier for the span's parent id. + status: An element of grpc.StatusCode in string format representing the + final status for the trace data. + should_sample: A bool indicates whether the span is sampled. + child_span_count: The number of child span associated with this span. + span_labels: A dictionary that maps labels tags associated with this span to + corresponding label value. + span_annotations: A dictionary that maps annotation timeStamp with + description. The timeStamp have a format which can be converted to Python + datetime.datetime, e.g. 2023-05-29 17:07:09.895 + """ + + name: str + start_time: str + end_time: str + trace_id: str + span_id: str + parent_span_id: str + status: str + should_sample: bool + child_span_count: int + span_labels: Mapping[str, AnyStr] = field(default_factory=dict) + span_annotations: List[Tuple[str, str]] = field(default_factory=list) @enum.unique class OptionalLabelType(enum.Enum): - """What kinds of optional labels to add to metrics.""" + """What kinds of optional labels to add to metrics.""" - XDS_SERVICE_LABELS = "kXdsServiceLabels" + XDS_SERVICE_LABELS = "kXdsServiceLabels" diff --git a/src/python/grpcio_observability/grpc_observability/_observability_config.py b/src/python/grpcio_observability/grpc_observability/_observability_config.py index 79539c55a08f9..f0105b7d33ba2 100644 --- a/src/python/grpcio_observability/grpc_observability/_observability_config.py +++ b/src/python/grpcio_observability/grpc_observability/_observability_config.py @@ -25,105 +25,105 @@ @dataclass class GcpObservabilityConfig: - project_id: str = "" - stats_enabled: bool = False - tracing_enabled: bool = False - labels: Optional[Mapping[str, str]] = field(default_factory=dict) - sampling_rate: Optional[float] = 0.0 + project_id: str = "" + stats_enabled: bool = False + tracing_enabled: bool = False + labels: Optional[Mapping[str, str]] = field(default_factory=dict) + sampling_rate: Optional[float] = 0.0 - def load_from_string_content(self, config_contents: str) -> None: - """Loads the configuration from a string. + def load_from_string_content(self, config_contents: str) -> None: + """Loads the configuration from a string. - Args: - config_contents: The configuration string. + Args: + config_contents: The configuration string. - Raises: - ValueError: If the configuration is invalid. - """ - try: - config_json = json.loads(config_contents) - except json.decoder.JSONDecodeError: - raise ValueError("Failed to load Json configuration.") + Raises: + ValueError: If the configuration is invalid. + """ + try: + config_json = json.loads(config_contents) + except json.decoder.JSONDecodeError: + raise ValueError("Failed to load Json configuration.") - if config_json and not isinstance(config_json, dict): - raise ValueError("Found invalid configuration.") + if config_json and not isinstance(config_json, dict): + raise ValueError("Found invalid configuration.") - self.project_id = config_json.get("project_id", "") - self.labels = config_json.get("labels", {}) - self.stats_enabled = "cloud_monitoring" in config_json.keys() - self.tracing_enabled = "cloud_trace" in config_json.keys() - tracing_config = config_json.get("cloud_trace", {}) - self.sampling_rate = tracing_config.get("sampling_rate", 0.0) + self.project_id = config_json.get("project_id", "") + self.labels = config_json.get("labels", {}) + self.stats_enabled = "cloud_monitoring" in config_json.keys() + self.tracing_enabled = "cloud_trace" in config_json.keys() + tracing_config = config_json.get("cloud_trace", {}) + self.sampling_rate = tracing_config.get("sampling_rate", 0.0) def read_config() -> GcpObservabilityConfig: - """Reads the GCP observability config from the environment variables. - - Returns: - The GCP observability config. - - Raises: - ValueError: If the configuration is invalid. - """ - config_contents = _get_gcp_observability_config_contents() - config = GcpObservabilityConfig() - config.load_from_string_content(config_contents) - - if not config.project_id: - # Get project ID from GCP environment variables since project ID was not - # set it in the GCP observability config. - config.project_id = _get_gcp_project_id_from_env_var() + """Reads the GCP observability config from the environment variables. + + Returns: + The GCP observability config. + + Raises: + ValueError: If the configuration is invalid. + """ + config_contents = _get_gcp_observability_config_contents() + config = GcpObservabilityConfig() + config.load_from_string_content(config_contents) + if not config.project_id: - # Could not find project ID from GCP environment variables either. - raise ValueError("GCP Project ID not found.") - return config + # Get project ID from GCP environment variables since project ID was not + # set it in the GCP observability config. + config.project_id = _get_gcp_project_id_from_env_var() + if not config.project_id: + # Could not find project ID from GCP environment variables either. + raise ValueError("GCP Project ID not found.") + return config def _get_gcp_project_id_from_env_var() -> Optional[str]: - """Gets the project ID from the GCP environment variables. + """Gets the project ID from the GCP environment variables. - Returns: - The project ID, or an empty string if the project ID could not be found. - """ + Returns: + The project ID, or an empty string if the project ID could not be found. + """ - project_id = "" - project_id = os.getenv("GCP_PROJECT") - if project_id: - return project_id + project_id = "" + project_id = os.getenv("GCP_PROJECT") + if project_id: + return project_id - project_id = os.getenv("GCLOUD_PROJECT") - if project_id: - return project_id + project_id = os.getenv("GCLOUD_PROJECT") + if project_id: + return project_id - project_id = os.getenv("GOOGLE_CLOUD_PROJECT") - if project_id: - return project_id + project_id = os.getenv("GOOGLE_CLOUD_PROJECT") + if project_id: + return project_id - return project_id + return project_id def _get_gcp_observability_config_contents() -> str: - """Get the contents of the observability config from environment variable or file. + """Get the contents of the observability config from environment variable or file. - Returns: - The content from environment variable. + Returns: + The content from environment variable. - Raises: - ValueError: If no configuration content was found. - """ + Raises: + ValueError: If no configuration content was found. + """ - contents_str = "" - # First try get config from GRPC_GCP_OBSERVABILITY_CONFIG_FILE_ENV. - config_path = os.getenv(GRPC_GCP_OBSERVABILITY_CONFIG_FILE_ENV) - if config_path: - with open(config_path, "r") as f: - contents_str = f.read() + contents_str = "" + # First try get config from GRPC_GCP_OBSERVABILITY_CONFIG_FILE_ENV. + config_path = os.getenv(GRPC_GCP_OBSERVABILITY_CONFIG_FILE_ENV) + if config_path: + with open(config_path, "r") as f: + contents_str = f.read() - # Next, try GRPC_GCP_OBSERVABILITY_CONFIG_ENV env var. - if not contents_str: - contents_str = os.getenv(GRPC_GCP_OBSERVABILITY_CONFIG_ENV) + # Next, try GRPC_GCP_OBSERVABILITY_CONFIG_ENV env var. + if not contents_str: + contents_str = os.getenv(GRPC_GCP_OBSERVABILITY_CONFIG_ENV) - if not contents_str: - raise ValueError("Configuration content not found.") + if not contents_str: + raise ValueError("Configuration content not found.") - return contents_str + return contents_str diff --git a/src/python/grpcio_observability/grpc_observability/_open_census_exporter.py b/src/python/grpcio_observability/grpc_observability/_open_census_exporter.py index 63344de537adb..8c24e0fe08640 100644 --- a/src/python/grpcio_observability/grpc_observability/_open_census_exporter.py +++ b/src/python/grpcio_observability/grpc_observability/_open_census_exporter.py @@ -46,205 +46,213 @@ class StackDriverAsyncTransport(async_.AsyncTransport): - """Wrapper class used to pass wait_period. + """Wrapper class used to pass wait_period. - This is required because current StackDriver Tracing Exporter doesn't allow - us pass wait_period to AsyncTransport directly. + This is required because current StackDriver Tracing Exporter doesn't allow + us pass wait_period to AsyncTransport directly. - Args: - exporter: An opencensus.trace.base_exporter.Exporter object. - """ + Args: + exporter: An opencensus.trace.base_exporter.Exporter object. + """ - def __init__(self, exporter): - super().__init__(exporter, wait_period=CENSUS_UPLOAD_INTERVAL_SECS) + def __init__(self, exporter): + super().__init__(exporter, wait_period=CENSUS_UPLOAD_INTERVAL_SECS) class OpenCensusExporter(_observability.Exporter): - config: _observability_config.GcpObservabilityConfig - default_labels: Optional[Mapping[str, str]] - project_id: str - tracer: Optional[tracer.Tracer] - stats_recorder: Optional[StatsRecorder] - view_manager: Optional[ViewManager] + config: _observability_config.GcpObservabilityConfig + default_labels: Optional[Mapping[str, str]] + project_id: str + tracer: Optional[tracer.Tracer] + stats_recorder: Optional[StatsRecorder] + view_manager: Optional[ViewManager] - def __init__(self, config: _observability_config.GcpObservabilityConfig): - self.config = config.get() - self.default_labels = self.config.labels - self.project_id = self.config.project_id - self.tracer = None - self.stats_recorder = None - self.view_manager = None - self._setup_open_census_stackdriver_exporter() + def __init__(self, config: _observability_config.GcpObservabilityConfig): + self.config = config.get() + self.default_labels = self.config.labels + self.project_id = self.config.project_id + self.tracer = None + self.stats_recorder = None + self.view_manager = None + self._setup_open_census_stackdriver_exporter() - def _setup_open_census_stackdriver_exporter(self) -> None: - if self.config.stats_enabled: - stats = stats_module.stats - self.stats_recorder = stats.stats_recorder - self.view_manager = stats.view_manager - # If testing locally please add resource="global" to Options, otherwise - # StackDriver might override project_id based on detected resource. - options = stats_exporter.Options(project_id=self.project_id) - metrics_exporter = stats_exporter.new_stats_exporter( - options, interval=CENSUS_UPLOAD_INTERVAL_SECS - ) - self.view_manager.register_exporter(metrics_exporter) - self._register_open_census_views() + def _setup_open_census_stackdriver_exporter(self) -> None: + if self.config.stats_enabled: + stats = stats_module.stats + self.stats_recorder = stats.stats_recorder + self.view_manager = stats.view_manager + # If testing locally please add resource="global" to Options, otherwise + # StackDriver might override project_id based on detected resource. + options = stats_exporter.Options(project_id=self.project_id) + metrics_exporter = stats_exporter.new_stats_exporter( + options, interval=CENSUS_UPLOAD_INTERVAL_SECS + ) + self.view_manager.register_exporter(metrics_exporter) + self._register_open_census_views() - if self.config.tracing_enabled: - current_tracer = execution_context.get_opencensus_tracer() - trace_id = current_tracer.span_context.trace_id - span_id = current_tracer.span_context.span_id - if not span_id: - span_id = span_context_module.generate_span_id() - span_context = span_context_module.SpanContext( - trace_id=trace_id, span_id=span_id - ) - # Create and Saves Tracer and Sampler to ContextVar - sampler = samplers.ProbabilitySampler(rate=self.config.sampling_rate) - self.trace_exporter = trace_exporter.StackdriverExporter( - project_id=self.project_id, - transport=StackDriverAsyncTransport, - ) - self.tracer = tracer.Tracer( - sampler=sampler, - span_context=span_context, - exporter=self.trace_exporter, - ) + if self.config.tracing_enabled: + current_tracer = execution_context.get_opencensus_tracer() + trace_id = current_tracer.span_context.trace_id + span_id = current_tracer.span_context.span_id + if not span_id: + span_id = span_context_module.generate_span_id() + span_context = span_context_module.SpanContext( + trace_id=trace_id, span_id=span_id + ) + # Create and Saves Tracer and Sampler to ContextVar + sampler = samplers.ProbabilitySampler( + rate=self.config.sampling_rate + ) + self.trace_exporter = trace_exporter.StackdriverExporter( + project_id=self.project_id, + transport=StackDriverAsyncTransport, + ) + self.tracer = tracer.Tracer( + sampler=sampler, + span_context=span_context, + exporter=self.trace_exporter, + ) - def export_stats_data( - self, stats_data: List[_observability.StatsData] - ) -> None: - if not self.config.stats_enabled: - return - for data in stats_data: - measure = _views.METRICS_NAME_TO_MEASURE.get(data.name, None) - if not measure: - continue - # Create a measurement map for each metric, otherwise metrics will - # be overridden instead of accumulate. - measurement_map = self.stats_recorder.new_measurement_map() - # Add data label to default labels. - labels = data.labels - labels.update(self.default_labels) - tag_map = TagMap() - for key, value in labels.items(): - tag_map.insert(TagKey(key), TagValue(value)) + def export_stats_data( + self, stats_data: List[_observability.StatsData] + ) -> None: + if not self.config.stats_enabled: + return + for data in stats_data: + measure = _views.METRICS_NAME_TO_MEASURE.get(data.name, None) + if not measure: + continue + # Create a measurement map for each metric, otherwise metrics will + # be overridden instead of accumulate. + measurement_map = self.stats_recorder.new_measurement_map() + # Add data label to default labels. + labels = data.labels + labels.update(self.default_labels) + tag_map = TagMap() + for key, value in labels.items(): + tag_map.insert(TagKey(key), TagValue(value)) - if data.measure_double: - measurement_map.measure_float_put(measure, data.value_float) - else: - measurement_map.measure_int_put(measure, data.value_int) - measurement_map.record(tag_map) + if data.measure_double: + measurement_map.measure_float_put(measure, data.value_float) + else: + measurement_map.measure_int_put(measure, data.value_int) + measurement_map.record(tag_map) - def export_tracing_data( - self, tracing_data: List[_observability.TracingData] - ) -> None: - if not self.config.tracing_enabled: - return - for span_data in tracing_data: - # Only traced data will be exported, thus TraceOptions=1. - span_context = span_context_module.SpanContext( - trace_id=span_data.trace_id, - span_id=span_data.span_id, - trace_options=trace_options.TraceOptions(1), - ) - span_datas = _get_span_data(span_data, span_context, self.default_labels) - self.trace_exporter.export(span_datas) + def export_tracing_data( + self, tracing_data: List[_observability.TracingData] + ) -> None: + if not self.config.tracing_enabled: + return + for span_data in tracing_data: + # Only traced data will be exported, thus TraceOptions=1. + span_context = span_context_module.SpanContext( + trace_id=span_data.trace_id, + span_id=span_data.span_id, + trace_options=trace_options.TraceOptions(1), + ) + span_datas = _get_span_data( + span_data, span_context, self.default_labels + ) + self.trace_exporter.export(span_datas) - def _register_open_census_views(self) -> None: - # Client - self.view_manager.register_view( - _views.client_started_rpcs(self.default_labels) - ) - self.view_manager.register_view( - _views.client_completed_rpcs(self.default_labels) - ) - self.view_manager.register_view( - _views.client_roundtrip_latency(self.default_labels) - ) - self.view_manager.register_view( - _views.client_api_latency(self.default_labels) - ) - self.view_manager.register_view( - _views.client_sent_compressed_message_bytes_per_rpc(self.default_labels) - ) - self.view_manager.register_view( - _views.client_received_compressed_message_bytes_per_rpc( - self.default_labels + def _register_open_census_views(self) -> None: + # Client + self.view_manager.register_view( + _views.client_started_rpcs(self.default_labels) + ) + self.view_manager.register_view( + _views.client_completed_rpcs(self.default_labels) + ) + self.view_manager.register_view( + _views.client_roundtrip_latency(self.default_labels) + ) + self.view_manager.register_view( + _views.client_api_latency(self.default_labels) + ) + self.view_manager.register_view( + _views.client_sent_compressed_message_bytes_per_rpc( + self.default_labels + ) + ) + self.view_manager.register_view( + _views.client_received_compressed_message_bytes_per_rpc( + self.default_labels + ) ) - ) - # Server - self.view_manager.register_view( - _views.server_started_rpcs(self.default_labels) - ) - self.view_manager.register_view( - _views.server_completed_rpcs(self.default_labels) - ) - self.view_manager.register_view( - _views.server_sent_compressed_message_bytes_per_rpc(self.default_labels) - ) - self.view_manager.register_view( - _views.server_received_compressed_message_bytes_per_rpc( - self.default_labels + # Server + self.view_manager.register_view( + _views.server_started_rpcs(self.default_labels) + ) + self.view_manager.register_view( + _views.server_completed_rpcs(self.default_labels) + ) + self.view_manager.register_view( + _views.server_sent_compressed_message_bytes_per_rpc( + self.default_labels + ) + ) + self.view_manager.register_view( + _views.server_received_compressed_message_bytes_per_rpc( + self.default_labels + ) + ) + self.view_manager.register_view( + _views.server_server_latency(self.default_labels) ) - ) - self.view_manager.register_view( - _views.server_server_latency(self.default_labels) - ) def _get_span_annotations( span_annotations: List[Tuple[str, str]], ) -> List[time_event.Annotation]: - annotations = [] + annotations = [] - for time_stamp, description in span_annotations: - time = datetime.fromisoformat(time_stamp) - annotations.append(time_event.Annotation(time, description)) + for time_stamp, description in span_annotations: + time = datetime.fromisoformat(time_stamp) + annotations.append(time_event.Annotation(time, description)) - return annotations + return annotations # pylint: disable=too-many-return-statements # pylint: disable=too-many-branches def _status_to_span_status(span_status: str) -> Optional[status.Status]: - if status == "OK": - return status.Status(code_pb2.OK, message=span_status) - elif status == "CANCELLED": - return status.Status(code_pb2.CANCELLED, message=span_status) - elif status == "UNKNOWN": - return status.Status(code_pb2.UNKNOWN, message=span_status) - elif status == "INVALID_ARGUMENT": - return status.Status(code_pb2.INVALID_ARGUMENT, message=span_status) - elif status == "DEADLINE_EXCEEDED": - return status.Status(code_pb2.DEADLINE_EXCEEDED, message=span_status) - elif status == "NOT_FOUND": - return status.Status(code_pb2.NOT_FOUND, message=span_status) - elif status == "ALREADY_EXISTS": - return status.Status(code_pb2.ALREADY_EXISTS, message=span_status) - elif status == "PERMISSION_DENIED": - return status.Status(code_pb2.PERMISSION_DENIED, message=span_status) - elif status == "UNAUTHENTICATED": - return status.Status(code_pb2.UNAUTHENTICATED, message=span_status) - elif status == "RESOURCE_EXHAUSTED": - return status.Status(code_pb2.RESOURCE_EXHAUSTED, message=span_status) - elif status == "FAILED_PRECONDITION": - return status.Status(code_pb2.FAILED_PRECONDITION, message=span_status) - elif status == "ABORTED": - return status.Status(code_pb2.ABORTED, message=span_status) - elif status == "OUT_OF_RANGE": - return status.Status(code_pb2.OUT_OF_RANGE, message=span_status) - elif status == "UNIMPLEMENTED": - return status.Status(code_pb2.UNIMPLEMENTED, message=span_status) - elif status == "INTERNAL": - return status.Status(code_pb2.INTERNAL, message=span_status) - elif status == "UNAVAILABLE": - return status.Status(code_pb2.UNAVAILABLE, message=span_status) - elif status == "DATA_LOSS": - return status.Status(code_pb2.DATA_LOSS, message=span_status) - else: - return None + if status == "OK": + return status.Status(code_pb2.OK, message=span_status) + elif status == "CANCELLED": + return status.Status(code_pb2.CANCELLED, message=span_status) + elif status == "UNKNOWN": + return status.Status(code_pb2.UNKNOWN, message=span_status) + elif status == "INVALID_ARGUMENT": + return status.Status(code_pb2.INVALID_ARGUMENT, message=span_status) + elif status == "DEADLINE_EXCEEDED": + return status.Status(code_pb2.DEADLINE_EXCEEDED, message=span_status) + elif status == "NOT_FOUND": + return status.Status(code_pb2.NOT_FOUND, message=span_status) + elif status == "ALREADY_EXISTS": + return status.Status(code_pb2.ALREADY_EXISTS, message=span_status) + elif status == "PERMISSION_DENIED": + return status.Status(code_pb2.PERMISSION_DENIED, message=span_status) + elif status == "UNAUTHENTICATED": + return status.Status(code_pb2.UNAUTHENTICATED, message=span_status) + elif status == "RESOURCE_EXHAUSTED": + return status.Status(code_pb2.RESOURCE_EXHAUSTED, message=span_status) + elif status == "FAILED_PRECONDITION": + return status.Status(code_pb2.FAILED_PRECONDITION, message=span_status) + elif status == "ABORTED": + return status.Status(code_pb2.ABORTED, message=span_status) + elif status == "OUT_OF_RANGE": + return status.Status(code_pb2.OUT_OF_RANGE, message=span_status) + elif status == "UNIMPLEMENTED": + return status.Status(code_pb2.UNIMPLEMENTED, message=span_status) + elif status == "INTERNAL": + return status.Status(code_pb2.INTERNAL, message=span_status) + elif status == "UNAVAILABLE": + return status.Status(code_pb2.UNAVAILABLE, message=span_status) + elif status == "DATA_LOSS": + return status.Status(code_pb2.DATA_LOSS, message=span_status) + else: + return None def _get_span_data( @@ -252,43 +260,43 @@ def _get_span_data( span_context: span_context_module.SpanContext, labels: Mapping[str, str], ) -> List[span_data_module.SpanData]: - """Extracts a list of SpanData tuples from a span. + """Extracts a list of SpanData tuples from a span. - Args: + Args: - span_data: _observability.TracingData to convert. - span_context: The context related to the span_data. - labels: Labels to be added to SpanData. + span_data: _observability.TracingData to convert. + span_context: The context related to the span_data. + labels: Labels to be added to SpanData. - Returns: - A list of opencensus.trace.span_data.SpanData. - """ - span_attributes = span_data.span_labels - span_attributes.update(labels) - span_status = _status_to_span_status(span_data.status) - span_annotations = _get_span_annotations(span_data.span_annotations) - span_datas = [ - span_data_module.SpanData( - name=span_data.name, - context=span_context, - span_id=span_data.span_id, - parent_span_id=span_data.parent_span_id - if span_data.parent_span_id - else None, - attributes=span_attributes, - start_time=span_data.start_time, - end_time=span_data.end_time, - child_span_count=span_data.child_span_count, - stack_trace=None, - annotations=span_annotations, - message_events=None, - links=None, - status=span_status, - same_process_as_parent_span=True - if span_data.parent_span_id - else None, - span_kind=span.SpanKind.UNSPECIFIED, - ) - ] + Returns: + A list of opencensus.trace.span_data.SpanData. + """ + span_attributes = span_data.span_labels + span_attributes.update(labels) + span_status = _status_to_span_status(span_data.status) + span_annotations = _get_span_annotations(span_data.span_annotations) + span_datas = [ + span_data_module.SpanData( + name=span_data.name, + context=span_context, + span_id=span_data.span_id, + parent_span_id=span_data.parent_span_id + if span_data.parent_span_id + else None, + attributes=span_attributes, + start_time=span_data.start_time, + end_time=span_data.end_time, + child_span_count=span_data.child_span_count, + stack_trace=None, + annotations=span_annotations, + message_events=None, + links=None, + status=span_status, + same_process_as_parent_span=True + if span_data.parent_span_id + else None, + span_kind=span.SpanKind.UNSPECIFIED, + ) + ] - return span_datas + return span_datas diff --git a/src/python/grpcio_observability/grpc_observability/_open_telemetry_measures.py b/src/python/grpcio_observability/grpc_observability/_open_telemetry_measures.py index 20e0a5ae8b543..081247f7ec7e1 100644 --- a/src/python/grpcio_observability/grpc_observability/_open_telemetry_measures.py +++ b/src/python/grpcio_observability/grpc_observability/_open_telemetry_measures.py @@ -24,7 +24,7 @@ class Metric( ["name", "cyname", "unit", "description"], ) ): - pass + pass CLIENT_ATTEMPT_STARTED = Metric( @@ -85,15 +85,15 @@ class Metric( def base_metrics() -> List[Metric]: - return [ - CLIENT_ATTEMPT_STARTED, - CLIENT_ATTEMPT_DURATION, - # CLIENT_RPC_DURATION is not required yet - # CLIENT_RPC_DURATION, - CLIENT_ATTEMPT_SEND_BYTES, - CLIENT_ATTEMPT_RECEIVED_BYTES, - SERVER_STARTED_RPCS, - SERVER_RPC_DURATION, - SERVER_RPC_SEND_BYTES, - SERVER_RPC_RECEIVED_BYTES, - ] + return [ + CLIENT_ATTEMPT_STARTED, + CLIENT_ATTEMPT_DURATION, + # CLIENT_RPC_DURATION is not required yet + # CLIENT_RPC_DURATION, + CLIENT_ATTEMPT_SEND_BYTES, + CLIENT_ATTEMPT_RECEIVED_BYTES, + SERVER_STARTED_RPCS, + SERVER_RPC_DURATION, + SERVER_RPC_SEND_BYTES, + SERVER_RPC_RECEIVED_BYTES, + ] diff --git a/src/python/grpcio_observability/grpc_observability/_open_telemetry_observability.py b/src/python/grpcio_observability/grpc_observability/_open_telemetry_observability.py index 1bdbbd08d9f7e..4cb6eb9f8c392 100644 --- a/src/python/grpcio_observability/grpc_observability/_open_telemetry_observability.py +++ b/src/python/grpcio_observability/grpc_observability/_open_telemetry_observability.py @@ -72,440 +72,454 @@ class _OpenTelemetryPlugin: - _plugin: OpenTelemetryPlugin - _metric_to_recorder: Dict[MetricsName, Union[Counter, Histogram]] - _enabled_client_plugin_options: Optional[List[OpenTelemetryPluginOption]] - _enabled_server_plugin_options: Optional[List[OpenTelemetryPluginOption]] - identifier: str - - def __init__(self, plugin: OpenTelemetryPlugin): - self._plugin = plugin - self._metric_to_recorder = dict() - self.identifier = str(id(self)) - self._enabled_client_plugin_options = None - self._enabled_server_plugin_options = None - - meter_provider = self._plugin.meter_provider - if meter_provider: - meter = meter_provider.get_meter("grpc-python", grpc.__version__) - enabled_metrics = _open_telemetry_measures.base_metrics() - self._metric_to_recorder = self._register_metrics(meter, enabled_metrics) - - def _should_record(self, stats_data: StatsData) -> bool: - # Decide if this plugin should record the stats_data. - return stats_data.name in self._metric_to_recorder.keys() - - def _record_stats_data(self, stats_data: StatsData) -> None: - recorder = self._metric_to_recorder[stats_data.name] - enabled_plugin_options = [] - if GRPC_CLIENT_METRIC_PREFIX in recorder.name: - enabled_plugin_options = self._enabled_client_plugin_options - else: - enabled_plugin_options = self._enabled_server_plugin_options - # Only deserialize labels if we need add exchanged labels. - if stats_data.include_exchange_labels: - deserialized_labels = self._deserialize_labels( - stats_data.labels, enabled_plugin_options - ) - else: - deserialized_labels = stats_data.labels - labels = self._maybe_add_labels( - stats_data.include_exchange_labels, - deserialized_labels, - enabled_plugin_options, - ) - decoded_labels = self.decode_labels(labels) - - target = decoded_labels.get(GRPC_TARGET_LABEL, "") - if not self._plugin.target_attribute_filter(target): - # Filter target name. - decoded_labels[GRPC_TARGET_LABEL] = GRPC_OTHER_LABEL_VALUE + _plugin: OpenTelemetryPlugin + _metric_to_recorder: Dict[MetricsName, Union[Counter, Histogram]] + _enabled_client_plugin_options: Optional[List[OpenTelemetryPluginOption]] + _enabled_server_plugin_options: Optional[List[OpenTelemetryPluginOption]] + identifier: str + + def __init__(self, plugin: OpenTelemetryPlugin): + self._plugin = plugin + self._metric_to_recorder = dict() + self.identifier = str(id(self)) + self._enabled_client_plugin_options = None + self._enabled_server_plugin_options = None + + meter_provider = self._plugin.meter_provider + if meter_provider: + meter = meter_provider.get_meter("grpc-python", grpc.__version__) + enabled_metrics = _open_telemetry_measures.base_metrics() + self._metric_to_recorder = self._register_metrics( + meter, enabled_metrics + ) - method = decoded_labels.get(GRPC_METHOD_LABEL, "") - if not ( - stats_data.registered_method - or self._plugin.generic_method_attribute_filter(method) - ): - # Filter method name if it's not registered method and - # generic_method_attribute_filter returns false. - decoded_labels[GRPC_METHOD_LABEL] = GRPC_OTHER_LABEL_VALUE - - value = 0 - if stats_data.measure_double: - value = stats_data.value_float - else: - value = stats_data.value_int - if isinstance(recorder, Counter): - recorder.add(value, attributes=decoded_labels) - elif isinstance(recorder, Histogram): - recorder.record(value, attributes=decoded_labels) - - def maybe_record_stats_data(self, stats_data: List[StatsData]) -> None: - # Records stats data to MeterProvider. - if self._should_record(stats_data): - self._record_stats_data(stats_data) - - def get_client_exchange_labels(self) -> Dict[str, AnyStr]: - """Get labels used for client side Metadata Exchange.""" - - labels_for_exchange = {} - for plugin_option in self._enabled_client_plugin_options: - if hasattr(plugin_option, "get_label_injector") and hasattr( - plugin_option.get_label_injector(), "get_labels_for_exchange" - ): - labels_for_exchange.update( - plugin_option.get_label_injector().get_labels_for_exchange() - ) - return labels_for_exchange - - def get_server_exchange_labels(self) -> Dict[str, str]: - """Get labels used for server side Metadata Exchange.""" - labels_for_exchange = {} - for plugin_option in self._enabled_server_plugin_options: - if hasattr(plugin_option, "get_label_injector") and hasattr( - plugin_option.get_label_injector(), "get_labels_for_exchange" - ): - labels_for_exchange.update( - plugin_option.get_label_injector().get_labels_for_exchange() - ) - return labels_for_exchange - - def activate_client_plugin_options(self, target: bytes) -> None: - """Activate client plugin options based on option settings.""" - target_str = target.decode("utf-8", "replace") - if not self._enabled_client_plugin_options: - self._enabled_client_plugin_options = [] - for plugin_option in self._plugin.plugin_options: - if hasattr( - plugin_option, "is_active_on_client_channel" - ) and plugin_option.is_active_on_client_channel(target_str): - self._enabled_client_plugin_options.append(plugin_option) - - def activate_server_plugin_options(self, xds: bool) -> None: - """Activate server plugin options based on option settings.""" - if not self._enabled_server_plugin_options: - self._enabled_server_plugin_options = [] - for plugin_option in self._plugin.plugin_options: - if hasattr( - plugin_option, "is_active_on_server" - ) and plugin_option.is_active_on_server(xds): - self._enabled_server_plugin_options.append(plugin_option) - - @staticmethod - def _deserialize_labels( - labels: Dict[str, AnyStr], - enabled_plugin_options: List[OpenTelemetryPluginOption], - ) -> Dict[str, AnyStr]: - for plugin_option in enabled_plugin_options: - if all([ - hasattr(plugin_option, "get_label_injector"), - hasattr(plugin_option.get_label_injector(), "deserialize_labels"), - ]): - labels = plugin_option.get_label_injector().deserialize_labels(labels) - return labels - - @staticmethod - def _maybe_add_labels( - include_exchange_labels: bool, - labels: Dict[str, str], - enabled_plugin_options: List[OpenTelemetryPluginOption], - ) -> Dict[str, AnyStr]: - for plugin_option in enabled_plugin_options: - if all([ - hasattr(plugin_option, "get_label_injector"), - hasattr( - plugin_option.get_label_injector(), - "get_additional_labels", - ), - ]): - labels.update( - plugin_option.get_label_injector().get_additional_labels( - include_exchange_labels + def _should_record(self, stats_data: StatsData) -> bool: + # Decide if this plugin should record the stats_data. + return stats_data.name in self._metric_to_recorder.keys() + + def _record_stats_data(self, stats_data: StatsData) -> None: + recorder = self._metric_to_recorder[stats_data.name] + enabled_plugin_options = [] + if GRPC_CLIENT_METRIC_PREFIX in recorder.name: + enabled_plugin_options = self._enabled_client_plugin_options + else: + enabled_plugin_options = self._enabled_server_plugin_options + # Only deserialize labels if we need add exchanged labels. + if stats_data.include_exchange_labels: + deserialized_labels = self._deserialize_labels( + stats_data.labels, enabled_plugin_options ) + else: + deserialized_labels = stats_data.labels + labels = self._maybe_add_labels( + stats_data.include_exchange_labels, + deserialized_labels, + enabled_plugin_options, ) - return labels - - def get_enabled_optional_labels(self) -> List[OptionalLabelType]: - return self._plugin._get_enabled_optional_labels() - - @staticmethod - def _register_metrics( - meter: Meter, metrics: List[_open_telemetry_measures.Metric] - ) -> Dict[MetricsName, Union[Counter, Histogram]]: - metric_to_recorder_map = {} - recorder = None - for metric in metrics: - if metric == _open_telemetry_measures.CLIENT_ATTEMPT_STARTED: - recorder = meter.create_counter( - name=metric.name, - unit=metric.unit, - description=metric.description, - ) - elif metric == _open_telemetry_measures.CLIENT_ATTEMPT_DURATION: - recorder = meter.create_histogram( - name=metric.name, - unit=metric.unit, - description=metric.description, - ) - elif metric == _open_telemetry_measures.CLIENT_RPC_DURATION: - recorder = meter.create_histogram( - name=metric.name, - unit=metric.unit, - description=metric.description, - ) - elif metric == _open_telemetry_measures.CLIENT_ATTEMPT_SEND_BYTES: - recorder = meter.create_histogram( - name=metric.name, - unit=metric.unit, - description=metric.description, - ) - elif metric == _open_telemetry_measures.CLIENT_ATTEMPT_RECEIVED_BYTES: - recorder = meter.create_histogram( - name=metric.name, - unit=metric.unit, - description=metric.description, - ) - elif metric == _open_telemetry_measures.SERVER_STARTED_RPCS: - recorder = meter.create_counter( - name=metric.name, - unit=metric.unit, - description=metric.description, - ) - elif metric == _open_telemetry_measures.SERVER_RPC_DURATION: - recorder = meter.create_histogram( - name=metric.name, - unit=metric.unit, - description=metric.description, - ) - elif metric == _open_telemetry_measures.SERVER_RPC_SEND_BYTES: - recorder = meter.create_histogram( - name=metric.name, - unit=metric.unit, - description=metric.description, - ) - elif metric == _open_telemetry_measures.SERVER_RPC_RECEIVED_BYTES: - recorder = meter.create_histogram( - name=metric.name, - unit=metric.unit, - description=metric.description, - ) - metric_to_recorder_map[metric.cyname] = recorder - return metric_to_recorder_map - - @staticmethod - def decode_labels(labels: Dict[str, AnyStr]) -> Dict[str, str]: - decoded_labels = {} - for key, value in labels.items(): - if isinstance(value, bytes): - value = value.decode() - decoded_labels[key] = value - return decoded_labels + decoded_labels = self.decode_labels(labels) + + target = decoded_labels.get(GRPC_TARGET_LABEL, "") + if not self._plugin.target_attribute_filter(target): + # Filter target name. + decoded_labels[GRPC_TARGET_LABEL] = GRPC_OTHER_LABEL_VALUE + + method = decoded_labels.get(GRPC_METHOD_LABEL, "") + if not ( + stats_data.registered_method + or self._plugin.generic_method_attribute_filter(method) + ): + # Filter method name if it's not registered method and + # generic_method_attribute_filter returns false. + decoded_labels[GRPC_METHOD_LABEL] = GRPC_OTHER_LABEL_VALUE + + value = 0 + if stats_data.measure_double: + value = stats_data.value_float + else: + value = stats_data.value_int + if isinstance(recorder, Counter): + recorder.add(value, attributes=decoded_labels) + elif isinstance(recorder, Histogram): + recorder.record(value, attributes=decoded_labels) + + def maybe_record_stats_data(self, stats_data: List[StatsData]) -> None: + # Records stats data to MeterProvider. + if self._should_record(stats_data): + self._record_stats_data(stats_data) + + def get_client_exchange_labels(self) -> Dict[str, AnyStr]: + """Get labels used for client side Metadata Exchange.""" + + labels_for_exchange = {} + for plugin_option in self._enabled_client_plugin_options: + if hasattr(plugin_option, "get_label_injector") and hasattr( + plugin_option.get_label_injector(), "get_labels_for_exchange" + ): + labels_for_exchange.update( + plugin_option.get_label_injector().get_labels_for_exchange() + ) + return labels_for_exchange + + def get_server_exchange_labels(self) -> Dict[str, str]: + """Get labels used for server side Metadata Exchange.""" + labels_for_exchange = {} + for plugin_option in self._enabled_server_plugin_options: + if hasattr(plugin_option, "get_label_injector") and hasattr( + plugin_option.get_label_injector(), "get_labels_for_exchange" + ): + labels_for_exchange.update( + plugin_option.get_label_injector().get_labels_for_exchange() + ) + return labels_for_exchange + + def activate_client_plugin_options(self, target: bytes) -> None: + """Activate client plugin options based on option settings.""" + target_str = target.decode("utf-8", "replace") + if not self._enabled_client_plugin_options: + self._enabled_client_plugin_options = [] + for plugin_option in self._plugin.plugin_options: + if hasattr( + plugin_option, "is_active_on_client_channel" + ) and plugin_option.is_active_on_client_channel(target_str): + self._enabled_client_plugin_options.append(plugin_option) + + def activate_server_plugin_options(self, xds: bool) -> None: + """Activate server plugin options based on option settings.""" + if not self._enabled_server_plugin_options: + self._enabled_server_plugin_options = [] + for plugin_option in self._plugin.plugin_options: + if hasattr( + plugin_option, "is_active_on_server" + ) and plugin_option.is_active_on_server(xds): + self._enabled_server_plugin_options.append(plugin_option) + + @staticmethod + def _deserialize_labels( + labels: Dict[str, AnyStr], + enabled_plugin_options: List[OpenTelemetryPluginOption], + ) -> Dict[str, AnyStr]: + for plugin_option in enabled_plugin_options: + if all( + [ + hasattr(plugin_option, "get_label_injector"), + hasattr( + plugin_option.get_label_injector(), "deserialize_labels" + ), + ] + ): + labels = plugin_option.get_label_injector().deserialize_labels( + labels + ) + return labels + + @staticmethod + def _maybe_add_labels( + include_exchange_labels: bool, + labels: Dict[str, str], + enabled_plugin_options: List[OpenTelemetryPluginOption], + ) -> Dict[str, AnyStr]: + for plugin_option in enabled_plugin_options: + if all( + [ + hasattr(plugin_option, "get_label_injector"), + hasattr( + plugin_option.get_label_injector(), + "get_additional_labels", + ), + ] + ): + labels.update( + plugin_option.get_label_injector().get_additional_labels( + include_exchange_labels + ) + ) + return labels + + def get_enabled_optional_labels(self) -> List[OptionalLabelType]: + return self._plugin._get_enabled_optional_labels() + + @staticmethod + def _register_metrics( + meter: Meter, metrics: List[_open_telemetry_measures.Metric] + ) -> Dict[MetricsName, Union[Counter, Histogram]]: + metric_to_recorder_map = {} + recorder = None + for metric in metrics: + if metric == _open_telemetry_measures.CLIENT_ATTEMPT_STARTED: + recorder = meter.create_counter( + name=metric.name, + unit=metric.unit, + description=metric.description, + ) + elif metric == _open_telemetry_measures.CLIENT_ATTEMPT_DURATION: + recorder = meter.create_histogram( + name=metric.name, + unit=metric.unit, + description=metric.description, + ) + elif metric == _open_telemetry_measures.CLIENT_RPC_DURATION: + recorder = meter.create_histogram( + name=metric.name, + unit=metric.unit, + description=metric.description, + ) + elif metric == _open_telemetry_measures.CLIENT_ATTEMPT_SEND_BYTES: + recorder = meter.create_histogram( + name=metric.name, + unit=metric.unit, + description=metric.description, + ) + elif ( + metric == _open_telemetry_measures.CLIENT_ATTEMPT_RECEIVED_BYTES + ): + recorder = meter.create_histogram( + name=metric.name, + unit=metric.unit, + description=metric.description, + ) + elif metric == _open_telemetry_measures.SERVER_STARTED_RPCS: + recorder = meter.create_counter( + name=metric.name, + unit=metric.unit, + description=metric.description, + ) + elif metric == _open_telemetry_measures.SERVER_RPC_DURATION: + recorder = meter.create_histogram( + name=metric.name, + unit=metric.unit, + description=metric.description, + ) + elif metric == _open_telemetry_measures.SERVER_RPC_SEND_BYTES: + recorder = meter.create_histogram( + name=metric.name, + unit=metric.unit, + description=metric.description, + ) + elif metric == _open_telemetry_measures.SERVER_RPC_RECEIVED_BYTES: + recorder = meter.create_histogram( + name=metric.name, + unit=metric.unit, + description=metric.description, + ) + metric_to_recorder_map[metric.cyname] = recorder + return metric_to_recorder_map + + @staticmethod + def decode_labels(labels: Dict[str, AnyStr]) -> Dict[str, str]: + decoded_labels = {} + for key, value in labels.items(): + if isinstance(value, bytes): + value = value.decode() + decoded_labels[key] = value + return decoded_labels def start_open_telemetry_observability( *, plugins: Iterable[_OpenTelemetryPlugin], ) -> None: - _start_open_telemetry_observability( - OpenTelemetryObservability(plugins=plugins) - ) + _start_open_telemetry_observability( + OpenTelemetryObservability(plugins=plugins) + ) def end_open_telemetry_observability() -> None: - _end_open_telemetry_observability() + _end_open_telemetry_observability() class _OpenTelemetryExporterDelegator(_observability.Exporter): - _plugins: Iterable[_OpenTelemetryPlugin] + _plugins: Iterable[_OpenTelemetryPlugin] - def __init__(self, plugins: Iterable[_OpenTelemetryPlugin]): - self._plugins = plugins + def __init__(self, plugins: Iterable[_OpenTelemetryPlugin]): + self._plugins = plugins - def export_stats_data( - self, stats_data: List[_observability.StatsData] - ) -> None: - # Records stats data to MeterProvider. - for data in stats_data: - for plugin in self._plugins: - plugin.maybe_record_stats_data(data) + def export_stats_data( + self, stats_data: List[_observability.StatsData] + ) -> None: + # Records stats data to MeterProvider. + for data in stats_data: + for plugin in self._plugins: + plugin.maybe_record_stats_data(data) - def export_tracing_data( - self, tracing_data: List[_observability.TracingData] - ) -> None: - pass + def export_tracing_data( + self, tracing_data: List[_observability.TracingData] + ) -> None: + pass # pylint: disable=no-self-use class OpenTelemetryObservability(grpc._observability.ObservabilityPlugin): - """OpenTelemetry based plugin implementation. - - This is class is part of an EXPERIMENTAL API. - - Args: - plugins: _OpenTelemetryPlugins to enable. - """ - - _exporter: "grpc_observability.Exporter" - _plugins: List[_OpenTelemetryPlugin] - _registered_method: Set[bytes] - _client_option_activated: bool - _server_option_activated: bool - - def __init__( - self, - *, - plugins: Optional[Iterable[_OpenTelemetryPlugin]], - ): - self._exporter = _OpenTelemetryExporterDelegator(plugins) - self._registered_methods = set() - self._plugins = plugins - self._client_option_activated = False - self._server_option_activated = False - - def observability_init(self): - try: - _cyobservability.activate_stats() - self.set_stats(True) - except Exception as e: # pylint: disable=broad-except - raise ValueError(f"Activate observability metrics failed with: {e}") - - try: - _cyobservability.cyobservability_init(self._exporter) - # TODO(xuanwn): Use specific exceptions - except Exception as e: # pylint: disable=broad-except - _LOGGER.exception("Initiate observability failed with: %s", e) - - grpc._observability.observability_init(self) - - def observability_deinit(self) -> None: - # Sleep so we don't loss any data. If we shutdown export thread - # immediately after exit, it's possible that core didn't call RecordEnd - # in callTracer, and all data recorded by calling RecordEnd will be - # lost. - # CENSUS_EXPORT_BATCH_INTERVAL_SECS: The time equals to the time in - # AwaitNextBatchLocked. - # TODO(xuanwn): explicit synchronization - # https://github.com/grpc/grpc/issues/33262 - time.sleep(_cyobservability.CENSUS_EXPORT_BATCH_INTERVAL_SECS) - self.set_tracing(False) - self.set_stats(False) - _cyobservability.observability_deinit() - grpc._observability.observability_deinit() - - def create_client_call_tracer( - self, method_name: bytes, target: bytes - ) -> ClientCallTracerCapsule: - trace_id = b"TRACE_ID" - self._maybe_activate_client_plugin_options(target) - exchange_labels = self._get_client_exchange_labels() - enabled_optional_labels = set() - for plugin in self._plugins: - enabled_optional_labels.update(plugin.get_enabled_optional_labels()) - - capsule = _cyobservability.create_client_call_tracer( - method_name, - target, - trace_id, - self._get_identifier(), - exchange_labels, - enabled_optional_labels, - method_name in self._registered_methods, - ) - return capsule - - def create_server_call_tracer_factory( - self, - *, - xds: bool = False, - ) -> Optional[ServerCallTracerFactoryCapsule]: - capsule = None - self._maybe_activate_server_plugin_options(xds) - exchange_labels = self._get_server_exchange_labels() - capsule = _cyobservability.create_server_call_tracer_factory_capsule( - exchange_labels, self._get_identifier() - ) - return capsule - - def save_trace_context( - self, trace_id: str, span_id: str, is_sampled: bool - ) -> None: - pass - - def record_rpc_latency( - self, - method: str, - target: str, - rpc_latency: float, - status_code: grpc.StatusCode, - ) -> None: - status_code = GRPC_STATUS_CODE_TO_STRING.get(status_code, "UNKNOWN") - encoded_method = method.encode("utf8") - _cyobservability._record_rpc_latency( - self._exporter, - method, - target, - rpc_latency, - status_code, - self._get_identifier(), - encoded_method in self._registered_methods, - ) + """OpenTelemetry based plugin implementation. - def save_registered_method(self, method_name: bytes) -> None: - self._registered_methods.add(method_name) + This is class is part of an EXPERIMENTAL API. - def _get_client_exchange_labels(self) -> Dict[str, AnyStr]: - client_exchange_labels = {} - for _plugin in self._plugins: - client_exchange_labels.update(_plugin.get_client_exchange_labels()) - return client_exchange_labels + Args: + plugins: _OpenTelemetryPlugins to enable. + """ - def _get_server_exchange_labels(self) -> Dict[str, AnyStr]: - server_exchange_labels = {} - for _plugin in self._plugins: - server_exchange_labels.update(_plugin.get_server_exchange_labels()) - return server_exchange_labels + _exporter: "grpc_observability.Exporter" + _plugins: List[_OpenTelemetryPlugin] + _registered_method: Set[bytes] + _client_option_activated: bool + _server_option_activated: bool - def _maybe_activate_client_plugin_options(self, target: bytes) -> None: - if not self._client_option_activated: - for _plugin in self._plugins: - _plugin.activate_client_plugin_options(target) - self._client_option_activated = True + def __init__( + self, + *, + plugins: Optional[Iterable[_OpenTelemetryPlugin]], + ): + self._exporter = _OpenTelemetryExporterDelegator(plugins) + self._registered_methods = set() + self._plugins = plugins + self._client_option_activated = False + self._server_option_activated = False + + def observability_init(self): + try: + _cyobservability.activate_stats() + self.set_stats(True) + except Exception as e: # pylint: disable=broad-except + raise ValueError(f"Activate observability metrics failed with: {e}") + + try: + _cyobservability.cyobservability_init(self._exporter) + # TODO(xuanwn): Use specific exceptions + except Exception as e: # pylint: disable=broad-except + _LOGGER.exception("Initiate observability failed with: %s", e) + + grpc._observability.observability_init(self) + + def observability_deinit(self) -> None: + # Sleep so we don't loss any data. If we shutdown export thread + # immediately after exit, it's possible that core didn't call RecordEnd + # in callTracer, and all data recorded by calling RecordEnd will be + # lost. + # CENSUS_EXPORT_BATCH_INTERVAL_SECS: The time equals to the time in + # AwaitNextBatchLocked. + # TODO(xuanwn): explicit synchronization + # https://github.com/grpc/grpc/issues/33262 + time.sleep(_cyobservability.CENSUS_EXPORT_BATCH_INTERVAL_SECS) + self.set_tracing(False) + self.set_stats(False) + _cyobservability.observability_deinit() + grpc._observability.observability_deinit() + + def create_client_call_tracer( + self, method_name: bytes, target: bytes + ) -> ClientCallTracerCapsule: + trace_id = b"TRACE_ID" + self._maybe_activate_client_plugin_options(target) + exchange_labels = self._get_client_exchange_labels() + enabled_optional_labels = set() + for plugin in self._plugins: + enabled_optional_labels.update(plugin.get_enabled_optional_labels()) + + capsule = _cyobservability.create_client_call_tracer( + method_name, + target, + trace_id, + self._get_identifier(), + exchange_labels, + enabled_optional_labels, + method_name in self._registered_methods, + ) + return capsule + + def create_server_call_tracer_factory( + self, + *, + xds: bool = False, + ) -> Optional[ServerCallTracerFactoryCapsule]: + capsule = None + self._maybe_activate_server_plugin_options(xds) + exchange_labels = self._get_server_exchange_labels() + capsule = _cyobservability.create_server_call_tracer_factory_capsule( + exchange_labels, self._get_identifier() + ) + return capsule + + def save_trace_context( + self, trace_id: str, span_id: str, is_sampled: bool + ) -> None: + pass + + def record_rpc_latency( + self, + method: str, + target: str, + rpc_latency: float, + status_code: grpc.StatusCode, + ) -> None: + status_code = GRPC_STATUS_CODE_TO_STRING.get(status_code, "UNKNOWN") + encoded_method = method.encode("utf8") + _cyobservability._record_rpc_latency( + self._exporter, + method, + target, + rpc_latency, + status_code, + self._get_identifier(), + encoded_method in self._registered_methods, + ) + + def save_registered_method(self, method_name: bytes) -> None: + self._registered_methods.add(method_name) + + def _get_client_exchange_labels(self) -> Dict[str, AnyStr]: + client_exchange_labels = {} + for _plugin in self._plugins: + client_exchange_labels.update(_plugin.get_client_exchange_labels()) + return client_exchange_labels + + def _get_server_exchange_labels(self) -> Dict[str, AnyStr]: + server_exchange_labels = {} + for _plugin in self._plugins: + server_exchange_labels.update(_plugin.get_server_exchange_labels()) + return server_exchange_labels - def _maybe_activate_server_plugin_options(self, xds: bool) -> None: - if not self._server_option_activated: - for _plugin in self._plugins: - _plugin.activate_server_plugin_options(xds) - self._server_option_activated = True + def _maybe_activate_client_plugin_options(self, target: bytes) -> None: + if not self._client_option_activated: + for _plugin in self._plugins: + _plugin.activate_client_plugin_options(target) + self._client_option_activated = True - def _get_identifier(self) -> str: - plugin_identifiers = [] - for _plugin in self._plugins: - plugin_identifiers.append(_plugin.identifier) - return PLUGIN_IDENTIFIER_SEP.join(plugin_identifiers) + def _maybe_activate_server_plugin_options(self, xds: bool) -> None: + if not self._server_option_activated: + for _plugin in self._plugins: + _plugin.activate_server_plugin_options(xds) + self._server_option_activated = True - def get_enabled_optional_labels(self) -> List[OptionalLabelType]: - return [] + def _get_identifier(self) -> str: + plugin_identifiers = [] + for _plugin in self._plugins: + plugin_identifiers.append(_plugin.identifier) + return PLUGIN_IDENTIFIER_SEP.join(plugin_identifiers) + + def get_enabled_optional_labels(self) -> List[OptionalLabelType]: + return [] def _start_open_telemetry_observability( otel_o11y: OpenTelemetryObservability, ) -> None: - global _OPEN_TELEMETRY_OBSERVABILITY # pylint: disable=global-statement - with _observability_lock: - if _OPEN_TELEMETRY_OBSERVABILITY is None: - _OPEN_TELEMETRY_OBSERVABILITY = otel_o11y - _OPEN_TELEMETRY_OBSERVABILITY.observability_init() - else: - raise RuntimeError("gPRC Python observability was already initialized!") + global _OPEN_TELEMETRY_OBSERVABILITY # pylint: disable=global-statement + with _observability_lock: + if _OPEN_TELEMETRY_OBSERVABILITY is None: + _OPEN_TELEMETRY_OBSERVABILITY = otel_o11y + _OPEN_TELEMETRY_OBSERVABILITY.observability_init() + else: + raise RuntimeError( + "gPRC Python observability was already initialized!" + ) def _end_open_telemetry_observability() -> None: - global _OPEN_TELEMETRY_OBSERVABILITY # pylint: disable=global-statement - with _observability_lock: - if not _OPEN_TELEMETRY_OBSERVABILITY: - raise RuntimeError( - "Trying to end gPRC Python observability without initialize first!" - ) - else: - _OPEN_TELEMETRY_OBSERVABILITY.observability_deinit() - _OPEN_TELEMETRY_OBSERVABILITY = None + global _OPEN_TELEMETRY_OBSERVABILITY # pylint: disable=global-statement + with _observability_lock: + if not _OPEN_TELEMETRY_OBSERVABILITY: + raise RuntimeError( + "Trying to end gPRC Python observability without initialize first!" + ) + else: + _OPEN_TELEMETRY_OBSERVABILITY.observability_deinit() + _OPEN_TELEMETRY_OBSERVABILITY = None diff --git a/src/python/grpcio_observability/grpc_observability/_open_telemetry_plugin.py b/src/python/grpcio_observability/grpc_observability/_open_telemetry_plugin.py index 811f6c37dceb6..f339e0d5ffd94 100644 --- a/src/python/grpcio_observability/grpc_observability/_open_telemetry_plugin.py +++ b/src/python/grpcio_observability/grpc_observability/_open_telemetry_plugin.py @@ -26,145 +26,149 @@ class OpenTelemetryLabelInjector: - """An interface that allows you to add additional labels on the calls traced.""" + """An interface that allows you to add additional labels on the calls traced.""" - def get_labels_for_exchange(self) -> Dict[str, AnyStr]: - """Get labels used for metadata exchange. + def get_labels_for_exchange(self) -> Dict[str, AnyStr]: + """Get labels used for metadata exchange. - Returns: - A dict of labels, with a string as key representing label name, string or - bytes - as value representing label value. - """ - raise NotImplementedError() + Returns: + A dict of labels, with a string as key representing label name, string or + bytes + as value representing label value. + """ + raise NotImplementedError() - def get_additional_labels( - self, include_exchange_labels: bool - ) -> Dict[str, str]: - """Get additional labels added by this injector. + def get_additional_labels( + self, include_exchange_labels: bool + ) -> Dict[str, str]: + """Get additional labels added by this injector. - The return value from this method will be added directly to metric data. + The return value from this method will be added directly to metric data. - Args: - include_exchange_labels: Whether to add additional metadata exchange - related labels. + Args: + include_exchange_labels: Whether to add additional metadata exchange + related labels. - Returns: - A dict of labels. - """ - raise NotImplementedError() + Returns: + A dict of labels. + """ + raise NotImplementedError() - # pylint: disable=no-self-use - def deserialize_labels(self, labels: Dict[str, AnyStr]) -> Dict[str, AnyStr]: - """Deserialize the labels if required. + # pylint: disable=no-self-use + def deserialize_labels( + self, labels: Dict[str, AnyStr] + ) -> Dict[str, AnyStr]: + """Deserialize the labels if required. - If this injector added labels for metadata exchange, this method will be - called to - deserialize the exchanged labels. + If this injector added labels for metadata exchange, this method will be + called to + deserialize the exchanged labels. - For example, if this injector added xds_peer_metadata_label for exchange: + For example, if this injector added xds_peer_metadata_label for exchange: - labels: {"labelA": b"valueA", "xds_peer_metadata_label": - b"exchanged_bytes"} + labels: {"labelA": b"valueA", "xds_peer_metadata_label": + b"exchanged_bytes"} - This method should deserialize xds_peer_metadata_label and return labels as: + This method should deserialize xds_peer_metadata_label and return labels as: - labels: {"labelA": b"valueA", "xds_label_A": "xds_label_A", - "xds_label_B": "xds_label_B"} + labels: {"labelA": b"valueA", "xds_label_A": "xds_label_A", + "xds_label_B": "xds_label_B"} - Returns: - A dict of deserialized labels. - """ - return labels + Returns: + A dict of deserialized labels. + """ + return labels class OpenTelemetryPluginOption: - """An interface that allows you to add additional function to OpenTelemetryPlugin.""" + """An interface that allows you to add additional function to OpenTelemetryPlugin.""" # pylint: disable=no-self-use class OpenTelemetryPlugin: - """Describes a Plugin for OpenTelemetry observability.""" - - plugin_options: Iterable[OpenTelemetryPluginOption] - meter_provider: Optional[MeterProvider] - target_attribute_filter: Callable[[str], bool] - generic_method_attribute_filter: Callable[[str], bool] - _plugins: List[_open_telemetry_observability._OpenTelemetryPlugin] - - def __init__( - self, - *, - plugin_options: Iterable[OpenTelemetryPluginOption] = [], - meter_provider: Optional[MeterProvider] = None, - target_attribute_filter: Optional[Callable[[str], bool]] = None, - generic_method_attribute_filter: Optional[Callable[[str], bool]] = None, - ): - """Args: - - plugin_options: An Iterable of OpenTelemetryPluginOption which will be - enabled for this OpenTelemetryPlugin. - meter_provider: A MeterProvider which will be used to collect telemetry - data, - or None which means no metrics will be collected. - target_attribute_filter: [DEPRECATED] This attribute is deprecated and - should - not be used. - Once provided, this will be called per channel to decide whether to record - the - target attribute on client or to replace it with "other". - This helps reduce the cardinality on metrics in cases where many channels - are created with different targets in the same binary (which might happen - for example, if the channel target string uses IP addresses directly). - Return True means the original target string will be used, False means - target string - will be replaced with "other". - generic_method_attribute_filter: Once provided, this will be called with a - generic - method type to decide whether to record the method name or to replace it - with - "other". Note that pre-registered methods will always be recorded no matter - what - this function returns. - Return True means the original method name will be used, False means method - name will - be replaced with "other". - """ - self.plugin_options = plugin_options - self.meter_provider = meter_provider - self.target_attribute_filter = target_attribute_filter or ( - lambda target: True - ) - self.generic_method_attribute_filter = generic_method_attribute_filter or ( - lambda target: False - ) - self._plugins = [_open_telemetry_observability._OpenTelemetryPlugin(self)] - - def register_global(self) -> None: - """Registers a global plugin that acts on all channels and servers running on the process. - - Raises: - RuntimeError: If a global plugin was already registered. - """ - _open_telemetry_observability.start_open_telemetry_observability( - plugins=self._plugins - ) - - def deregister_global(self) -> None: - """De-register the global plugin that acts on all channels and servers running on the process. - - Raises: - RuntimeError: If no global plugin was registered. - """ - _open_telemetry_observability.end_open_telemetry_observability() - - def __enter__(self) -> None: - _open_telemetry_observability.start_open_telemetry_observability( - plugins=self._plugins - ) - - def __exit__(self, exc_type, exc_val, exc_tb) -> None: - _open_telemetry_observability.end_open_telemetry_observability() - - def _get_enabled_optional_labels(self) -> List[OptionalLabelType]: - return [] + """Describes a Plugin for OpenTelemetry observability.""" + + plugin_options: Iterable[OpenTelemetryPluginOption] + meter_provider: Optional[MeterProvider] + target_attribute_filter: Callable[[str], bool] + generic_method_attribute_filter: Callable[[str], bool] + _plugins: List[_open_telemetry_observability._OpenTelemetryPlugin] + + def __init__( + self, + *, + plugin_options: Iterable[OpenTelemetryPluginOption] = [], + meter_provider: Optional[MeterProvider] = None, + target_attribute_filter: Optional[Callable[[str], bool]] = None, + generic_method_attribute_filter: Optional[Callable[[str], bool]] = None, + ): + """Args: + + plugin_options: An Iterable of OpenTelemetryPluginOption which will be + enabled for this OpenTelemetryPlugin. + meter_provider: A MeterProvider which will be used to collect telemetry + data, + or None which means no metrics will be collected. + target_attribute_filter: [DEPRECATED] This attribute is deprecated and + should + not be used. + Once provided, this will be called per channel to decide whether to record + the + target attribute on client or to replace it with "other". + This helps reduce the cardinality on metrics in cases where many channels + are created with different targets in the same binary (which might happen + for example, if the channel target string uses IP addresses directly). + Return True means the original target string will be used, False means + target string + will be replaced with "other". + generic_method_attribute_filter: Once provided, this will be called with a + generic + method type to decide whether to record the method name or to replace it + with + "other". Note that pre-registered methods will always be recorded no matter + what + this function returns. + Return True means the original method name will be used, False means method + name will + be replaced with "other". + """ + self.plugin_options = plugin_options + self.meter_provider = meter_provider + self.target_attribute_filter = target_attribute_filter or ( + lambda target: True + ) + self.generic_method_attribute_filter = ( + generic_method_attribute_filter or (lambda target: False) + ) + self._plugins = [ + _open_telemetry_observability._OpenTelemetryPlugin(self) + ] + + def register_global(self) -> None: + """Registers a global plugin that acts on all channels and servers running on the process. + + Raises: + RuntimeError: If a global plugin was already registered. + """ + _open_telemetry_observability.start_open_telemetry_observability( + plugins=self._plugins + ) + + def deregister_global(self) -> None: + """De-register the global plugin that acts on all channels and servers running on the process. + + Raises: + RuntimeError: If no global plugin was registered. + """ + _open_telemetry_observability.end_open_telemetry_observability() + + def __enter__(self) -> None: + _open_telemetry_observability.start_open_telemetry_observability( + plugins=self._plugins + ) + + def __exit__(self, exc_type, exc_val, exc_tb) -> None: + _open_telemetry_observability.end_open_telemetry_observability() + + def _get_enabled_optional_labels(self) -> List[OptionalLabelType]: + return [] diff --git a/src/python/grpcio_observability/grpc_observability/_views.py b/src/python/grpcio_observability/grpc_observability/_views.py index 4e2f1053b5e82..740203923eec6 100644 --- a/src/python/grpcio_observability/grpc_observability/_views.py +++ b/src/python/grpcio_observability/grpc_observability/_views.py @@ -49,245 +49,249 @@ # implementations--see # https://github.com/census-instrumentation/opencensus-java/blob/master/contrib/grpc_metrics/src/main/java/io/opencensus/contrib/grpc/metrics/RpcMeasureConstants.java. def client_method_tag_key(): - return TagKey("grpc_client_method") + return TagKey("grpc_client_method") def client_status_tag_key(): - return TagKey("grpc_client_status") + return TagKey("grpc_client_status") def server_method_tag_key(): - return TagKey("grpc_server_method") + return TagKey("grpc_server_method") def server_status_tag_key(): - return TagKey("server_status_tag_key") + return TagKey("server_status_tag_key") def count_distribution_aggregation() -> aggregation.DistributionAggregation: - exponential_boundaries = _get_exponential_boundaries(17, 1.0, 2.0) - return aggregation.DistributionAggregation(exponential_boundaries) + exponential_boundaries = _get_exponential_boundaries(17, 1.0, 2.0) + return aggregation.DistributionAggregation(exponential_boundaries) def bytes_distribution_aggregation() -> aggregation.DistributionAggregation: - return aggregation.DistributionAggregation([ - 1024, - 2048, - 4096, - 16384, - 65536, - 262144, - 1048576, - 4194304, - 16777216, - 67108864, - 268435456, - 1073741824, - 4294967296, - ]) + return aggregation.DistributionAggregation( + [ + 1024, + 2048, + 4096, + 16384, + 65536, + 262144, + 1048576, + 4194304, + 16777216, + 67108864, + 268435456, + 1073741824, + 4294967296, + ] + ) def millis_distribution_aggregation() -> aggregation.DistributionAggregation: - return aggregation.DistributionAggregation([ - 0.01, - 0.05, - 0.1, - 0.3, - 0.6, - 0.8, - 1, - 2, - 3, - 4, - 5, - 6, - 8, - 10, - 13, - 16, - 20, - 25, - 30, - 40, - 50, - 65, - 80, - 100, - 130, - 160, - 200, - 250, - 300, - 400, - 500, - 650, - 800, - 1000, - 2000, - 5000, - 10000, - 20000, - 50000, - 100000, - ]) + return aggregation.DistributionAggregation( + [ + 0.01, + 0.05, + 0.1, + 0.3, + 0.6, + 0.8, + 1, + 2, + 3, + 4, + 5, + 6, + 8, + 10, + 13, + 16, + 20, + 25, + 30, + 40, + 50, + 65, + 80, + 100, + 130, + 160, + 200, + 250, + 300, + 400, + 500, + 650, + 800, + 1000, + 2000, + 5000, + 10000, + 20000, + 50000, + 100000, + ] + ) # Client def client_started_rpcs(labels: Mapping[str, str]) -> view_module.View: - view = view_module.View( - "grpc.io/client/started_rpcs", - "The count of RPCs ever received at the server, including RPCs" - + " that have not completed.", - [TagKey(key) for key in labels.keys()] + [client_method_tag_key()], - _measures.CLIENT_STARTED_RPCS_MEASURE, - aggregation.CountAggregation(), - ) - return view + view = view_module.View( + "grpc.io/client/started_rpcs", + "The count of RPCs ever received at the server, including RPCs" + + " that have not completed.", + [TagKey(key) for key in labels.keys()] + [client_method_tag_key()], + _measures.CLIENT_STARTED_RPCS_MEASURE, + aggregation.CountAggregation(), + ) + return view def client_completed_rpcs(labels: Mapping[str, str]) -> view_module.View: - view = view_module.View( - "grpc.io/client/completed_rpcs", - "The total count of RPCs completed, for example, when a response" - + " is sent by the server.", - [TagKey(key) for key in labels.keys()] - + [client_method_tag_key(), client_status_tag_key()], - _measures.CLIENT_COMPLETED_RPCS_MEASURE, - aggregation.CountAggregation(), - ) - return view + view = view_module.View( + "grpc.io/client/completed_rpcs", + "The total count of RPCs completed, for example, when a response" + + " is sent by the server.", + [TagKey(key) for key in labels.keys()] + + [client_method_tag_key(), client_status_tag_key()], + _measures.CLIENT_COMPLETED_RPCS_MEASURE, + aggregation.CountAggregation(), + ) + return view def client_roundtrip_latency(labels: Mapping[str, str]) -> view_module.View: - view = view_module.View( - "grpc.io/client/roundtrip_latency", - "End-to-end time taken to complete an RPC attempt including the time" - + " it takes to pick a subchannel.", - [TagKey(key) for key in labels.keys()] + [client_method_tag_key()], - _measures.CLIENT_ROUNDTRIP_LATENCY_MEASURE, - millis_distribution_aggregation(), - ) - return view + view = view_module.View( + "grpc.io/client/roundtrip_latency", + "End-to-end time taken to complete an RPC attempt including the time" + + " it takes to pick a subchannel.", + [TagKey(key) for key in labels.keys()] + [client_method_tag_key()], + _measures.CLIENT_ROUNDTRIP_LATENCY_MEASURE, + millis_distribution_aggregation(), + ) + return view def client_api_latency(labels: Mapping[str, str]) -> view_module.View: - view = view_module.View( - "grpc.io/client/api_latency", - "The total time taken by the gRPC library to complete an RPC from" - + " the application's perspective.", - [TagKey(key) for key in labels.keys()] - + [client_method_tag_key(), client_status_tag_key()], - _measures.CLIENT_API_LATENCY_MEASURE, - millis_distribution_aggregation(), - ) - return view + view = view_module.View( + "grpc.io/client/api_latency", + "The total time taken by the gRPC library to complete an RPC from" + + " the application's perspective.", + [TagKey(key) for key in labels.keys()] + + [client_method_tag_key(), client_status_tag_key()], + _measures.CLIENT_API_LATENCY_MEASURE, + millis_distribution_aggregation(), + ) + return view def client_sent_compressed_message_bytes_per_rpc( labels: Mapping[str, str], ) -> view_module.View: - view = view_module.View( - "grpc.io/client/sent_compressed_message_bytes_per_rpc", - "The total bytes (compressed, not encrypted) sent across all" - + " request messages per RPC attempt.", - [TagKey(key) for key in labels.keys()] - + [client_method_tag_key(), client_status_tag_key()], - _measures.CLIENT_SEND_BYTES_PER_RPC_MEASURE, - bytes_distribution_aggregation(), - ) - return view + view = view_module.View( + "grpc.io/client/sent_compressed_message_bytes_per_rpc", + "The total bytes (compressed, not encrypted) sent across all" + + " request messages per RPC attempt.", + [TagKey(key) for key in labels.keys()] + + [client_method_tag_key(), client_status_tag_key()], + _measures.CLIENT_SEND_BYTES_PER_RPC_MEASURE, + bytes_distribution_aggregation(), + ) + return view def client_received_compressed_message_bytes_per_rpc( labels: Mapping[str, str], ) -> view_module.View: - view = view_module.View( - "grpc.io/client/received_compressed_message_bytes_per_rpc", - "The total bytes (compressed, not encrypted) received across" - + " all response messages per RPC attempt.", - [TagKey(key) for key in labels.keys()] - + [client_method_tag_key(), client_status_tag_key()], - _measures.CLIENT_RECEIVED_BYTES_PER_RPC_MEASURE, - bytes_distribution_aggregation(), - ) - return view + view = view_module.View( + "grpc.io/client/received_compressed_message_bytes_per_rpc", + "The total bytes (compressed, not encrypted) received across" + + " all response messages per RPC attempt.", + [TagKey(key) for key in labels.keys()] + + [client_method_tag_key(), client_status_tag_key()], + _measures.CLIENT_RECEIVED_BYTES_PER_RPC_MEASURE, + bytes_distribution_aggregation(), + ) + return view # Server def server_started_rpcs(labels: Mapping[str, str]) -> view_module.View: - view = view_module.View( - "grpc.io/server/started_rpcs", - "The count of RPCs ever received at the server, including RPCs" - + " that have not completed.", - [TagKey(key) for key in labels.keys()] + [server_method_tag_key()], - _measures.SERVER_STARTED_RPCS_MEASURE, - aggregation.CountAggregation(), - ) - return view + view = view_module.View( + "grpc.io/server/started_rpcs", + "The count of RPCs ever received at the server, including RPCs" + + " that have not completed.", + [TagKey(key) for key in labels.keys()] + [server_method_tag_key()], + _measures.SERVER_STARTED_RPCS_MEASURE, + aggregation.CountAggregation(), + ) + return view def server_completed_rpcs(labels: Mapping[str, str]) -> view_module.View: - view = view_module.View( - "grpc.io/server/completed_rpcs", - "The total count of RPCs completed, for example, when a response" - + " is sent by the server.", - [TagKey(key) for key in labels.keys()] - + [server_method_tag_key(), server_status_tag_key()], - _measures.SERVER_COMPLETED_RPCS_MEASURE, - aggregation.CountAggregation(), - ) - return view + view = view_module.View( + "grpc.io/server/completed_rpcs", + "The total count of RPCs completed, for example, when a response" + + " is sent by the server.", + [TagKey(key) for key in labels.keys()] + + [server_method_tag_key(), server_status_tag_key()], + _measures.SERVER_COMPLETED_RPCS_MEASURE, + aggregation.CountAggregation(), + ) + return view def server_sent_compressed_message_bytes_per_rpc( labels: Mapping[str, str], ) -> view_module.View: - view = view_module.View( - "grpc.io/server/sent_compressed_message_bytes_per_rpc", - "The total bytes (compressed not encrypted) sent across all response" - + " messages per RPC.", - [TagKey(key) for key in labels.keys()] - + [server_method_tag_key(), server_status_tag_key()], - _measures.SERVER_SENT_BYTES_PER_RPC_MEASURE, - bytes_distribution_aggregation(), - ) - return view + view = view_module.View( + "grpc.io/server/sent_compressed_message_bytes_per_rpc", + "The total bytes (compressed not encrypted) sent across all response" + + " messages per RPC.", + [TagKey(key) for key in labels.keys()] + + [server_method_tag_key(), server_status_tag_key()], + _measures.SERVER_SENT_BYTES_PER_RPC_MEASURE, + bytes_distribution_aggregation(), + ) + return view def server_received_compressed_message_bytes_per_rpc( labels: Mapping[str, str], ) -> view_module.View: - view = view_module.View( - "grpc.io/server/received_compressed_message_bytes_per_rpc", - "The total bytes (compressed not encrypted) received across all" - + " request messages per RPC.", - [TagKey(key) for key in labels.keys()] - + [server_method_tag_key(), server_status_tag_key()], - _measures.SERVER_RECEIVED_BYTES_PER_RPC_MEASURE, - bytes_distribution_aggregation(), - ) - return view + view = view_module.View( + "grpc.io/server/received_compressed_message_bytes_per_rpc", + "The total bytes (compressed not encrypted) received across all" + + " request messages per RPC.", + [TagKey(key) for key in labels.keys()] + + [server_method_tag_key(), server_status_tag_key()], + _measures.SERVER_RECEIVED_BYTES_PER_RPC_MEASURE, + bytes_distribution_aggregation(), + ) + return view def server_server_latency(labels: Mapping[str, str]) -> view_module.View: - view = view_module.View( - "grpc.io/server/server_latency", - "The total time taken by an RPC from server transport's" - + " (HTTP2 / inproc) perspective.", - [TagKey(key) for key in labels.keys()] - + [server_method_tag_key(), server_status_tag_key()], - _measures.SERVER_SERVER_LATENCY_MEASURE, - millis_distribution_aggregation(), - ) - return view + view = view_module.View( + "grpc.io/server/server_latency", + "The total time taken by an RPC from server transport's" + + " (HTTP2 / inproc) perspective.", + [TagKey(key) for key in labels.keys()] + + [server_method_tag_key(), server_status_tag_key()], + _measures.SERVER_SERVER_LATENCY_MEASURE, + millis_distribution_aggregation(), + ) + return view def _get_exponential_boundaries( num_finite_buckets: int, scale: float, grrowth_factor: float ) -> list: - boundaries = [] - upper_bound = scale - for _ in range(num_finite_buckets): - boundaries.append(upper_bound) - upper_bound *= grrowth_factor - return boundaries + boundaries = [] + upper_bound = scale + for _ in range(num_finite_buckets): + boundaries.append(upper_bound) + upper_bound *= grrowth_factor + return boundaries diff --git a/src/python/grpcio_observability/grpc_observability/client_call_tracer.cc b/src/python/grpcio_observability/grpc_observability/client_call_tracer.cc index 98d36a6be9629..0804a46f06b6b 100644 --- a/src/python/grpcio_observability/grpc_observability/client_call_tracer.cc +++ b/src/python/grpcio_observability/grpc_observability/client_call_tracer.cc @@ -20,14 +20,14 @@ #include #include +#include "absl/strings/str_cat.h" +#include "absl/time/clock.h" #include "constants.h" #include "metadata_exchange.h" #include "observability_util.h" #include "python_observability_context.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/slice/slice.h" -#include "absl/strings/str_cat.h" -#include "absl/time/clock.h" namespace grpc_observability { diff --git a/src/python/grpcio_observability/grpc_observability/client_call_tracer.h b/src/python/grpcio_observability/grpc_observability/client_call_tracer.h index 59f33200131f7..f4ca5e3ad7217 100644 --- a/src/python/grpcio_observability/grpc_observability/client_call_tracer.h +++ b/src/python/grpcio_observability/grpc_observability/client_call_tracer.h @@ -21,14 +21,14 @@ #include #include -#include "metadata_exchange.h" -#include "python_observability_context.h" -#include "src/core/telemetry/call_tracer.h" #include "absl/base/thread_annotations.h" #include "absl/status/status.h" #include "absl/strings/escaping.h" #include "absl/strings/string_view.h" #include "absl/time/time.h" +#include "metadata_exchange.h" +#include "python_observability_context.h" +#include "src/core/telemetry/call_tracer.h" namespace grpc_observability { diff --git a/src/python/grpcio_observability/grpc_observability/metadata_exchange.cc b/src/python/grpcio_observability/grpc_observability/metadata_exchange.cc index 8db5124b8762e..dae2f5e0edf06 100644 --- a/src/python/grpcio_observability/grpc_observability/metadata_exchange.cc +++ b/src/python/grpcio_observability/grpc_observability/metadata_exchange.cc @@ -26,9 +26,9 @@ #include #include +#include "absl/strings/string_view.h" #include "constants.h" #include "src/core/telemetry/call_tracer.h" -#include "absl/strings/string_view.h" namespace grpc_observability { diff --git a/src/python/grpcio_observability/grpc_observability/metadata_exchange.h b/src/python/grpcio_observability/grpc_observability/metadata_exchange.h index c1b532103a88c..385eededd68fe 100644 --- a/src/python/grpcio_observability/grpc_observability/metadata_exchange.h +++ b/src/python/grpcio_observability/grpc_observability/metadata_exchange.h @@ -27,10 +27,10 @@ #include #include +#include "absl/strings/string_view.h" #include "constants.h" #include "python_observability_context.h" #include "src/core/call/metadata_batch.h" -#include "absl/strings/string_view.h" namespace grpc_observability { diff --git a/src/python/grpcio_observability/grpc_observability/observability_util.cc b/src/python/grpcio_observability/grpc_observability/observability_util.cc index 7e08f9d4589ae..54f5c8d36c4d5 100644 --- a/src/python/grpcio_observability/grpc_observability/observability_util.cc +++ b/src/python/grpcio_observability/grpc_observability/observability_util.cc @@ -19,13 +19,13 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" +#include "absl/types/optional.h" #include "client_call_tracer.h" #include "constants.h" #include "python_observability_context.h" #include "server_call_tracer.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" -#include "absl/types/optional.h" namespace grpc_observability { diff --git a/src/python/grpcio_observability/grpc_observability/observability_util.h b/src/python/grpcio_observability/grpc_observability/observability_util.h index 60bda459db284..5978e26c49f28 100644 --- a/src/python/grpcio_observability/grpc_observability/observability_util.h +++ b/src/python/grpcio_observability/grpc_observability/observability_util.h @@ -26,9 +26,9 @@ #include #include +#include "absl/strings/string_view.h" #include "constants.h" #include "python_observability_context.h" -#include "absl/strings/string_view.h" namespace grpc_observability { diff --git a/src/python/grpcio_observability/grpc_observability/python_observability_context.cc b/src/python/grpcio_observability/grpc_observability/python_observability_context.cc index 167dd1ee5259e..bca2455c87ea9 100644 --- a/src/python/grpcio_observability/grpc_observability/python_observability_context.cc +++ b/src/python/grpcio_observability/grpc_observability/python_observability_context.cc @@ -20,11 +20,11 @@ #include #include -#include "rpc_encoding.h" -#include "src/core/lib/transport/transport.h" #include "absl/numeric/int128.h" #include "absl/random/random.h" #include "absl/strings/escaping.h" +#include "rpc_encoding.h" +#include "src/core/lib/transport/transport.h" namespace grpc_observability { diff --git a/src/python/grpcio_observability/grpc_observability/python_observability_context.h b/src/python/grpcio_observability/grpc_observability/python_observability_context.h index 2c88fcf5f639e..9955172bf2ef0 100644 --- a/src/python/grpcio_observability/grpc_observability/python_observability_context.h +++ b/src/python/grpcio_observability/grpc_observability/python_observability_context.h @@ -24,13 +24,13 @@ #include #include -#include "constants.h" -#include "sampler.h" -#include "src/core/lib/channel/channel_stack.h" #include "absl/strings/string_view.h" #include "absl/strings/strip.h" #include "absl/time/clock.h" #include "absl/time/time.h" +#include "constants.h" +#include "sampler.h" +#include "src/core/lib/channel/channel_stack.h" namespace grpc_observability { diff --git a/src/python/grpcio_observability/grpc_observability/server_call_tracer.cc b/src/python/grpcio_observability/grpc_observability/server_call_tracer.cc index 495365d969500..24100952a41d6 100644 --- a/src/python/grpcio_observability/grpc_observability/server_call_tracer.cc +++ b/src/python/grpcio_observability/grpc_observability/server_call_tracer.cc @@ -24,6 +24,12 @@ #include #include +#include "absl/strings/escaping.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" #include "constants.h" #include "observability_util.h" #include "python_observability_context.h" @@ -35,12 +41,6 @@ #include "src/core/lib/slice/slice.h" #include "src/core/lib/slice/slice_buffer.h" #include "src/core/telemetry/call_tracer.h" -#include "absl/strings/escaping.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" namespace grpc_observability { diff --git a/src/python/grpcio_observability/grpc_observability/server_call_tracer.h b/src/python/grpcio_observability/grpc_observability/server_call_tracer.h index 6a3f1283955ac..3bc9fea10a105 100644 --- a/src/python/grpcio_observability/grpc_observability/server_call_tracer.h +++ b/src/python/grpcio_observability/grpc_observability/server_call_tracer.h @@ -19,14 +19,14 @@ #include +#include "absl/strings/string_view.h" +#include "absl/strings/strip.h" #include "constants.h" #include "metadata_exchange.h" #include "python_observability_context.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/lib/slice/slice.h" #include "src/core/telemetry/call_tracer.h" -#include "absl/strings/string_view.h" -#include "absl/strings/strip.h" namespace grpc_observability { diff --git a/src/python/grpcio_observability/make_grpcio_observability.py b/src/python/grpcio_observability/make_grpcio_observability.py index de972ac57aa6d..d4175f73c5d4f 100755 --- a/src/python/grpcio_observability/make_grpcio_observability.py +++ b/src/python/grpcio_observability/make_grpcio_observability.py @@ -98,113 +98,117 @@ def _bazel_query(query): - """Runs 'bazel query' to collect source file info.""" - print('Running "bazel query %s"' % query) - output = subprocess.check_output([BAZEL_DEPS, query]) - return output.decode("ascii").splitlines() + """Runs 'bazel query' to collect source file info.""" + print('Running "bazel query %s"' % query) + output = subprocess.check_output([BAZEL_DEPS, query]) + return output.decode("ascii").splitlines() def _pretty_print_list(items): - """Pretty print python list""" - formatted = pprint.pformat(items, indent=4) - # add newline after opening bracket (and fix indent of the next line) - if formatted.startswith("["): - formatted = formatted[0] + "\n " + formatted[1:] - # add newline before closing bracket - if formatted.endswith("]"): - formatted = formatted[:-1] + "\n" + formatted[-1] - return formatted + """Pretty print python list""" + formatted = pprint.pformat(items, indent=4) + # add newline after opening bracket (and fix indent of the next line) + if formatted.startswith("["): + formatted = formatted[0] + "\n " + formatted[1:] + # add newline before closing bracket + if formatted.endswith("]"): + formatted = formatted[:-1] + "\n" + formatted[-1] + return formatted def _bazel_name_to_file_path(name): - """Transform bazel reference to source file name.""" - for link in BAZEL_REFERENCE_LINK: - if name.startswith(link[0]): - filepath = link[1] + name[len(link[0]) :].replace(":", "/") - return filepath - return None + """Transform bazel reference to source file name.""" + for link in BAZEL_REFERENCE_LINK: + if name.startswith(link[0]): + filepath = link[1] + name[len(link[0]) :].replace(":", "/") + return filepath + return None def _generate_deps_file_content(): - """Returns the data structure with dependencies of protoc as python code.""" - cc_files_output = [] - for query in BAZEL_DEPS_QUERIES: - cc_files_output += _bazel_query(query) - - # Collect .cc files (that will be later included in the native extension build) - cc_files = set() - for name in cc_files_output: - if name.endswith(".cc"): - filepath = _bazel_name_to_file_path(name) - if filepath: - cc_files.add(filepath) - - deps_file_content = DEPS_FILE_CONTENT.format( - cc_files=_pretty_print_list(sorted(list(cc_files))), - cc_includes=_pretty_print_list(CC_INCLUDES), - ) - return deps_file_content + """Returns the data structure with dependencies of protoc as python code.""" + cc_files_output = [] + for query in BAZEL_DEPS_QUERIES: + cc_files_output += _bazel_query(query) + + # Collect .cc files (that will be later included in the native extension build) + cc_files = set() + for name in cc_files_output: + if name.endswith(".cc"): + filepath = _bazel_name_to_file_path(name) + if filepath: + cc_files.add(filepath) + + deps_file_content = DEPS_FILE_CONTENT.format( + cc_files=_pretty_print_list(sorted(list(cc_files))), + cc_includes=_pretty_print_list(CC_INCLUDES), + ) + return deps_file_content def _copy_source_tree(source, target): - """Copies source directory to a given target directory.""" - print("Copying contents of %s to %s" % (source, target)) - for source_dir, _, files in os.walk(source): - target_dir = os.path.abspath( - os.path.join(target, os.path.relpath(source_dir, source)) - ) - try: - os.makedirs(target_dir) - except OSError as error: - if error.errno != errno.EEXIST: - raise - for relative_file in files: - source_file = os.path.abspath(os.path.join(source_dir, relative_file)) - target_file = os.path.abspath(os.path.join(target_dir, relative_file)) - shutil.copyfile(source_file, target_file) + """Copies source directory to a given target directory.""" + print("Copying contents of %s to %s" % (source, target)) + for source_dir, _, files in os.walk(source): + target_dir = os.path.abspath( + os.path.join(target, os.path.relpath(source_dir, source)) + ) + try: + os.makedirs(target_dir) + except OSError as error: + if error.errno != errno.EEXIST: + raise + for relative_file in files: + source_file = os.path.abspath( + os.path.join(source_dir, relative_file) + ) + target_file = os.path.abspath( + os.path.join(target_dir, relative_file) + ) + shutil.copyfile(source_file, target_file) def main(): - os.chdir(GRPC_ROOT) - - # Step 1: - # In order to be able to build the grpcio_observability package, we need the source - # code for the plugins and its dependencies to be available under the build root of - # the grpcio_observability package. - # So we simply copy all the necessary files where the build will expect them to be. - for source, target in COPY_FILES_SOURCE_TARGET_PAIRS: - # convert the slashes in the relative path to platform-specific path dividers. - # All paths are relative to GRPC_ROOT - source_abs = os.path.join(GRPC_ROOT, os.path.join(*source.split("/"))) - # for targets, add grpcio_observability root prefix - target = GRPCIO_OBSERVABILITY_ROOT_PREFIX + target - target_abs = os.path.join(GRPC_ROOT, os.path.join(*target.split("/"))) - _copy_source_tree(source_abs, target_abs) - print( - "The necessary source files were copied under the grpcio_observability" - " package root." - ) - - # Step 2: - # Extract build metadata from bazel build (by running "bazel query") - # and populate the observability_lib_deps.py file with python-readable data structure - # that will be used by grpcio_observability's setup.py. - try: - print('Invoking "bazel query" to gather the dependencies.') - observability_lib_deps_content = _generate_deps_file_content() - except Exception as error: - # We allow this script to succeed even if we couldn't get the dependencies, - # as then we can assume that even without a successful bazel run the - # dependencies currently in source control are 'good enough'. - sys.stderr.write("Got non-fatal error:\n") - traceback.print_exc(file=sys.stderr) - return - # If we successfully got the dependencies, truncate and rewrite the deps file. - with open(GRPC_PYTHON_OBSERVABILITY_LIB_DEPS, "w") as deps_file: - deps_file.write(observability_lib_deps_content) - print('File "%s" updated.' % GRPC_PYTHON_OBSERVABILITY_LIB_DEPS) - print("Done.") + os.chdir(GRPC_ROOT) + + # Step 1: + # In order to be able to build the grpcio_observability package, we need the source + # code for the plugins and its dependencies to be available under the build root of + # the grpcio_observability package. + # So we simply copy all the necessary files where the build will expect them to be. + for source, target in COPY_FILES_SOURCE_TARGET_PAIRS: + # convert the slashes in the relative path to platform-specific path dividers. + # All paths are relative to GRPC_ROOT + source_abs = os.path.join(GRPC_ROOT, os.path.join(*source.split("/"))) + # for targets, add grpcio_observability root prefix + target = GRPCIO_OBSERVABILITY_ROOT_PREFIX + target + target_abs = os.path.join(GRPC_ROOT, os.path.join(*target.split("/"))) + _copy_source_tree(source_abs, target_abs) + print( + "The necessary source files were copied under the grpcio_observability" + " package root." + ) + + # Step 2: + # Extract build metadata from bazel build (by running "bazel query") + # and populate the observability_lib_deps.py file with python-readable data structure + # that will be used by grpcio_observability's setup.py. + try: + print('Invoking "bazel query" to gather the dependencies.') + observability_lib_deps_content = _generate_deps_file_content() + except Exception as error: + # We allow this script to succeed even if we couldn't get the dependencies, + # as then we can assume that even without a successful bazel run the + # dependencies currently in source control are 'good enough'. + sys.stderr.write("Got non-fatal error:\n") + traceback.print_exc(file=sys.stderr) + return + # If we successfully got the dependencies, truncate and rewrite the deps file. + with open(GRPC_PYTHON_OBSERVABILITY_LIB_DEPS, "w") as deps_file: + deps_file.write(observability_lib_deps_content) + print('File "%s" updated.' % GRPC_PYTHON_OBSERVABILITY_LIB_DEPS) + print("Done.") if __name__ == "__main__": - main() + main() diff --git a/src/python/grpcio_observability/observability_lib_deps.py b/src/python/grpcio_observability/observability_lib_deps.py index 1a96b32539602..675f6496d45ca 100644 --- a/src/python/grpcio_observability/observability_lib_deps.py +++ b/src/python/grpcio_observability/observability_lib_deps.py @@ -1,3 +1,4 @@ + # Copyright 2023 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,7 +14,7 @@ # limitations under the License. # AUTO-GENERATED BY make_grpcio_observability.py! -CC_FILES = [ +CC_FILES=[ 'grpc_root/src/core/config/config_vars.cc', 'grpc_root/src/core/config/config_vars_non_generated.cc', 'grpc_root/src/core/config/load_config.cc', @@ -201,7 +202,9 @@ 'third_party/abseil-cpp/absl/time/internal/cctz/src/zone_info_source.cc', 'third_party/abseil-cpp/absl/time/time.cc', 'third_party/abseil-cpp/absl/types/bad_optional_access.cc', - 'third_party/abseil-cpp/absl/types/bad_variant_access.cc', + 'third_party/abseil-cpp/absl/types/bad_variant_access.cc' ] -CC_INCLUDES = ['third_party/abseil-cpp'] +CC_INCLUDES=[ + 'third_party/abseil-cpp' +] diff --git a/src/ruby/ext/grpc/rb_byte_buffer.h b/src/ruby/ext/grpc/rb_byte_buffer.h index 28dfa2bbbb2ed..9cb58aa85b063 100644 --- a/src/ruby/ext/grpc/rb_byte_buffer.h +++ b/src/ruby/ext/grpc/rb_byte_buffer.h @@ -19,9 +19,10 @@ #ifndef GRPC_RB_BYTE_BUFFER_H_ #define GRPC_RB_BYTE_BUFFER_H_ -#include #include +#include + /* Converts a char* with a length to a grpc_byte_buffer */ grpc_byte_buffer* grpc_rb_s_to_byte_buffer(char* string, size_t length); diff --git a/src/ruby/ext/grpc/rb_call.h b/src/ruby/ext/grpc/rb_call.h index b9fb04d7e9119..790422169bc5a 100644 --- a/src/ruby/ext/grpc/rb_call.h +++ b/src/ruby/ext/grpc/rb_call.h @@ -19,9 +19,10 @@ #ifndef GRPC_RB_CALL_H_ #define GRPC_RB_CALL_H_ -#include #include +#include + extern const rb_data_type_t grpc_rb_md_ary_data_type; extern VALUE grpc_rb_cMdAry; diff --git a/src/ruby/ext/grpc/rb_call_credentials.h b/src/ruby/ext/grpc/rb_call_credentials.h index e6ed6e0cd6905..785a773aff3ec 100644 --- a/src/ruby/ext/grpc/rb_call_credentials.h +++ b/src/ruby/ext/grpc/rb_call_credentials.h @@ -19,9 +19,10 @@ #ifndef GRPC_RB_CALL_CREDENTIALS_H_ #define GRPC_RB_CALL_CREDENTIALS_H_ +#include + #include #include -#include /* Initializes the ruby CallCredentials class. */ void Init_grpc_call_credentials(); diff --git a/src/ruby/ext/grpc/rb_channel.h b/src/ruby/ext/grpc/rb_channel.h index 7cd56c1cbc033..089d3a3029230 100644 --- a/src/ruby/ext/grpc/rb_channel.h +++ b/src/ruby/ext/grpc/rb_channel.h @@ -19,9 +19,10 @@ #ifndef GRPC_RB_CHANNEL_H_ #define GRPC_RB_CHANNEL_H_ -#include #include +#include + /* Initializes the Channel class. */ void Init_grpc_channel(); diff --git a/src/ruby/ext/grpc/rb_channel_args.h b/src/ruby/ext/grpc/rb_channel_args.h index 46c6521044606..ffb75da87bf28 100644 --- a/src/ruby/ext/grpc/rb_channel_args.h +++ b/src/ruby/ext/grpc/rb_channel_args.h @@ -19,9 +19,10 @@ #ifndef GRPC_RB_CHANNEL_ARGS_H_ #define GRPC_RB_CHANNEL_ARGS_H_ -#include #include +#include + /* Converts a hash object containing channel args to a channel args instance. * * This func ALLOCs args->args. The caller is responsible for freeing it. If diff --git a/src/ruby/ext/grpc/rb_channel_credentials.h b/src/ruby/ext/grpc/rb_channel_credentials.h index 2a0b1c2b58b2a..ecc02e449ba68 100644 --- a/src/ruby/ext/grpc/rb_channel_credentials.h +++ b/src/ruby/ext/grpc/rb_channel_credentials.h @@ -19,8 +19,9 @@ #ifndef GRPC_RB_CREDENTIALS_H_ #define GRPC_RB_CREDENTIALS_H_ -#include #include + +#include #include /* Initializes the ruby ChannelCredentials class. */ diff --git a/src/ruby/ext/grpc/rb_completion_queue.h b/src/ruby/ext/grpc/rb_completion_queue.h index bd0c3f2395642..b9180e8d21a2c 100644 --- a/src/ruby/ext/grpc/rb_completion_queue.h +++ b/src/ruby/ext/grpc/rb_completion_queue.h @@ -19,9 +19,10 @@ #ifndef GRPC_RB_COMPLETION_QUEUE_H_ #define GRPC_RB_COMPLETION_QUEUE_H_ -#include #include +#include + void grpc_rb_completion_queue_destroy(grpc_completion_queue* cq); /** diff --git a/src/ruby/ext/grpc/rb_compression_options.h b/src/ruby/ext/grpc/rb_compression_options.h index dbe209edb77e1..c60a8a478f809 100644 --- a/src/ruby/ext/grpc/rb_compression_options.h +++ b/src/ruby/ext/grpc/rb_compression_options.h @@ -19,9 +19,10 @@ #ifndef GRPC_RB_COMPRESSION_OPTIONS_H_ #define GRPC_RB_COMPRESSION_OPTIONS_H_ -#include #include +#include + /* Initializes the compression options ruby wrapper. */ void Init_grpc_compression_options(); diff --git a/src/ruby/ext/grpc/rb_grpc.h b/src/ruby/ext/grpc/rb_grpc.h index 9c8142dc98a2d..d1e272570319e 100644 --- a/src/ruby/ext/grpc/rb_grpc.h +++ b/src/ruby/ext/grpc/rb_grpc.h @@ -19,8 +19,9 @@ #ifndef GRPC_RB_H_ #define GRPC_RB_H_ -#include #include + +#include #include /* grpc_rb_mGrpcCore is the module containing the ruby wrapper GRPC classes. */ diff --git a/src/ruby/ext/grpc/rb_grpc_imports.generated.h b/src/ruby/ext/grpc/rb_grpc_imports.generated.h index a7bffe15e7e2d..b99ff7c2b0ab1 100644 --- a/src/ruby/ext/grpc/rb_grpc_imports.generated.h +++ b/src/ruby/ext/grpc/rb_grpc_imports.generated.h @@ -23,6 +23,8 @@ #ifdef GPR_WINDOWS +#include + #include #include #include @@ -39,1305 +41,857 @@ #include #include #include -#include -typedef grpc_byte_buffer* (*grpc_raw_byte_buffer_create_type)( - grpc_slice* slices, size_t nslices); +typedef grpc_byte_buffer*(*grpc_raw_byte_buffer_create_type)(grpc_slice* slices, size_t nslices); extern grpc_raw_byte_buffer_create_type grpc_raw_byte_buffer_create_import; #define grpc_raw_byte_buffer_create grpc_raw_byte_buffer_create_import -typedef grpc_byte_buffer* (*grpc_raw_compressed_byte_buffer_create_type)( - grpc_slice* slices, size_t nslices, grpc_compression_algorithm compression); -extern grpc_raw_compressed_byte_buffer_create_type - grpc_raw_compressed_byte_buffer_create_import; -#define grpc_raw_compressed_byte_buffer_create \ - grpc_raw_compressed_byte_buffer_create_import -typedef grpc_byte_buffer* (*grpc_byte_buffer_copy_type)(grpc_byte_buffer* bb); +typedef grpc_byte_buffer*(*grpc_raw_compressed_byte_buffer_create_type)(grpc_slice* slices, size_t nslices, grpc_compression_algorithm compression); +extern grpc_raw_compressed_byte_buffer_create_type grpc_raw_compressed_byte_buffer_create_import; +#define grpc_raw_compressed_byte_buffer_create grpc_raw_compressed_byte_buffer_create_import +typedef grpc_byte_buffer*(*grpc_byte_buffer_copy_type)(grpc_byte_buffer* bb); extern grpc_byte_buffer_copy_type grpc_byte_buffer_copy_import; #define grpc_byte_buffer_copy grpc_byte_buffer_copy_import -typedef size_t (*grpc_byte_buffer_length_type)(grpc_byte_buffer* bb); +typedef size_t(*grpc_byte_buffer_length_type)(grpc_byte_buffer* bb); extern grpc_byte_buffer_length_type grpc_byte_buffer_length_import; #define grpc_byte_buffer_length grpc_byte_buffer_length_import -typedef void (*grpc_byte_buffer_destroy_type)(grpc_byte_buffer* bb); +typedef void(*grpc_byte_buffer_destroy_type)(grpc_byte_buffer* bb); extern grpc_byte_buffer_destroy_type grpc_byte_buffer_destroy_import; #define grpc_byte_buffer_destroy grpc_byte_buffer_destroy_import -typedef int (*grpc_byte_buffer_reader_init_type)( - grpc_byte_buffer_reader* reader, grpc_byte_buffer* buffer); +typedef int(*grpc_byte_buffer_reader_init_type)(grpc_byte_buffer_reader* reader, grpc_byte_buffer* buffer); extern grpc_byte_buffer_reader_init_type grpc_byte_buffer_reader_init_import; #define grpc_byte_buffer_reader_init grpc_byte_buffer_reader_init_import -typedef void (*grpc_byte_buffer_reader_destroy_type)( - grpc_byte_buffer_reader* reader); -extern grpc_byte_buffer_reader_destroy_type - grpc_byte_buffer_reader_destroy_import; +typedef void(*grpc_byte_buffer_reader_destroy_type)(grpc_byte_buffer_reader* reader); +extern grpc_byte_buffer_reader_destroy_type grpc_byte_buffer_reader_destroy_import; #define grpc_byte_buffer_reader_destroy grpc_byte_buffer_reader_destroy_import -typedef int (*grpc_byte_buffer_reader_next_type)( - grpc_byte_buffer_reader* reader, grpc_slice* slice); +typedef int(*grpc_byte_buffer_reader_next_type)(grpc_byte_buffer_reader* reader, grpc_slice* slice); extern grpc_byte_buffer_reader_next_type grpc_byte_buffer_reader_next_import; #define grpc_byte_buffer_reader_next grpc_byte_buffer_reader_next_import -typedef int (*grpc_byte_buffer_reader_peek_type)( - grpc_byte_buffer_reader* reader, grpc_slice** slice); +typedef int(*grpc_byte_buffer_reader_peek_type)(grpc_byte_buffer_reader* reader, grpc_slice** slice); extern grpc_byte_buffer_reader_peek_type grpc_byte_buffer_reader_peek_import; #define grpc_byte_buffer_reader_peek grpc_byte_buffer_reader_peek_import -typedef grpc_slice (*grpc_byte_buffer_reader_readall_type)( - grpc_byte_buffer_reader* reader); -extern grpc_byte_buffer_reader_readall_type - grpc_byte_buffer_reader_readall_import; +typedef grpc_slice(*grpc_byte_buffer_reader_readall_type)(grpc_byte_buffer_reader* reader); +extern grpc_byte_buffer_reader_readall_type grpc_byte_buffer_reader_readall_import; #define grpc_byte_buffer_reader_readall grpc_byte_buffer_reader_readall_import -typedef grpc_byte_buffer* (*grpc_raw_byte_buffer_from_reader_type)( - grpc_byte_buffer_reader* reader); -extern grpc_raw_byte_buffer_from_reader_type - grpc_raw_byte_buffer_from_reader_import; +typedef grpc_byte_buffer*(*grpc_raw_byte_buffer_from_reader_type)(grpc_byte_buffer_reader* reader); +extern grpc_raw_byte_buffer_from_reader_type grpc_raw_byte_buffer_from_reader_import; #define grpc_raw_byte_buffer_from_reader grpc_raw_byte_buffer_from_reader_import -typedef int (*grpc_compression_algorithm_is_message_type)( - grpc_compression_algorithm algorithm); -extern grpc_compression_algorithm_is_message_type - grpc_compression_algorithm_is_message_import; -#define grpc_compression_algorithm_is_message \ - grpc_compression_algorithm_is_message_import -typedef int (*grpc_compression_algorithm_is_stream_type)( - grpc_compression_algorithm algorithm); -extern grpc_compression_algorithm_is_stream_type - grpc_compression_algorithm_is_stream_import; -#define grpc_compression_algorithm_is_stream \ - grpc_compression_algorithm_is_stream_import -typedef int (*grpc_compression_algorithm_parse_type)( - grpc_slice name, grpc_compression_algorithm* algorithm); -extern grpc_compression_algorithm_parse_type - grpc_compression_algorithm_parse_import; +typedef int(*grpc_compression_algorithm_is_message_type)(grpc_compression_algorithm algorithm); +extern grpc_compression_algorithm_is_message_type grpc_compression_algorithm_is_message_import; +#define grpc_compression_algorithm_is_message grpc_compression_algorithm_is_message_import +typedef int(*grpc_compression_algorithm_is_stream_type)(grpc_compression_algorithm algorithm); +extern grpc_compression_algorithm_is_stream_type grpc_compression_algorithm_is_stream_import; +#define grpc_compression_algorithm_is_stream grpc_compression_algorithm_is_stream_import +typedef int(*grpc_compression_algorithm_parse_type)(grpc_slice name, grpc_compression_algorithm* algorithm); +extern grpc_compression_algorithm_parse_type grpc_compression_algorithm_parse_import; #define grpc_compression_algorithm_parse grpc_compression_algorithm_parse_import -typedef int (*grpc_compression_algorithm_name_type)( - grpc_compression_algorithm algorithm, const char** name); -extern grpc_compression_algorithm_name_type - grpc_compression_algorithm_name_import; +typedef int(*grpc_compression_algorithm_name_type)(grpc_compression_algorithm algorithm, const char** name); +extern grpc_compression_algorithm_name_type grpc_compression_algorithm_name_import; #define grpc_compression_algorithm_name grpc_compression_algorithm_name_import -typedef grpc_compression_algorithm (*grpc_compression_algorithm_for_level_type)( - grpc_compression_level level, uint32_t accepted_encodings); -extern grpc_compression_algorithm_for_level_type - grpc_compression_algorithm_for_level_import; -#define grpc_compression_algorithm_for_level \ - grpc_compression_algorithm_for_level_import -typedef void (*grpc_compression_options_init_type)( - grpc_compression_options* opts); +typedef grpc_compression_algorithm(*grpc_compression_algorithm_for_level_type)(grpc_compression_level level, uint32_t accepted_encodings); +extern grpc_compression_algorithm_for_level_type grpc_compression_algorithm_for_level_import; +#define grpc_compression_algorithm_for_level grpc_compression_algorithm_for_level_import +typedef void(*grpc_compression_options_init_type)(grpc_compression_options* opts); extern grpc_compression_options_init_type grpc_compression_options_init_import; #define grpc_compression_options_init grpc_compression_options_init_import -typedef void (*grpc_compression_options_enable_algorithm_type)( - grpc_compression_options* opts, grpc_compression_algorithm algorithm); -extern grpc_compression_options_enable_algorithm_type - grpc_compression_options_enable_algorithm_import; -#define grpc_compression_options_enable_algorithm \ - grpc_compression_options_enable_algorithm_import -typedef void (*grpc_compression_options_disable_algorithm_type)( - grpc_compression_options* opts, grpc_compression_algorithm algorithm); -extern grpc_compression_options_disable_algorithm_type - grpc_compression_options_disable_algorithm_import; -#define grpc_compression_options_disable_algorithm \ - grpc_compression_options_disable_algorithm_import -typedef int (*grpc_compression_options_is_algorithm_enabled_type)( - const grpc_compression_options* opts, grpc_compression_algorithm algorithm); -extern grpc_compression_options_is_algorithm_enabled_type - grpc_compression_options_is_algorithm_enabled_import; -#define grpc_compression_options_is_algorithm_enabled \ - grpc_compression_options_is_algorithm_enabled_import -typedef grpc_call_credentials* ( - *grpc_service_account_jwt_access_credentials_create_type)( - const char* json_key, gpr_timespec token_lifetime, void* reserved); -extern grpc_service_account_jwt_access_credentials_create_type - grpc_service_account_jwt_access_credentials_create_import; -#define grpc_service_account_jwt_access_credentials_create \ - grpc_service_account_jwt_access_credentials_create_import -typedef grpc_call_credentials* (*grpc_external_account_credentials_create_type)( - const char* json_string, const char* scopes_string); -extern grpc_external_account_credentials_create_type - grpc_external_account_credentials_create_import; -#define grpc_external_account_credentials_create \ - grpc_external_account_credentials_create_import -typedef grpc_call_credentials* ( - *grpc_google_refresh_token_credentials_create_type)( - const char* json_refresh_token, void* reserved); -extern grpc_google_refresh_token_credentials_create_type - grpc_google_refresh_token_credentials_create_import; -#define grpc_google_refresh_token_credentials_create \ - grpc_google_refresh_token_credentials_create_import -typedef grpc_call_credentials* (*grpc_access_token_credentials_create_type)( - const char* access_token, void* reserved); -extern grpc_access_token_credentials_create_type - grpc_access_token_credentials_create_import; -#define grpc_access_token_credentials_create \ - grpc_access_token_credentials_create_import -typedef grpc_call_credentials* (*grpc_google_iam_credentials_create_type)( - const char* authorization_token, const char* authority_selector, - void* reserved); -extern grpc_google_iam_credentials_create_type - grpc_google_iam_credentials_create_import; -#define grpc_google_iam_credentials_create \ - grpc_google_iam_credentials_create_import -typedef grpc_call_credentials* (*grpc_sts_credentials_create_type)( - const grpc_sts_credentials_options* options, void* reserved); +typedef void(*grpc_compression_options_enable_algorithm_type)(grpc_compression_options* opts, grpc_compression_algorithm algorithm); +extern grpc_compression_options_enable_algorithm_type grpc_compression_options_enable_algorithm_import; +#define grpc_compression_options_enable_algorithm grpc_compression_options_enable_algorithm_import +typedef void(*grpc_compression_options_disable_algorithm_type)(grpc_compression_options* opts, grpc_compression_algorithm algorithm); +extern grpc_compression_options_disable_algorithm_type grpc_compression_options_disable_algorithm_import; +#define grpc_compression_options_disable_algorithm grpc_compression_options_disable_algorithm_import +typedef int(*grpc_compression_options_is_algorithm_enabled_type)(const grpc_compression_options* opts, grpc_compression_algorithm algorithm); +extern grpc_compression_options_is_algorithm_enabled_type grpc_compression_options_is_algorithm_enabled_import; +#define grpc_compression_options_is_algorithm_enabled grpc_compression_options_is_algorithm_enabled_import +typedef grpc_call_credentials*(*grpc_service_account_jwt_access_credentials_create_type)(const char* json_key, gpr_timespec token_lifetime, void* reserved); +extern grpc_service_account_jwt_access_credentials_create_type grpc_service_account_jwt_access_credentials_create_import; +#define grpc_service_account_jwt_access_credentials_create grpc_service_account_jwt_access_credentials_create_import +typedef grpc_call_credentials*(*grpc_external_account_credentials_create_type)(const char* json_string, const char* scopes_string); +extern grpc_external_account_credentials_create_type grpc_external_account_credentials_create_import; +#define grpc_external_account_credentials_create grpc_external_account_credentials_create_import +typedef grpc_call_credentials*(*grpc_google_refresh_token_credentials_create_type)(const char* json_refresh_token, void* reserved); +extern grpc_google_refresh_token_credentials_create_type grpc_google_refresh_token_credentials_create_import; +#define grpc_google_refresh_token_credentials_create grpc_google_refresh_token_credentials_create_import +typedef grpc_call_credentials*(*grpc_access_token_credentials_create_type)(const char* access_token, void* reserved); +extern grpc_access_token_credentials_create_type grpc_access_token_credentials_create_import; +#define grpc_access_token_credentials_create grpc_access_token_credentials_create_import +typedef grpc_call_credentials*(*grpc_google_iam_credentials_create_type)(const char* authorization_token, const char* authority_selector, void* reserved); +extern grpc_google_iam_credentials_create_type grpc_google_iam_credentials_create_import; +#define grpc_google_iam_credentials_create grpc_google_iam_credentials_create_import +typedef grpc_call_credentials*(*grpc_sts_credentials_create_type)(const grpc_sts_credentials_options* options, void* reserved); extern grpc_sts_credentials_create_type grpc_sts_credentials_create_import; #define grpc_sts_credentials_create grpc_sts_credentials_create_import -typedef void (*grpc_auth_metadata_context_copy_type)( - grpc_auth_metadata_context* from, grpc_auth_metadata_context* to); -extern grpc_auth_metadata_context_copy_type - grpc_auth_metadata_context_copy_import; +typedef void(*grpc_auth_metadata_context_copy_type)(grpc_auth_metadata_context* from, grpc_auth_metadata_context* to); +extern grpc_auth_metadata_context_copy_type grpc_auth_metadata_context_copy_import; #define grpc_auth_metadata_context_copy grpc_auth_metadata_context_copy_import -typedef void (*grpc_auth_metadata_context_reset_type)( - grpc_auth_metadata_context* context); -extern grpc_auth_metadata_context_reset_type - grpc_auth_metadata_context_reset_import; +typedef void(*grpc_auth_metadata_context_reset_type)(grpc_auth_metadata_context* context); +extern grpc_auth_metadata_context_reset_type grpc_auth_metadata_context_reset_import; #define grpc_auth_metadata_context_reset grpc_auth_metadata_context_reset_import -typedef grpc_call_credentials* ( - *grpc_metadata_credentials_create_from_plugin_type)( - grpc_metadata_credentials_plugin plugin, - grpc_security_level min_security_level, void* reserved); -extern grpc_metadata_credentials_create_from_plugin_type - grpc_metadata_credentials_create_from_plugin_import; -#define grpc_metadata_credentials_create_from_plugin \ - grpc_metadata_credentials_create_from_plugin_import -typedef void (*grpc_call_credentials_release_type)( - grpc_call_credentials* creds); +typedef grpc_call_credentials*(*grpc_metadata_credentials_create_from_plugin_type)(grpc_metadata_credentials_plugin plugin, grpc_security_level min_security_level, void* reserved); +extern grpc_metadata_credentials_create_from_plugin_type grpc_metadata_credentials_create_from_plugin_import; +#define grpc_metadata_credentials_create_from_plugin grpc_metadata_credentials_create_from_plugin_import +typedef void(*grpc_call_credentials_release_type)(grpc_call_credentials* creds); extern grpc_call_credentials_release_type grpc_call_credentials_release_import; #define grpc_call_credentials_release grpc_call_credentials_release_import -typedef grpc_channel_credentials* ( - *grpc_google_default_credentials_create_type)( - grpc_call_credentials* call_credentials); -extern grpc_google_default_credentials_create_type - grpc_google_default_credentials_create_import; -#define grpc_google_default_credentials_create \ - grpc_google_default_credentials_create_import -typedef grpc_ssl_server_certificate_config* ( - *grpc_ssl_server_certificate_config_create_type)( - const char* pem_root_certs, - const grpc_ssl_pem_key_cert_pair* pem_key_cert_pairs, - size_t num_key_cert_pairs); -extern grpc_ssl_server_certificate_config_create_type - grpc_ssl_server_certificate_config_create_import; -#define grpc_ssl_server_certificate_config_create \ - grpc_ssl_server_certificate_config_create_import -typedef void (*grpc_ssl_server_certificate_config_destroy_type)( - grpc_ssl_server_certificate_config* config); -extern grpc_ssl_server_certificate_config_destroy_type - grpc_ssl_server_certificate_config_destroy_import; -#define grpc_ssl_server_certificate_config_destroy \ - grpc_ssl_server_certificate_config_destroy_import -typedef grpc_channel_credentials* (*grpc_ssl_credentials_create_type)( - const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pair, - const verify_peer_options* verify_options, void* reserved); +typedef grpc_channel_credentials*(*grpc_google_default_credentials_create_type)(grpc_call_credentials* call_credentials); +extern grpc_google_default_credentials_create_type grpc_google_default_credentials_create_import; +#define grpc_google_default_credentials_create grpc_google_default_credentials_create_import +typedef grpc_ssl_server_certificate_config*(*grpc_ssl_server_certificate_config_create_type)(const char* pem_root_certs, const grpc_ssl_pem_key_cert_pair* pem_key_cert_pairs, size_t num_key_cert_pairs); +extern grpc_ssl_server_certificate_config_create_type grpc_ssl_server_certificate_config_create_import; +#define grpc_ssl_server_certificate_config_create grpc_ssl_server_certificate_config_create_import +typedef void(*grpc_ssl_server_certificate_config_destroy_type)(grpc_ssl_server_certificate_config* config); +extern grpc_ssl_server_certificate_config_destroy_type grpc_ssl_server_certificate_config_destroy_import; +#define grpc_ssl_server_certificate_config_destroy grpc_ssl_server_certificate_config_destroy_import +typedef grpc_channel_credentials*(*grpc_ssl_credentials_create_type)(const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pair, const verify_peer_options* verify_options, void* reserved); extern grpc_ssl_credentials_create_type grpc_ssl_credentials_create_import; #define grpc_ssl_credentials_create grpc_ssl_credentials_create_import -typedef grpc_channel_credentials* (*grpc_ssl_credentials_create_ex_type)( - const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pair, - const grpc_ssl_verify_peer_options* verify_options, void* reserved); -extern grpc_ssl_credentials_create_ex_type - grpc_ssl_credentials_create_ex_import; +typedef grpc_channel_credentials*(*grpc_ssl_credentials_create_ex_type)(const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pair, const grpc_ssl_verify_peer_options* verify_options, void* reserved); +extern grpc_ssl_credentials_create_ex_type grpc_ssl_credentials_create_ex_import; #define grpc_ssl_credentials_create_ex grpc_ssl_credentials_create_ex_import -typedef grpc_server_credentials* (*grpc_ssl_server_credentials_create_type)( - const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pairs, - size_t num_key_cert_pairs, int force_client_auth, void* reserved); -extern grpc_ssl_server_credentials_create_type - grpc_ssl_server_credentials_create_import; -#define grpc_ssl_server_credentials_create \ - grpc_ssl_server_credentials_create_import -typedef grpc_server_credentials* (*grpc_ssl_server_credentials_create_ex_type)( - const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pairs, - size_t num_key_cert_pairs, - grpc_ssl_client_certificate_request_type client_certificate_request, - void* reserved); -extern grpc_ssl_server_credentials_create_ex_type - grpc_ssl_server_credentials_create_ex_import; -#define grpc_ssl_server_credentials_create_ex \ - grpc_ssl_server_credentials_create_ex_import -typedef grpc_ssl_server_credentials_options* ( - *grpc_ssl_server_credentials_create_options_using_config_type)( - grpc_ssl_client_certificate_request_type client_certificate_request, - grpc_ssl_server_certificate_config* certificate_config); -extern grpc_ssl_server_credentials_create_options_using_config_type - grpc_ssl_server_credentials_create_options_using_config_import; -#define grpc_ssl_server_credentials_create_options_using_config \ - grpc_ssl_server_credentials_create_options_using_config_import -typedef grpc_ssl_server_credentials_options* ( - *grpc_ssl_server_credentials_create_options_using_config_fetcher_type)( - grpc_ssl_client_certificate_request_type client_certificate_request, - grpc_ssl_server_certificate_config_callback cb, void* user_data); -extern grpc_ssl_server_credentials_create_options_using_config_fetcher_type - grpc_ssl_server_credentials_create_options_using_config_fetcher_import; -#define grpc_ssl_server_credentials_create_options_using_config_fetcher \ - grpc_ssl_server_credentials_create_options_using_config_fetcher_import -typedef void (*grpc_ssl_server_credentials_options_destroy_type)( - grpc_ssl_server_credentials_options* options); -extern grpc_ssl_server_credentials_options_destroy_type - grpc_ssl_server_credentials_options_destroy_import; -#define grpc_ssl_server_credentials_options_destroy \ - grpc_ssl_server_credentials_options_destroy_import -typedef grpc_server_credentials* ( - *grpc_ssl_server_credentials_create_with_options_type)( - grpc_ssl_server_credentials_options* options); -extern grpc_ssl_server_credentials_create_with_options_type - grpc_ssl_server_credentials_create_with_options_import; -#define grpc_ssl_server_credentials_create_with_options \ - grpc_ssl_server_credentials_create_with_options_import -typedef void (*grpc_server_credentials_set_auth_metadata_processor_type)( - grpc_server_credentials* creds, grpc_auth_metadata_processor processor); -extern grpc_server_credentials_set_auth_metadata_processor_type - grpc_server_credentials_set_auth_metadata_processor_import; -#define grpc_server_credentials_set_auth_metadata_processor \ - grpc_server_credentials_set_auth_metadata_processor_import -typedef grpc_call_credentials* (*grpc_composite_call_credentials_create_type)( - grpc_call_credentials* creds1, grpc_call_credentials* creds2, - void* reserved); -extern grpc_composite_call_credentials_create_type - grpc_composite_call_credentials_create_import; -#define grpc_composite_call_credentials_create \ - grpc_composite_call_credentials_create_import -typedef grpc_call_credentials* ( - *grpc_google_compute_engine_credentials_create_type)(void* reserved); -extern grpc_google_compute_engine_credentials_create_type - grpc_google_compute_engine_credentials_create_import; -#define grpc_google_compute_engine_credentials_create \ - grpc_google_compute_engine_credentials_create_import -typedef grpc_channel_credentials* ( - *grpc_composite_channel_credentials_create_type)( - grpc_channel_credentials* channel_creds, grpc_call_credentials* call_creds, - void* reserved); -extern grpc_composite_channel_credentials_create_type - grpc_composite_channel_credentials_create_import; -#define grpc_composite_channel_credentials_create \ - grpc_composite_channel_credentials_create_import -typedef grpc_alts_credentials_options* ( - *grpc_alts_credentials_client_options_create_type)(void); -extern grpc_alts_credentials_client_options_create_type - grpc_alts_credentials_client_options_create_import; -#define grpc_alts_credentials_client_options_create \ - grpc_alts_credentials_client_options_create_import -typedef grpc_alts_credentials_options* ( - *grpc_alts_credentials_server_options_create_type)(void); -extern grpc_alts_credentials_server_options_create_type - grpc_alts_credentials_server_options_create_import; -#define grpc_alts_credentials_server_options_create \ - grpc_alts_credentials_server_options_create_import -typedef void ( - *grpc_alts_credentials_client_options_add_target_service_account_type)( - grpc_alts_credentials_options* options, const char* service_account); -extern grpc_alts_credentials_client_options_add_target_service_account_type - grpc_alts_credentials_client_options_add_target_service_account_import; -#define grpc_alts_credentials_client_options_add_target_service_account \ - grpc_alts_credentials_client_options_add_target_service_account_import -typedef void (*grpc_alts_credentials_options_destroy_type)( - grpc_alts_credentials_options* options); -extern grpc_alts_credentials_options_destroy_type - grpc_alts_credentials_options_destroy_import; -#define grpc_alts_credentials_options_destroy \ - grpc_alts_credentials_options_destroy_import -typedef grpc_channel_credentials* (*grpc_alts_credentials_create_type)( - const grpc_alts_credentials_options* options); +typedef grpc_server_credentials*(*grpc_ssl_server_credentials_create_type)(const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pairs, size_t num_key_cert_pairs, int force_client_auth, void* reserved); +extern grpc_ssl_server_credentials_create_type grpc_ssl_server_credentials_create_import; +#define grpc_ssl_server_credentials_create grpc_ssl_server_credentials_create_import +typedef grpc_server_credentials*(*grpc_ssl_server_credentials_create_ex_type)(const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pairs, size_t num_key_cert_pairs, grpc_ssl_client_certificate_request_type client_certificate_request, void* reserved); +extern grpc_ssl_server_credentials_create_ex_type grpc_ssl_server_credentials_create_ex_import; +#define grpc_ssl_server_credentials_create_ex grpc_ssl_server_credentials_create_ex_import +typedef grpc_ssl_server_credentials_options*(*grpc_ssl_server_credentials_create_options_using_config_type)(grpc_ssl_client_certificate_request_type client_certificate_request, grpc_ssl_server_certificate_config* certificate_config); +extern grpc_ssl_server_credentials_create_options_using_config_type grpc_ssl_server_credentials_create_options_using_config_import; +#define grpc_ssl_server_credentials_create_options_using_config grpc_ssl_server_credentials_create_options_using_config_import +typedef grpc_ssl_server_credentials_options*(*grpc_ssl_server_credentials_create_options_using_config_fetcher_type)(grpc_ssl_client_certificate_request_type client_certificate_request, grpc_ssl_server_certificate_config_callback cb, void* user_data); +extern grpc_ssl_server_credentials_create_options_using_config_fetcher_type grpc_ssl_server_credentials_create_options_using_config_fetcher_import; +#define grpc_ssl_server_credentials_create_options_using_config_fetcher grpc_ssl_server_credentials_create_options_using_config_fetcher_import +typedef void(*grpc_ssl_server_credentials_options_destroy_type)(grpc_ssl_server_credentials_options* options); +extern grpc_ssl_server_credentials_options_destroy_type grpc_ssl_server_credentials_options_destroy_import; +#define grpc_ssl_server_credentials_options_destroy grpc_ssl_server_credentials_options_destroy_import +typedef grpc_server_credentials*(*grpc_ssl_server_credentials_create_with_options_type)(grpc_ssl_server_credentials_options* options); +extern grpc_ssl_server_credentials_create_with_options_type grpc_ssl_server_credentials_create_with_options_import; +#define grpc_ssl_server_credentials_create_with_options grpc_ssl_server_credentials_create_with_options_import +typedef void(*grpc_server_credentials_set_auth_metadata_processor_type)(grpc_server_credentials* creds, grpc_auth_metadata_processor processor); +extern grpc_server_credentials_set_auth_metadata_processor_type grpc_server_credentials_set_auth_metadata_processor_import; +#define grpc_server_credentials_set_auth_metadata_processor grpc_server_credentials_set_auth_metadata_processor_import +typedef grpc_call_credentials*(*grpc_composite_call_credentials_create_type)(grpc_call_credentials* creds1, grpc_call_credentials* creds2, void* reserved); +extern grpc_composite_call_credentials_create_type grpc_composite_call_credentials_create_import; +#define grpc_composite_call_credentials_create grpc_composite_call_credentials_create_import +typedef grpc_call_credentials*(*grpc_google_compute_engine_credentials_create_type)(void* reserved); +extern grpc_google_compute_engine_credentials_create_type grpc_google_compute_engine_credentials_create_import; +#define grpc_google_compute_engine_credentials_create grpc_google_compute_engine_credentials_create_import +typedef grpc_channel_credentials*(*grpc_composite_channel_credentials_create_type)(grpc_channel_credentials* channel_creds, grpc_call_credentials* call_creds, void* reserved); +extern grpc_composite_channel_credentials_create_type grpc_composite_channel_credentials_create_import; +#define grpc_composite_channel_credentials_create grpc_composite_channel_credentials_create_import +typedef grpc_alts_credentials_options*(*grpc_alts_credentials_client_options_create_type)(void); +extern grpc_alts_credentials_client_options_create_type grpc_alts_credentials_client_options_create_import; +#define grpc_alts_credentials_client_options_create grpc_alts_credentials_client_options_create_import +typedef grpc_alts_credentials_options*(*grpc_alts_credentials_server_options_create_type)(void); +extern grpc_alts_credentials_server_options_create_type grpc_alts_credentials_server_options_create_import; +#define grpc_alts_credentials_server_options_create grpc_alts_credentials_server_options_create_import +typedef void(*grpc_alts_credentials_client_options_add_target_service_account_type)(grpc_alts_credentials_options* options, const char* service_account); +extern grpc_alts_credentials_client_options_add_target_service_account_type grpc_alts_credentials_client_options_add_target_service_account_import; +#define grpc_alts_credentials_client_options_add_target_service_account grpc_alts_credentials_client_options_add_target_service_account_import +typedef void(*grpc_alts_credentials_options_destroy_type)(grpc_alts_credentials_options* options); +extern grpc_alts_credentials_options_destroy_type grpc_alts_credentials_options_destroy_import; +#define grpc_alts_credentials_options_destroy grpc_alts_credentials_options_destroy_import +typedef grpc_channel_credentials*(*grpc_alts_credentials_create_type)(const grpc_alts_credentials_options* options); extern grpc_alts_credentials_create_type grpc_alts_credentials_create_import; #define grpc_alts_credentials_create grpc_alts_credentials_create_import -typedef grpc_server_credentials* (*grpc_alts_server_credentials_create_type)( - const grpc_alts_credentials_options* options); -extern grpc_alts_server_credentials_create_type - grpc_alts_server_credentials_create_import; -#define grpc_alts_server_credentials_create \ - grpc_alts_server_credentials_create_import -typedef grpc_tls_identity_pairs* (*grpc_tls_identity_pairs_create_type)(); -extern grpc_tls_identity_pairs_create_type - grpc_tls_identity_pairs_create_import; +typedef grpc_server_credentials*(*grpc_alts_server_credentials_create_type)(const grpc_alts_credentials_options* options); +extern grpc_alts_server_credentials_create_type grpc_alts_server_credentials_create_import; +#define grpc_alts_server_credentials_create grpc_alts_server_credentials_create_import +typedef grpc_tls_identity_pairs*(*grpc_tls_identity_pairs_create_type)(); +extern grpc_tls_identity_pairs_create_type grpc_tls_identity_pairs_create_import; #define grpc_tls_identity_pairs_create grpc_tls_identity_pairs_create_import -typedef void (*grpc_tls_identity_pairs_add_pair_type)( - grpc_tls_identity_pairs* pairs, const char* private_key, - const char* cert_chain); -extern grpc_tls_identity_pairs_add_pair_type - grpc_tls_identity_pairs_add_pair_import; +typedef void(*grpc_tls_identity_pairs_add_pair_type)(grpc_tls_identity_pairs* pairs, const char* private_key, const char* cert_chain); +extern grpc_tls_identity_pairs_add_pair_type grpc_tls_identity_pairs_add_pair_import; #define grpc_tls_identity_pairs_add_pair grpc_tls_identity_pairs_add_pair_import -typedef void (*grpc_tls_identity_pairs_destroy_type)( - grpc_tls_identity_pairs* pairs); -extern grpc_tls_identity_pairs_destroy_type - grpc_tls_identity_pairs_destroy_import; +typedef void(*grpc_tls_identity_pairs_destroy_type)(grpc_tls_identity_pairs* pairs); +extern grpc_tls_identity_pairs_destroy_type grpc_tls_identity_pairs_destroy_import; #define grpc_tls_identity_pairs_destroy grpc_tls_identity_pairs_destroy_import -typedef grpc_tls_certificate_provider* ( - *grpc_tls_certificate_provider_static_data_create_type)( - const char* root_certificate, grpc_tls_identity_pairs* pem_key_cert_pairs); -extern grpc_tls_certificate_provider_static_data_create_type - grpc_tls_certificate_provider_static_data_create_import; -#define grpc_tls_certificate_provider_static_data_create \ - grpc_tls_certificate_provider_static_data_create_import -typedef grpc_tls_certificate_provider* ( - *grpc_tls_certificate_provider_file_watcher_create_type)( - const char* private_key_path, const char* identity_certificate_path, - const char* root_cert_path, unsigned int refresh_interval_sec); -extern grpc_tls_certificate_provider_file_watcher_create_type - grpc_tls_certificate_provider_file_watcher_create_import; -#define grpc_tls_certificate_provider_file_watcher_create \ - grpc_tls_certificate_provider_file_watcher_create_import -typedef void (*grpc_tls_certificate_provider_release_type)( - grpc_tls_certificate_provider* provider); -extern grpc_tls_certificate_provider_release_type - grpc_tls_certificate_provider_release_import; -#define grpc_tls_certificate_provider_release \ - grpc_tls_certificate_provider_release_import -typedef grpc_tls_credentials_options* ( - *grpc_tls_credentials_options_create_type)(void); -extern grpc_tls_credentials_options_create_type - grpc_tls_credentials_options_create_import; -#define grpc_tls_credentials_options_create \ - grpc_tls_credentials_options_create_import -typedef void (*grpc_tls_credentials_options_set_min_tls_version_type)( - grpc_tls_credentials_options* options, grpc_tls_version min_tls_version); -extern grpc_tls_credentials_options_set_min_tls_version_type - grpc_tls_credentials_options_set_min_tls_version_import; -#define grpc_tls_credentials_options_set_min_tls_version \ - grpc_tls_credentials_options_set_min_tls_version_import -typedef void (*grpc_tls_credentials_options_set_max_tls_version_type)( - grpc_tls_credentials_options* options, grpc_tls_version max_tls_version); -extern grpc_tls_credentials_options_set_max_tls_version_type - grpc_tls_credentials_options_set_max_tls_version_import; -#define grpc_tls_credentials_options_set_max_tls_version \ - grpc_tls_credentials_options_set_max_tls_version_import -typedef grpc_tls_credentials_options* (*grpc_tls_credentials_options_copy_type)( - grpc_tls_credentials_options* options); -extern grpc_tls_credentials_options_copy_type - grpc_tls_credentials_options_copy_import; -#define grpc_tls_credentials_options_copy \ - grpc_tls_credentials_options_copy_import -typedef void (*grpc_tls_credentials_options_destroy_type)( - grpc_tls_credentials_options* options); -extern grpc_tls_credentials_options_destroy_type - grpc_tls_credentials_options_destroy_import; -#define grpc_tls_credentials_options_destroy \ - grpc_tls_credentials_options_destroy_import -typedef void (*grpc_tls_credentials_options_set_certificate_provider_type)( - grpc_tls_credentials_options* options, - grpc_tls_certificate_provider* provider); -extern grpc_tls_credentials_options_set_certificate_provider_type - grpc_tls_credentials_options_set_certificate_provider_import; -#define grpc_tls_credentials_options_set_certificate_provider \ - grpc_tls_credentials_options_set_certificate_provider_import -typedef void (*grpc_tls_credentials_options_watch_root_certs_type)( - grpc_tls_credentials_options* options); -extern grpc_tls_credentials_options_watch_root_certs_type - grpc_tls_credentials_options_watch_root_certs_import; -#define grpc_tls_credentials_options_watch_root_certs \ - grpc_tls_credentials_options_watch_root_certs_import -typedef void (*grpc_tls_credentials_options_set_root_cert_name_type)( - grpc_tls_credentials_options* options, const char* root_cert_name); -extern grpc_tls_credentials_options_set_root_cert_name_type - grpc_tls_credentials_options_set_root_cert_name_import; -#define grpc_tls_credentials_options_set_root_cert_name \ - grpc_tls_credentials_options_set_root_cert_name_import -typedef void (*grpc_tls_credentials_options_watch_identity_key_cert_pairs_type)( - grpc_tls_credentials_options* options); -extern grpc_tls_credentials_options_watch_identity_key_cert_pairs_type - grpc_tls_credentials_options_watch_identity_key_cert_pairs_import; -#define grpc_tls_credentials_options_watch_identity_key_cert_pairs \ - grpc_tls_credentials_options_watch_identity_key_cert_pairs_import -typedef void (*grpc_tls_credentials_options_set_identity_cert_name_type)( - grpc_tls_credentials_options* options, const char* identity_cert_name); -extern grpc_tls_credentials_options_set_identity_cert_name_type - grpc_tls_credentials_options_set_identity_cert_name_import; -#define grpc_tls_credentials_options_set_identity_cert_name \ - grpc_tls_credentials_options_set_identity_cert_name_import -typedef void (*grpc_tls_credentials_options_set_cert_request_type_type)( - grpc_tls_credentials_options* options, - grpc_ssl_client_certificate_request_type type); -extern grpc_tls_credentials_options_set_cert_request_type_type - grpc_tls_credentials_options_set_cert_request_type_import; -#define grpc_tls_credentials_options_set_cert_request_type \ - grpc_tls_credentials_options_set_cert_request_type_import -typedef void (*grpc_tls_credentials_options_set_crl_directory_type)( - grpc_tls_credentials_options* options, const char* crl_directory); -extern grpc_tls_credentials_options_set_crl_directory_type - grpc_tls_credentials_options_set_crl_directory_import; -#define grpc_tls_credentials_options_set_crl_directory \ - grpc_tls_credentials_options_set_crl_directory_import -typedef void (*grpc_tls_credentials_options_set_verify_server_cert_type)( - grpc_tls_credentials_options* options, int verify_server_cert); -extern grpc_tls_credentials_options_set_verify_server_cert_type - grpc_tls_credentials_options_set_verify_server_cert_import; -#define grpc_tls_credentials_options_set_verify_server_cert \ - grpc_tls_credentials_options_set_verify_server_cert_import -typedef void (*grpc_tls_credentials_options_set_send_client_ca_list_type)( - grpc_tls_credentials_options* options, bool send_client_ca_list); -extern grpc_tls_credentials_options_set_send_client_ca_list_type - grpc_tls_credentials_options_set_send_client_ca_list_import; -#define grpc_tls_credentials_options_set_send_client_ca_list \ - grpc_tls_credentials_options_set_send_client_ca_list_import -typedef grpc_ssl_session_cache* (*grpc_ssl_session_cache_create_lru_type)( - size_t capacity); -extern grpc_ssl_session_cache_create_lru_type - grpc_ssl_session_cache_create_lru_import; -#define grpc_ssl_session_cache_create_lru \ - grpc_ssl_session_cache_create_lru_import -typedef void (*grpc_ssl_session_cache_destroy_type)( - grpc_ssl_session_cache* cache); -extern grpc_ssl_session_cache_destroy_type - grpc_ssl_session_cache_destroy_import; +typedef grpc_tls_certificate_provider*(*grpc_tls_certificate_provider_static_data_create_type)(const char* root_certificate, grpc_tls_identity_pairs* pem_key_cert_pairs); +extern grpc_tls_certificate_provider_static_data_create_type grpc_tls_certificate_provider_static_data_create_import; +#define grpc_tls_certificate_provider_static_data_create grpc_tls_certificate_provider_static_data_create_import +typedef grpc_tls_certificate_provider*(*grpc_tls_certificate_provider_file_watcher_create_type)(const char* private_key_path, const char* identity_certificate_path, const char* root_cert_path, unsigned int refresh_interval_sec); +extern grpc_tls_certificate_provider_file_watcher_create_type grpc_tls_certificate_provider_file_watcher_create_import; +#define grpc_tls_certificate_provider_file_watcher_create grpc_tls_certificate_provider_file_watcher_create_import +typedef void(*grpc_tls_certificate_provider_release_type)(grpc_tls_certificate_provider* provider); +extern grpc_tls_certificate_provider_release_type grpc_tls_certificate_provider_release_import; +#define grpc_tls_certificate_provider_release grpc_tls_certificate_provider_release_import +typedef grpc_tls_credentials_options*(*grpc_tls_credentials_options_create_type)(void); +extern grpc_tls_credentials_options_create_type grpc_tls_credentials_options_create_import; +#define grpc_tls_credentials_options_create grpc_tls_credentials_options_create_import +typedef void(*grpc_tls_credentials_options_set_min_tls_version_type)(grpc_tls_credentials_options* options, grpc_tls_version min_tls_version); +extern grpc_tls_credentials_options_set_min_tls_version_type grpc_tls_credentials_options_set_min_tls_version_import; +#define grpc_tls_credentials_options_set_min_tls_version grpc_tls_credentials_options_set_min_tls_version_import +typedef void(*grpc_tls_credentials_options_set_max_tls_version_type)(grpc_tls_credentials_options* options, grpc_tls_version max_tls_version); +extern grpc_tls_credentials_options_set_max_tls_version_type grpc_tls_credentials_options_set_max_tls_version_import; +#define grpc_tls_credentials_options_set_max_tls_version grpc_tls_credentials_options_set_max_tls_version_import +typedef grpc_tls_credentials_options*(*grpc_tls_credentials_options_copy_type)(grpc_tls_credentials_options* options); +extern grpc_tls_credentials_options_copy_type grpc_tls_credentials_options_copy_import; +#define grpc_tls_credentials_options_copy grpc_tls_credentials_options_copy_import +typedef void(*grpc_tls_credentials_options_destroy_type)(grpc_tls_credentials_options* options); +extern grpc_tls_credentials_options_destroy_type grpc_tls_credentials_options_destroy_import; +#define grpc_tls_credentials_options_destroy grpc_tls_credentials_options_destroy_import +typedef void(*grpc_tls_credentials_options_set_certificate_provider_type)(grpc_tls_credentials_options* options, grpc_tls_certificate_provider* provider); +extern grpc_tls_credentials_options_set_certificate_provider_type grpc_tls_credentials_options_set_certificate_provider_import; +#define grpc_tls_credentials_options_set_certificate_provider grpc_tls_credentials_options_set_certificate_provider_import +typedef void(*grpc_tls_credentials_options_watch_root_certs_type)(grpc_tls_credentials_options* options); +extern grpc_tls_credentials_options_watch_root_certs_type grpc_tls_credentials_options_watch_root_certs_import; +#define grpc_tls_credentials_options_watch_root_certs grpc_tls_credentials_options_watch_root_certs_import +typedef void(*grpc_tls_credentials_options_set_root_cert_name_type)(grpc_tls_credentials_options* options, const char* root_cert_name); +extern grpc_tls_credentials_options_set_root_cert_name_type grpc_tls_credentials_options_set_root_cert_name_import; +#define grpc_tls_credentials_options_set_root_cert_name grpc_tls_credentials_options_set_root_cert_name_import +typedef void(*grpc_tls_credentials_options_watch_identity_key_cert_pairs_type)(grpc_tls_credentials_options* options); +extern grpc_tls_credentials_options_watch_identity_key_cert_pairs_type grpc_tls_credentials_options_watch_identity_key_cert_pairs_import; +#define grpc_tls_credentials_options_watch_identity_key_cert_pairs grpc_tls_credentials_options_watch_identity_key_cert_pairs_import +typedef void(*grpc_tls_credentials_options_set_identity_cert_name_type)(grpc_tls_credentials_options* options, const char* identity_cert_name); +extern grpc_tls_credentials_options_set_identity_cert_name_type grpc_tls_credentials_options_set_identity_cert_name_import; +#define grpc_tls_credentials_options_set_identity_cert_name grpc_tls_credentials_options_set_identity_cert_name_import +typedef void(*grpc_tls_credentials_options_set_cert_request_type_type)(grpc_tls_credentials_options* options, grpc_ssl_client_certificate_request_type type); +extern grpc_tls_credentials_options_set_cert_request_type_type grpc_tls_credentials_options_set_cert_request_type_import; +#define grpc_tls_credentials_options_set_cert_request_type grpc_tls_credentials_options_set_cert_request_type_import +typedef void(*grpc_tls_credentials_options_set_crl_directory_type)(grpc_tls_credentials_options* options, const char* crl_directory); +extern grpc_tls_credentials_options_set_crl_directory_type grpc_tls_credentials_options_set_crl_directory_import; +#define grpc_tls_credentials_options_set_crl_directory grpc_tls_credentials_options_set_crl_directory_import +typedef void(*grpc_tls_credentials_options_set_verify_server_cert_type)(grpc_tls_credentials_options* options, int verify_server_cert); +extern grpc_tls_credentials_options_set_verify_server_cert_type grpc_tls_credentials_options_set_verify_server_cert_import; +#define grpc_tls_credentials_options_set_verify_server_cert grpc_tls_credentials_options_set_verify_server_cert_import +typedef void(*grpc_tls_credentials_options_set_send_client_ca_list_type)(grpc_tls_credentials_options* options, bool send_client_ca_list); +extern grpc_tls_credentials_options_set_send_client_ca_list_type grpc_tls_credentials_options_set_send_client_ca_list_import; +#define grpc_tls_credentials_options_set_send_client_ca_list grpc_tls_credentials_options_set_send_client_ca_list_import +typedef grpc_ssl_session_cache*(*grpc_ssl_session_cache_create_lru_type)(size_t capacity); +extern grpc_ssl_session_cache_create_lru_type grpc_ssl_session_cache_create_lru_import; +#define grpc_ssl_session_cache_create_lru grpc_ssl_session_cache_create_lru_import +typedef void(*grpc_ssl_session_cache_destroy_type)(grpc_ssl_session_cache* cache); +extern grpc_ssl_session_cache_destroy_type grpc_ssl_session_cache_destroy_import; #define grpc_ssl_session_cache_destroy grpc_ssl_session_cache_destroy_import -typedef grpc_arg (*grpc_ssl_session_cache_create_channel_arg_type)( - grpc_ssl_session_cache* cache); -extern grpc_ssl_session_cache_create_channel_arg_type - grpc_ssl_session_cache_create_channel_arg_import; -#define grpc_ssl_session_cache_create_channel_arg \ - grpc_ssl_session_cache_create_channel_arg_import -typedef void (*grpc_set_ssl_roots_override_callback_type)( - grpc_ssl_roots_override_callback cb); -extern grpc_set_ssl_roots_override_callback_type - grpc_set_ssl_roots_override_callback_import; -#define grpc_set_ssl_roots_override_callback \ - grpc_set_ssl_roots_override_callback_import -typedef gpr_timespec (*grpc_max_auth_token_lifetime_type)(void); +typedef grpc_arg(*grpc_ssl_session_cache_create_channel_arg_type)(grpc_ssl_session_cache* cache); +extern grpc_ssl_session_cache_create_channel_arg_type grpc_ssl_session_cache_create_channel_arg_import; +#define grpc_ssl_session_cache_create_channel_arg grpc_ssl_session_cache_create_channel_arg_import +typedef void(*grpc_set_ssl_roots_override_callback_type)(grpc_ssl_roots_override_callback cb); +extern grpc_set_ssl_roots_override_callback_type grpc_set_ssl_roots_override_callback_import; +#define grpc_set_ssl_roots_override_callback grpc_set_ssl_roots_override_callback_import +typedef gpr_timespec(*grpc_max_auth_token_lifetime_type)(void); extern grpc_max_auth_token_lifetime_type grpc_max_auth_token_lifetime_import; #define grpc_max_auth_token_lifetime grpc_max_auth_token_lifetime_import -typedef grpc_channel_credentials* (*grpc_insecure_credentials_create_type)(); -extern grpc_insecure_credentials_create_type - grpc_insecure_credentials_create_import; +typedef grpc_channel_credentials*(*grpc_insecure_credentials_create_type)(); +extern grpc_insecure_credentials_create_type grpc_insecure_credentials_create_import; #define grpc_insecure_credentials_create grpc_insecure_credentials_create_import -typedef grpc_server_credentials* ( - *grpc_insecure_server_credentials_create_type)(); -extern grpc_insecure_server_credentials_create_type - grpc_insecure_server_credentials_create_import; -#define grpc_insecure_server_credentials_create \ - grpc_insecure_server_credentials_create_import -typedef grpc_channel_credentials* (*grpc_xds_credentials_create_type)( - grpc_channel_credentials* fallback_credentials); +typedef grpc_server_credentials*(*grpc_insecure_server_credentials_create_type)(); +extern grpc_insecure_server_credentials_create_type grpc_insecure_server_credentials_create_import; +#define grpc_insecure_server_credentials_create grpc_insecure_server_credentials_create_import +typedef grpc_channel_credentials*(*grpc_xds_credentials_create_type)(grpc_channel_credentials* fallback_credentials); extern grpc_xds_credentials_create_type grpc_xds_credentials_create_import; #define grpc_xds_credentials_create grpc_xds_credentials_create_import -typedef grpc_server_credentials* (*grpc_xds_server_credentials_create_type)( - grpc_server_credentials* fallback_credentials); -extern grpc_xds_server_credentials_create_type - grpc_xds_server_credentials_create_import; -#define grpc_xds_server_credentials_create \ - grpc_xds_server_credentials_create_import -typedef grpc_channel_credentials* (*grpc_local_credentials_create_type)( - grpc_local_connect_type type); +typedef grpc_server_credentials*(*grpc_xds_server_credentials_create_type)(grpc_server_credentials* fallback_credentials); +extern grpc_xds_server_credentials_create_type grpc_xds_server_credentials_create_import; +#define grpc_xds_server_credentials_create grpc_xds_server_credentials_create_import +typedef grpc_channel_credentials*(*grpc_local_credentials_create_type)(grpc_local_connect_type type); extern grpc_local_credentials_create_type grpc_local_credentials_create_import; #define grpc_local_credentials_create grpc_local_credentials_create_import -typedef grpc_server_credentials* (*grpc_local_server_credentials_create_type)( - grpc_local_connect_type type); -extern grpc_local_server_credentials_create_type - grpc_local_server_credentials_create_import; -#define grpc_local_server_credentials_create \ - grpc_local_server_credentials_create_import -typedef void (*grpc_tls_credentials_options_set_check_call_host_type)( - grpc_tls_credentials_options* options, int check_call_host); -extern grpc_tls_credentials_options_set_check_call_host_type - grpc_tls_credentials_options_set_check_call_host_import; -#define grpc_tls_credentials_options_set_check_call_host \ - grpc_tls_credentials_options_set_check_call_host_import -typedef void ( - *grpc_tls_credentials_options_set_tls_session_key_log_file_path_type)( - grpc_tls_credentials_options* options, const char* path); -extern grpc_tls_credentials_options_set_tls_session_key_log_file_path_type - grpc_tls_credentials_options_set_tls_session_key_log_file_path_import; -#define grpc_tls_credentials_options_set_tls_session_key_log_file_path \ - grpc_tls_credentials_options_set_tls_session_key_log_file_path_import -typedef void (*grpc_metadata_array_init_type)(grpc_metadata_array* array); +typedef grpc_server_credentials*(*grpc_local_server_credentials_create_type)(grpc_local_connect_type type); +extern grpc_local_server_credentials_create_type grpc_local_server_credentials_create_import; +#define grpc_local_server_credentials_create grpc_local_server_credentials_create_import +typedef void(*grpc_tls_credentials_options_set_check_call_host_type)(grpc_tls_credentials_options* options, int check_call_host); +extern grpc_tls_credentials_options_set_check_call_host_type grpc_tls_credentials_options_set_check_call_host_import; +#define grpc_tls_credentials_options_set_check_call_host grpc_tls_credentials_options_set_check_call_host_import +typedef void(*grpc_tls_credentials_options_set_tls_session_key_log_file_path_type)(grpc_tls_credentials_options* options, const char* path); +extern grpc_tls_credentials_options_set_tls_session_key_log_file_path_type grpc_tls_credentials_options_set_tls_session_key_log_file_path_import; +#define grpc_tls_credentials_options_set_tls_session_key_log_file_path grpc_tls_credentials_options_set_tls_session_key_log_file_path_import +typedef void(*grpc_metadata_array_init_type)(grpc_metadata_array* array); extern grpc_metadata_array_init_type grpc_metadata_array_init_import; #define grpc_metadata_array_init grpc_metadata_array_init_import -typedef void (*grpc_metadata_array_destroy_type)(grpc_metadata_array* array); +typedef void(*grpc_metadata_array_destroy_type)(grpc_metadata_array* array); extern grpc_metadata_array_destroy_type grpc_metadata_array_destroy_import; #define grpc_metadata_array_destroy grpc_metadata_array_destroy_import -typedef void (*grpc_call_details_init_type)(grpc_call_details* details); +typedef void(*grpc_call_details_init_type)(grpc_call_details* details); extern grpc_call_details_init_type grpc_call_details_init_import; #define grpc_call_details_init grpc_call_details_init_import -typedef void (*grpc_call_details_destroy_type)(grpc_call_details* details); +typedef void(*grpc_call_details_destroy_type)(grpc_call_details* details); extern grpc_call_details_destroy_type grpc_call_details_destroy_import; #define grpc_call_details_destroy grpc_call_details_destroy_import -typedef void (*grpc_init_type)(void); +typedef void(*grpc_init_type)(void); extern grpc_init_type grpc_init_import; #define grpc_init grpc_init_import -typedef void (*grpc_shutdown_type)(void); +typedef void(*grpc_shutdown_type)(void); extern grpc_shutdown_type grpc_shutdown_import; #define grpc_shutdown grpc_shutdown_import -typedef int (*grpc_is_initialized_type)(void); +typedef int(*grpc_is_initialized_type)(void); extern grpc_is_initialized_type grpc_is_initialized_import; #define grpc_is_initialized grpc_is_initialized_import -typedef void (*grpc_shutdown_blocking_type)(void); +typedef void(*grpc_shutdown_blocking_type)(void); extern grpc_shutdown_blocking_type grpc_shutdown_blocking_import; #define grpc_shutdown_blocking grpc_shutdown_blocking_import -typedef const char* (*grpc_version_string_type)(void); +typedef const char*(*grpc_version_string_type)(void); extern grpc_version_string_type grpc_version_string_import; #define grpc_version_string grpc_version_string_import -typedef const char* (*grpc_g_stands_for_type)(void); +typedef const char*(*grpc_g_stands_for_type)(void); extern grpc_g_stands_for_type grpc_g_stands_for_import; #define grpc_g_stands_for grpc_g_stands_for_import -typedef const grpc_completion_queue_factory* ( - *grpc_completion_queue_factory_lookup_type)( - const grpc_completion_queue_attributes* attributes); -extern grpc_completion_queue_factory_lookup_type - grpc_completion_queue_factory_lookup_import; -#define grpc_completion_queue_factory_lookup \ - grpc_completion_queue_factory_lookup_import -typedef grpc_completion_queue* (*grpc_completion_queue_create_for_next_type)( - void* reserved); -extern grpc_completion_queue_create_for_next_type - grpc_completion_queue_create_for_next_import; -#define grpc_completion_queue_create_for_next \ - grpc_completion_queue_create_for_next_import -typedef grpc_completion_queue* (*grpc_completion_queue_create_for_pluck_type)( - void* reserved); -extern grpc_completion_queue_create_for_pluck_type - grpc_completion_queue_create_for_pluck_import; -#define grpc_completion_queue_create_for_pluck \ - grpc_completion_queue_create_for_pluck_import -typedef grpc_completion_queue* ( - *grpc_completion_queue_create_for_callback_type)( - grpc_completion_queue_functor* shutdown_callback, void* reserved); -extern grpc_completion_queue_create_for_callback_type - grpc_completion_queue_create_for_callback_import; -#define grpc_completion_queue_create_for_callback \ - grpc_completion_queue_create_for_callback_import -typedef grpc_completion_queue* (*grpc_completion_queue_create_type)( - const grpc_completion_queue_factory* factory, - const grpc_completion_queue_attributes* attributes, void* reserved); +typedef const grpc_completion_queue_factory*(*grpc_completion_queue_factory_lookup_type)(const grpc_completion_queue_attributes* attributes); +extern grpc_completion_queue_factory_lookup_type grpc_completion_queue_factory_lookup_import; +#define grpc_completion_queue_factory_lookup grpc_completion_queue_factory_lookup_import +typedef grpc_completion_queue*(*grpc_completion_queue_create_for_next_type)(void* reserved); +extern grpc_completion_queue_create_for_next_type grpc_completion_queue_create_for_next_import; +#define grpc_completion_queue_create_for_next grpc_completion_queue_create_for_next_import +typedef grpc_completion_queue*(*grpc_completion_queue_create_for_pluck_type)(void* reserved); +extern grpc_completion_queue_create_for_pluck_type grpc_completion_queue_create_for_pluck_import; +#define grpc_completion_queue_create_for_pluck grpc_completion_queue_create_for_pluck_import +typedef grpc_completion_queue*(*grpc_completion_queue_create_for_callback_type)(grpc_completion_queue_functor* shutdown_callback, void* reserved); +extern grpc_completion_queue_create_for_callback_type grpc_completion_queue_create_for_callback_import; +#define grpc_completion_queue_create_for_callback grpc_completion_queue_create_for_callback_import +typedef grpc_completion_queue*(*grpc_completion_queue_create_type)(const grpc_completion_queue_factory* factory, const grpc_completion_queue_attributes* attributes, void* reserved); extern grpc_completion_queue_create_type grpc_completion_queue_create_import; #define grpc_completion_queue_create grpc_completion_queue_create_import -typedef grpc_event (*grpc_completion_queue_next_type)(grpc_completion_queue* cq, - gpr_timespec deadline, - void* reserved); +typedef grpc_event(*grpc_completion_queue_next_type)(grpc_completion_queue* cq, gpr_timespec deadline, void* reserved); extern grpc_completion_queue_next_type grpc_completion_queue_next_import; #define grpc_completion_queue_next grpc_completion_queue_next_import -typedef grpc_event (*grpc_completion_queue_pluck_type)( - grpc_completion_queue* cq, void* tag, gpr_timespec deadline, - void* reserved); +typedef grpc_event(*grpc_completion_queue_pluck_type)(grpc_completion_queue* cq, void* tag, gpr_timespec deadline, void* reserved); extern grpc_completion_queue_pluck_type grpc_completion_queue_pluck_import; #define grpc_completion_queue_pluck grpc_completion_queue_pluck_import -typedef void (*grpc_completion_queue_shutdown_type)(grpc_completion_queue* cq); -extern grpc_completion_queue_shutdown_type - grpc_completion_queue_shutdown_import; +typedef void(*grpc_completion_queue_shutdown_type)(grpc_completion_queue* cq); +extern grpc_completion_queue_shutdown_type grpc_completion_queue_shutdown_import; #define grpc_completion_queue_shutdown grpc_completion_queue_shutdown_import -typedef void (*grpc_completion_queue_destroy_type)(grpc_completion_queue* cq); +typedef void(*grpc_completion_queue_destroy_type)(grpc_completion_queue* cq); extern grpc_completion_queue_destroy_type grpc_completion_queue_destroy_import; #define grpc_completion_queue_destroy grpc_completion_queue_destroy_import -typedef void (*grpc_completion_queue_thread_local_cache_init_type)( - grpc_completion_queue* cq); -extern grpc_completion_queue_thread_local_cache_init_type - grpc_completion_queue_thread_local_cache_init_import; -#define grpc_completion_queue_thread_local_cache_init \ - grpc_completion_queue_thread_local_cache_init_import -typedef int (*grpc_completion_queue_thread_local_cache_flush_type)( - grpc_completion_queue* cq, void** tag, int* ok); -extern grpc_completion_queue_thread_local_cache_flush_type - grpc_completion_queue_thread_local_cache_flush_import; -#define grpc_completion_queue_thread_local_cache_flush \ - grpc_completion_queue_thread_local_cache_flush_import -typedef grpc_connectivity_state (*grpc_channel_check_connectivity_state_type)( - grpc_channel* channel, int try_to_connect); -extern grpc_channel_check_connectivity_state_type - grpc_channel_check_connectivity_state_import; -#define grpc_channel_check_connectivity_state \ - grpc_channel_check_connectivity_state_import -typedef void (*grpc_channel_watch_connectivity_state_type)( - grpc_channel* channel, grpc_connectivity_state last_observed_state, - gpr_timespec deadline, grpc_completion_queue* cq, void* tag); -extern grpc_channel_watch_connectivity_state_type - grpc_channel_watch_connectivity_state_import; -#define grpc_channel_watch_connectivity_state \ - grpc_channel_watch_connectivity_state_import -typedef int (*grpc_channel_support_connectivity_watcher_type)( - grpc_channel* channel); -extern grpc_channel_support_connectivity_watcher_type - grpc_channel_support_connectivity_watcher_import; -#define grpc_channel_support_connectivity_watcher \ - grpc_channel_support_connectivity_watcher_import -typedef grpc_call* (*grpc_channel_create_call_type)( - grpc_channel* channel, grpc_call* parent_call, uint32_t propagation_mask, - grpc_completion_queue* completion_queue, grpc_slice method, - const grpc_slice* host, gpr_timespec deadline, void* reserved); +typedef void(*grpc_completion_queue_thread_local_cache_init_type)(grpc_completion_queue* cq); +extern grpc_completion_queue_thread_local_cache_init_type grpc_completion_queue_thread_local_cache_init_import; +#define grpc_completion_queue_thread_local_cache_init grpc_completion_queue_thread_local_cache_init_import +typedef int(*grpc_completion_queue_thread_local_cache_flush_type)(grpc_completion_queue* cq, void** tag, int* ok); +extern grpc_completion_queue_thread_local_cache_flush_type grpc_completion_queue_thread_local_cache_flush_import; +#define grpc_completion_queue_thread_local_cache_flush grpc_completion_queue_thread_local_cache_flush_import +typedef grpc_connectivity_state(*grpc_channel_check_connectivity_state_type)(grpc_channel* channel, int try_to_connect); +extern grpc_channel_check_connectivity_state_type grpc_channel_check_connectivity_state_import; +#define grpc_channel_check_connectivity_state grpc_channel_check_connectivity_state_import +typedef void(*grpc_channel_watch_connectivity_state_type)(grpc_channel* channel, grpc_connectivity_state last_observed_state, gpr_timespec deadline, grpc_completion_queue* cq, void* tag); +extern grpc_channel_watch_connectivity_state_type grpc_channel_watch_connectivity_state_import; +#define grpc_channel_watch_connectivity_state grpc_channel_watch_connectivity_state_import +typedef int(*grpc_channel_support_connectivity_watcher_type)(grpc_channel* channel); +extern grpc_channel_support_connectivity_watcher_type grpc_channel_support_connectivity_watcher_import; +#define grpc_channel_support_connectivity_watcher grpc_channel_support_connectivity_watcher_import +typedef grpc_call*(*grpc_channel_create_call_type)(grpc_channel* channel, grpc_call* parent_call, uint32_t propagation_mask, grpc_completion_queue* completion_queue, grpc_slice method, const grpc_slice* host, gpr_timespec deadline, void* reserved); extern grpc_channel_create_call_type grpc_channel_create_call_import; #define grpc_channel_create_call grpc_channel_create_call_import -typedef void* (*grpc_channel_register_call_type)(grpc_channel* channel, - const char* method, - const char* host, - void* reserved); +typedef void*(*grpc_channel_register_call_type)(grpc_channel* channel, const char* method, const char* host, void* reserved); extern grpc_channel_register_call_type grpc_channel_register_call_import; #define grpc_channel_register_call grpc_channel_register_call_import -typedef grpc_call* (*grpc_channel_create_registered_call_type)( - grpc_channel* channel, grpc_call* parent_call, uint32_t propagation_mask, - grpc_completion_queue* completion_queue, void* registered_call_handle, - gpr_timespec deadline, void* reserved); -extern grpc_channel_create_registered_call_type - grpc_channel_create_registered_call_import; -#define grpc_channel_create_registered_call \ - grpc_channel_create_registered_call_import -typedef void* (*grpc_call_arena_alloc_type)(grpc_call* call, size_t size); +typedef grpc_call*(*grpc_channel_create_registered_call_type)(grpc_channel* channel, grpc_call* parent_call, uint32_t propagation_mask, grpc_completion_queue* completion_queue, void* registered_call_handle, gpr_timespec deadline, void* reserved); +extern grpc_channel_create_registered_call_type grpc_channel_create_registered_call_import; +#define grpc_channel_create_registered_call grpc_channel_create_registered_call_import +typedef void*(*grpc_call_arena_alloc_type)(grpc_call* call, size_t size); extern grpc_call_arena_alloc_type grpc_call_arena_alloc_import; #define grpc_call_arena_alloc grpc_call_arena_alloc_import -typedef grpc_call_error (*grpc_call_start_batch_type)(grpc_call* call, - const grpc_op* ops, - size_t nops, void* tag, - void* reserved); +typedef grpc_call_error(*grpc_call_start_batch_type)(grpc_call* call, const grpc_op* ops, size_t nops, void* tag, void* reserved); extern grpc_call_start_batch_type grpc_call_start_batch_import; #define grpc_call_start_batch grpc_call_start_batch_import -typedef char* (*grpc_call_get_peer_type)(grpc_call* call); +typedef char*(*grpc_call_get_peer_type)(grpc_call* call); extern grpc_call_get_peer_type grpc_call_get_peer_import; #define grpc_call_get_peer grpc_call_get_peer_import -typedef void (*grpc_census_call_set_context_type)( - grpc_call* call, struct census_context* context); +typedef void(*grpc_census_call_set_context_type)(grpc_call* call, struct census_context* context); extern grpc_census_call_set_context_type grpc_census_call_set_context_import; #define grpc_census_call_set_context grpc_census_call_set_context_import -typedef struct census_context* (*grpc_census_call_get_context_type)( - grpc_call* call); +typedef struct census_context*(*grpc_census_call_get_context_type)(grpc_call* call); extern grpc_census_call_get_context_type grpc_census_call_get_context_import; #define grpc_census_call_get_context grpc_census_call_get_context_import -typedef char* (*grpc_channel_get_target_type)(grpc_channel* channel); +typedef char*(*grpc_channel_get_target_type)(grpc_channel* channel); extern grpc_channel_get_target_type grpc_channel_get_target_import; #define grpc_channel_get_target grpc_channel_get_target_import -typedef void (*grpc_channel_get_info_type)( - grpc_channel* channel, const grpc_channel_info* channel_info); +typedef void(*grpc_channel_get_info_type)(grpc_channel* channel, const grpc_channel_info* channel_info); extern grpc_channel_get_info_type grpc_channel_get_info_import; #define grpc_channel_get_info grpc_channel_get_info_import -typedef void (*grpc_channel_reset_connect_backoff_type)(grpc_channel* channel); -extern grpc_channel_reset_connect_backoff_type - grpc_channel_reset_connect_backoff_import; -#define grpc_channel_reset_connect_backoff \ - grpc_channel_reset_connect_backoff_import -typedef void (*grpc_channel_credentials_release_type)( - grpc_channel_credentials* creds); -extern grpc_channel_credentials_release_type - grpc_channel_credentials_release_import; +typedef void(*grpc_channel_reset_connect_backoff_type)(grpc_channel* channel); +extern grpc_channel_reset_connect_backoff_type grpc_channel_reset_connect_backoff_import; +#define grpc_channel_reset_connect_backoff grpc_channel_reset_connect_backoff_import +typedef void(*grpc_channel_credentials_release_type)(grpc_channel_credentials* creds); +extern grpc_channel_credentials_release_type grpc_channel_credentials_release_import; #define grpc_channel_credentials_release grpc_channel_credentials_release_import -typedef void (*grpc_server_credentials_release_type)( - grpc_server_credentials* creds); -extern grpc_server_credentials_release_type - grpc_server_credentials_release_import; +typedef void(*grpc_server_credentials_release_type)(grpc_server_credentials* creds); +extern grpc_server_credentials_release_type grpc_server_credentials_release_import; #define grpc_server_credentials_release grpc_server_credentials_release_import -typedef grpc_channel* (*grpc_channel_create_type)( - const char* target, grpc_channel_credentials* creds, - const grpc_channel_args* args); +typedef grpc_channel*(*grpc_channel_create_type)(const char* target, grpc_channel_credentials* creds, const grpc_channel_args* args); extern grpc_channel_create_type grpc_channel_create_import; #define grpc_channel_create grpc_channel_create_import -typedef grpc_channel* (*grpc_lame_client_channel_create_type)( - const char* target, grpc_status_code error_code, const char* error_message); -extern grpc_lame_client_channel_create_type - grpc_lame_client_channel_create_import; +typedef grpc_channel*(*grpc_lame_client_channel_create_type)(const char* target, grpc_status_code error_code, const char* error_message); +extern grpc_lame_client_channel_create_type grpc_lame_client_channel_create_import; #define grpc_lame_client_channel_create grpc_lame_client_channel_create_import -typedef void (*grpc_channel_destroy_type)(grpc_channel* channel); +typedef void(*grpc_channel_destroy_type)(grpc_channel* channel); extern grpc_channel_destroy_type grpc_channel_destroy_import; #define grpc_channel_destroy grpc_channel_destroy_import -typedef grpc_call_error (*grpc_call_cancel_type)(grpc_call* call, - void* reserved); +typedef grpc_call_error(*grpc_call_cancel_type)(grpc_call* call, void* reserved); extern grpc_call_cancel_type grpc_call_cancel_import; #define grpc_call_cancel grpc_call_cancel_import -typedef grpc_call_error (*grpc_call_cancel_with_status_type)( - grpc_call* call, grpc_status_code status, const char* description, - void* reserved); +typedef grpc_call_error(*grpc_call_cancel_with_status_type)(grpc_call* call, grpc_status_code status, const char* description, void* reserved); extern grpc_call_cancel_with_status_type grpc_call_cancel_with_status_import; #define grpc_call_cancel_with_status grpc_call_cancel_with_status_import -typedef int (*grpc_call_failed_before_recv_message_type)(const grpc_call* c); -extern grpc_call_failed_before_recv_message_type - grpc_call_failed_before_recv_message_import; -#define grpc_call_failed_before_recv_message \ - grpc_call_failed_before_recv_message_import -typedef void (*grpc_call_ref_type)(grpc_call* call); +typedef int(*grpc_call_failed_before_recv_message_type)(const grpc_call* c); +extern grpc_call_failed_before_recv_message_type grpc_call_failed_before_recv_message_import; +#define grpc_call_failed_before_recv_message grpc_call_failed_before_recv_message_import +typedef void(*grpc_call_ref_type)(grpc_call* call); extern grpc_call_ref_type grpc_call_ref_import; #define grpc_call_ref grpc_call_ref_import -typedef void (*grpc_call_unref_type)(grpc_call* call); +typedef void(*grpc_call_unref_type)(grpc_call* call); extern grpc_call_unref_type grpc_call_unref_import; #define grpc_call_unref grpc_call_unref_import -typedef grpc_call_error (*grpc_call_set_credentials_type)( - grpc_call* call, grpc_call_credentials* creds); +typedef grpc_call_error(*grpc_call_set_credentials_type)(grpc_call* call, grpc_call_credentials* creds); extern grpc_call_set_credentials_type grpc_call_set_credentials_import; #define grpc_call_set_credentials grpc_call_set_credentials_import -typedef grpc_call_error (*grpc_server_request_call_type)( - grpc_server* server, grpc_call** call, grpc_call_details* details, - grpc_metadata_array* request_metadata, - grpc_completion_queue* cq_bound_to_call, - grpc_completion_queue* cq_for_notification, void* tag_new); +typedef grpc_call_error(*grpc_server_request_call_type)(grpc_server* server, grpc_call** call, grpc_call_details* details, grpc_metadata_array* request_metadata, grpc_completion_queue* cq_bound_to_call, grpc_completion_queue* cq_for_notification, void* tag_new); extern grpc_server_request_call_type grpc_server_request_call_import; #define grpc_server_request_call grpc_server_request_call_import -typedef void* (*grpc_server_register_method_type)( - grpc_server* server, const char* method, const char* host, - grpc_server_register_method_payload_handling payload_handling, - uint32_t flags); +typedef void*(*grpc_server_register_method_type)(grpc_server* server, const char* method, const char* host, grpc_server_register_method_payload_handling payload_handling, uint32_t flags); extern grpc_server_register_method_type grpc_server_register_method_import; #define grpc_server_register_method grpc_server_register_method_import -typedef grpc_call_error (*grpc_server_request_registered_call_type)( - grpc_server* server, void* registered_method, grpc_call** call, - gpr_timespec* deadline, grpc_metadata_array* request_metadata, - grpc_byte_buffer** optional_payload, - grpc_completion_queue* cq_bound_to_call, - grpc_completion_queue* cq_for_notification, void* tag_new); -extern grpc_server_request_registered_call_type - grpc_server_request_registered_call_import; -#define grpc_server_request_registered_call \ - grpc_server_request_registered_call_import -typedef grpc_server* (*grpc_server_create_type)(const grpc_channel_args* args, - void* reserved); +typedef grpc_call_error(*grpc_server_request_registered_call_type)(grpc_server* server, void* registered_method, grpc_call** call, gpr_timespec* deadline, grpc_metadata_array* request_metadata, grpc_byte_buffer** optional_payload, grpc_completion_queue* cq_bound_to_call, grpc_completion_queue* cq_for_notification, void* tag_new); +extern grpc_server_request_registered_call_type grpc_server_request_registered_call_import; +#define grpc_server_request_registered_call grpc_server_request_registered_call_import +typedef grpc_server*(*grpc_server_create_type)(const grpc_channel_args* args, void* reserved); extern grpc_server_create_type grpc_server_create_import; #define grpc_server_create grpc_server_create_import -typedef void (*grpc_server_register_completion_queue_type)( - grpc_server* server, grpc_completion_queue* cq, void* reserved); -extern grpc_server_register_completion_queue_type - grpc_server_register_completion_queue_import; -#define grpc_server_register_completion_queue \ - grpc_server_register_completion_queue_import -typedef grpc_server_config_fetcher* ( - *grpc_server_config_fetcher_xds_create_type)( - grpc_server_xds_status_notifier notifier, const grpc_channel_args* args); -extern grpc_server_config_fetcher_xds_create_type - grpc_server_config_fetcher_xds_create_import; -#define grpc_server_config_fetcher_xds_create \ - grpc_server_config_fetcher_xds_create_import -typedef void (*grpc_server_config_fetcher_destroy_type)( - grpc_server_config_fetcher* config_fetcher); -extern grpc_server_config_fetcher_destroy_type - grpc_server_config_fetcher_destroy_import; -#define grpc_server_config_fetcher_destroy \ - grpc_server_config_fetcher_destroy_import -typedef void (*grpc_server_set_config_fetcher_type)( - grpc_server* server, grpc_server_config_fetcher* config_fetcher); -extern grpc_server_set_config_fetcher_type - grpc_server_set_config_fetcher_import; +typedef void(*grpc_server_register_completion_queue_type)(grpc_server* server, grpc_completion_queue* cq, void* reserved); +extern grpc_server_register_completion_queue_type grpc_server_register_completion_queue_import; +#define grpc_server_register_completion_queue grpc_server_register_completion_queue_import +typedef grpc_server_config_fetcher*(*grpc_server_config_fetcher_xds_create_type)(grpc_server_xds_status_notifier notifier, const grpc_channel_args* args); +extern grpc_server_config_fetcher_xds_create_type grpc_server_config_fetcher_xds_create_import; +#define grpc_server_config_fetcher_xds_create grpc_server_config_fetcher_xds_create_import +typedef void(*grpc_server_config_fetcher_destroy_type)(grpc_server_config_fetcher* config_fetcher); +extern grpc_server_config_fetcher_destroy_type grpc_server_config_fetcher_destroy_import; +#define grpc_server_config_fetcher_destroy grpc_server_config_fetcher_destroy_import +typedef void(*grpc_server_set_config_fetcher_type)(grpc_server* server, grpc_server_config_fetcher* config_fetcher); +extern grpc_server_set_config_fetcher_type grpc_server_set_config_fetcher_import; #define grpc_server_set_config_fetcher grpc_server_set_config_fetcher_import -typedef int (*grpc_server_add_http2_port_type)(grpc_server* server, - const char* addr, - grpc_server_credentials* creds); +typedef int(*grpc_server_add_http2_port_type)(grpc_server* server, const char* addr, grpc_server_credentials* creds); extern grpc_server_add_http2_port_type grpc_server_add_http2_port_import; #define grpc_server_add_http2_port grpc_server_add_http2_port_import -typedef void (*grpc_server_start_type)(grpc_server* server); +typedef void(*grpc_server_start_type)(grpc_server* server); extern grpc_server_start_type grpc_server_start_import; #define grpc_server_start grpc_server_start_import -typedef void (*grpc_server_shutdown_and_notify_type)(grpc_server* server, - grpc_completion_queue* cq, - void* tag); -extern grpc_server_shutdown_and_notify_type - grpc_server_shutdown_and_notify_import; +typedef void(*grpc_server_shutdown_and_notify_type)(grpc_server* server, grpc_completion_queue* cq, void* tag); +extern grpc_server_shutdown_and_notify_type grpc_server_shutdown_and_notify_import; #define grpc_server_shutdown_and_notify grpc_server_shutdown_and_notify_import -typedef void (*grpc_server_cancel_all_calls_type)(grpc_server* server); +typedef void(*grpc_server_cancel_all_calls_type)(grpc_server* server); extern grpc_server_cancel_all_calls_type grpc_server_cancel_all_calls_import; #define grpc_server_cancel_all_calls grpc_server_cancel_all_calls_import -typedef void (*grpc_server_destroy_type)(grpc_server* server); +typedef void(*grpc_server_destroy_type)(grpc_server* server); extern grpc_server_destroy_type grpc_server_destroy_import; #define grpc_server_destroy grpc_server_destroy_import -typedef int (*grpc_tracer_set_enabled_type)(const char* name, int enabled); +typedef int(*grpc_tracer_set_enabled_type)(const char* name, int enabled); extern grpc_tracer_set_enabled_type grpc_tracer_set_enabled_import; #define grpc_tracer_set_enabled grpc_tracer_set_enabled_import -typedef int (*grpc_header_key_is_legal_type)(grpc_slice slice); +typedef int(*grpc_header_key_is_legal_type)(grpc_slice slice); extern grpc_header_key_is_legal_type grpc_header_key_is_legal_import; #define grpc_header_key_is_legal grpc_header_key_is_legal_import -typedef int (*grpc_header_nonbin_value_is_legal_type)(grpc_slice slice); -extern grpc_header_nonbin_value_is_legal_type - grpc_header_nonbin_value_is_legal_import; -#define grpc_header_nonbin_value_is_legal \ - grpc_header_nonbin_value_is_legal_import -typedef int (*grpc_is_binary_header_type)(grpc_slice slice); +typedef int(*grpc_header_nonbin_value_is_legal_type)(grpc_slice slice); +extern grpc_header_nonbin_value_is_legal_type grpc_header_nonbin_value_is_legal_import; +#define grpc_header_nonbin_value_is_legal grpc_header_nonbin_value_is_legal_import +typedef int(*grpc_is_binary_header_type)(grpc_slice slice); extern grpc_is_binary_header_type grpc_is_binary_header_import; #define grpc_is_binary_header grpc_is_binary_header_import -typedef const char* (*grpc_call_error_to_string_type)(grpc_call_error error); +typedef const char*(*grpc_call_error_to_string_type)(grpc_call_error error); extern grpc_call_error_to_string_type grpc_call_error_to_string_import; #define grpc_call_error_to_string grpc_call_error_to_string_import -typedef grpc_resource_quota* (*grpc_resource_quota_create_type)( - const char* trace_name); +typedef grpc_resource_quota*(*grpc_resource_quota_create_type)(const char* trace_name); extern grpc_resource_quota_create_type grpc_resource_quota_create_import; #define grpc_resource_quota_create grpc_resource_quota_create_import -typedef void (*grpc_resource_quota_ref_type)( - grpc_resource_quota* resource_quota); +typedef void(*grpc_resource_quota_ref_type)(grpc_resource_quota* resource_quota); extern grpc_resource_quota_ref_type grpc_resource_quota_ref_import; #define grpc_resource_quota_ref grpc_resource_quota_ref_import -typedef void (*grpc_resource_quota_unref_type)( - grpc_resource_quota* resource_quota); +typedef void(*grpc_resource_quota_unref_type)(grpc_resource_quota* resource_quota); extern grpc_resource_quota_unref_type grpc_resource_quota_unref_import; #define grpc_resource_quota_unref grpc_resource_quota_unref_import -typedef void (*grpc_resource_quota_resize_type)( - grpc_resource_quota* resource_quota, size_t new_size); +typedef void(*grpc_resource_quota_resize_type)(grpc_resource_quota* resource_quota, size_t new_size); extern grpc_resource_quota_resize_type grpc_resource_quota_resize_import; #define grpc_resource_quota_resize grpc_resource_quota_resize_import -typedef void (*grpc_resource_quota_set_max_threads_type)( - grpc_resource_quota* resource_quota, int new_max_threads); -extern grpc_resource_quota_set_max_threads_type - grpc_resource_quota_set_max_threads_import; -#define grpc_resource_quota_set_max_threads \ - grpc_resource_quota_set_max_threads_import -typedef grpc_slice (*grpc_dump_xds_configs_type)(void); +typedef void(*grpc_resource_quota_set_max_threads_type)(grpc_resource_quota* resource_quota, int new_max_threads); +extern grpc_resource_quota_set_max_threads_type grpc_resource_quota_set_max_threads_import; +#define grpc_resource_quota_set_max_threads grpc_resource_quota_set_max_threads_import +typedef grpc_slice(*grpc_dump_xds_configs_type)(void); extern grpc_dump_xds_configs_type grpc_dump_xds_configs_import; #define grpc_dump_xds_configs grpc_dump_xds_configs_import -typedef const grpc_arg_pointer_vtable* (*grpc_resource_quota_arg_vtable_type)( - void); -extern grpc_resource_quota_arg_vtable_type - grpc_resource_quota_arg_vtable_import; +typedef const grpc_arg_pointer_vtable*(*grpc_resource_quota_arg_vtable_type)(void); +extern grpc_resource_quota_arg_vtable_type grpc_resource_quota_arg_vtable_import; #define grpc_resource_quota_arg_vtable grpc_resource_quota_arg_vtable_import -typedef char* (*grpc_channelz_get_top_channels_type)(intptr_t start_channel_id); -extern grpc_channelz_get_top_channels_type - grpc_channelz_get_top_channels_import; +typedef char*(*grpc_channelz_get_top_channels_type)(intptr_t start_channel_id); +extern grpc_channelz_get_top_channels_type grpc_channelz_get_top_channels_import; #define grpc_channelz_get_top_channels grpc_channelz_get_top_channels_import -typedef char* (*grpc_channelz_get_servers_type)(intptr_t start_server_id); +typedef char*(*grpc_channelz_get_servers_type)(intptr_t start_server_id); extern grpc_channelz_get_servers_type grpc_channelz_get_servers_import; #define grpc_channelz_get_servers grpc_channelz_get_servers_import -typedef char* (*grpc_channelz_get_server_type)(intptr_t server_id); +typedef char*(*grpc_channelz_get_server_type)(intptr_t server_id); extern grpc_channelz_get_server_type grpc_channelz_get_server_import; #define grpc_channelz_get_server grpc_channelz_get_server_import -typedef char* (*grpc_channelz_get_server_sockets_type)(intptr_t server_id, - intptr_t start_socket_id, - intptr_t max_results); -extern grpc_channelz_get_server_sockets_type - grpc_channelz_get_server_sockets_import; +typedef char*(*grpc_channelz_get_server_sockets_type)(intptr_t server_id, intptr_t start_socket_id, intptr_t max_results); +extern grpc_channelz_get_server_sockets_type grpc_channelz_get_server_sockets_import; #define grpc_channelz_get_server_sockets grpc_channelz_get_server_sockets_import -typedef char* (*grpc_channelz_get_channel_type)(intptr_t channel_id); +typedef char*(*grpc_channelz_get_channel_type)(intptr_t channel_id); extern grpc_channelz_get_channel_type grpc_channelz_get_channel_import; #define grpc_channelz_get_channel grpc_channelz_get_channel_import -typedef char* (*grpc_channelz_get_subchannel_type)(intptr_t subchannel_id); +typedef char*(*grpc_channelz_get_subchannel_type)(intptr_t subchannel_id); extern grpc_channelz_get_subchannel_type grpc_channelz_get_subchannel_import; #define grpc_channelz_get_subchannel grpc_channelz_get_subchannel_import -typedef char* (*grpc_channelz_get_socket_type)(intptr_t socket_id); +typedef char*(*grpc_channelz_get_socket_type)(intptr_t socket_id); extern grpc_channelz_get_socket_type grpc_channelz_get_socket_import; #define grpc_channelz_get_socket grpc_channelz_get_socket_import -typedef const grpc_arg_pointer_vtable* ( - *grpc_authorization_policy_provider_arg_vtable_type)(void); -extern grpc_authorization_policy_provider_arg_vtable_type - grpc_authorization_policy_provider_arg_vtable_import; -#define grpc_authorization_policy_provider_arg_vtable \ - grpc_authorization_policy_provider_arg_vtable_import -typedef grpc_channel* (*grpc_channel_create_from_fd_type)( - const char* target, int fd, grpc_channel_credentials* creds, - const grpc_channel_args* args); +typedef const grpc_arg_pointer_vtable*(*grpc_authorization_policy_provider_arg_vtable_type)(void); +extern grpc_authorization_policy_provider_arg_vtable_type grpc_authorization_policy_provider_arg_vtable_import; +#define grpc_authorization_policy_provider_arg_vtable grpc_authorization_policy_provider_arg_vtable_import +typedef grpc_channel*(*grpc_channel_create_from_fd_type)(const char* target, int fd, grpc_channel_credentials* creds, const grpc_channel_args* args); extern grpc_channel_create_from_fd_type grpc_channel_create_from_fd_import; #define grpc_channel_create_from_fd grpc_channel_create_from_fd_import -typedef void (*grpc_server_add_channel_from_fd_type)( - grpc_server* server, int fd, grpc_server_credentials* creds); -extern grpc_server_add_channel_from_fd_type - grpc_server_add_channel_from_fd_import; +typedef void(*grpc_server_add_channel_from_fd_type)(grpc_server* server, int fd, grpc_server_credentials* creds); +extern grpc_server_add_channel_from_fd_type grpc_server_add_channel_from_fd_import; #define grpc_server_add_channel_from_fd grpc_server_add_channel_from_fd_import -typedef const grpc_auth_property* (*grpc_auth_property_iterator_next_type)( - grpc_auth_property_iterator* it); -extern grpc_auth_property_iterator_next_type - grpc_auth_property_iterator_next_import; +typedef const grpc_auth_property*(*grpc_auth_property_iterator_next_type)(grpc_auth_property_iterator* it); +extern grpc_auth_property_iterator_next_type grpc_auth_property_iterator_next_import; #define grpc_auth_property_iterator_next grpc_auth_property_iterator_next_import -typedef grpc_auth_property_iterator (*grpc_auth_context_property_iterator_type)( - const grpc_auth_context* ctx); -extern grpc_auth_context_property_iterator_type - grpc_auth_context_property_iterator_import; -#define grpc_auth_context_property_iterator \ - grpc_auth_context_property_iterator_import -typedef grpc_auth_property_iterator (*grpc_auth_context_peer_identity_type)( - const grpc_auth_context* ctx); -extern grpc_auth_context_peer_identity_type - grpc_auth_context_peer_identity_import; +typedef grpc_auth_property_iterator(*grpc_auth_context_property_iterator_type)(const grpc_auth_context* ctx); +extern grpc_auth_context_property_iterator_type grpc_auth_context_property_iterator_import; +#define grpc_auth_context_property_iterator grpc_auth_context_property_iterator_import +typedef grpc_auth_property_iterator(*grpc_auth_context_peer_identity_type)(const grpc_auth_context* ctx); +extern grpc_auth_context_peer_identity_type grpc_auth_context_peer_identity_import; #define grpc_auth_context_peer_identity grpc_auth_context_peer_identity_import -typedef grpc_auth_property_iterator ( - *grpc_auth_context_find_properties_by_name_type)( - const grpc_auth_context* ctx, const char* name); -extern grpc_auth_context_find_properties_by_name_type - grpc_auth_context_find_properties_by_name_import; -#define grpc_auth_context_find_properties_by_name \ - grpc_auth_context_find_properties_by_name_import -typedef const char* (*grpc_auth_context_peer_identity_property_name_type)( - const grpc_auth_context* ctx); -extern grpc_auth_context_peer_identity_property_name_type - grpc_auth_context_peer_identity_property_name_import; -#define grpc_auth_context_peer_identity_property_name \ - grpc_auth_context_peer_identity_property_name_import -typedef int (*grpc_auth_context_peer_is_authenticated_type)( - const grpc_auth_context* ctx); -extern grpc_auth_context_peer_is_authenticated_type - grpc_auth_context_peer_is_authenticated_import; -#define grpc_auth_context_peer_is_authenticated \ - grpc_auth_context_peer_is_authenticated_import -typedef grpc_auth_context* (*grpc_call_auth_context_type)(grpc_call* call); +typedef grpc_auth_property_iterator(*grpc_auth_context_find_properties_by_name_type)(const grpc_auth_context* ctx, const char* name); +extern grpc_auth_context_find_properties_by_name_type grpc_auth_context_find_properties_by_name_import; +#define grpc_auth_context_find_properties_by_name grpc_auth_context_find_properties_by_name_import +typedef const char*(*grpc_auth_context_peer_identity_property_name_type)(const grpc_auth_context* ctx); +extern grpc_auth_context_peer_identity_property_name_type grpc_auth_context_peer_identity_property_name_import; +#define grpc_auth_context_peer_identity_property_name grpc_auth_context_peer_identity_property_name_import +typedef int(*grpc_auth_context_peer_is_authenticated_type)(const grpc_auth_context* ctx); +extern grpc_auth_context_peer_is_authenticated_type grpc_auth_context_peer_is_authenticated_import; +#define grpc_auth_context_peer_is_authenticated grpc_auth_context_peer_is_authenticated_import +typedef grpc_auth_context*(*grpc_call_auth_context_type)(grpc_call* call); extern grpc_call_auth_context_type grpc_call_auth_context_import; #define grpc_call_auth_context grpc_call_auth_context_import -typedef void (*grpc_auth_context_release_type)(grpc_auth_context* context); +typedef void(*grpc_auth_context_release_type)(grpc_auth_context* context); extern grpc_auth_context_release_type grpc_auth_context_release_import; #define grpc_auth_context_release grpc_auth_context_release_import -typedef void (*grpc_auth_context_add_property_type)(grpc_auth_context* ctx, - const char* name, - const char* value, - size_t value_length); -extern grpc_auth_context_add_property_type - grpc_auth_context_add_property_import; +typedef void(*grpc_auth_context_add_property_type)(grpc_auth_context* ctx, const char* name, const char* value, size_t value_length); +extern grpc_auth_context_add_property_type grpc_auth_context_add_property_import; #define grpc_auth_context_add_property grpc_auth_context_add_property_import -typedef void (*grpc_auth_context_add_cstring_property_type)( - grpc_auth_context* ctx, const char* name, const char* value); -extern grpc_auth_context_add_cstring_property_type - grpc_auth_context_add_cstring_property_import; -#define grpc_auth_context_add_cstring_property \ - grpc_auth_context_add_cstring_property_import -typedef int (*grpc_auth_context_set_peer_identity_property_name_type)( - grpc_auth_context* ctx, const char* name); -extern grpc_auth_context_set_peer_identity_property_name_type - grpc_auth_context_set_peer_identity_property_name_import; -#define grpc_auth_context_set_peer_identity_property_name \ - grpc_auth_context_set_peer_identity_property_name_import -typedef grpc_authorization_policy_provider* ( - *grpc_authorization_policy_provider_static_data_create_type)( - const char* authz_policy, grpc_status_code* code, - const char** error_details); -extern grpc_authorization_policy_provider_static_data_create_type - grpc_authorization_policy_provider_static_data_create_import; -#define grpc_authorization_policy_provider_static_data_create \ - grpc_authorization_policy_provider_static_data_create_import -typedef grpc_authorization_policy_provider* ( - *grpc_authorization_policy_provider_file_watcher_create_type)( - const char* authz_policy_path, unsigned int refresh_interval_sec, - grpc_status_code* code, const char** error_details); -extern grpc_authorization_policy_provider_file_watcher_create_type - grpc_authorization_policy_provider_file_watcher_create_import; -#define grpc_authorization_policy_provider_file_watcher_create \ - grpc_authorization_policy_provider_file_watcher_create_import -typedef void (*grpc_authorization_policy_provider_release_type)( - grpc_authorization_policy_provider* provider); -extern grpc_authorization_policy_provider_release_type - grpc_authorization_policy_provider_release_import; -#define grpc_authorization_policy_provider_release \ - grpc_authorization_policy_provider_release_import -typedef grpc_slice (*grpc_slice_ref_type)(grpc_slice s); +typedef void(*grpc_auth_context_add_cstring_property_type)(grpc_auth_context* ctx, const char* name, const char* value); +extern grpc_auth_context_add_cstring_property_type grpc_auth_context_add_cstring_property_import; +#define grpc_auth_context_add_cstring_property grpc_auth_context_add_cstring_property_import +typedef int(*grpc_auth_context_set_peer_identity_property_name_type)(grpc_auth_context* ctx, const char* name); +extern grpc_auth_context_set_peer_identity_property_name_type grpc_auth_context_set_peer_identity_property_name_import; +#define grpc_auth_context_set_peer_identity_property_name grpc_auth_context_set_peer_identity_property_name_import +typedef grpc_authorization_policy_provider*(*grpc_authorization_policy_provider_static_data_create_type)(const char* authz_policy, grpc_status_code* code, const char** error_details); +extern grpc_authorization_policy_provider_static_data_create_type grpc_authorization_policy_provider_static_data_create_import; +#define grpc_authorization_policy_provider_static_data_create grpc_authorization_policy_provider_static_data_create_import +typedef grpc_authorization_policy_provider*(*grpc_authorization_policy_provider_file_watcher_create_type)(const char* authz_policy_path, unsigned int refresh_interval_sec, grpc_status_code* code, const char** error_details); +extern grpc_authorization_policy_provider_file_watcher_create_type grpc_authorization_policy_provider_file_watcher_create_import; +#define grpc_authorization_policy_provider_file_watcher_create grpc_authorization_policy_provider_file_watcher_create_import +typedef void(*grpc_authorization_policy_provider_release_type)(grpc_authorization_policy_provider* provider); +extern grpc_authorization_policy_provider_release_type grpc_authorization_policy_provider_release_import; +#define grpc_authorization_policy_provider_release grpc_authorization_policy_provider_release_import +typedef grpc_slice(*grpc_slice_ref_type)(grpc_slice s); extern grpc_slice_ref_type grpc_slice_ref_import; #define grpc_slice_ref grpc_slice_ref_import -typedef void (*grpc_slice_unref_type)(grpc_slice s); +typedef void(*grpc_slice_unref_type)(grpc_slice s); extern grpc_slice_unref_type grpc_slice_unref_import; #define grpc_slice_unref grpc_slice_unref_import -typedef grpc_slice (*grpc_slice_copy_type)(grpc_slice s); +typedef grpc_slice(*grpc_slice_copy_type)(grpc_slice s); extern grpc_slice_copy_type grpc_slice_copy_import; #define grpc_slice_copy grpc_slice_copy_import -typedef grpc_slice (*grpc_slice_new_type)(void* p, size_t len, - void (*destroy)(void*)); +typedef grpc_slice(*grpc_slice_new_type)(void* p, size_t len, void (*destroy)(void*)); extern grpc_slice_new_type grpc_slice_new_import; #define grpc_slice_new grpc_slice_new_import -typedef grpc_slice (*grpc_slice_new_with_user_data_type)(void* p, size_t len, - void (*destroy)(void*), - void* user_data); +typedef grpc_slice(*grpc_slice_new_with_user_data_type)(void* p, size_t len, void (*destroy)(void*), void* user_data); extern grpc_slice_new_with_user_data_type grpc_slice_new_with_user_data_import; #define grpc_slice_new_with_user_data grpc_slice_new_with_user_data_import -typedef grpc_slice (*grpc_slice_new_with_len_type)(void* p, size_t len, - void (*destroy)(void*, - size_t)); +typedef grpc_slice(*grpc_slice_new_with_len_type)(void* p, size_t len, void (*destroy)(void*, size_t)); extern grpc_slice_new_with_len_type grpc_slice_new_with_len_import; #define grpc_slice_new_with_len grpc_slice_new_with_len_import -typedef grpc_slice (*grpc_slice_malloc_type)(size_t length); +typedef grpc_slice(*grpc_slice_malloc_type)(size_t length); extern grpc_slice_malloc_type grpc_slice_malloc_import; #define grpc_slice_malloc grpc_slice_malloc_import -typedef grpc_slice (*grpc_slice_malloc_large_type)(size_t length); +typedef grpc_slice(*grpc_slice_malloc_large_type)(size_t length); extern grpc_slice_malloc_large_type grpc_slice_malloc_large_import; #define grpc_slice_malloc_large grpc_slice_malloc_large_import -typedef grpc_slice (*grpc_slice_from_copied_string_type)(const char* source); +typedef grpc_slice(*grpc_slice_from_copied_string_type)(const char* source); extern grpc_slice_from_copied_string_type grpc_slice_from_copied_string_import; #define grpc_slice_from_copied_string grpc_slice_from_copied_string_import -typedef grpc_slice (*grpc_slice_from_copied_buffer_type)(const char* source, - size_t len); +typedef grpc_slice(*grpc_slice_from_copied_buffer_type)(const char* source, size_t len); extern grpc_slice_from_copied_buffer_type grpc_slice_from_copied_buffer_import; #define grpc_slice_from_copied_buffer grpc_slice_from_copied_buffer_import -typedef grpc_slice (*grpc_slice_from_static_string_type)(const char* source); +typedef grpc_slice(*grpc_slice_from_static_string_type)(const char* source); extern grpc_slice_from_static_string_type grpc_slice_from_static_string_import; #define grpc_slice_from_static_string grpc_slice_from_static_string_import -typedef grpc_slice (*grpc_slice_from_static_buffer_type)(const void* source, - size_t len); +typedef grpc_slice(*grpc_slice_from_static_buffer_type)(const void* source, size_t len); extern grpc_slice_from_static_buffer_type grpc_slice_from_static_buffer_import; #define grpc_slice_from_static_buffer grpc_slice_from_static_buffer_import -typedef grpc_slice (*grpc_slice_sub_type)(grpc_slice s, size_t begin, - size_t end); +typedef grpc_slice(*grpc_slice_sub_type)(grpc_slice s, size_t begin, size_t end); extern grpc_slice_sub_type grpc_slice_sub_import; #define grpc_slice_sub grpc_slice_sub_import -typedef grpc_slice (*grpc_slice_sub_no_ref_type)(grpc_slice s, size_t begin, - size_t end); +typedef grpc_slice(*grpc_slice_sub_no_ref_type)(grpc_slice s, size_t begin, size_t end); extern grpc_slice_sub_no_ref_type grpc_slice_sub_no_ref_import; #define grpc_slice_sub_no_ref grpc_slice_sub_no_ref_import -typedef grpc_slice (*grpc_slice_split_tail_type)(grpc_slice* s, size_t split); +typedef grpc_slice(*grpc_slice_split_tail_type)(grpc_slice* s, size_t split); extern grpc_slice_split_tail_type grpc_slice_split_tail_import; #define grpc_slice_split_tail grpc_slice_split_tail_import -typedef grpc_slice (*grpc_slice_split_tail_maybe_ref_type)( - grpc_slice* s, size_t split, grpc_slice_ref_whom ref_whom); -extern grpc_slice_split_tail_maybe_ref_type - grpc_slice_split_tail_maybe_ref_import; +typedef grpc_slice(*grpc_slice_split_tail_maybe_ref_type)(grpc_slice* s, size_t split, grpc_slice_ref_whom ref_whom); +extern grpc_slice_split_tail_maybe_ref_type grpc_slice_split_tail_maybe_ref_import; #define grpc_slice_split_tail_maybe_ref grpc_slice_split_tail_maybe_ref_import -typedef grpc_slice (*grpc_slice_split_head_type)(grpc_slice* s, size_t split); +typedef grpc_slice(*grpc_slice_split_head_type)(grpc_slice* s, size_t split); extern grpc_slice_split_head_type grpc_slice_split_head_import; #define grpc_slice_split_head grpc_slice_split_head_import -typedef grpc_slice (*grpc_empty_slice_type)(void); +typedef grpc_slice(*grpc_empty_slice_type)(void); extern grpc_empty_slice_type grpc_empty_slice_import; #define grpc_empty_slice grpc_empty_slice_import -typedef int (*grpc_slice_eq_type)(grpc_slice a, grpc_slice b); +typedef int(*grpc_slice_eq_type)(grpc_slice a, grpc_slice b); extern grpc_slice_eq_type grpc_slice_eq_import; #define grpc_slice_eq grpc_slice_eq_import -typedef int (*grpc_slice_cmp_type)(grpc_slice a, grpc_slice b); +typedef int(*grpc_slice_cmp_type)(grpc_slice a, grpc_slice b); extern grpc_slice_cmp_type grpc_slice_cmp_import; #define grpc_slice_cmp grpc_slice_cmp_import -typedef int (*grpc_slice_str_cmp_type)(grpc_slice a, const char* b); +typedef int(*grpc_slice_str_cmp_type)(grpc_slice a, const char* b); extern grpc_slice_str_cmp_type grpc_slice_str_cmp_import; #define grpc_slice_str_cmp grpc_slice_str_cmp_import -typedef int (*grpc_slice_buf_start_eq_type)(grpc_slice a, const void* b, - size_t blen); +typedef int(*grpc_slice_buf_start_eq_type)(grpc_slice a, const void* b, size_t blen); extern grpc_slice_buf_start_eq_type grpc_slice_buf_start_eq_import; #define grpc_slice_buf_start_eq grpc_slice_buf_start_eq_import -typedef int (*grpc_slice_rchr_type)(grpc_slice s, char c); +typedef int(*grpc_slice_rchr_type)(grpc_slice s, char c); extern grpc_slice_rchr_type grpc_slice_rchr_import; #define grpc_slice_rchr grpc_slice_rchr_import -typedef int (*grpc_slice_chr_type)(grpc_slice s, char c); +typedef int(*grpc_slice_chr_type)(grpc_slice s, char c); extern grpc_slice_chr_type grpc_slice_chr_import; #define grpc_slice_chr grpc_slice_chr_import -typedef int (*grpc_slice_slice_type)(grpc_slice haystack, grpc_slice needle); +typedef int(*grpc_slice_slice_type)(grpc_slice haystack, grpc_slice needle); extern grpc_slice_slice_type grpc_slice_slice_import; #define grpc_slice_slice grpc_slice_slice_import -typedef int (*grpc_slice_is_equivalent_type)(grpc_slice a, grpc_slice b); +typedef int(*grpc_slice_is_equivalent_type)(grpc_slice a, grpc_slice b); extern grpc_slice_is_equivalent_type grpc_slice_is_equivalent_import; #define grpc_slice_is_equivalent grpc_slice_is_equivalent_import -typedef grpc_slice (*grpc_slice_dup_type)(grpc_slice a); +typedef grpc_slice(*grpc_slice_dup_type)(grpc_slice a); extern grpc_slice_dup_type grpc_slice_dup_import; #define grpc_slice_dup grpc_slice_dup_import -typedef char* (*grpc_slice_to_c_string_type)(grpc_slice s); +typedef char*(*grpc_slice_to_c_string_type)(grpc_slice s); extern grpc_slice_to_c_string_type grpc_slice_to_c_string_import; #define grpc_slice_to_c_string grpc_slice_to_c_string_import -typedef void (*grpc_slice_buffer_init_type)(grpc_slice_buffer* sb); +typedef void(*grpc_slice_buffer_init_type)(grpc_slice_buffer* sb); extern grpc_slice_buffer_init_type grpc_slice_buffer_init_import; #define grpc_slice_buffer_init grpc_slice_buffer_init_import -typedef void (*grpc_slice_buffer_destroy_type)(grpc_slice_buffer* sb); +typedef void(*grpc_slice_buffer_destroy_type)(grpc_slice_buffer* sb); extern grpc_slice_buffer_destroy_type grpc_slice_buffer_destroy_import; #define grpc_slice_buffer_destroy grpc_slice_buffer_destroy_import -typedef void (*grpc_slice_buffer_add_type)(grpc_slice_buffer* sb, - grpc_slice slice); +typedef void(*grpc_slice_buffer_add_type)(grpc_slice_buffer* sb, grpc_slice slice); extern grpc_slice_buffer_add_type grpc_slice_buffer_add_import; #define grpc_slice_buffer_add grpc_slice_buffer_add_import -typedef size_t (*grpc_slice_buffer_add_indexed_type)(grpc_slice_buffer* sb, - grpc_slice slice); +typedef size_t(*grpc_slice_buffer_add_indexed_type)(grpc_slice_buffer* sb, grpc_slice slice); extern grpc_slice_buffer_add_indexed_type grpc_slice_buffer_add_indexed_import; #define grpc_slice_buffer_add_indexed grpc_slice_buffer_add_indexed_import -typedef void (*grpc_slice_buffer_addn_type)(grpc_slice_buffer* sb, - grpc_slice* slices, size_t n); +typedef void(*grpc_slice_buffer_addn_type)(grpc_slice_buffer* sb, grpc_slice* slices, size_t n); extern grpc_slice_buffer_addn_type grpc_slice_buffer_addn_import; #define grpc_slice_buffer_addn grpc_slice_buffer_addn_import -typedef uint8_t* (*grpc_slice_buffer_tiny_add_type)(grpc_slice_buffer* sb, - size_t len); +typedef uint8_t*(*grpc_slice_buffer_tiny_add_type)(grpc_slice_buffer* sb, size_t len); extern grpc_slice_buffer_tiny_add_type grpc_slice_buffer_tiny_add_import; #define grpc_slice_buffer_tiny_add grpc_slice_buffer_tiny_add_import -typedef void (*grpc_slice_buffer_pop_type)(grpc_slice_buffer* sb); +typedef void(*grpc_slice_buffer_pop_type)(grpc_slice_buffer* sb); extern grpc_slice_buffer_pop_type grpc_slice_buffer_pop_import; #define grpc_slice_buffer_pop grpc_slice_buffer_pop_import -typedef void (*grpc_slice_buffer_reset_and_unref_type)(grpc_slice_buffer* sb); -extern grpc_slice_buffer_reset_and_unref_type - grpc_slice_buffer_reset_and_unref_import; -#define grpc_slice_buffer_reset_and_unref \ - grpc_slice_buffer_reset_and_unref_import -typedef void (*grpc_slice_buffer_swap_type)(grpc_slice_buffer* a, - grpc_slice_buffer* b); +typedef void(*grpc_slice_buffer_reset_and_unref_type)(grpc_slice_buffer* sb); +extern grpc_slice_buffer_reset_and_unref_type grpc_slice_buffer_reset_and_unref_import; +#define grpc_slice_buffer_reset_and_unref grpc_slice_buffer_reset_and_unref_import +typedef void(*grpc_slice_buffer_swap_type)(grpc_slice_buffer* a, grpc_slice_buffer* b); extern grpc_slice_buffer_swap_type grpc_slice_buffer_swap_import; #define grpc_slice_buffer_swap grpc_slice_buffer_swap_import -typedef void (*grpc_slice_buffer_move_into_type)(grpc_slice_buffer* src, - grpc_slice_buffer* dst); +typedef void(*grpc_slice_buffer_move_into_type)(grpc_slice_buffer* src, grpc_slice_buffer* dst); extern grpc_slice_buffer_move_into_type grpc_slice_buffer_move_into_import; #define grpc_slice_buffer_move_into grpc_slice_buffer_move_into_import -typedef void (*grpc_slice_buffer_trim_end_type)(grpc_slice_buffer* sb, size_t n, - grpc_slice_buffer* garbage); +typedef void(*grpc_slice_buffer_trim_end_type)(grpc_slice_buffer* sb, size_t n, grpc_slice_buffer* garbage); extern grpc_slice_buffer_trim_end_type grpc_slice_buffer_trim_end_import; #define grpc_slice_buffer_trim_end grpc_slice_buffer_trim_end_import -typedef void (*grpc_slice_buffer_move_first_type)(grpc_slice_buffer* src, - size_t n, - grpc_slice_buffer* dst); +typedef void(*grpc_slice_buffer_move_first_type)(grpc_slice_buffer* src, size_t n, grpc_slice_buffer* dst); extern grpc_slice_buffer_move_first_type grpc_slice_buffer_move_first_import; #define grpc_slice_buffer_move_first grpc_slice_buffer_move_first_import -typedef void (*grpc_slice_buffer_move_first_no_ref_type)( - grpc_slice_buffer* src, size_t n, grpc_slice_buffer* dst); -extern grpc_slice_buffer_move_first_no_ref_type - grpc_slice_buffer_move_first_no_ref_import; -#define grpc_slice_buffer_move_first_no_ref \ - grpc_slice_buffer_move_first_no_ref_import -typedef void (*grpc_slice_buffer_move_first_into_buffer_type)( - grpc_slice_buffer* src, size_t n, void* dst); -extern grpc_slice_buffer_move_first_into_buffer_type - grpc_slice_buffer_move_first_into_buffer_import; -#define grpc_slice_buffer_move_first_into_buffer \ - grpc_slice_buffer_move_first_into_buffer_import -typedef grpc_slice (*grpc_slice_buffer_take_first_type)(grpc_slice_buffer* sb); +typedef void(*grpc_slice_buffer_move_first_no_ref_type)(grpc_slice_buffer* src, size_t n, grpc_slice_buffer* dst); +extern grpc_slice_buffer_move_first_no_ref_type grpc_slice_buffer_move_first_no_ref_import; +#define grpc_slice_buffer_move_first_no_ref grpc_slice_buffer_move_first_no_ref_import +typedef void(*grpc_slice_buffer_move_first_into_buffer_type)(grpc_slice_buffer* src, size_t n, void* dst); +extern grpc_slice_buffer_move_first_into_buffer_type grpc_slice_buffer_move_first_into_buffer_import; +#define grpc_slice_buffer_move_first_into_buffer grpc_slice_buffer_move_first_into_buffer_import +typedef grpc_slice(*grpc_slice_buffer_take_first_type)(grpc_slice_buffer* sb); extern grpc_slice_buffer_take_first_type grpc_slice_buffer_take_first_import; #define grpc_slice_buffer_take_first grpc_slice_buffer_take_first_import -typedef void (*grpc_slice_buffer_undo_take_first_type)(grpc_slice_buffer* sb, - grpc_slice slice); -extern grpc_slice_buffer_undo_take_first_type - grpc_slice_buffer_undo_take_first_import; -#define grpc_slice_buffer_undo_take_first \ - grpc_slice_buffer_undo_take_first_import -typedef void* (*gpr_malloc_type)(size_t size); +typedef void(*grpc_slice_buffer_undo_take_first_type)(grpc_slice_buffer* sb, grpc_slice slice); +extern grpc_slice_buffer_undo_take_first_type grpc_slice_buffer_undo_take_first_import; +#define grpc_slice_buffer_undo_take_first grpc_slice_buffer_undo_take_first_import +typedef void*(*gpr_malloc_type)(size_t size); extern gpr_malloc_type gpr_malloc_import; #define gpr_malloc gpr_malloc_import -typedef void* (*gpr_zalloc_type)(size_t size); +typedef void*(*gpr_zalloc_type)(size_t size); extern gpr_zalloc_type gpr_zalloc_import; #define gpr_zalloc gpr_zalloc_import -typedef void (*gpr_free_type)(void* ptr); +typedef void(*gpr_free_type)(void* ptr); extern gpr_free_type gpr_free_import; #define gpr_free gpr_free_import -typedef void* (*gpr_realloc_type)(void* p, size_t size); +typedef void*(*gpr_realloc_type)(void* p, size_t size); extern gpr_realloc_type gpr_realloc_import; #define gpr_realloc gpr_realloc_import -typedef void* (*gpr_malloc_aligned_type)(size_t size, size_t alignment); +typedef void*(*gpr_malloc_aligned_type)(size_t size, size_t alignment); extern gpr_malloc_aligned_type gpr_malloc_aligned_import; #define gpr_malloc_aligned gpr_malloc_aligned_import -typedef void (*gpr_free_aligned_type)(void* ptr); +typedef void(*gpr_free_aligned_type)(void* ptr); extern gpr_free_aligned_type gpr_free_aligned_import; #define gpr_free_aligned gpr_free_aligned_import -typedef unsigned (*gpr_cpu_num_cores_type)(void); +typedef unsigned(*gpr_cpu_num_cores_type)(void); extern gpr_cpu_num_cores_type gpr_cpu_num_cores_import; #define gpr_cpu_num_cores gpr_cpu_num_cores_import -typedef unsigned (*gpr_cpu_current_cpu_type)(void); +typedef unsigned(*gpr_cpu_current_cpu_type)(void); extern gpr_cpu_current_cpu_type gpr_cpu_current_cpu_import; #define gpr_cpu_current_cpu gpr_cpu_current_cpu_import -typedef void (*grpc_absl_log_type)(const char* file, int line, - gpr_log_severity severity, - const char* message_str); +typedef void(*grpc_absl_log_type)(const char* file, int line, gpr_log_severity severity, const char* message_str); extern grpc_absl_log_type grpc_absl_log_import; #define grpc_absl_log grpc_absl_log_import -typedef void (*grpc_absl_log_int_type)(const char* file, int line, - gpr_log_severity severity, - const char* message_str, intptr_t num); +typedef void(*grpc_absl_log_int_type)(const char* file, int line, gpr_log_severity severity, const char* message_str, intptr_t num); extern grpc_absl_log_int_type grpc_absl_log_int_import; #define grpc_absl_log_int grpc_absl_log_int_import -typedef void (*grpc_absl_log_str_type)(const char* file, int line, - gpr_log_severity severity, - const char* message_str1, - const char* message_str2); +typedef void(*grpc_absl_log_str_type)(const char* file, int line, gpr_log_severity severity, const char* message_str1, const char* message_str2); extern grpc_absl_log_str_type grpc_absl_log_str_import; #define grpc_absl_log_str grpc_absl_log_str_import -typedef void (*gpr_log_verbosity_init_type)(void); +typedef void(*gpr_log_verbosity_init_type)(void); extern gpr_log_verbosity_init_type gpr_log_verbosity_init_import; #define gpr_log_verbosity_init gpr_log_verbosity_init_import -typedef char* (*gpr_format_message_type)(int messageid); +typedef char*(*gpr_format_message_type)(int messageid); extern gpr_format_message_type gpr_format_message_import; #define gpr_format_message gpr_format_message_import -typedef char* (*gpr_strdup_type)(const char* src); +typedef char*(*gpr_strdup_type)(const char* src); extern gpr_strdup_type gpr_strdup_import; #define gpr_strdup gpr_strdup_import -typedef int (*gpr_asprintf_type)(char** strp, const char* format, ...) - GPR_PRINT_FORMAT_CHECK(2, 3); +typedef int(*gpr_asprintf_type)(char** strp, const char* format, ...) GPR_PRINT_FORMAT_CHECK(2, 3); extern gpr_asprintf_type gpr_asprintf_import; #define gpr_asprintf gpr_asprintf_import -typedef void (*gpr_mu_init_type)(gpr_mu* mu); +typedef void(*gpr_mu_init_type)(gpr_mu* mu); extern gpr_mu_init_type gpr_mu_init_import; #define gpr_mu_init gpr_mu_init_import -typedef void (*gpr_mu_destroy_type)(gpr_mu* mu); +typedef void(*gpr_mu_destroy_type)(gpr_mu* mu); extern gpr_mu_destroy_type gpr_mu_destroy_import; #define gpr_mu_destroy gpr_mu_destroy_import -typedef void (*gpr_mu_lock_type)(gpr_mu* mu); +typedef void(*gpr_mu_lock_type)(gpr_mu* mu); extern gpr_mu_lock_type gpr_mu_lock_import; #define gpr_mu_lock gpr_mu_lock_import -typedef void (*gpr_mu_unlock_type)(gpr_mu* mu); +typedef void(*gpr_mu_unlock_type)(gpr_mu* mu); extern gpr_mu_unlock_type gpr_mu_unlock_import; #define gpr_mu_unlock gpr_mu_unlock_import -typedef int (*gpr_mu_trylock_type)(gpr_mu* mu); +typedef int(*gpr_mu_trylock_type)(gpr_mu* mu); extern gpr_mu_trylock_type gpr_mu_trylock_import; #define gpr_mu_trylock gpr_mu_trylock_import -typedef void (*gpr_cv_init_type)(gpr_cv* cv); +typedef void(*gpr_cv_init_type)(gpr_cv* cv); extern gpr_cv_init_type gpr_cv_init_import; #define gpr_cv_init gpr_cv_init_import -typedef void (*gpr_cv_destroy_type)(gpr_cv* cv); +typedef void(*gpr_cv_destroy_type)(gpr_cv* cv); extern gpr_cv_destroy_type gpr_cv_destroy_import; #define gpr_cv_destroy gpr_cv_destroy_import -typedef int (*gpr_cv_wait_type)(gpr_cv* cv, gpr_mu* mu, - gpr_timespec abs_deadline); +typedef int(*gpr_cv_wait_type)(gpr_cv* cv, gpr_mu* mu, gpr_timespec abs_deadline); extern gpr_cv_wait_type gpr_cv_wait_import; #define gpr_cv_wait gpr_cv_wait_import -typedef void (*gpr_cv_signal_type)(gpr_cv* cv); +typedef void(*gpr_cv_signal_type)(gpr_cv* cv); extern gpr_cv_signal_type gpr_cv_signal_import; #define gpr_cv_signal gpr_cv_signal_import -typedef void (*gpr_cv_broadcast_type)(gpr_cv* cv); +typedef void(*gpr_cv_broadcast_type)(gpr_cv* cv); extern gpr_cv_broadcast_type gpr_cv_broadcast_import; #define gpr_cv_broadcast gpr_cv_broadcast_import -typedef void (*gpr_once_init_type)(gpr_once* once, void (*init_function)(void)); +typedef void(*gpr_once_init_type)(gpr_once* once, void (*init_function)(void)); extern gpr_once_init_type gpr_once_init_import; #define gpr_once_init gpr_once_init_import -typedef void (*gpr_event_init_type)(gpr_event* ev); +typedef void(*gpr_event_init_type)(gpr_event* ev); extern gpr_event_init_type gpr_event_init_import; #define gpr_event_init gpr_event_init_import -typedef void (*gpr_event_set_type)(gpr_event* ev, void* value); +typedef void(*gpr_event_set_type)(gpr_event* ev, void* value); extern gpr_event_set_type gpr_event_set_import; #define gpr_event_set gpr_event_set_import -typedef void* (*gpr_event_get_type)(gpr_event* ev); +typedef void*(*gpr_event_get_type)(gpr_event* ev); extern gpr_event_get_type gpr_event_get_import; #define gpr_event_get gpr_event_get_import -typedef void* (*gpr_event_wait_type)(gpr_event* ev, gpr_timespec abs_deadline); +typedef void*(*gpr_event_wait_type)(gpr_event* ev, gpr_timespec abs_deadline); extern gpr_event_wait_type gpr_event_wait_import; #define gpr_event_wait gpr_event_wait_import -typedef void (*gpr_ref_init_type)(gpr_refcount* r, int n); +typedef void(*gpr_ref_init_type)(gpr_refcount* r, int n); extern gpr_ref_init_type gpr_ref_init_import; #define gpr_ref_init gpr_ref_init_import -typedef void (*gpr_ref_type)(gpr_refcount* r); +typedef void(*gpr_ref_type)(gpr_refcount* r); extern gpr_ref_type gpr_ref_import; #define gpr_ref gpr_ref_import -typedef void (*gpr_ref_non_zero_type)(gpr_refcount* r); +typedef void(*gpr_ref_non_zero_type)(gpr_refcount* r); extern gpr_ref_non_zero_type gpr_ref_non_zero_import; #define gpr_ref_non_zero gpr_ref_non_zero_import -typedef void (*gpr_refn_type)(gpr_refcount* r, int n); +typedef void(*gpr_refn_type)(gpr_refcount* r, int n); extern gpr_refn_type gpr_refn_import; #define gpr_refn gpr_refn_import -typedef int (*gpr_unref_type)(gpr_refcount* r); +typedef int(*gpr_unref_type)(gpr_refcount* r); extern gpr_unref_type gpr_unref_import; #define gpr_unref gpr_unref_import -typedef int (*gpr_ref_is_unique_type)(gpr_refcount* r); +typedef int(*gpr_ref_is_unique_type)(gpr_refcount* r); extern gpr_ref_is_unique_type gpr_ref_is_unique_import; #define gpr_ref_is_unique gpr_ref_is_unique_import -typedef void (*gpr_stats_init_type)(gpr_stats_counter* c, intptr_t n); +typedef void(*gpr_stats_init_type)(gpr_stats_counter* c, intptr_t n); extern gpr_stats_init_type gpr_stats_init_import; #define gpr_stats_init gpr_stats_init_import -typedef void (*gpr_stats_inc_type)(gpr_stats_counter* c, intptr_t inc); +typedef void(*gpr_stats_inc_type)(gpr_stats_counter* c, intptr_t inc); extern gpr_stats_inc_type gpr_stats_inc_import; #define gpr_stats_inc gpr_stats_inc_import -typedef intptr_t (*gpr_stats_read_type)(const gpr_stats_counter* c); +typedef intptr_t(*gpr_stats_read_type)(const gpr_stats_counter* c); extern gpr_stats_read_type gpr_stats_read_import; #define gpr_stats_read gpr_stats_read_import -typedef gpr_thd_id (*gpr_thd_currentid_type)(void); +typedef gpr_thd_id(*gpr_thd_currentid_type)(void); extern gpr_thd_currentid_type gpr_thd_currentid_import; #define gpr_thd_currentid gpr_thd_currentid_import -typedef gpr_timespec (*gpr_time_0_type)(gpr_clock_type type); +typedef gpr_timespec(*gpr_time_0_type)(gpr_clock_type type); extern gpr_time_0_type gpr_time_0_import; #define gpr_time_0 gpr_time_0_import -typedef gpr_timespec (*gpr_inf_future_type)(gpr_clock_type type); +typedef gpr_timespec(*gpr_inf_future_type)(gpr_clock_type type); extern gpr_inf_future_type gpr_inf_future_import; #define gpr_inf_future gpr_inf_future_import -typedef gpr_timespec (*gpr_inf_past_type)(gpr_clock_type type); +typedef gpr_timespec(*gpr_inf_past_type)(gpr_clock_type type); extern gpr_inf_past_type gpr_inf_past_import; #define gpr_inf_past gpr_inf_past_import -typedef void (*gpr_time_init_type)(void); +typedef void(*gpr_time_init_type)(void); extern gpr_time_init_type gpr_time_init_import; #define gpr_time_init gpr_time_init_import -typedef gpr_timespec (*gpr_now_type)(gpr_clock_type clock); +typedef gpr_timespec(*gpr_now_type)(gpr_clock_type clock); extern gpr_now_type gpr_now_import; #define gpr_now gpr_now_import -typedef gpr_timespec (*gpr_convert_clock_type_type)(gpr_timespec t, - gpr_clock_type clock_type); +typedef gpr_timespec(*gpr_convert_clock_type_type)(gpr_timespec t, gpr_clock_type clock_type); extern gpr_convert_clock_type_type gpr_convert_clock_type_import; #define gpr_convert_clock_type gpr_convert_clock_type_import -typedef int (*gpr_time_cmp_type)(gpr_timespec a, gpr_timespec b); +typedef int(*gpr_time_cmp_type)(gpr_timespec a, gpr_timespec b); extern gpr_time_cmp_type gpr_time_cmp_import; #define gpr_time_cmp gpr_time_cmp_import -typedef gpr_timespec (*gpr_time_max_type)(gpr_timespec a, gpr_timespec b); +typedef gpr_timespec(*gpr_time_max_type)(gpr_timespec a, gpr_timespec b); extern gpr_time_max_type gpr_time_max_import; #define gpr_time_max gpr_time_max_import -typedef gpr_timespec (*gpr_time_min_type)(gpr_timespec a, gpr_timespec b); +typedef gpr_timespec(*gpr_time_min_type)(gpr_timespec a, gpr_timespec b); extern gpr_time_min_type gpr_time_min_import; #define gpr_time_min gpr_time_min_import -typedef gpr_timespec (*gpr_time_add_type)(gpr_timespec a, gpr_timespec b); +typedef gpr_timespec(*gpr_time_add_type)(gpr_timespec a, gpr_timespec b); extern gpr_time_add_type gpr_time_add_import; #define gpr_time_add gpr_time_add_import -typedef gpr_timespec (*gpr_time_sub_type)(gpr_timespec a, gpr_timespec b); +typedef gpr_timespec(*gpr_time_sub_type)(gpr_timespec a, gpr_timespec b); extern gpr_time_sub_type gpr_time_sub_import; #define gpr_time_sub gpr_time_sub_import -typedef gpr_timespec (*gpr_time_from_micros_type)(int64_t us, - gpr_clock_type clock_type); +typedef gpr_timespec(*gpr_time_from_micros_type)(int64_t us, gpr_clock_type clock_type); extern gpr_time_from_micros_type gpr_time_from_micros_import; #define gpr_time_from_micros gpr_time_from_micros_import -typedef gpr_timespec (*gpr_time_from_nanos_type)(int64_t ns, - gpr_clock_type clock_type); +typedef gpr_timespec(*gpr_time_from_nanos_type)(int64_t ns, gpr_clock_type clock_type); extern gpr_time_from_nanos_type gpr_time_from_nanos_import; #define gpr_time_from_nanos gpr_time_from_nanos_import -typedef gpr_timespec (*gpr_time_from_millis_type)(int64_t ms, - gpr_clock_type clock_type); +typedef gpr_timespec(*gpr_time_from_millis_type)(int64_t ms, gpr_clock_type clock_type); extern gpr_time_from_millis_type gpr_time_from_millis_import; #define gpr_time_from_millis gpr_time_from_millis_import -typedef gpr_timespec (*gpr_time_from_seconds_type)(int64_t s, - gpr_clock_type clock_type); +typedef gpr_timespec(*gpr_time_from_seconds_type)(int64_t s, gpr_clock_type clock_type); extern gpr_time_from_seconds_type gpr_time_from_seconds_import; #define gpr_time_from_seconds gpr_time_from_seconds_import -typedef gpr_timespec (*gpr_time_from_minutes_type)(int64_t m, - gpr_clock_type clock_type); +typedef gpr_timespec(*gpr_time_from_minutes_type)(int64_t m, gpr_clock_type clock_type); extern gpr_time_from_minutes_type gpr_time_from_minutes_import; #define gpr_time_from_minutes gpr_time_from_minutes_import -typedef gpr_timespec (*gpr_time_from_hours_type)(int64_t h, - gpr_clock_type clock_type); +typedef gpr_timespec(*gpr_time_from_hours_type)(int64_t h, gpr_clock_type clock_type); extern gpr_time_from_hours_type gpr_time_from_hours_import; #define gpr_time_from_hours gpr_time_from_hours_import -typedef int32_t (*gpr_time_to_millis_type)(gpr_timespec timespec); +typedef int32_t(*gpr_time_to_millis_type)(gpr_timespec timespec); extern gpr_time_to_millis_type gpr_time_to_millis_import; #define gpr_time_to_millis gpr_time_to_millis_import -typedef int (*gpr_time_similar_type)(gpr_timespec a, gpr_timespec b, - gpr_timespec threshold); +typedef int(*gpr_time_similar_type)(gpr_timespec a, gpr_timespec b, gpr_timespec threshold); extern gpr_time_similar_type gpr_time_similar_import; #define gpr_time_similar gpr_time_similar_import -typedef void (*gpr_sleep_until_type)(gpr_timespec until); +typedef void(*gpr_sleep_until_type)(gpr_timespec until); extern gpr_sleep_until_type gpr_sleep_until_import; #define gpr_sleep_until gpr_sleep_until_import -typedef double (*gpr_timespec_to_micros_type)(gpr_timespec t); +typedef double(*gpr_timespec_to_micros_type)(gpr_timespec t); extern gpr_timespec_to_micros_type gpr_timespec_to_micros_import; #define gpr_timespec_to_micros gpr_timespec_to_micros_import diff --git a/src/ruby/ext/grpc/rb_server.h b/src/ruby/ext/grpc/rb_server.h index ab50bdca92f91..84e1e61b99484 100644 --- a/src/ruby/ext/grpc/rb_server.h +++ b/src/ruby/ext/grpc/rb_server.h @@ -19,9 +19,10 @@ #ifndef GRPC_RB_SERVER_H_ #define GRPC_RB_SERVER_H_ -#include #include +#include + /* Initializes the Server class. */ void Init_grpc_server(); diff --git a/src/ruby/ext/grpc/rb_server_credentials.h b/src/ruby/ext/grpc/rb_server_credentials.h index ca96aef6155c3..35db1ed328fce 100644 --- a/src/ruby/ext/grpc/rb_server_credentials.h +++ b/src/ruby/ext/grpc/rb_server_credentials.h @@ -19,9 +19,10 @@ #ifndef GRPC_RB_SERVER_CREDENTIALS_H_ #define GRPC_RB_SERVER_CREDENTIALS_H_ +#include + #include #include -#include #include /* Initializes the ruby ServerCredentials class. */ diff --git a/src/ruby/ext/grpc/rb_xds_channel_credentials.h b/src/ruby/ext/grpc/rb_xds_channel_credentials.h index 2dc655e0b9664..a66f974413b65 100644 --- a/src/ruby/ext/grpc/rb_xds_channel_credentials.h +++ b/src/ruby/ext/grpc/rb_xds_channel_credentials.h @@ -19,8 +19,9 @@ #ifndef GRPC_RB_XDS_CHANNEL_CREDENTIALS_H_ #define GRPC_RB_XDS_CHANNEL_CREDENTIALS_H_ -#include #include + +#include #include /* Initializes the ruby ChannelCredentials class. */ diff --git a/src/ruby/ext/grpc/rb_xds_server_credentials.h b/src/ruby/ext/grpc/rb_xds_server_credentials.h index 40f3e64836a3f..59de9824a639f 100644 --- a/src/ruby/ext/grpc/rb_xds_server_credentials.h +++ b/src/ruby/ext/grpc/rb_xds_server_credentials.h @@ -19,9 +19,10 @@ #ifndef GRPC_RB_XDS_SERVER_CREDENTIALS_H_ #define GRPC_RB_XDS_SERVER_CREDENTIALS_H_ +#include + #include #include -#include #include /* Initializes the ruby XdsServerCredentials class. */ diff --git a/test/core/address_utils/parse_address_test.cc b/test/core/address_utils/parse_address_test.cc index 5ffb373dafb80..3bc09f0490ab6 100644 --- a/test/core/address_utils/parse_address_test.cc +++ b/test/core/address_utils/parse_address_test.cc @@ -36,15 +36,15 @@ #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/match.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/port.h" #include "src/core/lib/iomgr/sockaddr.h" #include "src/core/lib/iomgr/socket_utils.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/match.h" #ifdef GRPC_HAVE_UNIX_SOCKET diff --git a/test/core/address_utils/parse_address_with_named_scope_id_test.cc b/test/core/address_utils/parse_address_with_named_scope_id_test.cc index bf57476607cbf..0924eb2b33f78 100644 --- a/test/core/address_utils/parse_address_with_named_scope_id_test.cc +++ b/test/core/address_utils/parse_address_with_named_scope_id_test.cc @@ -29,6 +29,11 @@ #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/resolved_address.h" @@ -37,11 +42,6 @@ #include "src/core/util/host_port.h" #include "src/core/util/uri.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" static void test_grpc_parse_ipv6_parity_with_getaddrinfo( const char* target, const struct sockaddr_in6 result_from_getaddrinfo) { diff --git a/test/core/address_utils/sockaddr_utils_fuzzer_test.cc b/test/core/address_utils/sockaddr_utils_fuzzer_test.cc index 65605383255bd..8f645c1a1f26f 100644 --- a/test/core/address_utils/sockaddr_utils_fuzzer_test.cc +++ b/test/core/address_utils/sockaddr_utils_fuzzer_test.cc @@ -20,13 +20,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/statusor.h" +#include "fuzztest/fuzztest.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/iomgr/resolve_address.h" #include "src/core/lib/iomgr/resolved_address.h" #include "src/core/util/uri.h" -#include "fuzztest/fuzztest.h" -#include "absl/log/check.h" -#include "absl/status/statusor.h" using fuzztest::Arbitrary; using fuzztest::VectorOf; diff --git a/test/core/address_utils/sockaddr_utils_test.cc b/test/core/address_utils/sockaddr_utils_test.cc index 7fd6805d79a98..234e4fe989662 100644 --- a/test/core/address_utils/sockaddr_utils_test.cc +++ b/test/core/address_utils/sockaddr_utils_test.cc @@ -21,12 +21,12 @@ #include #include -#include "src/core/lib/iomgr/port.h" -#include "src/core/lib/iomgr/resolved_address.h" -#include "gtest/gtest.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" +#include "gtest/gtest.h" +#include "src/core/lib/iomgr/port.h" +#include "src/core/lib/iomgr/resolved_address.h" #ifdef GRPC_HAVE_UNIX_SOCKET #ifdef GPR_WINDOWS // clang-format off @@ -40,11 +40,11 @@ #include +#include "absl/log/check.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/iomgr/sockaddr.h" #include "src/core/lib/iomgr/socket_utils.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" namespace { diff --git a/test/core/bad_client/bad_client.cc b/test/core/bad_client/bad_client.cc index 97c96e5b15a76..b6e78983ad99a 100644 --- a/test/core/bad_client/bad_client.cc +++ b/test/core/bad_client/bad_client.cc @@ -26,6 +26,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/channelz/channelz.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/chttp2/transport/chttp2_transport.h" @@ -43,8 +45,6 @@ #include "src/core/util/thd.h" #include "test/core/end2end/cq_verifier.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" -#include "absl/log/log.h" #define MIN_HTTP2_FRAME_SIZE 9 diff --git a/test/core/bad_client/tests/bad_streaming_id.cc b/test/core/bad_client/tests/bad_streaming_id.cc index f029eb5a73f8b..898f2a905f5d2 100644 --- a/test/core/bad_client/tests/bad_streaming_id.cc +++ b/test/core/bad_client/tests/bad_streaming_id.cc @@ -20,11 +20,11 @@ #include +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "src/core/server/server.h" #include "test/core/bad_client/bad_client.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" #define HEADER_FRAME_ID_1 \ "\x00\x00\xc9\x01\x05\x00\x00\x00\x01" /* headers: generated from \ diff --git a/test/core/bad_client/tests/badreq.cc b/test/core/bad_client/tests/badreq.cc index b8ffa6fefcb58..7cfa2ace38541 100644 --- a/test/core/bad_client/tests/badreq.cc +++ b/test/core/bad_client/tests/badreq.cc @@ -18,10 +18,10 @@ #include +#include "absl/log/check.h" #include "src/core/server/server.h" #include "test/core/bad_client/bad_client.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" #define PFX_STR \ "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" \ diff --git a/test/core/bad_client/tests/connection_prefix.cc b/test/core/bad_client/tests/connection_prefix.cc index 2e6e06725c9e9..c1c34a25d9489 100644 --- a/test/core/bad_client/tests/connection_prefix.cc +++ b/test/core/bad_client/tests/connection_prefix.cc @@ -18,10 +18,10 @@ #include +#include "absl/log/check.h" #include "src/core/server/server.h" #include "test/core/bad_client/bad_client.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" static void verifier(grpc_server* server, grpc_completion_queue* cq, void* /*registered_method*/) { diff --git a/test/core/bad_client/tests/duplicate_header.cc b/test/core/bad_client/tests/duplicate_header.cc index 3831abdd5e99c..919ae4eeefb59 100644 --- a/test/core/bad_client/tests/duplicate_header.cc +++ b/test/core/bad_client/tests/duplicate_header.cc @@ -21,11 +21,11 @@ #include #include +#include "absl/log/check.h" #include "src/core/util/time.h" #include "test/core/bad_client/bad_client.h" #include "test/core/end2end/cq_verifier.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" #define PFX_STR \ "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" \ diff --git a/test/core/bad_client/tests/head_of_line_blocking.cc b/test/core/bad_client/tests/head_of_line_blocking.cc index be4542c2e5d35..bce31bc893d30 100644 --- a/test/core/bad_client/tests/head_of_line_blocking.cc +++ b/test/core/bad_client/tests/head_of_line_blocking.cc @@ -25,10 +25,10 @@ #include +#include "absl/log/check.h" #include "test/core/bad_client/bad_client.h" #include "test/core/end2end/cq_verifier.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" static const char prefix[] = "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" diff --git a/test/core/bad_client/tests/headers.cc b/test/core/bad_client/tests/headers.cc index 9933784b717ec..468f19a34d1fc 100644 --- a/test/core/bad_client/tests/headers.cc +++ b/test/core/bad_client/tests/headers.cc @@ -18,10 +18,10 @@ #include +#include "absl/log/check.h" #include "src/core/server/server.h" #include "test/core/bad_client/bad_client.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" #define PFX_STR \ "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" \ diff --git a/test/core/bad_client/tests/initial_settings_frame.cc b/test/core/bad_client/tests/initial_settings_frame.cc index 1dc7a6ba44d75..ef317622c6203 100644 --- a/test/core/bad_client/tests/initial_settings_frame.cc +++ b/test/core/bad_client/tests/initial_settings_frame.cc @@ -19,13 +19,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/server/server.h" #include "test/core/bad_client/bad_client.h" #include "test/core/end2end/cq_verifier.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" -#include "absl/strings/str_cat.h" #define PFX_STR "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" #define ONE_SETTING_HDR "\x00\x00\x06\x04\x00\x00\x00\x00\x00" diff --git a/test/core/bad_client/tests/out_of_bounds.cc b/test/core/bad_client/tests/out_of_bounds.cc index f66c40984738a..e327b8aae75c6 100644 --- a/test/core/bad_client/tests/out_of_bounds.cc +++ b/test/core/bad_client/tests/out_of_bounds.cc @@ -20,11 +20,11 @@ #include +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "src/core/server/server.h" #include "test/core/bad_client/bad_client.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" #define APPEND_BUFFER(string, to_append) \ ((string).append((to_append), sizeof(to_append) - 1)) diff --git a/test/core/bad_client/tests/server_registered_method.cc b/test/core/bad_client/tests/server_registered_method.cc index 3fc1137944c5f..04adbc14a16b6 100644 --- a/test/core/bad_client/tests/server_registered_method.cc +++ b/test/core/bad_client/tests/server_registered_method.cc @@ -20,11 +20,11 @@ #include #include +#include "absl/log/check.h" #include "src/core/server/server.h" #include "test/core/bad_client/bad_client.h" #include "test/core/end2end/cq_verifier.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" #define PFX_STR \ "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" \ diff --git a/test/core/bad_client/tests/simple_request.cc b/test/core/bad_client/tests/simple_request.cc index 3a1e67efd5d52..3b9b385a94310 100644 --- a/test/core/bad_client/tests/simple_request.cc +++ b/test/core/bad_client/tests/simple_request.cc @@ -15,11 +15,11 @@ #include #include +#include "absl/log/check.h" #include "src/core/server/server.h" #include "test/core/bad_client/bad_client.h" #include "test/core/end2end/cq_verifier.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" #define PFX_STR \ "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" \ diff --git a/test/core/bad_client/tests/unknown_frame.cc b/test/core/bad_client/tests/unknown_frame.cc index 3a2b5b99b5e87..b309c3e0441a9 100644 --- a/test/core/bad_client/tests/unknown_frame.cc +++ b/test/core/bad_client/tests/unknown_frame.cc @@ -20,11 +20,11 @@ #include +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "src/core/server/server.h" #include "test/core/bad_client/bad_client.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" static void verifier(grpc_server* server, grpc_completion_queue* cq, void* /*registered_method*/) { diff --git a/test/core/bad_client/tests/window_overflow.cc b/test/core/bad_client/tests/window_overflow.cc index 73964f6d3f97f..6cf962bb42a82 100644 --- a/test/core/bad_client/tests/window_overflow.cc +++ b/test/core/bad_client/tests/window_overflow.cc @@ -19,10 +19,10 @@ #include +#include "absl/log/check.h" #include "src/core/server/server.h" #include "test/core/bad_client/bad_client.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" #define PFX_STR \ "\x00\x00\x00\x04\x01\x00\x00\x00\x00" \ diff --git a/test/core/bad_connection/close_fd_test.cc b/test/core/bad_connection/close_fd_test.cc index c74ca1a673948..258a4cbe30e78 100644 --- a/test/core/bad_connection/close_fd_test.cc +++ b/test/core/bad_connection/close_fd_test.cc @@ -28,6 +28,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" #include "src/core/channelz/channelz.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/endpoint.h" @@ -39,10 +43,6 @@ #include "src/core/lib/transport/transport.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" // This test won't work except with posix sockets enabled #ifdef GRPC_POSIX_SOCKET_TCP diff --git a/test/core/bad_ssl/bad_ssl_test.cc b/test/core/bad_ssl/bad_ssl_test.cc index 8a05388372626..d7a367c5868e8 100644 --- a/test/core/bad_ssl/bad_ssl_test.cc +++ b/test/core/bad_ssl/bad_ssl_test.cc @@ -31,13 +31,13 @@ #include +#include "absl/log/check.h" #include "src/core/util/env.h" #include "src/core/util/host_port.h" #include "src/core/util/subprocess.h" #include "test/core/end2end/cq_verifier.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" static void run_test(const char* target, size_t nops) { grpc_channel_credentials* ssl_creds = diff --git a/test/core/bad_ssl/server_common.cc b/test/core/bad_ssl/server_common.cc index c179bd93a6e24..a503b1dc835c9 100644 --- a/test/core/bad_ssl/server_common.cc +++ b/test/core/bad_ssl/server_common.cc @@ -21,10 +21,10 @@ #include #include -#include "test/core/test_util/cmdline.h" -#include "test/core/test_util/test_config.h" #include "absl/log/check.h" #include "absl/log/log.h" +#include "test/core/test_util/cmdline.h" +#include "test/core/test_util/test_config.h" // Common server implementation details for all servers in servers/. // There's nothing *wrong* with these servers per-se, but they are diff --git a/test/core/bad_ssl/servers/alpn.cc b/test/core/bad_ssl/servers/alpn.cc index 1c41032879163..af6bebf6213c1 100644 --- a/test/core/bad_ssl/servers/alpn.cc +++ b/test/core/bad_ssl/servers/alpn.cc @@ -24,11 +24,11 @@ #include #include +#include "absl/log/check.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/useful.h" #include "test/core/bad_ssl/server_common.h" #include "test/core/test_util/tls_utils.h" -#include "absl/log/check.h" #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" #define SERVER_CERT_PATH "src/core/tsi/test_creds/server1.pem" diff --git a/test/core/bad_ssl/servers/cert.cc b/test/core/bad_ssl/servers/cert.cc index a0249725d371e..e7f37f0a011de 100644 --- a/test/core/bad_ssl/servers/cert.cc +++ b/test/core/bad_ssl/servers/cert.cc @@ -21,10 +21,10 @@ #include #include +#include "absl/log/check.h" #include "src/core/lib/iomgr/error.h" #include "test/core/bad_ssl/server_common.h" #include "test/core/test_util/tls_utils.h" -#include "absl/log/check.h" // This server will present an untrusted cert to the connecting client, // causing the SSL handshake to fail diff --git a/test/core/call/batch_builder.h b/test/core/call/batch_builder.h index 082a20a1f5c39..f2b5b0214b886 100644 --- a/test/core/call/batch_builder.h +++ b/test/core/call/batch_builder.h @@ -15,10 +15,10 @@ #ifndef GRPC_TEST_CORE_CALL_BATCH_BUILDER_H #define GRPC_TEST_CORE_CALL_BATCH_BUILDER_H +#include "absl/strings/str_cat.h" +#include "gtest/gtest.h" #include "src/core/lib/slice/slice.h" #include "test/core/end2end/cq_verifier.h" -#include "gtest/gtest.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/test/core/call/call_arena_allocator_test.cc b/test/core/call/call_arena_allocator_test.cc index de3f31fc6e224..4b340075bcb5a 100644 --- a/test/core/call/call_arena_allocator_test.cc +++ b/test/core/call/call_arena_allocator_test.cc @@ -30,14 +30,14 @@ #include #include +#include "absl/strings/str_join.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/thd.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/str_join.h" namespace grpc_core { diff --git a/test/core/call/call_filters_test.cc b/test/core/call/call_filters_test.cc index 4fb521e513dc0..9fa616c5414c9 100644 --- a/test/core/call/call_filters_test.cc +++ b/test/core/call/call_filters_test.cc @@ -16,9 +16,9 @@ #include -#include "test/core/promise/poll_matcher.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "test/core/promise/poll_matcher.h" using testing::Mock; using testing::StrictMock; diff --git a/test/core/call/call_finalization_test.cc b/test/core/call/call_finalization_test.cc index 91a22606b69e2..3aac566ed4eb3 100644 --- a/test/core/call/call_finalization_test.cc +++ b/test/core/call/call_finalization_test.cc @@ -19,12 +19,12 @@ #include #include +#include "absl/strings/str_cat.h" +#include "gtest/gtest.h" #include "src/core/lib/resource_quota/memory_quota.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/promise/test_context.h" -#include "gtest/gtest.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/test/core/call/call_spine_test.cc b/test/core/call/call_spine_test.cc index 74a64f0baa0eb..eca4eff9a0dea 100644 --- a/test/core/call/call_spine_test.cc +++ b/test/core/call/call_spine_test.cc @@ -20,12 +20,12 @@ #include #include +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/metadata.h" #include "src/core/lib/resource_quota/arena.h" #include "test/core/call/yodel/yodel_test.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/test/core/call/call_state_test.cc b/test/core/call/call_state_test.cc index d976e8472c3eb..0f66d7c919622 100644 --- a/test/core/call/call_state_test.cc +++ b/test/core/call/call_state_test.cc @@ -16,9 +16,9 @@ #include -#include "test/core/promise/poll_matcher.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "test/core/promise/poll_matcher.h" using testing::Mock; using testing::StrictMock; diff --git a/test/core/call/client_call_test.cc b/test/core/call/client_call_test.cc index 3f65356670973..773319141c424 100644 --- a/test/core/call/client_call_test.cc +++ b/test/core/call/client_call_test.cc @@ -17,12 +17,12 @@ #include #include +#include "absl/status/status.h" #include "src/core/call/metadata.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/util/debug_location.h" #include "test/core/call/batch_builder.h" #include "test/core/call/yodel/yodel_test.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/test/core/call/filter_fusion_test.cc b/test/core/call/filter_fusion_test.cc index 52331187d7fcc..6e790b78c7482 100644 --- a/test/core/call/filter_fusion_test.cc +++ b/test/core/call/filter_fusion_test.cc @@ -18,11 +18,11 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/promise_based_filter.h" #include "src/core/lib/transport/call_final_info.h" #include "src/core/lib/transport/transport.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" using testing::ElementsAre; diff --git a/test/core/call/interception_chain_test.cc b/test/core/call/interception_chain_test.cc index ddc2fb6e9d0e4..902a8fa69a1a1 100644 --- a/test/core/call/interception_chain_test.cc +++ b/test/core/call/interception_chain_test.cc @@ -19,12 +19,12 @@ #include +#include "absl/log/log.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/promise_based_filter.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "test/core/promise/poll_matcher.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" namespace grpc_core { namespace { diff --git a/test/core/call/metadata_map_test.cc b/test/core/call/metadata_map_test.cc index 56f94612e84d2..df8783d1744f3 100644 --- a/test/core/call/metadata_map_test.cc +++ b/test/core/call/metadata_map_test.cc @@ -22,6 +22,10 @@ #include #include +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_split.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/lib/resource_quota/memory_quota.h" @@ -30,10 +34,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_split.h" namespace grpc_core { namespace testing { diff --git a/test/core/call/parsed_metadata_test.cc b/test/core/call/parsed_metadata_test.cc index 26bc9f0a928d7..259fdbbe63001 100644 --- a/test/core/call/parsed_metadata_test.cc +++ b/test/core/call/parsed_metadata_test.cc @@ -18,12 +18,12 @@ #include -#include "src/core/call/metadata_batch.h" -#include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "absl/log/check.h" #include "absl/strings/numbers.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" +#include "src/core/call/metadata_batch.h" +#include "test/core/test_util/test_config.h" namespace grpc_core { namespace testing { diff --git a/test/core/call/request_buffer_test.cc b/test/core/call/request_buffer_test.cc index cc971eea9e401..64596e29ad6aa 100644 --- a/test/core/call/request_buffer_test.cc +++ b/test/core/call/request_buffer_test.cc @@ -14,8 +14,8 @@ #include "src/core/call/request_buffer.h" -#include "test/core/promise/poll_matcher.h" #include "gtest/gtest.h" +#include "test/core/promise/poll_matcher.h" using testing::Mock; using testing::StrictMock; diff --git a/test/core/call/server_call_test.cc b/test/core/call/server_call_test.cc index 8daef0e6efd44..4bd74a1ebef2a 100644 --- a/test/core/call/server_call_test.cc +++ b/test/core/call/server_call_test.cc @@ -19,13 +19,13 @@ #include +#include "absl/status/status.h" #include "src/core/channelz/channelz.h" #include "src/core/lib/promise/promise.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/telemetry/call_tracer.h" #include "test/core/call/batch_builder.h" #include "test/core/call/yodel/yodel_test.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/test/core/call/yodel/yodel_test.cc b/test/core/call/yodel/yodel_test.cc index 0bea5135e100d..626893ff229e0 100644 --- a/test/core/call/yodel/yodel_test.cc +++ b/test/core/call/yodel/yodel_test.cc @@ -16,6 +16,7 @@ #include +#include "absl/random/random.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/timer_manager.h" @@ -23,7 +24,6 @@ #include "src/core/util/wait_for_single_owner.h" #include "test/core/event_engine/event_engine_test_utils.h" #include "test/core/test_util/build.h" -#include "absl/random/random.h" namespace grpc_core { namespace yodel_detail { diff --git a/test/core/call/yodel/yodel_test.h b/test/core/call/yodel/yodel_test.h index 0581c7c1b3df9..a5153c757d1a7 100644 --- a/test/core/call/yodel/yodel_test.h +++ b/test/core/call/yodel/yodel_test.h @@ -15,8 +15,15 @@ #ifndef GRPC_TEST_CORE_CALL_YODEL_YODEL_TEST_H #define GRPC_TEST_CORE_CALL_YODEL_YODEL_TEST_H +#include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/log.h" +#include "absl/random/bit_gen_ref.h" +#include "absl/strings/string_view.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/call/call_arena_allocator.h" #include "src/core/call/call_spine.h" #include "src/core/call/metadata.h" @@ -31,13 +38,6 @@ #include "test/core/test_util/fuzz_config_vars_helpers.h" #include "test/core/test_util/proto_bit_gen.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/log.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/strings/string_view.h" -#include namespace grpc_core { diff --git a/test/core/channel/channel_args_test.cc b/test/core/channel/channel_args_test.cc index 12ffdb5fc69d1..9faa700a2162b 100644 --- a/test/core/channel/channel_args_test.cc +++ b/test/core/channel/channel_args_test.cc @@ -25,15 +25,15 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/notification.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/useful.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/test/core/channel/channel_stack_builder_test.cc b/test/core/channel/channel_stack_builder_test.cc index d4dc94caebd84..1c6ed8995f0c5 100644 --- a/test/core/channel/channel_stack_builder_test.cc +++ b/test/core/channel/channel_stack_builder_test.cc @@ -24,14 +24,14 @@ #include #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_stack.h" #include "src/core/lib/channel/channel_stack_builder_impl.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { namespace testing { diff --git a/test/core/channel/channel_stack_test.cc b/test/core/channel/channel_stack_test.cc index 81e1e056501c9..9c0247e6e1867 100644 --- a/test/core/channel/channel_stack_test.cc +++ b/test/core/channel/channel_stack_test.cc @@ -22,14 +22,14 @@ #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_args_preconditioning.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/status_helper.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" static grpc_error_handle channel_init_func(grpc_channel_element* elem, grpc_channel_element_args* args) { diff --git a/test/core/channel/minimal_stack_is_minimal_test.cc b/test/core/channel/minimal_stack_is_minimal_test.cc index e81debdf3e007..845199fa8e397 100644 --- a/test/core/channel/minimal_stack_is_minimal_test.cc +++ b/test/core/channel/minimal_stack_is_minimal_test.cc @@ -37,6 +37,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/memory/memory.h" +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_stack.h" @@ -49,10 +53,6 @@ #include "src/core/lib/surface/channel_stack_type.h" #include "src/core/lib/transport/transport.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/memory/memory.h" -#include "absl/strings/string_view.h" namespace { class FakeTransport final : public grpc_core::Transport { diff --git a/test/core/channel/server_call_tracer_factory_test.cc b/test/core/channel/server_call_tracer_factory_test.cc index 2915fe556ed50..c38b9dd737c2c 100644 --- a/test/core/channel/server_call_tracer_factory_test.cc +++ b/test/core/channel/server_call_tracer_factory_test.cc @@ -14,11 +14,11 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/telemetry/call_tracer.h" #include "src/core/util/crash.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/channel/union_with_test.cc b/test/core/channel/union_with_test.cc index df0d012ead581..34b827f979683 100644 --- a/test/core/channel/union_with_test.cc +++ b/test/core/channel/union_with_test.cc @@ -19,9 +19,9 @@ #include #include -#include "src/core/lib/channel/channel_args.h" -#include "gtest/gtest.h" #include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" +#include "src/core/lib/channel/channel_args.h" namespace grpc_core { diff --git a/test/core/channelz/channel_trace_test.cc b/test/core/channelz/channel_trace_test.cc index 9e97f62cbb36a..72834781eb5f3 100644 --- a/test/core/channelz/channel_trace_test.cc +++ b/test/core/channelz/channel_trace_test.cc @@ -28,6 +28,9 @@ #include #include +#include "absl/synchronization/notification.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/channelz/channelz.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -35,9 +38,6 @@ #include "src/core/util/json/json_writer.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/channel_trace_proto_helper.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/synchronization/notification.h" namespace grpc_core { namespace channelz { diff --git a/test/core/channelz/channelz_registry_test.cc b/test/core/channelz/channelz_registry_test.cc index dedbfdb230daf..3dbd7a80b9e12 100644 --- a/test/core/channelz/channelz_registry_test.cc +++ b/test/core/channelz/channelz_registry_test.cc @@ -23,9 +23,9 @@ #include #include +#include "gtest/gtest.h" #include "src/core/channelz/channelz.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc_core { namespace channelz { diff --git a/test/core/channelz/channelz_test.cc b/test/core/channelz/channelz_test.cc index 6069a6d6b2e98..15cffc83c9ee0 100644 --- a/test/core/channelz/channelz_test.cc +++ b/test/core/channelz/channelz_test.cc @@ -34,6 +34,9 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "gtest/gtest.h" #include "src/core/channelz/channelz_registry.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/event_engine/default_event_engine.h" @@ -49,9 +52,6 @@ #include "test/core/event_engine/event_engine_test_utils.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/channel_trace_proto_helper.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" using grpc_event_engine::experimental::GetDefaultEventEngine; diff --git a/test/core/channelz/ztrace_collector_test.cc b/test/core/channelz/ztrace_collector_test.cc index c005638f300f5..1d2cbb48add0d 100644 --- a/test/core/channelz/ztrace_collector_test.cc +++ b/test/core/channelz/ztrace_collector_test.cc @@ -16,8 +16,8 @@ #include -#include "src/core/util/notification.h" #include "gtest/gtest.h" +#include "src/core/util/notification.h" namespace grpc_core::channelz { diff --git a/test/core/client_channel/bm_client_channel.cc b/test/core/client_channel/bm_client_channel.cc index 6a68d0f96d664..d845a3b804026 100644 --- a/test/core/client_channel/bm_client_channel.cc +++ b/test/core/client_channel/bm_client_channel.cc @@ -15,11 +15,11 @@ #include #include +#include "absl/memory/memory.h" +#include "absl/strings/string_view.h" #include "src/core/client_channel/client_channel.h" #include "src/core/lib/address_utils/parse_address.h" #include "test/core/call/call_spine_benchmarks.h" -#include "absl/memory/memory.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/test/core/client_channel/bm_load_balanced_call_destination.cc b/test/core/client_channel/bm_load_balanced_call_destination.cc index 12401ef3d2299..6a2df1e2bc954 100644 --- a/test/core/client_channel/bm_load_balanced_call_destination.cc +++ b/test/core/client_channel/bm_load_balanced_call_destination.cc @@ -15,11 +15,11 @@ #include #include +#include "absl/memory/memory.h" +#include "absl/strings/string_view.h" #include "src/core/client_channel/load_balanced_call_destination.h" #include "src/core/lib/address_utils/parse_address.h" #include "test/core/call/call_spine_benchmarks.h" -#include "absl/memory/memory.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace { diff --git a/test/core/client_channel/client_channel_service_config_test.cc b/test/core/client_channel/client_channel_service_config_test.cc index 5b7a2be4f6f9e..05cb285b08678 100644 --- a/test/core/client_channel/client_channel_service_config_test.cc +++ b/test/core/client_channel/client_channel_service_config_test.cc @@ -19,6 +19,9 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/service_config/service_config.h" @@ -26,9 +29,6 @@ #include "src/core/service_config/service_config_parser.h" #include "src/core/util/time.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace testing { diff --git a/test/core/client_channel/client_channel_test.cc b/test/core/client_channel/client_channel_test.cc index b7b55369533df..c4d8a34fac360 100644 --- a/test/core/client_channel/client_channel_test.cc +++ b/test/core/client_channel/client_channel_test.cc @@ -19,14 +19,14 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/channel/promise_based_filter.h" #include "src/core/service_config/service_config_impl.h" #include "test/core/call/yodel/yodel_test.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/test/core/client_channel/connected_subchannel_test.cc b/test/core/client_channel/connected_subchannel_test.cc index 4bbd4380ad4df..c567ca4a2e9d8 100644 --- a/test/core/client_channel/connected_subchannel_test.cc +++ b/test/core/client_channel/connected_subchannel_test.cc @@ -17,14 +17,14 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/client_channel/client_channel.h" #include "src/core/client_channel/local_subchannel_pool.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/address_utils/parse_address.h" #include "test/core/call/yodel/yodel_test.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/test/core/client_channel/lb_metadata_test.cc b/test/core/client_channel/lb_metadata_test.cc index 2fb538fe63024..8221a2ea34eb2 100644 --- a/test/core/client_channel/lb_metadata_test.cc +++ b/test/core/client_channel/lb_metadata_test.cc @@ -18,11 +18,11 @@ #include +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/slice/slice.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace testing { diff --git a/test/core/client_channel/load_balanced_call_destination_test.cc b/test/core/client_channel/load_balanced_call_destination_test.cc index ed15d0e2d6a23..d088c5ebca9c0 100644 --- a/test/core/client_channel/load_balanced_call_destination_test.cc +++ b/test/core/client_channel/load_balanced_call_destination_test.cc @@ -20,10 +20,10 @@ #include #include -#include "test/core/call/yodel/yodel_test.h" +#include "absl/strings/string_view.h" #include "gmock/gmock.h" #include "gtest/gtest.h" -#include "absl/strings/string_view.h" +#include "test/core/call/yodel/yodel_test.h" using testing::StrictMock; diff --git a/test/core/client_channel/retry_interceptor_test.cc b/test/core/client_channel/retry_interceptor_test.cc index 4cf7d2638cd72..5b6bff24db8e1 100644 --- a/test/core/client_channel/retry_interceptor_test.cc +++ b/test/core/client_channel/retry_interceptor_test.cc @@ -20,11 +20,11 @@ #include #include -#include "src/core/lib/resource_quota/resource_quota.h" -#include "test/core/call/yodel/yodel_test.h" +#include "absl/strings/string_view.h" #include "gmock/gmock.h" #include "gtest/gtest.h" -#include "absl/strings/string_view.h" +#include "src/core/lib/resource_quota/resource_quota.h" +#include "test/core/call/yodel/yodel_test.h" namespace grpc_core { diff --git a/test/core/client_channel/retry_service_config_test.cc b/test/core/client_channel/retry_service_config_test.cc index 90ed981a34ae4..0a6c1d9f6905f 100644 --- a/test/core/client_channel/retry_service_config_test.cc +++ b/test/core/client_channel/retry_service_config_test.cc @@ -21,6 +21,9 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/service_config/service_config.h" @@ -29,9 +32,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace testing { diff --git a/test/core/client_channel/retry_state_test.cc b/test/core/client_channel/retry_state_test.cc index e08a282ef5973..69293ad1efcb4 100644 --- a/test/core/client_channel/retry_state_test.cc +++ b/test/core/client_channel/retry_state_test.cc @@ -22,10 +22,10 @@ #include #include +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/client_channel/retry_interceptor.h" #include "src/core/util/json/json_reader.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" using fuzztest::Arbitrary; using fuzztest::ElementOf; diff --git a/test/core/client_channel/retry_throttle_test.cc b/test/core/client_channel/retry_throttle_test.cc index f01e54a98ea84..6c8898fa09346 100644 --- a/test/core/client_channel/retry_throttle_test.cc +++ b/test/core/client_channel/retry_throttle_test.cc @@ -18,8 +18,8 @@ #include "src/core/client_channel/retry_throttle.h" -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc_core { namespace internal { diff --git a/test/core/client_channel/subchannel_args_test.cc b/test/core/client_channel/subchannel_args_test.cc index 0ae4d83ccd10d..0ce9a36a61231 100644 --- a/test/core/client_channel/subchannel_args_test.cc +++ b/test/core/client_channel/subchannel_args_test.cc @@ -20,12 +20,12 @@ #include #include +#include "gtest/gtest.h" #include "src/core/client_channel/subchannel.h" #include "src/core/client_channel/subchannel_pool_interface.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/resolver/endpoint_addresses.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc_core { namespace testing { diff --git a/test/core/compression/compression_test.cc b/test/core/compression/compression_test.cc index 5966565d292a1..09a84548dd694 100644 --- a/test/core/compression/compression_test.cc +++ b/test/core/compression/compression_test.cc @@ -23,10 +23,10 @@ #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/util/useful.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" TEST(CompressionTest, CompressionAlgorithmParse) { size_t i; diff --git a/test/core/compression/message_compress_fuzzer.cc b/test/core/compression/message_compress_fuzzer.cc index 57d0029e826bf..b5c1b3cfcf847 100644 --- a/test/core/compression/message_compress_fuzzer.cc +++ b/test/core/compression/message_compress_fuzzer.cc @@ -25,8 +25,8 @@ #include #include -#include "src/core/lib/compression/message_compress.h" #include "fuzztest/fuzztest.h" +#include "src/core/lib/compression/message_compress.h" using fuzztest::Arbitrary; using fuzztest::ElementOf; diff --git a/test/core/compression/message_compress_test.cc b/test/core/compression/message_compress_test.cc index 124e97440e513..af251beb0d89b 100644 --- a/test/core/compression/message_compress_test.cc +++ b/test/core/compression/message_compress_test.cc @@ -26,12 +26,12 @@ #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/useful.h" #include "test/core/test_util/slice_splitter.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" typedef enum { ONE_A = 0, ONE_KB_A, ONE_MB_A, TEST_VALUE_COUNT } test_value; diff --git a/test/core/compression/message_decompress_fuzzer.cc b/test/core/compression/message_decompress_fuzzer.cc index 5cd27d09adc82..55c146c36d0db 100644 --- a/test/core/compression/message_decompress_fuzzer.cc +++ b/test/core/compression/message_decompress_fuzzer.cc @@ -25,8 +25,8 @@ #include #include -#include "src/core/lib/compression/message_compress.h" #include "fuzztest/fuzztest.h" +#include "src/core/lib/compression/message_compress.h" using fuzztest::Arbitrary; using fuzztest::ElementOf; diff --git a/test/core/config/load_config_test.cc b/test/core/config/load_config_test.cc index ed12dd9a175ec..081001144cbb5 100644 --- a/test/core/config/load_config_test.cc +++ b/test/core/config/load_config_test.cc @@ -14,9 +14,9 @@ #include "src/core/config/load_config.h" -#include "src/core/util/env.h" -#include "gtest/gtest.h" #include "absl/flags/flag.h" +#include "gtest/gtest.h" +#include "src/core/util/env.h" ABSL_FLAG(std::vector, comma_separated_strings, {}, ""); diff --git a/test/core/credentials/call/call_credentials_test.cc b/test/core/credentials/call/call_credentials_test.cc index c7172d6446289..b9724126d63a4 100644 --- a/test/core/credentials/call/call_credentials_test.cc +++ b/test/core/credentials/call/call_credentials_test.cc @@ -31,6 +31,13 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_replace.h" +#include "gmock/gmock.h" #include "src/core/credentials/call/composite/composite_call_credentials.h" #include "src/core/credentials/call/external/aws_external_account_credentials.h" #include "src/core/credentials/call/external/external_account_credentials.h" @@ -72,13 +79,6 @@ #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h" #include "test/core/test_util/test_call_creds.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_replace.h" // TODO(roth): Refactor this so that we can split up the individual call // creds tests into their own files. diff --git a/test/core/credentials/call/external/aws_request_signer_test.cc b/test/core/credentials/call/external/aws_request_signer_test.cc index 2835e2e9034b4..3e1ac46419236 100644 --- a/test/core/credentials/call/external/aws_request_signer_test.cc +++ b/test/core/credentials/call/external/aws_request_signer_test.cc @@ -18,9 +18,9 @@ #include -#include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" #include "absl/log/check.h" +#include "gmock/gmock.h" +#include "test/core/test_util/test_config.h" namespace testing { diff --git a/test/core/credentials/call/jwt/json_token_test.cc b/test/core/credentials/call/jwt/json_token_test.cc index 154285ffce3db..6e8edce390fe0 100644 --- a/test/core/credentials/call/jwt/json_token_test.cc +++ b/test/core/credentials/call/jwt/json_token_test.cc @@ -26,14 +26,14 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/escaping.h" #include "src/core/credentials/call/oauth2/oauth2_credentials.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/crash.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_reader.h" #include "test/core/test_util/test_config.h" -#include "absl/log/log.h" -#include "absl/strings/escaping.h" using grpc_core::Json; diff --git a/test/core/credentials/call/jwt/jwt_verifier_test.cc b/test/core/credentials/call/jwt/jwt_verifier_test.cc index 057504a350195..d730038e2d522 100644 --- a/test/core/credentials/call/jwt/jwt_verifier_test.cc +++ b/test/core/credentials/call/jwt/jwt_verifier_test.cc @@ -25,12 +25,12 @@ #include #include +#include "absl/strings/escaping.h" #include "src/core/credentials/call/jwt/json_token.h" #include "src/core/util/crash.h" #include "src/core/util/http_client/httpcli.h" #include "src/core/util/json/json_reader.h" #include "test/core/test_util/test_config.h" -#include "absl/strings/escaping.h" using grpc_core::Json; diff --git a/test/core/credentials/call/jwt/verify_jwt.cc b/test/core/credentials/call/jwt/verify_jwt.cc index da5b0afb6ef39..e357cf2c89692 100644 --- a/test/core/credentials/call/jwt/verify_jwt.cc +++ b/test/core/credentials/call/jwt/verify_jwt.cc @@ -24,13 +24,13 @@ #include #include +#include "absl/log/check.h" #include "src/core/credentials/call/jwt/jwt_verifier.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/pollset.h" #include "src/core/util/crash.h" #include "src/core/util/json/json_writer.h" #include "test/core/test_util/cmdline.h" -#include "absl/log/check.h" typedef struct { grpc_pollset* pollset; diff --git a/test/core/credentials/call/oauth2/fetch_oauth2.cc b/test/core/credentials/call/oauth2/fetch_oauth2.cc index b6c2661a750e7..8355ce062d042 100644 --- a/test/core/credentials/call/oauth2/fetch_oauth2.cc +++ b/test/core/credentials/call/oauth2/fetch_oauth2.cc @@ -26,6 +26,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/call/json_util.h" #include "src/core/lib/iomgr/error.h" @@ -34,8 +36,6 @@ #include "test/core/credentials/call/oauth2/oauth2_utils.h" #include "test/core/test_util/cmdline.h" #include "test/core/test_util/tls_utils.h" -#include "absl/log/check.h" -#include "absl/log/log.h" static grpc_call_credentials* create_sts_creds(const char* json_file_path) { grpc::experimental::StsCredentialsOptions options; diff --git a/test/core/credentials/call/oauth2/oauth2_utils.cc b/test/core/credentials/call/oauth2/oauth2_utils.cc index d22d963ed9f42..25210c7f53d1a 100644 --- a/test/core/credentials/call/oauth2/oauth2_utils.cc +++ b/test/core/credentials/call/oauth2/oauth2_utils.cc @@ -27,6 +27,7 @@ #include #include +#include "absl/log/log.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/promise/exec_ctx_wakeup_scheduler.h" @@ -34,7 +35,6 @@ #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/crash.h" #include "src/core/util/notification.h" -#include "absl/log/log.h" char* grpc_test_fetch_oauth2_token_with_credentials( grpc_call_credentials* creds) { diff --git a/test/core/credentials/transport/alts/alts_credentials_fuzzer.cc b/test/core/credentials/transport/alts/alts_credentials_fuzzer.cc index 7a76571dd5855..fbebedcbcf9f8 100644 --- a/test/core/credentials/transport/alts/alts_credentials_fuzzer.cc +++ b/test/core/credentials/transport/alts/alts_credentials_fuzzer.cc @@ -26,14 +26,14 @@ #include #include +#include "absl/log/check.h" +#include "fuzztest/fuzztest.h" #include "src/core/credentials/transport/alts/alts_credentials.h" #include "src/core/credentials/transport/alts/check_gcp_environment.h" #include "src/core/credentials/transport/alts/grpc_alts_credentials_options.h" #include "src/core/util/crash.h" #include "src/core/util/env.h" #include "test/core/test_util/test_config.h" -#include "fuzztest/fuzztest.h" -#include "absl/log/check.h" const char* StrPtr(const std::optional& str) { return str.has_value() ? str->c_str() : nullptr; diff --git a/test/core/credentials/transport/alts/alts_security_connector_test.cc b/test/core/credentials/transport/alts/alts_security_connector_test.cc index d5d957d8d2a84..69e5f7539e2c0 100644 --- a/test/core/credentials/transport/alts/alts_security_connector_test.cc +++ b/test/core/credentials/transport/alts/alts_security_connector_test.cc @@ -24,13 +24,13 @@ #include #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/transport/transport.h" #include "src/core/transport/auth_context.h" #include "src/core/tsi/alts/handshaker/alts_tsi_handshaker.h" #include "src/core/tsi/transport_security.h" #include "src/core/util/crash.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" using grpc_core::internal::grpc_alts_auth_context_from_tsi_peer; diff --git a/test/core/credentials/transport/alts/check_gcp_environment_linux_test.cc b/test/core/credentials/transport/alts/check_gcp_environment_linux_test.cc index 4667b6b15e8e3..f76287f129c90 100644 --- a/test/core/credentials/transport/alts/check_gcp_environment_linux_test.cc +++ b/test/core/credentials/transport/alts/check_gcp_environment_linux_test.cc @@ -21,10 +21,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/credentials/transport/alts/check_gcp_environment.h" #include "src/core/util/crash.h" #include "src/core/util/tmpfile.h" -#include "gtest/gtest.h" #if GPR_LINUX diff --git a/test/core/credentials/transport/alts/check_gcp_environment_windows_test.cc b/test/core/credentials/transport/alts/check_gcp_environment_windows_test.cc index 6a4f9e1c495f6..358147a51dca2 100644 --- a/test/core/credentials/transport/alts/check_gcp_environment_windows_test.cc +++ b/test/core/credentials/transport/alts/check_gcp_environment_windows_test.cc @@ -21,10 +21,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/credentials/transport/alts/check_gcp_environment.h" #include "src/core/util/crash.h" #include "src/core/util/tmpfile.h" -#include "gtest/gtest.h" #ifdef GPR_WINDOWS diff --git a/test/core/credentials/transport/alts/grpc_alts_credentials_options_test.cc b/test/core/credentials/transport/alts/grpc_alts_credentials_options_test.cc index 4a678dd02e89a..da5600ca9f65a 100644 --- a/test/core/credentials/transport/alts/grpc_alts_credentials_options_test.cc +++ b/test/core/credentials/transport/alts/grpc_alts_credentials_options_test.cc @@ -23,8 +23,8 @@ #include #include -#include "src/core/util/crash.h" #include "gtest/gtest.h" +#include "src/core/util/crash.h" #define ALTS_CLIENT_OPTIONS_TEST_TARGET_SERVICE_ACCOUNT_1 "abc@google.com" #define ALTS_CLIENT_OPTIONS_TEST_TARGET_SERVICE_ACCOUNT_2 "def@google.com" diff --git a/test/core/credentials/transport/channel_creds_registry_test.cc b/test/core/credentials/transport/channel_creds_registry_test.cc index 09b5f5f29de30..ac8f376892199 100644 --- a/test/core/credentials/transport/channel_creds_registry_test.cc +++ b/test/core/credentials/transport/channel_creds_registry_test.cc @@ -23,13 +23,13 @@ #include +#include "gmock/gmock.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/transport/composite/composite_channel_credentials.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "src/core/credentials/transport/insecure/insecure_credentials.h" #include "src/core/credentials/transport/tls/tls_credentials.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" namespace grpc_core { namespace testing { diff --git a/test/core/credentials/transport/composite/composite_credentials_test.cc b/test/core/credentials/transport/composite/composite_credentials_test.cc index b40a6affc3f4c..68f69aa390273 100644 --- a/test/core/credentials/transport/composite/composite_credentials_test.cc +++ b/test/core/credentials/transport/composite/composite_credentials_test.cc @@ -16,13 +16,13 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/transport/composite/composite_channel_credentials.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "test/core/test_util/test_call_creds.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { namespace testing { diff --git a/test/core/credentials/transport/insecure/insecure_credentials_test.cc b/test/core/credentials/transport/insecure/insecure_credentials_test.cc index 79caa15614bf3..25b97c1977b02 100644 --- a/test/core/credentials/transport/insecure/insecure_credentials_test.cc +++ b/test/core/credentials/transport/insecure/insecure_credentials_test.cc @@ -19,9 +19,9 @@ #include #include +#include "gmock/gmock.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" namespace grpc_core { namespace testing { diff --git a/test/core/credentials/transport/insecure/insecure_security_connector_test.cc b/test/core/credentials/transport/insecure/insecure_security_connector_test.cc index a8cb34b55b853..88c7a267379bb 100644 --- a/test/core/credentials/transport/insecure/insecure_security_connector_test.cc +++ b/test/core/credentials/transport/insecure/insecure_security_connector_test.cc @@ -20,12 +20,12 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/credentials/transport/tls/ssl_utils.h" #include "src/core/transport/auth_context.h" #include "src/core/tsi/transport_security.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { namespace testing { diff --git a/test/core/credentials/transport/local/local_security_connector_test.cc b/test/core/credentials/transport/local/local_security_connector_test.cc index be09134e23db5..95ed83ba9f286 100644 --- a/test/core/credentials/transport/local/local_security_connector_test.cc +++ b/test/core/credentials/transport/local/local_security_connector_test.cc @@ -18,13 +18,13 @@ #include +#include "gtest/gtest.h" #include "src/core/client_channel/client_channel_filter.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/credentials/transport/transport_credentials.h" #include "src/core/transport/auth_context.h" #include "src/core/tsi/transport_security.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc_core { namespace testing { diff --git a/test/core/credentials/transport/security_connector_test.cc b/test/core/credentials/transport/security_connector_test.cc index bbae1dcd6bf1d..b7778ae1f08bf 100644 --- a/test/core/credentials/transport/security_connector_test.cc +++ b/test/core/credentials/transport/security_connector_test.cc @@ -25,6 +25,8 @@ #include #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/credentials/transport/tls/ssl_utils.h" #include "src/core/lib/slice/slice_string_helpers.h" @@ -36,8 +38,6 @@ #include "src/core/util/string.h" #include "src/core/util/tmpfile.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" #ifndef TSI_OPENSSL_ALPN_SUPPORT #define TSI_OPENSSL_ALPN_SUPPORT 1 diff --git a/test/core/credentials/transport/ssl/ssl_credentials_test.cc b/test/core/credentials/transport/ssl/ssl_credentials_test.cc index 0db213f3d48a1..f535557b07435 100644 --- a/test/core/credentials/transport/ssl/ssl_credentials_test.cc +++ b/test/core/credentials/transport/ssl/ssl_credentials_test.cc @@ -23,11 +23,11 @@ #include #include +#include "gtest/gtest.h" #include "src/core/credentials/transport/tls/ssl_utils.h" #include "src/core/tsi/ssl_transport_security.h" #include "src/core/util/crash.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" TEST(SslCredentialsTest, ConvertGrpcToTsiCertPairs) { grpc_ssl_pem_key_cert_pair grpc_pairs[] = {{"private_key1", "cert_chain1"}, diff --git a/test/core/credentials/transport/ssl/ssl_server_fuzzer.cc b/test/core/credentials/transport/ssl/ssl_server_fuzzer.cc index 3cdff31471f33..7629c81683138 100644 --- a/test/core/credentials/transport/ssl/ssl_server_fuzzer.cc +++ b/test/core/credentials/transport/ssl/ssl_server_fuzzer.cc @@ -21,6 +21,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/synchronization/notification.h" +#include "fuzztest/fuzztest.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/credentials/transport/transport_credentials.h" #include "src/core/lib/event_engine/default_event_engine.h" @@ -28,9 +31,6 @@ #include "test/core/test_util/mock_endpoint.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "fuzztest/fuzztest.h" -#include "absl/log/check.h" -#include "absl/synchronization/notification.h" #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" #define SERVER_CERT_PATH "src/core/tsi/test_creds/server1.pem" diff --git a/test/core/credentials/transport/tls/certificate_provider_registry_test.cc b/test/core/credentials/transport/tls/certificate_provider_registry_test.cc index 6b0b83800a82c..7976b7f6e3458 100644 --- a/test/core/credentials/transport/tls/certificate_provider_registry_test.cc +++ b/test/core/credentials/transport/tls/certificate_provider_registry_test.cc @@ -20,9 +20,9 @@ #include +#include "gmock/gmock.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_provider.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" namespace grpc_core { namespace testing { diff --git a/test/core/credentials/transport/tls/grpc_tls_certificate_distributor_test.cc b/test/core/credentials/transport/tls/grpc_tls_certificate_distributor_test.cc index b9aa8dcc1a8ac..fa739d87ac019 100644 --- a/test/core/credentials/transport/tls/grpc_tls_certificate_distributor_test.cc +++ b/test/core/credentials/transport/tls/grpc_tls_certificate_distributor_test.cc @@ -25,12 +25,12 @@ #include #include +#include "absl/log/check.h" +#include "gmock/gmock.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/crash.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gmock/gmock.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/test/core/credentials/transport/tls/grpc_tls_certificate_provider_test.cc b/test/core/credentials/transport/tls/grpc_tls_certificate_provider_test.cc index a020b714a6247..9c90c022d8df5 100644 --- a/test/core/credentials/transport/tls/grpc_tls_certificate_provider_test.cc +++ b/test/core/credentials/transport/tls/grpc_tls_certificate_provider_test.cc @@ -23,28 +23,24 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "gmock/gmock.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/crash.h" #include "src/core/util/tmpfile.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gmock/gmock.h" -#include "absl/log/check.h" -#include "absl/status/status.h" #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" #define SERVER_CERT_PATH "src/core/tsi/test_creds/server1.pem" #define SERVER_KEY_PATH "src/core/tsi/test_creds/server1.key" -#define CA_CERT_PATH_2 \ - "src/core/tsi/test_creds/multi-domain.pem" -#define SERVER_CERT_PATH_2 \ - "src/core/tsi/test_creds/server0.pem" +#define CA_CERT_PATH_2 "src/core/tsi/test_creds/multi-domain.pem" +#define SERVER_CERT_PATH_2 "src/core/tsi/test_creds/server0.pem" #define SERVER_KEY_PATH_2 "src/core/tsi/test_creds/server0.key" #define INVALID_PATH "invalid/path" -#define MALFORMED_CERT_PATH \ - "src/core/tsi/test_creds/malformed-cert.pem" -#define MALFORMED_KEY_PATH \ - "src/core/tsi/test_creds/malformed-key.pem" +#define MALFORMED_CERT_PATH "src/core/tsi/test_creds/malformed-cert.pem" +#define MALFORMED_KEY_PATH "src/core/tsi/test_creds/malformed-key.pem" namespace grpc_core { diff --git a/test/core/credentials/transport/tls/grpc_tls_certificate_verifier_test.cc b/test/core/credentials/transport/tls/grpc_tls_certificate_verifier_test.cc index f06585bec3f1d..2907b1c7696e1 100644 --- a/test/core/credentials/transport/tls/grpc_tls_certificate_verifier_test.cc +++ b/test/core/credentials/transport/tls/grpc_tls_certificate_verifier_test.cc @@ -23,14 +23,14 @@ #include #include +#include "absl/log/log.h" +#include "gmock/gmock.h" #include "src/core/credentials/transport/tls/tls_security_connector.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/crash.h" #include "src/core/util/tmpfile.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gmock/gmock.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/test/core/credentials/transport/tls/grpc_tls_credentials_options_comparator_test.cc b/test/core/credentials/transport/tls/grpc_tls_credentials_options_comparator_test.cc index 5ac05ee8bb4b1..b5de0270f7e92 100644 --- a/test/core/credentials/transport/tls/grpc_tls_credentials_options_comparator_test.cc +++ b/test/core/credentials/transport/tls/grpc_tls_credentials_options_comparator_test.cc @@ -18,15 +18,16 @@ // Generated by tools/codegen/core/gen_grpc_tls_credentials_options.py -#include #include #include -#include "src/core/credentials/transport/tls/grpc_tls_credentials_options.h" +#include + +#include "gmock/gmock.h" #include "src/core/credentials/transport/xds/xds_credentials.h" +#include "src/core/credentials/transport/tls/grpc_tls_credentials_options.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" namespace grpc_core { namespace { @@ -35,8 +36,7 @@ TEST(TlsCredentialsOptionsComparatorTest, DifferentCertRequestType) { auto* options_1 = grpc_tls_credentials_options_create(); auto* options_2 = grpc_tls_credentials_options_create(); options_1->set_cert_request_type(GRPC_SSL_DONT_REQUEST_CLIENT_CERTIFICATE); - options_2->set_cert_request_type( - GRPC_SSL_REQUEST_CLIENT_CERTIFICATE_AND_VERIFY); + options_2->set_cert_request_type(GRPC_SSL_REQUEST_CLIENT_CERTIFICATE_AND_VERIFY); EXPECT_FALSE(*options_1 == *options_2); EXPECT_FALSE(*options_2 == *options_1); delete options_1; @@ -75,10 +75,8 @@ TEST(TlsCredentialsOptionsComparatorTest, DifferentMaxTlsVersion) { TEST(TlsCredentialsOptionsComparatorTest, DifferentCertificateVerifier) { auto* options_1 = grpc_tls_credentials_options_create(); auto* options_2 = grpc_tls_credentials_options_create(); - options_1->set_certificate_verifier( - MakeRefCounted()); - options_2->set_certificate_verifier( - MakeRefCounted(nullptr)); + options_1->set_certificate_verifier(MakeRefCounted()); + options_2->set_certificate_verifier(MakeRefCounted(nullptr)); EXPECT_FALSE(*options_1 == *options_2); EXPECT_FALSE(*options_2 == *options_1); delete options_1; @@ -97,12 +95,8 @@ TEST(TlsCredentialsOptionsComparatorTest, DifferentCheckCallHost) { TEST(TlsCredentialsOptionsComparatorTest, DifferentCertificateProvider) { auto* options_1 = grpc_tls_credentials_options_create(); auto* options_2 = grpc_tls_credentials_options_create(); - options_1->set_certificate_provider( - MakeRefCounted("root_cert_1", - PemKeyCertPairList())); - options_2->set_certificate_provider( - MakeRefCounted("root_cert_2", - PemKeyCertPairList())); + options_1->set_certificate_provider(MakeRefCounted("root_cert_1", PemKeyCertPairList())); + options_2->set_certificate_provider(MakeRefCounted("root_cert_2", PemKeyCertPairList())); EXPECT_FALSE(*options_1 == *options_2); EXPECT_FALSE(*options_2 == *options_1); delete options_1; @@ -189,8 +183,8 @@ TEST(TlsCredentialsOptionsComparatorTest, DifferentSendClientCaListValues) { delete options_2; } -} // namespace -} // namespace grpc_core +} // namespace +} // namespace grpc_core int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); diff --git a/test/core/credentials/transport/tls/grpc_tls_credentials_options_test.cc b/test/core/credentials/transport/tls/grpc_tls_credentials_options_test.cc index 227901f3f5e52..5662daf57cb74 100644 --- a/test/core/credentials/transport/tls/grpc_tls_credentials_options_test.cc +++ b/test/core/credentials/transport/tls/grpc_tls_credentials_options_test.cc @@ -24,6 +24,7 @@ #include #include +#include "gmock/gmock.h" #include "src/core/config/config_vars.h" #include "src/core/credentials/transport/tls/tls_credentials.h" #include "src/core/credentials/transport/tls/tls_security_connector.h" @@ -31,15 +32,12 @@ #include "src/core/util/tmpfile.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gmock/gmock.h" #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" #define SERVER_CERT_PATH "src/core/tsi/test_creds/server1.pem" #define SERVER_KEY_PATH "src/core/tsi/test_creds/server1.key" -#define CA_CERT_PATH_2 \ - "src/core/tsi/test_creds/multi-domain.pem" -#define SERVER_CERT_PATH_2 \ - "src/core/tsi/test_creds/server0.pem" +#define CA_CERT_PATH_2 "src/core/tsi/test_creds/multi-domain.pem" +#define SERVER_CERT_PATH_2 "src/core/tsi/test_creds/server0.pem" #define SERVER_KEY_PATH_2 "src/core/tsi/test_creds/server0.key" #define INVALID_PATH "invalid/path" diff --git a/test/core/credentials/transport/tls/grpc_tls_crl_provider_test.cc b/test/core/credentials/transport/tls/grpc_tls_crl_provider_test.cc index c50dc6382018c..8f43c4af5198b 100644 --- a/test/core/credentials/transport/tls/grpc_tls_crl_provider_test.cc +++ b/test/core/credentials/transport/tls/grpc_tls_crl_provider_test.cc @@ -28,6 +28,11 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/iomgr/timer_manager.h" #include "src/core/util/wait_for_single_owner.h" @@ -37,11 +42,6 @@ #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" #include "test/core/tsi/transport_security_test_lib.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" static constexpr absl::string_view kCrlPath = "test/core/tsi/test_creds/crl_data/crls/current.crl"; diff --git a/test/core/credentials/transport/tls/system_roots_test.cc b/test/core/credentials/transport/tls/system_roots_test.cc index 50700cdc8146f..03ac6589a65f4 100644 --- a/test/core/credentials/transport/tls/system_roots_test.cc +++ b/test/core/credentials/transport/tls/system_roots_test.cc @@ -30,6 +30,7 @@ #include #include +#include "gtest/gtest.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/credentials/transport/tls/load_system_roots.h" #include "src/core/credentials/transport/tls/load_system_roots_supported.h" @@ -42,7 +43,6 @@ #include "src/core/util/load_file.h" #include "src/core/util/tmpfile.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc { namespace { diff --git a/test/core/credentials/transport/tls/tls_credentials_test.cc b/test/core/credentials/transport/tls/tls_credentials_test.cc index fda98d04f52e8..756c5fb9ebfb1 100644 --- a/test/core/credentials/transport/tls/tls_credentials_test.cc +++ b/test/core/credentials/transport/tls/tls_credentials_test.cc @@ -19,9 +19,9 @@ #include #include +#include "gmock/gmock.h" #include "src/core/credentials/transport/tls/grpc_tls_credentials_options.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" namespace grpc_core { namespace testing { diff --git a/test/core/credentials/transport/tls/tls_security_connector_test.cc b/test/core/credentials/transport/tls/tls_security_connector_test.cc index 97aca7e761850..bc8cc0fca7ff8 100644 --- a/test/core/credentials/transport/tls/tls_security_connector_test.cc +++ b/test/core/credentials/transport/tls/tls_security_connector_test.cc @@ -24,6 +24,9 @@ #include #include +#include "absl/log/check.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_provider.h" #include "src/core/credentials/transport/tls/grpc_tls_credentials_options.h" @@ -36,18 +39,12 @@ #include "test/core/test_util/test_call_creds.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" -#define CLIENT_CERT_PATH \ - "src/core/tsi/test_creds/multi-domain.pem" -#define SERVER_CERT_PATH_0 \ - "src/core/tsi/test_creds/server0.pem" +#define CLIENT_CERT_PATH "src/core/tsi/test_creds/multi-domain.pem" +#define SERVER_CERT_PATH_0 "src/core/tsi/test_creds/server0.pem" #define SERVER_KEY_PATH_0 "src/core/tsi/test_creds/server0.key" -#define SERVER_CERT_PATH_1 \ - "src/core/tsi/test_creds/server1.pem" +#define SERVER_CERT_PATH_1 "src/core/tsi/test_creds/server1.pem" #define SERVER_KEY_PATH_1 "src/core/tsi/test_creds/server1.key" namespace grpc_core { diff --git a/test/core/credentials/transport/xds/xds_credentials_test.cc b/test/core/credentials/transport/xds/xds_credentials_test.cc index 3ce63ee107226..22fd59b3593bf 100644 --- a/test/core/credentials/transport/xds/xds_credentials_test.cc +++ b/test/core/credentials/transport/xds/xds_credentials_test.cc @@ -20,9 +20,9 @@ #include +#include "gtest/gtest.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc_core { namespace testing { diff --git a/test/core/end2end/bad_server_response_test.cc b/test/core/end2end/bad_server_response_test.cc index 3109bf7cc7f73..1badbcb5391ea 100644 --- a/test/core/end2end/bad_server_response_test.cc +++ b/test/core/end2end/bad_server_response_test.cc @@ -35,6 +35,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/event_engine/shim.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/endpoint.h" @@ -52,8 +54,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/test_tcp_server.h" -#include "absl/log/check.h" -#include "absl/log/log.h" #define HTTP1_RESP_400 \ "HTTP/1.0 400 Bad Request\n" \ diff --git a/test/core/end2end/connection_refused_test.cc b/test/core/end2end/connection_refused_test.cc index e29335afd5529..e87fbcf3c6457 100644 --- a/test/core/end2end/connection_refused_test.cc +++ b/test/core/end2end/connection_refused_test.cc @@ -28,14 +28,14 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/host_port.h" #include "test/core/end2end/cq_verifier.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" -#include "absl/log/log.h" static void run_test(bool wait_for_ready, bool use_service_config) { grpc_channel* chan; diff --git a/test/core/end2end/cq_verifier.cc b/test/core/end2end/cq_verifier.cc index cb41a50489dca..60476d17ccb09 100644 --- a/test/core/end2end/cq_verifier.cc +++ b/test/core/end2end/cq_verifier.cc @@ -34,14 +34,6 @@ #include #include -#include "src/core/lib/compression/message_compress.h" -#include "src/core/lib/surface/event_string.h" -#include "src/core/util/crash.h" -#include "src/core/util/match.h" -#include "test/core/test_util/build.h" -#include "test/core/test_util/postmortem.h" -#include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/escaping.h" @@ -49,6 +41,14 @@ #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" #include "absl/strings/string_view.h" +#include "gtest/gtest.h" +#include "src/core/lib/compression/message_compress.h" +#include "src/core/lib/surface/event_string.h" +#include "src/core/util/crash.h" +#include "src/core/util/match.h" +#include "test/core/test_util/build.h" +#include "test/core/test_util/postmortem.h" +#include "test/core/test_util/test_config.h" // a set of metadata we expect to find on an event typedef struct metadata { diff --git a/test/core/end2end/cq_verifier.h b/test/core/end2end/cq_verifier.h index dfcc9b03fc868..c1c335821af21 100644 --- a/test/core/end2end/cq_verifier.h +++ b/test/core/end2end/cq_verifier.h @@ -30,10 +30,10 @@ #include #include -#include "src/core/util/debug_location.h" -#include "src/core/util/time.h" #include "absl/container/flat_hash_map.h" #include "absl/functional/any_invocable.h" +#include "src/core/util/debug_location.h" +#include "src/core/util/time.h" namespace grpc_core { diff --git a/test/core/end2end/dualstack_socket_test.cc b/test/core/end2end/dualstack_socket_test.cc index 0bee4892c0182..c2f3546bde0e9 100644 --- a/test/core/end2end/dualstack_socket_test.cc +++ b/test/core/end2end/dualstack_socket_test.cc @@ -21,10 +21,10 @@ #include #include -#include "src/core/lib/iomgr/port.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/statusor.h" +#include "src/core/lib/iomgr/port.h" // This test won't work except with posix sockets enabled #ifdef GRPC_POSIX_SOCKET_EV @@ -37,6 +37,10 @@ #include +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" #include "src/core/lib/event_engine/tcp_socket_utils.h" #include "src/core/lib/event_engine/utils.h" #include "src/core/lib/iomgr/socket_utils_posix.h" @@ -44,10 +48,6 @@ #include "test/core/end2end/cq_verifier.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" // This test exercises IPv4, IPv6, and dualstack sockets in various ways. diff --git a/test/core/end2end/end2end_chaotic_good_config.cc b/test/core/end2end/end2end_chaotic_good_config.cc index 259806f65c490..ecb68381cc3c1 100644 --- a/test/core/end2end/end2end_chaotic_good_config.cc +++ b/test/core/end2end/end2end_chaotic_good_config.cc @@ -35,6 +35,14 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/meta/type_traits.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/chaotic_good/client/chaotic_good_connector.h" #include "src/core/ext/transport/chaotic_good/server/chaotic_good_server.h" #include "src/core/lib/channel/channel_args.h" @@ -60,14 +68,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/meta/type_traits.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" // IWYU pragma: no_include diff --git a/test/core/end2end/end2end_http2_config.cc b/test/core/end2end/end2end_http2_config.cc index 13028ac3a57b1..037d9ddc3b16c 100644 --- a/test/core/end2end/end2end_http2_config.cc +++ b/test/core/end2end/end2end_http2_config.cc @@ -35,6 +35,14 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/meta/type_traits.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/chaotic_good/client/chaotic_good_connector.h" #include "src/core/ext/transport/chaotic_good/server/chaotic_good_server.h" #include "src/core/lib/channel/channel_args.h" @@ -59,14 +67,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/meta/type_traits.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" // IWYU pragma: no_include diff --git a/test/core/end2end/end2end_http2_security_config.cc b/test/core/end2end/end2end_http2_security_config.cc index 591fb22909b51..89220b886233c 100644 --- a/test/core/end2end/end2end_http2_security_config.cc +++ b/test/core/end2end/end2end_http2_security_config.cc @@ -35,6 +35,14 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/meta/type_traits.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "src/core/ext/transport/chaotic_good/client/chaotic_good_connector.h" #include "src/core/ext/transport/chaotic_good/server/chaotic_good_server.h" @@ -60,14 +68,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/meta/type_traits.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" // IWYU pragma: no_include diff --git a/test/core/end2end/end2end_inproc_config.cc b/test/core/end2end/end2end_inproc_config.cc index 35648a3245577..1334e1b4596bd 100644 --- a/test/core/end2end/end2end_inproc_config.cc +++ b/test/core/end2end/end2end_inproc_config.cc @@ -35,6 +35,14 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/meta/type_traits.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/chaotic_good/client/chaotic_good_connector.h" #include "src/core/ext/transport/chaotic_good/server/chaotic_good_server.h" #include "src/core/lib/channel/channel_args.h" @@ -60,14 +68,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/meta/type_traits.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" // IWYU pragma: no_include diff --git a/test/core/end2end/end2end_posix_config.cc b/test/core/end2end/end2end_posix_config.cc index 5dbe7aeece231..9a21761817685 100644 --- a/test/core/end2end/end2end_posix_config.cc +++ b/test/core/end2end/end2end_posix_config.cc @@ -35,6 +35,14 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/meta/type_traits.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/chaotic_good/client/chaotic_good_connector.h" #include "src/core/ext/transport/chaotic_good/server/chaotic_good_server.h" #include "src/core/lib/channel/channel_args.h" @@ -59,14 +67,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/meta/type_traits.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" // IWYU pragma: no_include diff --git a/test/core/end2end/end2end_test_suites.cc b/test/core/end2end/end2end_test_suites.cc index 9af3d10e75225..b3185ff0edcdd 100644 --- a/test/core/end2end/end2end_test_suites.cc +++ b/test/core/end2end/end2end_test_suites.cc @@ -35,6 +35,14 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/meta/type_traits.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "src/core/ext/transport/chaotic_good/client/chaotic_good_connector.h" #include "src/core/ext/transport/chaotic_good/server/chaotic_good_server.h" @@ -61,14 +69,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/meta/type_traits.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" // IWYU pragma: no_include diff --git a/test/core/end2end/end2end_tests.h b/test/core/end2end/end2end_tests.h index faabd02c8f4fe..3c424ae78af24 100644 --- a/test/core/end2end/end2end_tests.h +++ b/test/core/end2end/end2end_tests.h @@ -40,6 +40,13 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/memory/memory.h" +#include "absl/meta/type_traits.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/slice/slice.h" @@ -57,17 +64,10 @@ #include "test/core/test_util/fuzz_config_vars.h" #include "test/core/test_util/postmortem.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/memory/memory.h" -#include "absl/meta/type_traits.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" #ifdef GRPC_END2END_TEST_INCLUDE_FUZZER -#include "test/core/test_util/fuzz_config_vars_helpers.h" #include "fuzztest/fuzztest.h" +#include "test/core/test_util/fuzz_config_vars_helpers.h" #endif #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" diff --git a/test/core/end2end/fixtures/h2_oauth2_common.h b/test/core/end2end/fixtures/h2_oauth2_common.h index 830d153701e82..7ac5bf992c10e 100644 --- a/test/core/end2end/fixtures/h2_oauth2_common.h +++ b/test/core/end2end/fixtures/h2_oauth2_common.h @@ -24,6 +24,7 @@ #include #include +#include "absl/log/check.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/transport/ssl/ssl_credentials.h" #include "src/core/lib/channel/channel_args.h" @@ -32,16 +33,13 @@ #include "test/core/end2end/fixtures/secure_fixture.h" #include "test/core/test_util/test_call_creds.h" #include "test/core/test_util/tls_utils.h" -#include "absl/log/check.h" class Oauth2Fixture : public SecureFixture { public: explicit Oauth2Fixture(grpc_tls_version tls_version) : tls_version_(tls_version) {} - static const char* CaCertPath() { - return "src/core/tsi/test_creds/ca.pem"; - } + static const char* CaCertPath() { return "src/core/tsi/test_creds/ca.pem"; } static const char* ServerCertPath() { return "src/core/tsi/test_creds/server1.pem"; } diff --git a/test/core/end2end/fixtures/h2_ssl_cred_reload_fixture.h b/test/core/end2end/fixtures/h2_ssl_cred_reload_fixture.h index fb11740a4f372..3e89149c2d168 100644 --- a/test/core/end2end/fixtures/h2_ssl_cred_reload_fixture.h +++ b/test/core/end2end/fixtures/h2_ssl_cred_reload_fixture.h @@ -24,28 +24,24 @@ #include #include +#include "absl/log/check.h" #include "src/core/credentials/transport/ssl/ssl_credentials.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/error.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/end2end/fixtures/secure_fixture.h" #include "test/core/test_util/tls_utils.h" -#include "absl/log/check.h" class SslCredReloadFixture : public SecureFixture { public: explicit SslCredReloadFixture(grpc_tls_version tls_version) : tls_version_(tls_version) {} - static const char* CaCertPath() { - return "src/core/tsi/test_creds/ca.pem"; - } + static const char* CaCertPath() { return "src/core/tsi/test_creds/ca.pem"; } static const char* CertPath() { return "src/core/tsi/test_creds/server1.pem"; } - static const char* KeyPath() { - return "src/core/tsi/test_creds/server1.key"; - } + static const char* KeyPath() { return "src/core/tsi/test_creds/server1.key"; } private: grpc_core::ChannelArgs MutateClientArgs( diff --git a/test/core/end2end/fixtures/h2_ssl_tls_common.h b/test/core/end2end/fixtures/h2_ssl_tls_common.h index 6c01987cd00fa..82ebbc62a4376 100644 --- a/test/core/end2end/fixtures/h2_ssl_tls_common.h +++ b/test/core/end2end/fixtures/h2_ssl_tls_common.h @@ -24,22 +24,20 @@ #include #include +#include "absl/log/check.h" #include "src/core/credentials/transport/ssl/ssl_credentials.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/error.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/end2end/fixtures/secure_fixture.h" #include "test/core/test_util/tls_utils.h" -#include "absl/log/check.h" class SslTlsFixture : public SecureFixture { public: explicit SslTlsFixture(grpc_tls_version tls_version) : tls_version_(tls_version) {} - static const char* CaCertPath() { - return "src/core/tsi/test_creds/ca.pem"; - } + static const char* CaCertPath() { return "src/core/tsi/test_creds/ca.pem"; } static const char* ServerCertPath() { return "src/core/tsi/test_creds/server1.pem"; } diff --git a/test/core/end2end/fixtures/h2_tls_common.h b/test/core/end2end/fixtures/h2_tls_common.h index 5525e2141f4ba..cb95b7782aad7 100644 --- a/test/core/end2end/fixtures/h2_tls_common.h +++ b/test/core/end2end/fixtures/h2_tls_common.h @@ -31,6 +31,8 @@ #include +#include "absl/log/check.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/tls/grpc_tls_credentials_options.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/error.h" @@ -38,8 +40,6 @@ #include "test/core/end2end/end2end_tests.h" #include "test/core/end2end/fixtures/secure_fixture.h" #include "test/core/test_util/tls_utils.h" -#include "absl/log/check.h" -#include "absl/strings/string_view.h" // For normal TLS connections. #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" diff --git a/test/core/end2end/fixtures/http_proxy_fixture.cc b/test/core/end2end/fixtures/http_proxy_fixture.cc index 12b54cf0ae09e..664b93743b649 100644 --- a/test/core/end2end/fixtures/http_proxy_fixture.cc +++ b/test/core/end2end/fixtures/http_proxy_fixture.cc @@ -31,6 +31,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/escaping.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/strip.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/channel/channel_args.h" @@ -58,13 +65,6 @@ #include "src/core/util/thd.h" #include "src/core/util/time.h" #include "test/core/test_util/port.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/escaping.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/strip.h" struct grpc_end2end_http_proxy { grpc_end2end_http_proxy() diff --git a/test/core/end2end/fixtures/inproc_fixture.h b/test/core/end2end/fixtures/inproc_fixture.h index 74f80f59f9bd0..7a70aa138a750 100644 --- a/test/core/end2end/fixtures/inproc_fixture.h +++ b/test/core/end2end/fixtures/inproc_fixture.h @@ -17,10 +17,10 @@ #include +#include "absl/functional/any_invocable.h" #include "src/core/ext/transport/inproc/inproc_transport.h" #include "src/core/lib/channel/channel_args.h" #include "test/core/end2end/end2end_tests.h" -#include "absl/functional/any_invocable.h" class InprocFixture : public grpc_core::CoreTestFixture { public: diff --git a/test/core/end2end/fixtures/local_util.h b/test/core/end2end/fixtures/local_util.h index 4b6eb200e3b78..e7f3ce3c2d2cd 100644 --- a/test/core/end2end/fixtures/local_util.h +++ b/test/core/end2end/fixtures/local_util.h @@ -24,9 +24,9 @@ #include +#include "absl/functional/any_invocable.h" #include "src/core/lib/channel/channel_args.h" #include "test/core/end2end/end2end_tests.h" -#include "absl/functional/any_invocable.h" class LocalTestFixture final : public grpc_core::CoreTestFixture { public: diff --git a/test/core/end2end/fixtures/proxy.cc b/test/core/end2end/fixtures/proxy.cc index 9b825b11160a6..728eddfc70deb 100644 --- a/test/core/end2end/fixtures/proxy.cc +++ b/test/core/end2end/fixtures/proxy.cc @@ -32,14 +32,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/surface/call.h" #include "src/core/util/crash.h" #include "src/core/util/host_port.h" #include "src/core/util/thd.h" #include "test/core/test_util/port.h" -#include "absl/log/check.h" -#include "absl/log/log.h" struct grpc_end2end_proxy { grpc_end2end_proxy() diff --git a/test/core/end2end/fixtures/secure_fixture.h b/test/core/end2end/fixtures/secure_fixture.h index 7feafc6e4dc62..20e488f427b92 100644 --- a/test/core/end2end/fixtures/secure_fixture.h +++ b/test/core/end2end/fixtures/secure_fixture.h @@ -22,12 +22,12 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/host_port.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/test_util/port.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" // Base class for a fixture that just needs to select cred types (or mutate // client/server channel args). diff --git a/test/core/end2end/fixtures/sockpair_fixture.h b/test/core/end2end/fixtures/sockpair_fixture.h index bcd2064a2156e..0685d668457e2 100644 --- a/test/core/end2end/fixtures/sockpair_fixture.h +++ b/test/core/end2end/fixtures/sockpair_fixture.h @@ -21,6 +21,11 @@ #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "gtest/gtest.h" #include "src/core/channelz/channelz.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/chttp2/transport/chttp2_transport.h" @@ -38,11 +43,6 @@ #include "src/core/server/server.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { diff --git a/test/core/end2end/fuzzers/api_fuzzer.cc b/test/core/end2end/fuzzers/api_fuzzer.cc index 462c08eca5319..84f16871f2b42 100644 --- a/test/core/end2end/fuzzers/api_fuzzer.cc +++ b/test/core/end2end/fuzzers/api_fuzzer.cc @@ -16,6 +16,7 @@ // // +#include #include #include #include @@ -34,6 +35,16 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_join.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/inproc/inproc_transport.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/channel/channel_args.h" @@ -59,17 +70,6 @@ #include "test/core/test_util/fuzz_config_vars_helpers.h" #include "test/core/test_util/fuzzing_channel_args.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_join.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" -#include // IWYU pragma: no_include diff --git a/test/core/end2end/fuzzers/client_fuzzer.cc b/test/core/end2end/fuzzers/client_fuzzer.cc index 9a700c2991da9..5c5f7a0aebf76 100644 --- a/test/core/end2end/fuzzers/client_fuzzer.cc +++ b/test/core/end2end/fuzzers/client_fuzzer.cc @@ -19,6 +19,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/statusor.h" +#include "fuzztest/fuzztest.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/chttp2/transport/chttp2_transport.h" #include "src/core/lib/channel/channel_args.h" @@ -41,9 +44,6 @@ #include "test/core/test_util/fuzz_config_vars_helpers.h" #include "test/core/test_util/mock_endpoint.h" #include "test/core/test_util/test_config.h" -#include "fuzztest/fuzztest.h" -#include "absl/log/check.h" -#include "absl/status/statusor.h" bool squelch = true; bool leak_check = true; diff --git a/test/core/end2end/fuzzers/connector_fuzzer.cc b/test/core/end2end/fuzzers/connector_fuzzer.cc index 857b6129a1a88..caa01261a4a8b 100644 --- a/test/core/end2end/fuzzers/connector_fuzzer.cc +++ b/test/core/end2end/fuzzers/connector_fuzzer.cc @@ -12,8 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include + #include +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "src/core/credentials/transport/fake/fake_security_connector.h" #include "src/core/ext/transport/chttp2/client/chttp2_connector.h" @@ -28,9 +32,6 @@ #include "test/core/end2end/fuzzers/network_input.h" #include "test/core/test_util/fuzz_config_vars.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include using ::grpc_event_engine::experimental::ChannelArgsEndpointConfig; using ::grpc_event_engine::experimental::EventEngine; diff --git a/test/core/end2end/fuzzers/fuzzing_common.cc b/test/core/end2end/fuzzers/fuzzing_common.cc index 239d692bd14e8..553a10604979a 100644 --- a/test/core/end2end/fuzzers/fuzzing_common.cc +++ b/test/core/end2end/fuzzers/fuzzing_common.cc @@ -32,6 +32,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/experiments/config.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -43,9 +46,6 @@ #include "src/core/util/crash.h" #include "src/core/util/useful.h" #include "test/core/end2end/fuzzers/api_fuzzer.pb.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/test/core/end2end/fuzzers/fuzzing_common.h b/test/core/end2end/fuzzers/fuzzing_common.h index 2a3adafc0acc6..afcae0c5e7d73 100644 --- a/test/core/end2end/fuzzers/fuzzing_common.h +++ b/test/core/end2end/fuzzers/fuzzing_common.h @@ -29,6 +29,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/types/span.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/ref_counted_ptr.h" @@ -36,8 +38,6 @@ #include "test/core/end2end/fuzzers/api_fuzzer.pb.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h" -#include "absl/log/check.h" -#include "absl/types/span.h" namespace grpc_core { namespace testing { diff --git a/test/core/end2end/fuzzers/generate_client_examples_of_bad_closing_streams.py b/test/core/end2end/fuzzers/generate_client_examples_of_bad_closing_streams.py index 61efba287c6ed..5ee5403a2246f 100755 --- a/test/core/end2end/fuzzers/generate_client_examples_of_bad_closing_streams.py +++ b/test/core/end2end/fuzzers/generate_client_examples_of_bad_closing_streams.py @@ -31,4 +31,4 @@ } for name, stream in streams.items(): - open("client_fuzzer_corpus/%s" % name, "w").write(bytearray(stream)) + open("client_fuzzer_corpus/%s" % name, "w").write(bytearray(stream)) diff --git a/test/core/end2end/fuzzers/network_input.cc b/test/core/end2end/fuzzers/network_input.cc index 23fcb9b833dc6..70fd57b1d9a4b 100644 --- a/test/core/end2end/fuzzers/network_input.cc +++ b/test/core/end2end/fuzzers/network_input.cc @@ -24,6 +24,9 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/string_view.h" +#include "absl/types/span.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/chaotic_good/frame_header.h" #include "src/core/ext/transport/chaotic_good/tcp_frame_transport.h" @@ -39,9 +42,6 @@ #include "src/core/util/useful.h" #include "test/core/end2end/fuzzers/fuzzer_input.pb.h" #include "test/core/test_util/mock_endpoint.h" -#include "absl/log/log.h" -#include "absl/strings/string_view.h" -#include "absl/types/span.h" using grpc_event_engine::experimental::EventEngine; diff --git a/test/core/end2end/fuzzers/server_fuzzer.cc b/test/core/end2end/fuzzers/server_fuzzer.cc index 925fa69791dbf..59a43ad0ceadf 100644 --- a/test/core/end2end/fuzzers/server_fuzzer.cc +++ b/test/core/end2end/fuzzers/server_fuzzer.cc @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include #include #include #include @@ -19,6 +20,9 @@ #include #include +#include "absl/log/check.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "src/core/ext/transport/chaotic_good/server/chaotic_good_server.h" @@ -34,10 +38,6 @@ #include "test/core/test_util/fuzz_config_vars.h" #include "test/core/test_util/fuzz_config_vars_helpers.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include "absl/log/check.h" -#include namespace grpc_core { namespace testing { diff --git a/test/core/end2end/goaway_server_test.cc b/test/core/end2end/goaway_server_test.cc index 537bc4dc17a98..ea89fc1a34824 100644 --- a/test/core/end2end/goaway_server_test.cc +++ b/test/core/end2end/goaway_server_test.cc @@ -33,6 +33,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/sockaddr.h" #include "src/core/lib/iomgr/socket_utils.h" @@ -40,12 +46,6 @@ #include "test/core/event_engine/util/delegating_event_engine.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" static gpr_mu g_mu; static int g_resolve_port = -1; diff --git a/test/core/end2end/h2_ssl_cert_test.cc b/test/core/end2end/h2_ssl_cert_test.cc index 218be717df00c..7f49d1e43767d 100644 --- a/test/core/end2end/h2_ssl_cert_test.cc +++ b/test/core/end2end/h2_ssl_cert_test.cc @@ -34,6 +34,10 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" @@ -43,10 +47,6 @@ #include "test/core/end2end/end2end_tests.h" #include "test/core/end2end/fixtures/secure_fixture.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/log/log.h" static std::string test_server1_key_id; diff --git a/test/core/end2end/h2_ssl_session_reuse_test.cc b/test/core/end2end/h2_ssl_session_reuse_test.cc index 65d13a96b2a0a..aa15d1198701f 100644 --- a/test/core/end2end/h2_ssl_session_reuse_test.cc +++ b/test/core/end2end/h2_ssl_session_reuse_test.cc @@ -30,6 +30,8 @@ #include #include +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/error.h" @@ -40,8 +42,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" #define CLIENT_CERT_PATH "src/core/tsi/test_creds/client.pem" diff --git a/test/core/end2end/h2_tls_peer_property_external_verifier_test.cc b/test/core/end2end/h2_tls_peer_property_external_verifier_test.cc index b0a93cfec9051..e0a24f7ccb9cc 100644 --- a/test/core/end2end/h2_tls_peer_property_external_verifier_test.cc +++ b/test/core/end2end/h2_tls_peer_property_external_verifier_test.cc @@ -30,6 +30,8 @@ #include #include +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/error.h" @@ -40,8 +42,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" #define CLIENT_CERT_PATH "src/core/tsi/test_creds/client.pem" diff --git a/test/core/end2end/invalid_call_argument_test.cc b/test/core/end2end/invalid_call_argument_test.cc index 7ea6b67fa5943..d587079a0e237 100644 --- a/test/core/end2end/invalid_call_argument_test.cc +++ b/test/core/end2end/invalid_call_argument_test.cc @@ -32,12 +32,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/util/host_port.h" #include "test/core/end2end/cq_verifier.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" -#include "absl/log/log.h" struct test_state { int is_client; diff --git a/test/core/end2end/no_server_test.cc b/test/core/end2end/no_server_test.cc index 66bab835e006c..f03b3225d7064 100644 --- a/test/core/end2end/no_server_test.cc +++ b/test/core/end2end/no_server_test.cc @@ -27,6 +27,11 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/time/time.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/resolver/endpoint_addresses.h" @@ -36,11 +41,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "test/core/end2end/cq_verifier.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/time/time.h" void run_test(bool wait_for_ready) { LOG(INFO) << "TEST: wait_for_ready=" << wait_for_ready; diff --git a/test/core/end2end/tests/bad_ping.cc b/test/core/end2end/tests/bad_ping.cc index fba9c53c246ee..38d78d5aa06c7 100644 --- a/test/core/end2end/tests/bad_ping.cc +++ b/test/core/end2end/tests/bad_ping.cc @@ -21,10 +21,10 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" #define MAX_PING_STRIKES 2 diff --git a/test/core/end2end/tests/binary_metadata.cc b/test/core/end2end/tests/binary_metadata.cc index 4b4f00ea044fa..0a8ab2a434f41 100644 --- a/test/core/end2end/tests/binary_metadata.cc +++ b/test/core/end2end/tests/binary_metadata.cc @@ -21,11 +21,11 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/slice/slice.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/end2end/tests/call_creds.cc b/test/core/end2end/tests/call_creds.cc index 2c139f665ba80..c258c641d5ff4 100644 --- a/test/core/end2end/tests/call_creds.cc +++ b/test/core/end2end/tests/call_creds.cc @@ -24,12 +24,12 @@ #include #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/test_util/test_call_creds.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/call_host_override.cc b/test/core/end2end/tests/call_host_override.cc index 35a3030874d7b..e37105b130e83 100644 --- a/test/core/end2end/tests/call_host_override.cc +++ b/test/core/end2end/tests/call_host_override.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/cancel_after_accept.cc b/test/core/end2end/tests/cancel_after_accept.cc index 8cbfb19a6cf81..9ef75670a71fb 100644 --- a/test/core/end2end/tests/cancel_after_accept.cc +++ b/test/core/end2end/tests/cancel_after_accept.cc @@ -21,14 +21,14 @@ #include +#include "absl/strings/str_cat.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/end2end/tests/cancel_test_helpers.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/test/core/end2end/tests/cancel_after_client_done.cc b/test/core/end2end/tests/cancel_after_client_done.cc index 23f4f7919a681..138a6897d8071 100644 --- a/test/core/end2end/tests/cancel_after_client_done.cc +++ b/test/core/end2end/tests/cancel_after_client_done.cc @@ -20,11 +20,11 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/end2end/tests/cancel_test_helpers.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/end2end/tests/cancel_after_invoke.cc b/test/core/end2end/tests/cancel_after_invoke.cc index ea2dbf4c7435a..c878effe73c4e 100644 --- a/test/core/end2end/tests/cancel_after_invoke.cc +++ b/test/core/end2end/tests/cancel_after_invoke.cc @@ -20,12 +20,12 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/chttp2/transport/internal.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/end2end/tests/cancel_test_helpers.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/cancel_after_round_trip.cc b/test/core/end2end/tests/cancel_after_round_trip.cc index a251fb26581e9..44906a0f86cf2 100644 --- a/test/core/end2end/tests/cancel_after_round_trip.cc +++ b/test/core/end2end/tests/cancel_after_round_trip.cc @@ -20,14 +20,14 @@ #include +#include "absl/strings/str_cat.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/end2end/tests/cancel_test_helpers.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/str_cat.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/cancel_before_invoke.cc b/test/core/end2end/tests/cancel_before_invoke.cc index 5730e7a606c7d..3cff6ee2b7b65 100644 --- a/test/core/end2end/tests/cancel_before_invoke.cc +++ b/test/core/end2end/tests/cancel_before_invoke.cc @@ -20,8 +20,8 @@ #include -#include "test/core/end2end/end2end_tests.h" #include "gtest/gtest.h" +#include "test/core/end2end/end2end_tests.h" namespace grpc_core { diff --git a/test/core/end2end/tests/cancel_with_status.cc b/test/core/end2end/tests/cancel_with_status.cc index fd733cb72524d..ad70af1ed0c67 100644 --- a/test/core/end2end/tests/cancel_with_status.cc +++ b/test/core/end2end/tests/cancel_with_status.cc @@ -22,11 +22,11 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/chttp2/transport/internal.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/channelz.cc b/test/core/end2end/tests/channelz.cc index 4364ffd2f99d5..6836ba2422fe2 100644 --- a/test/core/end2end/tests/channelz.cc +++ b/test/core/end2end/tests/channelz.cc @@ -23,13 +23,13 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/surface/channel.h" #include "src/core/server/server.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" using testing::HasSubstr; using testing::Not; diff --git a/test/core/end2end/tests/client_streaming.cc b/test/core/end2end/tests/client_streaming.cc index 62d16a8bb865a..d98a00cdd02af 100644 --- a/test/core/end2end/tests/client_streaming.cc +++ b/test/core/end2end/tests/client_streaming.cc @@ -20,9 +20,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/compressed_payload.cc b/test/core/end2end/tests/compressed_payload.cc index def5f296dbea8..23dc41ed6dba2 100644 --- a/test/core/end2end/tests/compressed_payload.cc +++ b/test/core/end2end/tests/compressed_payload.cc @@ -26,12 +26,12 @@ #include #include +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/bitset.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/connectivity.cc b/test/core/end2end/tests/connectivity.cc index 72534046591f0..0c676fb889ef5 100644 --- a/test/core/end2end/tests/connectivity.cc +++ b/test/core/end2end/tests/connectivity.cc @@ -19,11 +19,11 @@ #include #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/default_host.cc b/test/core/end2end/tests/default_host.cc index 49e1c5629b87b..f64106d9ecab0 100644 --- a/test/core/end2end/tests/default_host.cc +++ b/test/core/end2end/tests/default_host.cc @@ -21,10 +21,10 @@ #include #include -#include "src/core/util/time.h" -#include "test/core/end2end/end2end_tests.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "src/core/util/time.h" +#include "test/core/end2end/end2end_tests.h" using testing::AnyOf; using testing::StartsWith; diff --git a/test/core/end2end/tests/disappearing_server.cc b/test/core/end2end/tests/disappearing_server.cc index bc76b50d0ed52..7c980a5e6ac76 100644 --- a/test/core/end2end/tests/disappearing_server.cc +++ b/test/core/end2end/tests/disappearing_server.cc @@ -20,11 +20,11 @@ #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/test/core/end2end/tests/filter_causes_close.cc b/test/core/end2end/tests/filter_causes_close.cc index be0338842c0bb..489ffca9a392e 100644 --- a/test/core/end2end/tests/filter_causes_close.cc +++ b/test/core/end2end/tests/filter_causes_close.cc @@ -22,6 +22,8 @@ #include #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_fwd.h" @@ -37,8 +39,6 @@ #include "src/core/util/status_helper.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/filter_init_fails.cc b/test/core/end2end/tests/filter_init_fails.cc index 1a7dbe3646034..9f0acaa86bae0 100644 --- a/test/core/end2end/tests/filter_init_fails.cc +++ b/test/core/end2end/tests/filter_init_fails.cc @@ -22,6 +22,9 @@ #include #include +#include "absl/status/status.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" @@ -36,9 +39,6 @@ #include "src/core/util/status_helper.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" using ::testing::AnyOf; diff --git a/test/core/end2end/tests/filtered_metadata.cc b/test/core/end2end/tests/filtered_metadata.cc index 457e83ca9ab1e..77027e0766a4a 100644 --- a/test/core/end2end/tests/filtered_metadata.cc +++ b/test/core/end2end/tests/filtered_metadata.cc @@ -21,10 +21,10 @@ #include #include +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/graceful_server_shutdown.cc b/test/core/end2end/tests/graceful_server_shutdown.cc index b7ba72f295f4b..e7073e27a29a2 100644 --- a/test/core/end2end/tests/graceful_server_shutdown.cc +++ b/test/core/end2end/tests/graceful_server_shutdown.cc @@ -20,9 +20,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/grpc_authz.cc b/test/core/end2end/tests/grpc_authz.cc index 4ef000a2966f8..3b6a9b5c96065 100644 --- a/test/core/end2end/tests/grpc_authz.cc +++ b/test/core/end2end/tests/grpc_authz.cc @@ -19,6 +19,9 @@ #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/security/authorization/authorization_policy_provider.h" #include "src/core/lib/security/authorization/grpc_authorization_policy_provider.h" @@ -26,9 +29,6 @@ #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/test_util/tls_utils.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/status/status.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/high_initial_seqno.cc b/test/core/end2end/tests/high_initial_seqno.cc index 2cf11c70387d1..648492b898e5d 100644 --- a/test/core/end2end/tests/high_initial_seqno.cc +++ b/test/core/end2end/tests/high_initial_seqno.cc @@ -21,10 +21,10 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/hpack_size.cc b/test/core/end2end/tests/hpack_size.cc index 66a48a89dab0e..90aa7499b623c 100644 --- a/test/core/end2end/tests/hpack_size.cc +++ b/test/core/end2end/tests/hpack_size.cc @@ -23,12 +23,12 @@ #include #include +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/no_destruct.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/http2_stats.cc b/test/core/end2end/tests/http2_stats.cc index 1fa25c94ddbd6..64b046252b12e 100644 --- a/test/core/end2end/tests/http2_stats.cc +++ b/test/core/end2end/tests/http2_stats.cc @@ -20,6 +20,12 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" @@ -43,12 +49,6 @@ #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/test_util/fake_stats_plugin.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" -#include "absl/time/time.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/invoke_large_request.cc b/test/core/end2end/tests/invoke_large_request.cc index 68d0d65ae116e..55d0596383aa3 100644 --- a/test/core/end2end/tests/invoke_large_request.cc +++ b/test/core/end2end/tests/invoke_large_request.cc @@ -22,11 +22,11 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/slice/slice.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/keepalive_timeout.cc b/test/core/end2end/tests/keepalive_timeout.cc index c246e5c1fbdfe..b7f6c7afc90e9 100644 --- a/test/core/end2end/tests/keepalive_timeout.cc +++ b/test/core/end2end/tests/keepalive_timeout.cc @@ -21,15 +21,15 @@ #include +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/ext/transport/chttp2/transport/internal.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/large_metadata.cc b/test/core/end2end/tests/large_metadata.cc index 4ee2e0babc368..a7ccda6f050f4 100644 --- a/test/core/end2end/tests/large_metadata.cc +++ b/test/core/end2end/tests/large_metadata.cc @@ -22,11 +22,11 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/max_concurrent_streams.cc b/test/core/end2end/tests/max_concurrent_streams.cc index ca5b19e4ed6c5..fe60114171563 100644 --- a/test/core/end2end/tests/max_concurrent_streams.cc +++ b/test/core/end2end/tests/max_concurrent_streams.cc @@ -21,11 +21,11 @@ #include +#include "gtest/gtest.h" #include "src/core/ext/transport/chttp2/transport/internal.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/max_connection_age.cc b/test/core/end2end/tests/max_connection_age.cc index 51816fa6f4cfb..3d8191c11a98b 100644 --- a/test/core/end2end/tests/max_connection_age.cc +++ b/test/core/end2end/tests/max_connection_age.cc @@ -22,12 +22,12 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" #define MAX_CONNECTION_AGE_MS 500 #define MAX_CONNECTION_AGE_GRACE_MS 2000 diff --git a/test/core/end2end/tests/max_connection_idle.cc b/test/core/end2end/tests/max_connection_idle.cc index d711ecf5bb15c..2d899f89cfa83 100644 --- a/test/core/end2end/tests/max_connection_idle.cc +++ b/test/core/end2end/tests/max_connection_idle.cc @@ -23,11 +23,11 @@ #include #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/max_message_length.cc b/test/core/end2end/tests/max_message_length.cc index 87dc58b657fb1..83b48a278c1c8 100644 --- a/test/core/end2end/tests/max_message_length.cc +++ b/test/core/end2end/tests/max_message_length.cc @@ -21,10 +21,10 @@ #include -#include "src/core/lib/channel/channel_args.h" -#include "test/core/end2end/end2end_tests.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "src/core/lib/channel/channel_args.h" +#include "test/core/end2end/end2end_tests.h" using testing::StartsWith; diff --git a/test/core/end2end/tests/negative_deadline.cc b/test/core/end2end/tests/negative_deadline.cc index b813d71ef4770..be570c5febf10 100644 --- a/test/core/end2end/tests/negative_deadline.cc +++ b/test/core/end2end/tests/negative_deadline.cc @@ -20,9 +20,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/no_logging.cc b/test/core/end2end/tests/no_logging.cc index 30d7d19e3fd90..fa1044ef8569c 100644 --- a/test/core/end2end/tests/no_logging.cc +++ b/test/core/end2end/tests/no_logging.cc @@ -26,10 +26,6 @@ #include #include -#include "src/core/lib/debug/trace.h" -#include "src/core/util/time.h" -#include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" #include "absl/log/check.h" #include "absl/log/globals.h" #include "absl/log/log.h" @@ -38,6 +34,10 @@ #include "absl/log/log_sink_registry.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" +#include "gtest/gtest.h" +#include "src/core/lib/debug/trace.h" +#include "src/core/util/time.h" +#include "test/core/end2end/end2end_tests.h" namespace grpc_core { diff --git a/test/core/end2end/tests/payload.cc b/test/core/end2end/tests/payload.cc index 19e213f48e07c..cbe357729a617 100644 --- a/test/core/end2end/tests/payload.cc +++ b/test/core/end2end/tests/payload.cc @@ -20,10 +20,10 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/slice/slice.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/end2end/tests/ping.cc b/test/core/end2end/tests/ping.cc index 883d893ceaacb..0c67d80f09827 100644 --- a/test/core/end2end/tests/ping.cc +++ b/test/core/end2end/tests/ping.cc @@ -19,11 +19,11 @@ #include #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/proxy_auth.cc b/test/core/end2end/tests/proxy_auth.cc index 33bf2b8780294..30ba52c0c649c 100644 --- a/test/core/end2end/tests/proxy_auth.cc +++ b/test/core/end2end/tests/proxy_auth.cc @@ -21,11 +21,11 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/end2end/fixtures/http_proxy_fixture.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/registered_call.cc b/test/core/end2end/tests/registered_call.cc index 2160c835fc049..ebf94fbc1b5ac 100644 --- a/test/core/end2end/tests/registered_call.cc +++ b/test/core/end2end/tests/registered_call.cc @@ -18,9 +18,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/request_with_flags.cc b/test/core/end2end/tests/request_with_flags.cc index a4b313f323a13..fc995931343fb 100644 --- a/test/core/end2end/tests/request_with_flags.cc +++ b/test/core/end2end/tests/request_with_flags.cc @@ -27,11 +27,11 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/transport/transport.h" #include "src/core/util/time.h" #include "test/core/end2end/cq_verifier.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/request_with_payload.cc b/test/core/end2end/tests/request_with_payload.cc index 2ee3deb09d5b7..8df8a817667ba 100644 --- a/test/core/end2end/tests/request_with_payload.cc +++ b/test/core/end2end/tests/request_with_payload.cc @@ -20,9 +20,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/resource_quota_server.cc b/test/core/end2end/tests/resource_quota_server.cc index 4112fe43e6014..cdf3951507ca6 100644 --- a/test/core/end2end/tests/resource_quota_server.cc +++ b/test/core/end2end/tests/resource_quota_server.cc @@ -24,15 +24,15 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/slice/slice.h" #include "src/core/util/crash.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry.cc b/test/core/end2end/tests/retry.cc index e91a509ed2f9c..2cef67d7151ac 100644 --- a/test/core/end2end/tests/retry.cc +++ b/test/core/end2end/tests/retry.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/end2end/tests/retry_cancel_during_delay.cc b/test/core/end2end/tests/retry_cancel_during_delay.cc index 1adac1fcf906a..ea102fa5c2758 100644 --- a/test/core/end2end/tests/retry_cancel_during_delay.cc +++ b/test/core/end2end/tests/retry_cancel_during_delay.cc @@ -20,13 +20,13 @@ #include #include +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/end2end/tests/cancel_test_helpers.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/strings/str_format.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_cancel_with_multiple_send_batches.cc b/test/core/end2end/tests/retry_cancel_with_multiple_send_batches.cc index eb7445c1b355a..342d32bc8e30e 100644 --- a/test/core/end2end/tests/retry_cancel_with_multiple_send_batches.cc +++ b/test/core/end2end/tests/retry_cancel_with_multiple_send_batches.cc @@ -23,6 +23,9 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/chttp2/transport/internal.h" #include "src/core/lib/channel/channel_args.h" @@ -38,9 +41,6 @@ #include "test/core/end2end/end2end_tests.h" #include "test/core/end2end/tests/cancel_test_helpers.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_cancellation.cc b/test/core/end2end/tests/retry_cancellation.cc index a2f648c21f2b8..68c6513ec09f0 100644 --- a/test/core/end2end/tests/retry_cancellation.cc +++ b/test/core/end2end/tests/retry_cancellation.cc @@ -22,11 +22,11 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/end2end/tests/cancel_test_helpers.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_disabled.cc b/test/core/end2end/tests/retry_disabled.cc index 4d5d793f40b59..fea12f99fb702 100644 --- a/test/core/end2end/tests/retry_disabled.cc +++ b/test/core/end2end/tests/retry_disabled.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_exceeds_buffer_size_in_delay.cc b/test/core/end2end/tests/retry_exceeds_buffer_size_in_delay.cc index 06900bf175faf..10185acf2418f 100644 --- a/test/core/end2end/tests/retry_exceeds_buffer_size_in_delay.cc +++ b/test/core/end2end/tests/retry_exceeds_buffer_size_in_delay.cc @@ -20,10 +20,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_exceeds_buffer_size_in_initial_batch.cc b/test/core/end2end/tests/retry_exceeds_buffer_size_in_initial_batch.cc index 6824a194824a6..dbba25491c4c0 100644 --- a/test/core/end2end/tests/retry_exceeds_buffer_size_in_initial_batch.cc +++ b/test/core/end2end/tests/retry_exceeds_buffer_size_in_initial_batch.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_exceeds_buffer_size_in_subsequent_batch.cc b/test/core/end2end/tests/retry_exceeds_buffer_size_in_subsequent_batch.cc index c77cab6b8ea70..5fa9b63c5618b 100644 --- a/test/core/end2end/tests/retry_exceeds_buffer_size_in_subsequent_batch.cc +++ b/test/core/end2end/tests/retry_exceeds_buffer_size_in_subsequent_batch.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_lb_drop.cc b/test/core/end2end/tests/retry_lb_drop.cc index 5462652cee30a..c32a1b164d71d 100644 --- a/test/core/end2end/tests/retry_lb_drop.cc +++ b/test/core/end2end/tests/retry_lb_drop.cc @@ -23,6 +23,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/load_balancing/lb_policy.h" @@ -33,11 +38,6 @@ #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/test_util/test_lb_policies.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_lb_fail.cc b/test/core/end2end/tests/retry_lb_fail.cc index 7fb37a83f0913..14dbd3d8645e4 100644 --- a/test/core/end2end/tests/retry_lb_fail.cc +++ b/test/core/end2end/tests/retry_lb_fail.cc @@ -20,13 +20,13 @@ #include #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/test_util/test_lb_policies.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_non_retriable_status.cc b/test/core/end2end/tests/retry_non_retriable_status.cc index c1d392cb1ffc2..a1c8d6f1b6671 100644 --- a/test/core/end2end/tests/retry_non_retriable_status.cc +++ b/test/core/end2end/tests/retry_non_retriable_status.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_non_retriable_status_before_trailers.cc b/test/core/end2end/tests/retry_non_retriable_status_before_trailers.cc index 08256057779e3..5dea09568f0ff 100644 --- a/test/core/end2end/tests/retry_non_retriable_status_before_trailers.cc +++ b/test/core/end2end/tests/retry_non_retriable_status_before_trailers.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_per_attempt_recv_timeout.cc b/test/core/end2end/tests/retry_per_attempt_recv_timeout.cc index dc6cd5548b4a1..e6b22e974852e 100644 --- a/test/core/end2end/tests/retry_per_attempt_recv_timeout.cc +++ b/test/core/end2end/tests/retry_per_attempt_recv_timeout.cc @@ -20,12 +20,12 @@ #include #include +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/strings/str_format.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_per_attempt_recv_timeout_on_last_attempt.cc b/test/core/end2end/tests/retry_per_attempt_recv_timeout_on_last_attempt.cc index 7ba43050eb5cb..2a75ae2da789e 100644 --- a/test/core/end2end/tests/retry_per_attempt_recv_timeout_on_last_attempt.cc +++ b/test/core/end2end/tests/retry_per_attempt_recv_timeout_on_last_attempt.cc @@ -20,13 +20,13 @@ #include #include +#include "absl/strings/str_format.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/str_format.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_recv_initial_metadata.cc b/test/core/end2end/tests/retry_recv_initial_metadata.cc index ca502beba0a71..b771c9021de63 100644 --- a/test/core/end2end/tests/retry_recv_initial_metadata.cc +++ b/test/core/end2end/tests/retry_recv_initial_metadata.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_recv_message.cc b/test/core/end2end/tests/retry_recv_message.cc index 0454166aef06e..8ae6557ce79b5 100644 --- a/test/core/end2end/tests/retry_recv_message.cc +++ b/test/core/end2end/tests/retry_recv_message.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_recv_message_replay.cc b/test/core/end2end/tests/retry_recv_message_replay.cc index c5e7cae5d8aac..2479661d85e09 100644 --- a/test/core/end2end/tests/retry_recv_message_replay.cc +++ b/test/core/end2end/tests/retry_recv_message_replay.cc @@ -23,6 +23,8 @@ #include #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" @@ -36,8 +38,6 @@ #include "src/core/util/time.h" #include "src/core/util/unique_type_name.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_recv_trailing_metadata_error.cc b/test/core/end2end/tests/retry_recv_trailing_metadata_error.cc index 844a5255e4be4..cbcf40f41377c 100644 --- a/test/core/end2end/tests/retry_recv_trailing_metadata_error.cc +++ b/test/core/end2end/tests/retry_recv_trailing_metadata_error.cc @@ -21,6 +21,8 @@ #include #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" @@ -33,8 +35,6 @@ #include "src/core/util/status_helper.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_send_initial_metadata_refs.cc b/test/core/end2end/tests/retry_send_initial_metadata_refs.cc index e81dfdaab1668..6667a7a814f78 100644 --- a/test/core/end2end/tests/retry_send_initial_metadata_refs.cc +++ b/test/core/end2end/tests/retry_send_initial_metadata_refs.cc @@ -23,10 +23,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_send_op_fails.cc b/test/core/end2end/tests/retry_send_op_fails.cc index c3398c72738f8..012fe40d45003 100644 --- a/test/core/end2end/tests/retry_send_op_fails.cc +++ b/test/core/end2end/tests/retry_send_op_fails.cc @@ -23,6 +23,8 @@ #include #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_fwd.h" @@ -35,8 +37,6 @@ #include "src/core/util/status_helper.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_send_recv_batch.cc b/test/core/end2end/tests/retry_send_recv_batch.cc index d221f5972deb6..357b71b2886e9 100644 --- a/test/core/end2end/tests/retry_send_recv_batch.cc +++ b/test/core/end2end/tests/retry_send_recv_batch.cc @@ -19,10 +19,10 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_server_pushback_delay.cc b/test/core/end2end/tests/retry_server_pushback_delay.cc index 4045de9c65921..3ea9023d3fe8f 100644 --- a/test/core/end2end/tests/retry_server_pushback_delay.cc +++ b/test/core/end2end/tests/retry_server_pushback_delay.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_server_pushback_disabled.cc b/test/core/end2end/tests/retry_server_pushback_disabled.cc index c97d3587e8078..9feef21023acf 100644 --- a/test/core/end2end/tests/retry_server_pushback_disabled.cc +++ b/test/core/end2end/tests/retry_server_pushback_disabled.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_streaming.cc b/test/core/end2end/tests/retry_streaming.cc index 4a239ea0d5d32..b168f1ba42bd8 100644 --- a/test/core/end2end/tests/retry_streaming.cc +++ b/test/core/end2end/tests/retry_streaming.cc @@ -22,13 +22,13 @@ #include #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/channelz/channelz.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/surface/channel.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" using testing::HasSubstr; diff --git a/test/core/end2end/tests/retry_streaming_after_commit.cc b/test/core/end2end/tests/retry_streaming_after_commit.cc index aaef630f0610b..4ac1524872472 100644 --- a/test/core/end2end/tests/retry_streaming_after_commit.cc +++ b/test/core/end2end/tests/retry_streaming_after_commit.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_streaming_succeeds_before_replay_finished.cc b/test/core/end2end/tests/retry_streaming_succeeds_before_replay_finished.cc index d889bc30c3471..ddf8fd5794260 100644 --- a/test/core/end2end/tests/retry_streaming_succeeds_before_replay_finished.cc +++ b/test/core/end2end/tests/retry_streaming_succeeds_before_replay_finished.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_throttled.cc b/test/core/end2end/tests/retry_throttled.cc index 088e0743992cc..55efe6ab1e8ea 100644 --- a/test/core/end2end/tests/retry_throttled.cc +++ b/test/core/end2end/tests/retry_throttled.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_too_many_attempts.cc b/test/core/end2end/tests/retry_too_many_attempts.cc index c5765a509154d..5e6c8d015ec21 100644 --- a/test/core/end2end/tests/retry_too_many_attempts.cc +++ b/test/core/end2end/tests/retry_too_many_attempts.cc @@ -22,10 +22,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_transparent_goaway.cc b/test/core/end2end/tests/retry_transparent_goaway.cc index 97692f0cb7cd5..d8200e3417357 100644 --- a/test/core/end2end/tests/retry_transparent_goaway.cc +++ b/test/core/end2end/tests/retry_transparent_goaway.cc @@ -21,6 +21,8 @@ #include #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_fwd.h" @@ -35,8 +37,6 @@ #include "src/core/util/unique_type_name.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/test_util/fail_first_call_filter.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_transparent_max_concurrent_streams.cc b/test/core/end2end/tests/retry_transparent_max_concurrent_streams.cc index 5bf5b628b4d0c..053a45aeaa11e 100644 --- a/test/core/end2end/tests/retry_transparent_max_concurrent_streams.cc +++ b/test/core/end2end/tests/retry_transparent_max_concurrent_streams.cc @@ -21,11 +21,11 @@ #include #include +#include "gtest/gtest.h" #include "src/core/ext/transport/chttp2/transport/internal.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_transparent_not_sent_on_wire.cc b/test/core/end2end/tests/retry_transparent_not_sent_on_wire.cc index 4dc51d46ccf73..5ab05ef32da87 100644 --- a/test/core/end2end/tests/retry_transparent_not_sent_on_wire.cc +++ b/test/core/end2end/tests/retry_transparent_not_sent_on_wire.cc @@ -22,6 +22,8 @@ #include #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_fwd.h" @@ -35,8 +37,6 @@ #include "src/core/util/time.h" #include "src/core/util/unique_type_name.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_unref_before_finish.cc b/test/core/end2end/tests/retry_unref_before_finish.cc index 0611755544a38..8926fbab87c90 100644 --- a/test/core/end2end/tests/retry_unref_before_finish.cc +++ b/test/core/end2end/tests/retry_unref_before_finish.cc @@ -19,10 +19,10 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/retry_unref_before_recv.cc b/test/core/end2end/tests/retry_unref_before_recv.cc index d45c09018c71d..cf8073eca1aa4 100644 --- a/test/core/end2end/tests/retry_unref_before_recv.cc +++ b/test/core/end2end/tests/retry_unref_before_recv.cc @@ -20,10 +20,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/server_finishes_request.cc b/test/core/end2end/tests/server_finishes_request.cc index a64e3e6eb182f..5fbeeb3aa20fe 100644 --- a/test/core/end2end/tests/server_finishes_request.cc +++ b/test/core/end2end/tests/server_finishes_request.cc @@ -20,9 +20,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/server_streaming.cc b/test/core/end2end/tests/server_streaming.cc index 1933aa6457299..55d9cbb2be3a7 100644 --- a/test/core/end2end/tests/server_streaming.cc +++ b/test/core/end2end/tests/server_streaming.cc @@ -20,13 +20,13 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/cq_verifier.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/end2end/fixtures/h2_tls_common.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/shutdown_finishes_calls.cc b/test/core/end2end/tests/shutdown_finishes_calls.cc index a08113882ebeb..f17596d288018 100644 --- a/test/core/end2end/tests/shutdown_finishes_calls.cc +++ b/test/core/end2end/tests/shutdown_finishes_calls.cc @@ -21,10 +21,10 @@ #include +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/simple_delayed_request.cc b/test/core/end2end/tests/simple_delayed_request.cc index d71c053c7d077..9b684df02ec87 100644 --- a/test/core/end2end/tests/simple_delayed_request.cc +++ b/test/core/end2end/tests/simple_delayed_request.cc @@ -22,11 +22,11 @@ #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/simple_metadata.cc b/test/core/end2end/tests/simple_metadata.cc index 6c231d4707e90..cc355b9cb5e76 100644 --- a/test/core/end2end/tests/simple_metadata.cc +++ b/test/core/end2end/tests/simple_metadata.cc @@ -20,9 +20,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/simple_request.cc b/test/core/end2end/tests/simple_request.cc index ebdebe1a37cf1..8a7d67cc29590 100644 --- a/test/core/end2end/tests/simple_request.cc +++ b/test/core/end2end/tests/simple_request.cc @@ -24,14 +24,14 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/match.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/telemetry/stats.h" #include "src/core/telemetry/stats_data.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/match.h" using testing::HasSubstr; using testing::StartsWith; diff --git a/test/core/end2end/tests/streaming_error_response.cc b/test/core/end2end/tests/streaming_error_response.cc index 9c9df9ea7877b..c9ca534ca9db4 100644 --- a/test/core/end2end/tests/streaming_error_response.cc +++ b/test/core/end2end/tests/streaming_error_response.cc @@ -23,9 +23,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/timeout_before_request_call.cc b/test/core/end2end/tests/timeout_before_request_call.cc index 38c9a799d022e..9b6c356b9589d 100644 --- a/test/core/end2end/tests/timeout_before_request_call.cc +++ b/test/core/end2end/tests/timeout_before_request_call.cc @@ -19,12 +19,12 @@ #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/slice/slice.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/trailing_metadata.cc b/test/core/end2end/tests/trailing_metadata.cc index f1bf70ccdf1e6..03fb28d854e0f 100644 --- a/test/core/end2end/tests/trailing_metadata.cc +++ b/test/core/end2end/tests/trailing_metadata.cc @@ -20,9 +20,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/end2end/tests/write_buffering.cc b/test/core/end2end/tests/write_buffering.cc index f4ad830def306..d55d127ef4718 100644 --- a/test/core/end2end/tests/write_buffering.cc +++ b/test/core/end2end/tests/write_buffering.cc @@ -21,9 +21,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { // Client sends a request with payload, server reads then returns status. diff --git a/test/core/end2end/tests/write_buffering_at_end.cc b/test/core/end2end/tests/write_buffering_at_end.cc index 328e9909c4fb2..c6b98832699d5 100644 --- a/test/core/end2end/tests/write_buffering_at_end.cc +++ b/test/core/end2end/tests/write_buffering_at_end.cc @@ -21,9 +21,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/time.h" #include "test/core/end2end/end2end_tests.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/event_engine/cf/cf_engine_test.cc b/test/core/event_engine/cf/cf_engine_test.cc index 279ff71a14ec1..c2774b39cacd4 100644 --- a/test/core/event_engine/cf/cf_engine_test.cc +++ b/test/core/event_engine/cf/cf_engine_test.cc @@ -21,17 +21,17 @@ #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_format.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/cf_engine/cf_engine.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" #include "src/core/lib/event_engine/tcp_socket_utils.h" #include "src/core/lib/resource_quota/memory_quota.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "test/core/test_util/port.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" using namespace std::chrono_literals; diff --git a/test/core/event_engine/common_closures_test.cc b/test/core/event_engine/common_closures_test.cc index 1c21550807a6e..b3a8fa39bbfc8 100644 --- a/test/core/event_engine/common_closures_test.cc +++ b/test/core/event_engine/common_closures_test.cc @@ -18,9 +18,9 @@ #include -#include "src/core/util/notification.h" -#include "gtest/gtest.h" #include "absl/functional/any_invocable.h" +#include "gtest/gtest.h" +#include "src/core/util/notification.h" using ::grpc_event_engine::experimental::AnyInvocableClosure; using ::grpc_event_engine::experimental::SelfDeletingClosure; diff --git a/test/core/event_engine/default_engine_methods_test.cc b/test/core/event_engine/default_engine_methods_test.cc index e8d3bf6815d6d..b01a878be5d7e 100644 --- a/test/core/event_engine/default_engine_methods_test.cc +++ b/test/core/event_engine/default_engine_methods_test.cc @@ -22,16 +22,16 @@ #include #include -#include "src/core/lib/event_engine/default_event_engine.h" -#include "src/core/util/notification.h" -#include "test/core/event_engine/mock_event_engine.h" -#include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" #include "absl/functional/any_invocable.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/time/clock.h" #include "absl/time/time.h" +#include "gtest/gtest.h" +#include "src/core/lib/event_engine/default_event_engine.h" +#include "src/core/util/notification.h" +#include "test/core/event_engine/mock_event_engine.h" +#include "test/core/test_util/test_config.h" namespace { diff --git a/test/core/event_engine/endpoint_config_test.cc b/test/core/event_engine/endpoint_config_test.cc index 27781bc8acae2..3f0a866f96467 100644 --- a/test/core/event_engine/endpoint_config_test.cc +++ b/test/core/event_engine/endpoint_config_test.cc @@ -16,9 +16,9 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" -#include "gtest/gtest.h" using ::grpc_event_engine::experimental::ChannelArgsEndpointConfig; diff --git a/test/core/event_engine/event_engine_test_utils.cc b/test/core/event_engine/event_engine_test_utils.cc index fdef9d6c244b4..bfe33a8852ea1 100644 --- a/test/core/event_engine/event_engine_test_utils.cc +++ b/test/core/event_engine/event_engine_test_utils.cc @@ -28,13 +28,6 @@ #include #include -#include "src/core/lib/event_engine/channel_args_endpoint_config.h" -#include "src/core/lib/event_engine/tcp_socket_utils.h" -#include "src/core/lib/resource_quota/memory_quota.h" -#include "src/core/util/crash.h" -#include "src/core/util/notification.h" -#include "src/core/util/time.h" -#include "test/core/test_util/build.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" @@ -42,6 +35,13 @@ #include "absl/strings/str_cat.h" #include "absl/time/clock.h" #include "absl/time/time.h" +#include "src/core/lib/event_engine/channel_args_endpoint_config.h" +#include "src/core/lib/event_engine/tcp_socket_utils.h" +#include "src/core/lib/resource_quota/memory_quota.h" +#include "src/core/util/crash.h" +#include "src/core/util/notification.h" +#include "src/core/util/time.h" +#include "test/core/test_util/build.h" // IWYU pragma: no_include diff --git a/test/core/event_engine/event_engine_test_utils.h b/test/core/event_engine/event_engine_test_utils.h index 7f3260b5e5eaa..d1c215e680a07 100644 --- a/test/core/event_engine/event_engine_test_utils.h +++ b/test/core/event_engine/event_engine_test_utils.h @@ -27,12 +27,12 @@ #include #include -#include "src/core/lib/resource_quota/memory_quota.h" -#include "src/core/util/notification.h" -#include "src/core/util/sync.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "src/core/lib/resource_quota/memory_quota.h" +#include "src/core/util/notification.h" +#include "src/core/util/sync.h" using EventEngineFactory = std::function< std::unique_ptr()>; diff --git a/test/core/event_engine/factory_test.cc b/test/core/event_engine/factory_test.cc index 2295cafffe389..c175c9fa2b4ba 100644 --- a/test/core/event_engine/factory_test.cc +++ b/test/core/event_engine/factory_test.cc @@ -18,11 +18,11 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "test/core/event_engine/mock_event_engine.h" #include "test/core/event_engine/util/aborting_event_engine.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace { using ::grpc_event_engine::experimental::AbortingEventEngine; diff --git a/test/core/event_engine/forkable_test.cc b/test/core/event_engine/forkable_test.cc index b2ea149fec7d0..98a766046dbc2 100644 --- a/test/core/event_engine/forkable_test.cc +++ b/test/core/event_engine/forkable_test.cc @@ -26,10 +26,10 @@ #include #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/util/no_destruct.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" namespace { using ::grpc_event_engine::experimental::Forkable; diff --git a/test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.cc b/test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.cc index afd983a80a8c5..05567aff528c0 100644 --- a/test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.cc +++ b/test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.cc @@ -25,6 +25,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/memory/memory.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/event_engine/extensions/blocking_dns.h" #include "src/core/lib/event_engine/tcp_socket_utils.h" @@ -36,9 +39,6 @@ #include "test/core/event_engine/event_engine_test_utils.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h" #include "test/core/test_util/port.h" -#include "absl/log/check.h" -#include "absl/memory/memory.h" -#include "absl/strings/str_cat.h" #if defined(GRPC_POSIX_SOCKET_TCP) #include "src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.h" diff --git a/test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h b/test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h index d619a0429072e..c91682afa5376 100644 --- a/test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h +++ b/test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h @@ -34,6 +34,11 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/event_engine/query_extensions.h" #include "src/core/lib/event_engine/time_util.h" @@ -42,11 +47,6 @@ #include "src/core/util/sync.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h" #include "test/core/test_util/port.h" -#include "absl/base/thread_annotations.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine_unittest.cc b/test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine_unittest.cc index ac8b8d71e05d6..0d89448a2f786 100644 --- a/test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine_unittest.cc +++ b/test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine_unittest.cc @@ -18,9 +18,9 @@ #include -#include "src/core/util/time.h" -#include "gtest/gtest.h" #include "absl/synchronization/notification.h" +#include "gtest/gtest.h" +#include "src/core/util/time.h" using ::grpc_event_engine::experimental::FuzzingEventEngine; diff --git a/test/core/event_engine/handle_tests.cc b/test/core/event_engine/handle_tests.cc index c9a5a9a2a4ca0..864d95472465e 100644 --- a/test/core/event_engine/handle_tests.cc +++ b/test/core/event_engine/handle_tests.cc @@ -16,8 +16,8 @@ #include -#include "gtest/gtest.h" #include "absl/strings/str_cat.h" +#include "gtest/gtest.h" using ::grpc_event_engine::experimental::EventEngine; diff --git a/test/core/event_engine/mock_event_engine.h b/test/core/event_engine/mock_event_engine.h index 73c87ad75ef8f..9036e7af6d150 100644 --- a/test/core/event_engine/mock_event_engine.h +++ b/test/core/event_engine/mock_event_engine.h @@ -21,10 +21,10 @@ #include -#include "gmock/gmock.h" #include "absl/functional/any_invocable.h" #include "absl/status/status.h" #include "absl/status/statusor.h" +#include "gmock/gmock.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/posix/event_poller_posix_test.cc b/test/core/event_engine/posix/event_poller_posix_test.cc index 0ccdab0778c5f..f4d463e2b5056 100644 --- a/test/core/event_engine/posix/event_poller_posix_test.cc +++ b/test/core/event_engine/posix/event_poller_posix_test.cc @@ -23,18 +23,18 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/lib/event_engine/poller.h" #include "src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.h" #include "src/core/lib/event_engine/posix_engine/wakeup_fd_posix.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/ref_counted_ptr.h" -#include "gtest/gtest.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" // IWYU pragma: no_include // IWYU pragma: no_include @@ -52,6 +52,8 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" #include "src/core/lib/event_engine/common_closures.h" #include "src/core/lib/event_engine/posix_engine/event_poller.h" #include "src/core/lib/event_engine/posix_engine/event_poller_posix_default.h" @@ -63,8 +65,6 @@ #include "src/core/util/strerror.h" #include "test/core/event_engine/posix/posix_engine_test_utils.h" #include "test/core/test_util/port.h" -#include "absl/log/log.h" -#include "absl/status/status.h" static gpr_mu g_mu; static std::shared_ptr diff --git a/test/core/event_engine/posix/lock_free_event_test.cc b/test/core/event_engine/posix/lock_free_event_test.cc index 31619e98e73af..f2d39bcfd1e60 100644 --- a/test/core/event_engine/posix/lock_free_event_test.cc +++ b/test/core/event_engine/posix/lock_free_event_test.cc @@ -22,15 +22,15 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/status/status.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/event_engine/posix_engine/event_poller.h" #include "src/core/lib/event_engine/posix_engine/lockfree_event.h" #include "src/core/lib/event_engine/posix_engine/posix_engine_closure.h" #include "src/core/util/sync.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/status.h" -#include "absl/time/time.h" using ::grpc_event_engine::experimental::EventEngine; using ::grpc_event_engine::experimental::Scheduler; diff --git a/test/core/event_engine/posix/log_too_many_open_files_test.cc b/test/core/event_engine/posix/log_too_many_open_files_test.cc index 4a29addd50777..8b2dc68679a65 100644 --- a/test/core/event_engine/posix/log_too_many_open_files_test.cc +++ b/test/core/event_engine/posix/log_too_many_open_files_test.cc @@ -17,14 +17,14 @@ #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/posix_engine/tcp_socket_utils.h" #include "src/core/lib/event_engine/tcp_socket_utils.h" #include "src/core/util/strerror.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" using ::grpc_event_engine::experimental::PosixSocketWrapper; diff --git a/test/core/event_engine/posix/posix_endpoint_test.cc b/test/core/event_engine/posix/posix_endpoint_test.cc index 54f7548dbf069..a21d783fd0a30 100644 --- a/test/core/event_engine/posix/posix_endpoint_test.cc +++ b/test/core/event_engine/posix/posix_endpoint_test.cc @@ -27,6 +27,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" @@ -46,13 +53,6 @@ #include "test/core/event_engine/posix/posix_engine_test_utils.h" #include "test/core/event_engine/test_suite/posix/oracle_event_engine_posix.h" #include "test/core/test_util/port.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/posix/posix_engine_listener_utils_test.cc b/test/core/event_engine/posix/posix_engine_listener_utils_test.cc index 4b4a1d7a129d2..64bbe55479662 100644 --- a/test/core/event_engine/posix/posix_engine_listener_utils_test.cc +++ b/test/core/event_engine/posix/posix_engine_listener_utils_test.cc @@ -21,23 +21,23 @@ #include #include -#include "src/core/lib/iomgr/port.h" -#include "gtest/gtest.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" +#include "gtest/gtest.h" +#include "src/core/lib/iomgr/port.h" // This test won't work except with posix sockets enabled #ifdef GRPC_POSIX_SOCKET_UTILS_COMMON #include +#include "absl/log/log.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" #include "src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.h" #include "src/core/lib/event_engine/posix_engine/tcp_socket_utils.h" #include "src/core/lib/event_engine/tcp_socket_utils.h" #include "test/core/test_util/port.h" -#include "absl/log/log.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/posix/posix_engine_test_utils.cc b/test/core/event_engine/posix/posix_engine_test_utils.cc index 235fdb868bead..88da568651507 100644 --- a/test/core/event_engine/posix/posix_engine_test_utils.cc +++ b/test/core/event_engine/posix/posix_engine_test_utils.cc @@ -20,9 +20,9 @@ #include #include -#include "src/core/util/crash.h" #include "absl/log/log.h" #include "absl/strings/str_format.h" +#include "src/core/util/crash.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/posix/posix_engine_test_utils.h b/test/core/event_engine/posix/posix_engine_test_utils.h index d5d88f88f913e..34e83c4a124a1 100644 --- a/test/core/event_engine/posix/posix_engine_test_utils.h +++ b/test/core/event_engine/posix/posix_engine_test_utils.h @@ -19,8 +19,8 @@ #include -#include "src/core/lib/event_engine/posix_engine/event_poller.h" #include "absl/functional/any_invocable.h" +#include "src/core/lib/event_engine/posix_engine/event_poller.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/posix/posix_event_engine_connect_test.cc b/test/core/event_engine/posix/posix_event_engine_connect_test.cc index d82f1cbb31fef..274c18a3beb71 100644 --- a/test/core/event_engine/posix/posix_event_engine_connect_test.cc +++ b/test/core/event_engine/posix/posix_event_engine_connect_test.cc @@ -29,6 +29,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/memory/memory.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" #include "src/core/lib/event_engine/posix_engine/posix_engine.h" @@ -41,14 +49,6 @@ #include "test/core/event_engine/event_engine_test_utils.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/posix/tcp_posix_socket_utils_test.cc b/test/core/event_engine/posix/tcp_posix_socket_utils_test.cc index 8b791634fbf94..99db037a1959c 100644 --- a/test/core/event_engine/posix/tcp_posix_socket_utils_test.cc +++ b/test/core/event_engine/posix/tcp_posix_socket_utils_test.cc @@ -18,9 +18,9 @@ #include -#include "src/core/lib/iomgr/port.h" -#include "gtest/gtest.h" #include "absl/status/status.h" +#include "gtest/gtest.h" +#include "src/core/lib/iomgr/port.h" // IWYU pragma: no_include diff --git a/test/core/event_engine/posix/timer_heap_test.cc b/test/core/event_engine/posix/timer_heap_test.cc index 24df3247b67a1..23342d39f92dd 100644 --- a/test/core/event_engine/posix/timer_heap_test.cc +++ b/test/core/event_engine/posix/timer_heap_test.cc @@ -24,11 +24,11 @@ #include #include -#include "src/core/lib/event_engine/posix_engine/timer.h" -#include "src/core/util/bitset.h" +#include "absl/log/check.h" #include "gmock/gmock.h" #include "gtest/gtest.h" -#include "absl/log/check.h" +#include "src/core/lib/event_engine/posix_engine/timer.h" +#include "src/core/util/bitset.h" using testing::Contains; using testing::Not; diff --git a/test/core/event_engine/posix/timer_list_test.cc b/test/core/event_engine/posix/timer_list_test.cc index d642db576e113..b6ada8bc10135 100644 --- a/test/core/event_engine/posix/timer_list_test.cc +++ b/test/core/event_engine/posix/timer_list_test.cc @@ -24,10 +24,10 @@ #include #include -#include "src/core/lib/event_engine/posix_engine/timer.h" -#include "src/core/util/time.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "src/core/lib/event_engine/posix_engine/timer.h" +#include "src/core/util/time.h" using testing::Mock; using testing::Return; diff --git a/test/core/event_engine/posix/timer_manager_test.cc b/test/core/event_engine/posix/timer_manager_test.cc index 6e4d885149397..40f53540b75ee 100644 --- a/test/core/event_engine/posix/timer_manager_test.cc +++ b/test/core/event_engine/posix/timer_manager_test.cc @@ -20,16 +20,16 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/log.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/common_closures.h" #include "src/core/lib/event_engine/posix_engine/timer.h" #include "src/core/lib/event_engine/thread_pool/thread_pool.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/log.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/posix/traced_buffer_list_test.cc b/test/core/event_engine/posix/traced_buffer_list_test.cc index aa3158898381a..1d460aac1660b 100644 --- a/test/core/event_engine/posix/traced_buffer_list_test.cc +++ b/test/core/event_engine/posix/traced_buffer_list_test.cc @@ -20,12 +20,12 @@ #include +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/time.h" #include "src/core/util/useful.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" #ifdef GRPC_LINUX_ERRQUEUE diff --git a/test/core/event_engine/posix/wakeup_fd_posix_test.cc b/test/core/event_engine/posix/wakeup_fd_posix_test.cc index aaa081de911ca..e2d11bba6027a 100644 --- a/test/core/event_engine/posix/wakeup_fd_posix_test.cc +++ b/test/core/event_engine/posix/wakeup_fd_posix_test.cc @@ -16,10 +16,10 @@ #include +#include "absl/status/statusor.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.h" #include "src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.h" -#include "gtest/gtest.h" -#include "absl/status/statusor.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/query_extensions_test.cc b/test/core/event_engine/query_extensions_test.cc index 4297594704ba5..0c10b76cc29d9 100644 --- a/test/core/event_engine/query_extensions_test.cc +++ b/test/core/event_engine/query_extensions_test.cc @@ -19,10 +19,10 @@ #include -#include "src/core/util/crash.h" -#include "gtest/gtest.h" #include "absl/functional/any_invocable.h" #include "absl/status/status.h" +#include "gtest/gtest.h" +#include "src/core/util/crash.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/resolved_address_fuzzer.cc b/test/core/event_engine/resolved_address_fuzzer.cc index a8abe963f3326..d9ebb3203d2d1 100644 --- a/test/core/event_engine/resolved_address_fuzzer.cc +++ b/test/core/event_engine/resolved_address_fuzzer.cc @@ -18,11 +18,11 @@ #include #include -#include "src/core/lib/event_engine/tcp_socket_utils.h" -#include "src/core/util/uri.h" -#include "fuzztest/fuzztest.h" #include "absl/log/check.h" #include "absl/status/statusor.h" +#include "fuzztest/fuzztest.h" +#include "src/core/lib/event_engine/tcp_socket_utils.h" +#include "src/core/util/uri.h" using fuzztest::Arbitrary; using fuzztest::VectorOf; diff --git a/test/core/event_engine/slice_buffer_test.cc b/test/core/event_engine/slice_buffer_test.cc index 4594863702785..a3221ac674368 100644 --- a/test/core/event_engine/slice_buffer_test.cc +++ b/test/core/event_engine/slice_buffer_test.cc @@ -22,8 +22,8 @@ #include #include -#include "gtest/gtest.h" #include "absl/log/check.h" +#include "gtest/gtest.h" using ::grpc_event_engine::experimental::Slice; using ::grpc_event_engine::experimental::SliceBuffer; diff --git a/test/core/event_engine/tcp_socket_utils_test.cc b/test/core/event_engine/tcp_socket_utils_test.cc index 67ace68606c90..fc92659268556 100644 --- a/test/core/event_engine/tcp_socket_utils_test.cc +++ b/test/core/event_engine/tcp_socket_utils_test.cc @@ -46,11 +46,11 @@ #include -#include "src/core/lib/iomgr/sockaddr.h" -#include "gtest/gtest.h" #include "absl/log/check.h" #include "absl/status/status.h" #include "absl/status/statusor.h" +#include "gtest/gtest.h" +#include "src/core/lib/iomgr/sockaddr.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/test_suite/event_engine_test_framework.h b/test/core/event_engine/test_suite/event_engine_test_framework.h index b2ceaf0730d39..54e90340e49e6 100644 --- a/test/core/event_engine/test_suite/event_engine_test_framework.h +++ b/test/core/event_engine/test_suite/event_engine_test_framework.h @@ -19,9 +19,9 @@ #include #include -#include "gtest/gtest.h" #include "absl/functional/any_invocable.h" #include "absl/log/check.h" +#include "gtest/gtest.h" extern absl::AnyInvocable< std::shared_ptr()>* diff --git a/test/core/event_engine/test_suite/fuzzing_event_engine_test.cc b/test/core/event_engine/test_suite/fuzzing_event_engine_test.cc index e2bf1e1839ce2..64a639aa2f55d 100644 --- a/test/core/event_engine/test_suite/fuzzing_event_engine_test.cc +++ b/test/core/event_engine/test_suite/fuzzing_event_engine_test.cc @@ -16,9 +16,9 @@ #include +#include "gtest/gtest.h" #include "test/core/event_engine/test_suite/event_engine_test_framework.h" #include "test/core/event_engine/test_suite/tests/timer_test.h" -#include "gtest/gtest.h" int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); diff --git a/test/core/event_engine/test_suite/posix/oracle_event_engine_posix.cc b/test/core/event_engine/test_suite/posix/oracle_event_engine_posix.cc index 5b3a0792865ed..b5f0c70ceb978 100644 --- a/test/core/event_engine/test_suite/posix/oracle_event_engine_posix.cc +++ b/test/core/event_engine/test_suite/posix/oracle_event_engine_posix.cc @@ -25,10 +25,6 @@ #include #include -#include "src/core/lib/address_utils/sockaddr_utils.h" -#include "src/core/lib/iomgr/resolved_address.h" -#include "src/core/util/crash.h" -#include "src/core/util/strerror.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" @@ -36,6 +32,10 @@ #include "absl/strings/str_format.h" #include "absl/time/clock.h" #include "absl/time/time.h" +#include "src/core/lib/address_utils/sockaddr_utils.h" +#include "src/core/lib/iomgr/resolved_address.h" +#include "src/core/util/crash.h" +#include "src/core/util/strerror.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/test_suite/posix/oracle_event_engine_posix.h b/test/core/event_engine/test_suite/posix/oracle_event_engine_posix.h index f4cfdc6197a7b..6db3489c030ff 100644 --- a/test/core/event_engine/test_suite/posix/oracle_event_engine_posix.h +++ b/test/core/event_engine/test_suite/posix/oracle_event_engine_posix.h @@ -25,15 +25,15 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/functional/any_invocable.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" #include "src/core/util/crash.h" #include "src/core/util/notification.h" #include "src/core/util/sync.h" #include "src/core/util/thd.h" #include "test/core/event_engine/event_engine_test_utils.h" -#include "absl/base/thread_annotations.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/test_suite/posix/oracle_event_engine_posix_test.cc b/test/core/event_engine/test_suite/posix/oracle_event_engine_posix_test.cc index 2fd51295b9e32..7fb97272cac4b 100644 --- a/test/core/event_engine/test_suite/posix/oracle_event_engine_posix_test.cc +++ b/test/core/event_engine/test_suite/posix/oracle_event_engine_posix_test.cc @@ -13,9 +13,9 @@ // limitations under the License. #include "test/core/event_engine/test_suite/posix/oracle_event_engine_posix.h" +#include "gtest/gtest.h" #include "test/core/event_engine/test_suite/event_engine_test_framework.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); diff --git a/test/core/event_engine/test_suite/posix_event_engine_native_dns_test.cc b/test/core/event_engine/test_suite/posix_event_engine_native_dns_test.cc index a1e93e8ed91d1..658c378af2c7b 100644 --- a/test/core/event_engine/test_suite/posix_event_engine_native_dns_test.cc +++ b/test/core/event_engine/test_suite/posix_event_engine_native_dns_test.cc @@ -17,13 +17,13 @@ #include #include +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/lib/event_engine/posix_engine/posix_engine.h" #include "test/core/event_engine/test_suite/event_engine_test_framework.h" #include "test/core/event_engine/test_suite/posix/oracle_event_engine_posix.h" #include "test/core/event_engine/test_suite/tests/dns_test.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); diff --git a/test/core/event_engine/test_suite/posix_event_engine_test.cc b/test/core/event_engine/test_suite/posix_event_engine_test.cc index dacb84b125bec..8795665afeb55 100644 --- a/test/core/event_engine/test_suite/posix_event_engine_test.cc +++ b/test/core/event_engine/test_suite/posix_event_engine_test.cc @@ -15,6 +15,7 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/event_engine/posix_engine/posix_engine.h" #include "test/core/event_engine/test_suite/event_engine_test_framework.h" #include "test/core/event_engine/test_suite/posix/oracle_event_engine_posix.h" @@ -22,7 +23,6 @@ #include "test/core/event_engine/test_suite/tests/server_test.h" #include "test/core/event_engine/test_suite/tests/timer_test.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); diff --git a/test/core/event_engine/test_suite/tests/client_test.cc b/test/core/event_engine/test_suite/tests/client_test.cc index 6b7b3013913f6..c4d88c38855f6 100644 --- a/test/core/event_engine/test_suite/tests/client_test.cc +++ b/test/core/event_engine/test_suite/tests/client_test.cc @@ -26,6 +26,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" #include "src/core/lib/event_engine/tcp_socket_utils.h" @@ -36,13 +43,6 @@ #include "test/core/event_engine/event_engine_test_utils.h" #include "test/core/event_engine/test_suite/event_engine_test_framework.h" #include "test/core/test_util/port.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/test_suite/tests/dns_test.cc b/test/core/event_engine/test_suite/tests/dns_test.cc index a16484c49d698..893aa909a1695 100644 --- a/test/core/event_engine/test_suite/tests/dns_test.cc +++ b/test/core/event_engine/test_suite/tests/dns_test.cc @@ -26,6 +26,14 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/lib/event_engine/tcp_socket_utils.h" #include "src/core/lib/iomgr/sockaddr.h" @@ -36,14 +44,6 @@ #include "test/core/test_util/port.h" #include "test/cpp/util/get_grpc_test_runfile_dir.h" #include "test/cpp/util/subprocess.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" #ifdef GPR_WINDOWS #include "test/cpp/util/windows/manifest_file.h" diff --git a/test/core/event_engine/test_suite/tests/server_test.cc b/test/core/event_engine/test_suite/tests/server_test.cc index 22240b24f51bb..1c6b55cc8516f 100644 --- a/test/core/event_engine/test_suite/tests/server_test.cc +++ b/test/core/event_engine/test_suite/tests/server_test.cc @@ -26,6 +26,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" #include "src/core/lib/event_engine/tcp_socket_utils.h" @@ -36,13 +43,6 @@ #include "test/core/event_engine/event_engine_test_utils.h" #include "test/core/event_engine/test_suite/event_engine_test_framework.h" #include "test/core/test_util/port.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/test_suite/tests/timer_test.cc b/test/core/event_engine/test_suite/tests/timer_test.cc index fb8a51eda0cc4..bc25e6e1bbc7c 100644 --- a/test/core/event_engine/test_suite/tests/timer_test.cc +++ b/test/core/event_engine/test_suite/tests/timer_test.cc @@ -24,11 +24,6 @@ #include #include -#include "src/core/lib/event_engine/time_util.h" -#include "src/core/util/sync.h" -#include "test/core/event_engine/test_suite/event_engine_test_framework.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "absl/base/thread_annotations.h" #include "absl/functional/any_invocable.h" #include "absl/functional/bind_front.h" @@ -36,6 +31,11 @@ #include "absl/log/log.h" #include "absl/time/clock.h" #include "absl/time/time.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" +#include "src/core/lib/event_engine/time_util.h" +#include "src/core/util/sync.h" +#include "test/core/event_engine/test_suite/event_engine_test_framework.h" using ::testing::ElementsAre; using namespace std::chrono_literals; diff --git a/test/core/event_engine/test_suite/thready_posix_event_engine_test.cc b/test/core/event_engine/test_suite/thready_posix_event_engine_test.cc index bb9481142570e..a063783a0328f 100644 --- a/test/core/event_engine/test_suite/thready_posix_event_engine_test.cc +++ b/test/core/event_engine/test_suite/thready_posix_event_engine_test.cc @@ -15,6 +15,7 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/event_engine/posix_engine/posix_engine.h" #include "src/core/lib/event_engine/thready_event_engine/thready_event_engine.h" #include "test/core/event_engine/test_suite/event_engine_test_framework.h" @@ -23,7 +24,6 @@ #include "test/core/event_engine/test_suite/tests/server_test.h" #include "test/core/event_engine/test_suite/tests/timer_test.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); diff --git a/test/core/event_engine/test_suite/tools/echo_client.cc b/test/core/event_engine/test_suite/tools/echo_client.cc index cdcaa90f16888..a246c9a35de8c 100644 --- a/test/core/event_engine/test_suite/tools/echo_client.cc +++ b/test/core/event_engine/test_suite/tools/echo_client.cc @@ -39,6 +39,13 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/flags/parse.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args_preconditioning.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" @@ -47,13 +54,6 @@ #include "src/core/lib/resource_quota/memory_quota.h" #include "src/core/resolver/resolver_registry.h" #include "src/core/util/notification.h" -#include "absl/flags/flag.h" -#include "absl/flags/parse.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" extern absl::AnyInvocable< std::shared_ptr(void)> diff --git a/test/core/event_engine/test_suite/tools/posix_event_engine_factory.cc b/test/core/event_engine/test_suite/tools/posix_event_engine_factory.cc index 945bd5289b61e..6bd8c45ec6236 100644 --- a/test/core/event_engine/test_suite/tools/posix_event_engine_factory.cc +++ b/test/core/event_engine/test_suite/tools/posix_event_engine_factory.cc @@ -17,9 +17,9 @@ #include -#include "src/core/lib/iomgr/port.h" #include "absl/functional/any_invocable.h" #include "absl/log/check.h" // IWYU pragma: keep +#include "src/core/lib/iomgr/port.h" #ifdef GRPC_POSIX_SOCKET_TCP diff --git a/test/core/event_engine/thread_pool_test.cc b/test/core/event_engine/thread_pool_test.cc index c5e4e191893e3..09688fcbd88a8 100644 --- a/test/core/event_engine/thread_pool_test.cc +++ b/test/core/event_engine/thread_pool_test.cc @@ -26,15 +26,15 @@ #include #include +#include "absl/time/clock.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/thread_pool/thread_count.h" #include "src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.h" #include "src/core/util/notification.h" #include "src/core/util/thd.h" #include "src/core/util/time.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/windows/create_sockpair.cc b/test/core/event_engine/windows/create_sockpair.cc index c756171af320f..7de56720da786 100644 --- a/test/core/event_engine/windows/create_sockpair.cc +++ b/test/core/event_engine/windows/create_sockpair.cc @@ -17,12 +17,12 @@ #include #include -#include "src/core/lib/event_engine/windows/win_socket.h" -#include "src/core/lib/iomgr/error.h" -#include "test/core/event_engine/windows/create_sockpair.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/status.h" +#include "src/core/lib/event_engine/windows/win_socket.h" +#include "src/core/lib/iomgr/error.h" +#include "test/core/event_engine/windows/create_sockpair.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/windows/iocp_test.cc b/test/core/event_engine/windows/iocp_test.cc index 92f6125dbf586..9ef8b10947d73 100644 --- a/test/core/event_engine/windows/iocp_test.cc +++ b/test/core/event_engine/windows/iocp_test.cc @@ -20,6 +20,11 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/time/time.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/common_closures.h" #include "src/core/lib/event_engine/poller.h" #include "src/core/lib/event_engine/thread_pool/thread_pool.h" @@ -28,11 +33,6 @@ #include "src/core/lib/iomgr/error.h" #include "src/core/util/notification.h" #include "test/core/event_engine/windows/create_sockpair.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/time/time.h" namespace { using ::grpc_event_engine::experimental::AnyInvocableClosure; diff --git a/test/core/event_engine/windows/win_socket_test.cc b/test/core/event_engine/windows/win_socket_test.cc index ae3d1a95e58fe..27581afe77b2f 100644 --- a/test/core/event_engine/windows/win_socket_test.cc +++ b/test/core/event_engine/windows/win_socket_test.cc @@ -18,6 +18,9 @@ #include #include +#include "absl/status/status.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/common_closures.h" #include "src/core/lib/event_engine/thread_pool/thread_pool.h" #include "src/core/lib/event_engine/windows/iocp.h" @@ -25,9 +28,6 @@ #include "src/core/lib/iomgr/error.h" #include "src/core/util/notification.h" #include "test/core/event_engine/windows/create_sockpair.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/time/time.h" namespace { using ::grpc_event_engine::experimental::AnyInvocableClosure; diff --git a/test/core/event_engine/windows/windows_endpoint_test.cc b/test/core/event_engine/windows/windows_endpoint_test.cc index 91946f1b0dce2..c5a9a92f569e5 100644 --- a/test/core/event_engine/windows/windows_endpoint_test.cc +++ b/test/core/event_engine/windows/windows_endpoint_test.cc @@ -19,6 +19,8 @@ #include #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" #include "src/core/lib/event_engine/thread_pool/thread_pool.h" #include "src/core/lib/event_engine/windows/iocp.h" @@ -27,8 +29,6 @@ #include "src/core/lib/resource_quota/memory_quota.h" #include "src/core/util/notification.h" #include "test/core/event_engine/windows/create_sockpair.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/work_queue/basic_work_queue_fuzzer.cc b/test/core/event_engine/work_queue/basic_work_queue_fuzzer.cc index 78449268ff825..4e9d0a8204db2 100644 --- a/test/core/event_engine/work_queue/basic_work_queue_fuzzer.cc +++ b/test/core/event_engine/work_queue/basic_work_queue_fuzzer.cc @@ -20,11 +20,11 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "fuzztest/fuzztest.h" #include "src/core/lib/event_engine/common_closures.h" #include "src/core/lib/event_engine/work_queue/basic_work_queue.h" #include "test/core/event_engine/work_queue/work_queue_fuzzer.pb.h" -#include "fuzztest/fuzztest.h" -#include "absl/functional/any_invocable.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/event_engine/work_queue/basic_work_queue_test.cc b/test/core/event_engine/work_queue/basic_work_queue_test.cc index 3873298f15922..a8ecefb928ba0 100644 --- a/test/core/event_engine/work_queue/basic_work_queue_test.cc +++ b/test/core/event_engine/work_queue/basic_work_queue_test.cc @@ -19,10 +19,10 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/common_closures.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" // TODO(hork): parameterize these tests for other WorkQueue implementations. diff --git a/test/core/experiments/experiments_tag_test.cc b/test/core/experiments/experiments_tag_test.cc index ea82e5893962a..adc670c23f2a6 100644 --- a/test/core/experiments/experiments_tag_test.cc +++ b/test/core/experiments/experiments_tag_test.cc @@ -16,15 +16,15 @@ #include -#include "src/core/config/config_vars.h" -#include "src/core/lib/experiments/config.h" -#include "test/core/experiments/fixtures/experiments.h" -#include "gtest/gtest.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_split.h" #include "absl/strings/string_view.h" #include "absl/strings/strip.h" +#include "gtest/gtest.h" +#include "src/core/config/config_vars.h" +#include "src/core/lib/experiments/config.h" +#include "test/core/experiments/fixtures/experiments.h" // This test is coupled with bazel/test_experiments.bzl because it is tagged // with test_experiments. If the diff --git a/test/core/experiments/experiments_test.cc b/test/core/experiments/experiments_test.cc index 0e4c7f7cca79b..2964104c3dd41 100644 --- a/test/core/experiments/experiments_test.cc +++ b/test/core/experiments/experiments_test.cc @@ -20,8 +20,8 @@ #include -#include "src/core/lib/experiments/config.h" #include "gtest/gtest.h" +#include "src/core/lib/experiments/config.h" #ifndef GRPC_EXPERIMENTS_ARE_FINAL diff --git a/test/core/ext/filters/event_engine_client_channel_resolver/resolver_fuzzer.cc b/test/core/ext/filters/event_engine_client_channel_resolver/resolver_fuzzer.cc index 746bbdc404004..53cc07d9db6dc 100644 --- a/test/core/ext/filters/event_engine_client_channel_resolver/resolver_fuzzer.cc +++ b/test/core/ext/filters/event_engine_client_channel_resolver/resolver_fuzzer.cc @@ -21,6 +21,14 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "fuzztest/fuzztest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/event_engine/tcp_socket_utils.h" @@ -40,14 +48,6 @@ #include "test/core/test_util/fuzz_config_vars_helpers.h" #include "test/core/test_util/fuzzing_channel_args.h" #include "test/core/test_util/test_config.h" -#include "fuzztest/fuzztest.h" -#include "absl/base/thread_annotations.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace { diff --git a/test/core/ext/filters/rbac/rbac_service_config_parser_test.cc b/test/core/ext/filters/rbac/rbac_service_config_parser_test.cc index d886e3f94389d..43985c9d5c606 100644 --- a/test/core/ext/filters/rbac/rbac_service_config_parser_test.cc +++ b/test/core/ext/filters/rbac/rbac_service_config_parser_test.cc @@ -22,17 +22,17 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/security/authorization/audit_logging.h" #include "src/core/service_config/service_config.h" #include "src/core/service_config/service_config_impl.h" #include "src/core/util/json/json_writer.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace testing { diff --git a/test/core/filters/bm_http_client_filter.cc b/test/core/filters/bm_http_client_filter.cc index 3d022534fa699..ab8c441917eea 100644 --- a/test/core/filters/bm_http_client_filter.cc +++ b/test/core/filters/bm_http_client_filter.cc @@ -15,13 +15,13 @@ #include #include +#include "absl/strings/string_view.h" #include "src/core/call/metadata.h" #include "src/core/ext/filters/http/client/http_client_filter.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/transport/connectivity_state.h" #include "src/core/lib/transport/transport.h" #include "test/core/call/call_spine_benchmarks.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/test/core/filters/client_auth_filter_test.cc b/test/core/filters/client_auth_filter_test.cc index 6aa54ba770652..9ab48b3e6b45b 100644 --- a/test/core/filters/client_auth_filter_test.cc +++ b/test/core/filters/client_auth_filter_test.cc @@ -20,6 +20,11 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/transport/fake/fake_credentials.h" @@ -36,11 +41,6 @@ #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" #include "test/core/filters/filter_test.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" // TODO(roth): Need to add a lot more tests here. I created this file // as part of adding a feature, and I added tests only for the feature I diff --git a/test/core/filters/client_authority_filter_test.cc b/test/core/filters/client_authority_filter_test.cc index b4d6d440eb5cd..62e85416ac687 100644 --- a/test/core/filters/client_authority_filter_test.cc +++ b/test/core/filters/client_authority_filter_test.cc @@ -18,11 +18,11 @@ #include -#include "test/core/filters/filter_test.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "absl/status/status.h" #include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" +#include "test/core/filters/filter_test.h" using ::testing::StrictMock; diff --git a/test/core/filters/filter_test.cc b/test/core/filters/filter_test.cc index 86284e6d58f3e..94e1708c31aa8 100644 --- a/test/core/filters/filter_test.cc +++ b/test/core/filters/filter_test.cc @@ -22,6 +22,10 @@ #include #include +#include "absl/memory/memory.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/call/call_finalization.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/iomgr/timer_manager.h" @@ -35,10 +39,6 @@ #include "src/core/lib/slice/slice.h" #include "src/core/util/crash.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h" -#include "gtest/gtest.h" -#include "absl/memory/memory.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" using grpc_event_engine::experimental::FuzzingEventEngine; diff --git a/test/core/filters/filter_test.h b/test/core/filters/filter_test.h index c2f66486b8c52..983879b59ae4e 100644 --- a/test/core/filters/filter_test.h +++ b/test/core/filters/filter_test.h @@ -27,6 +27,12 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/escaping.h" +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/promise_based_filter.h" @@ -38,12 +44,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h" #include "test/core/filters/filter_test.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/escaping.h" -#include "absl/strings/string_view.h" // gmock matcher to ensure that metadata has a key/value pair. MATCHER_P2(HasMetadataKeyValue, key, value, "") { diff --git a/test/core/filters/filter_test_test.cc b/test/core/filters/filter_test_test.cc index 0d63d46371ecd..5c090f3b6a96b 100644 --- a/test/core/filters/filter_test_test.cc +++ b/test/core/filters/filter_test_test.cc @@ -21,6 +21,9 @@ #include #include +#include "absl/status/statusor.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/promise_based_filter.h" @@ -32,9 +35,6 @@ #include "src/core/lib/promise/seq.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/transport/transport.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/statusor.h" using ::testing::_; diff --git a/test/core/filters/gcp_authentication_filter_test.cc b/test/core/filters/gcp_authentication_filter_test.cc index e713131c72a94..7dc601308c03a 100644 --- a/test/core/filters/gcp_authentication_filter_test.cc +++ b/test/core/filters/gcp_authentication_filter_test.cc @@ -17,6 +17,11 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/security_context.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/credentials/call/gcp_service_account_identity/gcp_service_account_identity_credentials.h" @@ -29,11 +34,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/unique_type_name.h" #include "test/core/filters/filter_test.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace { diff --git a/test/core/handshake/client_ssl.cc b/test/core/handshake/client_ssl.cc index 1952c6055094f..046490efae839 100644 --- a/test/core/handshake/client_ssl.cc +++ b/test/core/handshake/client_ssl.cc @@ -25,12 +25,12 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/strings/str_format.h" // IWYU pragma: no_include @@ -49,13 +49,13 @@ #include +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/debug/trace.h" #include "src/core/util/crash.h" #include "src/core/util/sync.h" #include "src/core/util/thd.h" #include "test/core/test_util/tls_utils.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" #define SSL_CERT_PATH "src/core/tsi/test_creds/server1.pem" #define SSL_KEY_PATH "src/core/tsi/test_creds/server1.key" diff --git a/test/core/handshake/handshaker_fuzzer.cc b/test/core/handshake/handshaker_fuzzer.cc index 5203009de9a7e..c134a7212b39f 100644 --- a/test/core/handshake/handshaker_fuzzer.cc +++ b/test/core/handshake/handshaker_fuzzer.cc @@ -12,13 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "test/core/event_engine/event_engine_test_utils.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h" #include "test/core/handshake/test_handshake.h" #include "test/core/test_util/fuzzing_channel_args.h" #include "test/core/test_util/fuzzing_channel_args.pb.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" namespace grpc_core { namespace { diff --git a/test/core/handshake/http_proxy_mapper_test.cc b/test/core/handshake/http_proxy_mapper_test.cc index 8896566c2ff2f..fbd44f1708da4 100644 --- a/test/core/handshake/http_proxy_mapper_test.cc +++ b/test/core/handshake/http_proxy_mapper_test.cc @@ -22,17 +22,17 @@ #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/handshaker/http_connect/http_connect_handshaker.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/channel/channel_args.h" #include "test/core/test_util/scoped_env_var.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" namespace grpc_core { namespace testing { diff --git a/test/core/handshake/readahead_handshaker_server_ssl.cc b/test/core/handshake/readahead_handshaker_server_ssl.cc index 23fbad5d449ba..0e6704ac76a5d 100644 --- a/test/core/handshake/readahead_handshaker_server_ssl.cc +++ b/test/core/handshake/readahead_handshaker_server_ssl.cc @@ -20,6 +20,9 @@ #include +#include "absl/base/thread_annotations.h" +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/handshaker/handshaker.h" #include "src/core/handshaker/handshaker_factory.h" @@ -34,9 +37,6 @@ #include "src/core/util/sync.h" #include "test/core/handshake/server_ssl_common.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/strings/string_view.h" // The purpose of this test is to exercise the case when a // grpc *security_handshaker* begins its handshake with data already diff --git a/test/core/handshake/secure_endpoint_test.cc b/test/core/handshake/secure_endpoint_test.cc index 14f48c1e787bf..ac5eb36a1c731 100644 --- a/test/core/handshake/secure_endpoint_test.cc +++ b/test/core/handshake/secure_endpoint_test.cc @@ -23,6 +23,8 @@ #include #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/endpoint_pair.h" #include "src/core/lib/iomgr/iomgr.h" #include "src/core/lib/slice/slice_internal.h" @@ -31,8 +33,6 @@ #include "src/core/util/useful.h" #include "test/core/iomgr/endpoint_tests.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" static gpr_mu* g_mu; static grpc_pollset* g_pollset; diff --git a/test/core/handshake/server_ssl.cc b/test/core/handshake/server_ssl.cc index fcc39f8fed95b..21d2c3ce146a8 100644 --- a/test/core/handshake/server_ssl.cc +++ b/test/core/handshake/server_ssl.cc @@ -18,9 +18,9 @@ #include +#include "gtest/gtest.h" #include "test/core/handshake/server_ssl_common.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" TEST(ServerSslTest, MainTest) { // Handshake succeeds when the client supplies only h2 as the ALPN list. This diff --git a/test/core/handshake/server_ssl_common.cc b/test/core/handshake/server_ssl_common.cc index 2af72223ca9ae..a026e7c9fbad4 100644 --- a/test/core/handshake/server_ssl_common.cc +++ b/test/core/handshake/server_ssl_common.cc @@ -39,6 +39,10 @@ #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/crash.h" #include "src/core/util/sync.h" @@ -46,10 +50,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" // IWYU pragma: no_include diff --git a/test/core/handshake/test_handshake.cc b/test/core/handshake/test_handshake.cc index 6427ac3c53a5d..8f18d04727681 100644 --- a/test/core/handshake/test_handshake.cc +++ b/test/core/handshake/test_handshake.cc @@ -16,6 +16,7 @@ #include +#include "absl/cleanup/cleanup.h" #include "src/core/config/core_configuration.h" #include "src/core/handshaker/handshaker.h" #include "src/core/handshaker/tcp_connect/tcp_connect_handshaker.h" @@ -27,7 +28,6 @@ #include "src/core/lib/iomgr/timer_manager.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h" -#include "absl/cleanup/cleanup.h" using ::grpc_event_engine::experimental::ChannelArgsEndpointConfig; using ::grpc_event_engine::experimental::EventEngine; diff --git a/test/core/iomgr/buffer_list_test.cc b/test/core/iomgr/buffer_list_test.cc index 091705405aa04..5cfa525f632f3 100644 --- a/test/core/iomgr/buffer_list_test.cc +++ b/test/core/iomgr/buffer_list_test.cc @@ -21,13 +21,13 @@ #include #include +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/internal_errqueue.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/time.h" #include "src/core/util/useful.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" #ifdef GRPC_LINUX_ERRQUEUE diff --git a/test/core/iomgr/combiner_test.cc b/test/core/iomgr/combiner_test.cc index d5b20db82dc20..5cd16197d9a5d 100644 --- a/test/core/iomgr/combiner_test.cc +++ b/test/core/iomgr/combiner_test.cc @@ -23,12 +23,12 @@ #include +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/core/util/notification.h" #include "src/core/util/thd.h" #include "src/core/util/useful.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" TEST(CombinerTest, TestNoOp) { grpc_core::ExecCtx exec_ctx; diff --git a/test/core/iomgr/endpoint_pair_test.cc b/test/core/iomgr/endpoint_pair_test.cc index 663f0bb6aeee9..871e04894de88 100644 --- a/test/core/iomgr/endpoint_pair_test.cc +++ b/test/core/iomgr/endpoint_pair_test.cc @@ -25,6 +25,9 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" #include "src/core/lib/event_engine/default_event_engine.h" @@ -37,9 +40,6 @@ #include "test/core/iomgr/endpoint_tests.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" using namespace std::chrono_literals; diff --git a/test/core/iomgr/endpoint_tests.cc b/test/core/iomgr/endpoint_tests.cc index e2bd1c46770e0..165da4d1c4fa3 100644 --- a/test/core/iomgr/endpoint_tests.cc +++ b/test/core/iomgr/endpoint_tests.cc @@ -25,14 +25,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/crash.h" #include "src/core/util/time.h" #include "src/core/util/useful.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" -#include "absl/log/log.h" // // General test notes: diff --git a/test/core/iomgr/error_test.cc b/test/core/iomgr/error_test.cc index b4784f4f10ec8..7b34070e1f600 100644 --- a/test/core/iomgr/error_test.cc +++ b/test/core/iomgr/error_test.cc @@ -22,12 +22,12 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "gmock/gmock.h" #include "src/core/util/crash.h" #include "src/core/util/strerror.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" TEST(ErrorTest, SetGetInt) { grpc_error_handle error = GRPC_ERROR_CREATE("Test"); diff --git a/test/core/iomgr/fd_conservation_posix_test.cc b/test/core/iomgr/fd_conservation_posix_test.cc index 15093a090bed4..8d1f7844cbb77 100644 --- a/test/core/iomgr/fd_conservation_posix_test.cc +++ b/test/core/iomgr/fd_conservation_posix_test.cc @@ -19,11 +19,11 @@ #include #include +#include "absl/log/check.h" #include "src/core/lib/iomgr/endpoint_pair.h" #include "src/core/lib/iomgr/iomgr.h" #include "src/core/util/crash.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" int main(int argc, char** argv) { int i; diff --git a/test/core/iomgr/fd_posix_test.cc b/test/core/iomgr/fd_posix_test.cc index 2596ccc6d578d..feac4c465fbab 100644 --- a/test/core/iomgr/fd_posix_test.cc +++ b/test/core/iomgr/fd_posix_test.cc @@ -16,9 +16,9 @@ // // +#include "gtest/gtest.h" #include "src/core/lib/iomgr/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" // This test won't work except with posix sockets enabled #ifdef GRPC_POSIX_SOCKET_EV @@ -39,11 +39,11 @@ #include #include +#include "absl/log/log.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/iomgr/ev_posix.h" #include "src/core/lib/iomgr/socket_utils_posix.h" #include "src/core/util/strerror.h" -#include "absl/log/log.h" static gpr_mu* g_mu; static grpc_pollset* g_pollset; diff --git a/test/core/iomgr/grpc_ipv6_loopback_available_test.cc b/test/core/iomgr/grpc_ipv6_loopback_available_test.cc index 380d7f1ede2eb..9c7603e54babd 100644 --- a/test/core/iomgr/grpc_ipv6_loopback_available_test.cc +++ b/test/core/iomgr/grpc_ipv6_loopback_available_test.cc @@ -18,10 +18,10 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/crash.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" #ifdef GPR_WINDOWS #include "src/core/lib/iomgr/socket_windows.h" diff --git a/test/core/iomgr/resolve_address_posix_test.cc b/test/core/iomgr/resolve_address_posix_test.cc index 82fd82d6054d7..6b92f9adb1825 100644 --- a/test/core/iomgr/resolve_address_posix_test.cc +++ b/test/core/iomgr/resolve_address_posix_test.cc @@ -26,6 +26,11 @@ #include +#include "absl/flags/flag.h" +#include "absl/flags/parse.h" +#include "absl/log/log.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/lib/iomgr/executor.h" #include "src/core/lib/iomgr/iomgr.h" @@ -39,11 +44,6 @@ #include "src/core/util/useful.h" #include "test/core/test_util/cmdline.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/flags/flag.h" -#include "absl/flags/parse.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" static gpr_timespec test_deadline(void) { return grpc_timeout_seconds_to_deadline(100); diff --git a/test/core/iomgr/resolve_address_test.cc b/test/core/iomgr/resolve_address_test.cc index 8aa15cf50322c..b81063101a998 100644 --- a/test/core/iomgr/resolve_address_test.cc +++ b/test/core/iomgr/resolve_address_test.cc @@ -25,6 +25,12 @@ #include #include +#include "absl/functional/bind_front.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/match.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/lib/iomgr/executor.h" #include "src/core/lib/iomgr/iomgr.h" @@ -38,12 +44,6 @@ #include "test/core/test_util/fake_udp_and_tcp_server.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/bind_front.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/match.h" namespace { diff --git a/test/core/iomgr/socket_utils_test.cc b/test/core/iomgr/socket_utils_test.cc index 8d8b79cf548fa..3400cc6fdb8fb 100644 --- a/test/core/iomgr/socket_utils_test.cc +++ b/test/core/iomgr/socket_utils_test.cc @@ -28,13 +28,13 @@ #include #include +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/socket_mutator.h" #include "src/core/lib/iomgr/socket_utils_posix.h" #include "src/core/util/crash.h" #include "src/core/util/useful.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" struct test_socket_mutator { grpc_socket_mutator base; diff --git a/test/core/iomgr/tcp_client_posix_test.cc b/test/core/iomgr/tcp_client_posix_test.cc index 85a802f21037e..4da4c7c0d1a08 100644 --- a/test/core/iomgr/tcp_client_posix_test.cc +++ b/test/core/iomgr/tcp_client_posix_test.cc @@ -16,13 +16,13 @@ // // +#include "gtest/gtest.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/time.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" // This test won't work except with posix sockets enabled #ifdef GRPC_POSIX_SOCKET_TCP_CLIENT @@ -38,6 +38,7 @@ #include #include +#include "absl/log/log.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" #include "src/core/lib/iomgr/iomgr.h" #include "src/core/lib/iomgr/pollset_set.h" @@ -46,7 +47,6 @@ #include "src/core/lib/iomgr/timer.h" #include "src/core/lib/resource_quota/api.h" #include "src/core/util/crash.h" -#include "absl/log/log.h" static grpc_pollset_set* g_pollset_set; static gpr_mu* g_mu; diff --git a/test/core/iomgr/tcp_posix_test.cc b/test/core/iomgr/tcp_posix_test.cc index de0225546eb52..0e74132ecd833 100644 --- a/test/core/iomgr/tcp_posix_test.cc +++ b/test/core/iomgr/tcp_posix_test.cc @@ -32,6 +32,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" #include "src/core/lib/event_engine/default_event_engine.h" @@ -51,10 +55,6 @@ #include "src/core/util/useful.h" #include "test/core/iomgr/endpoint_tests.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/time/time.h" static gpr_mu* g_mu; static grpc_pollset* g_pollset; diff --git a/test/core/iomgr/tcp_server_posix_test.cc b/test/core/iomgr/tcp_server_posix_test.cc index a88fac2fcd1d9..63ff9fc220ea9 100644 --- a/test/core/iomgr/tcp_server_posix_test.cc +++ b/test/core/iomgr/tcp_server_posix_test.cc @@ -16,11 +16,11 @@ // // +#include "gtest/gtest.h" #include "src/core/lib/event_engine/shim.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/time.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" // This test won't work except with posix sockets enabled #ifdef GRPC_POSIX_SOCKET_TCP_SERVER @@ -46,6 +46,7 @@ #include #include +#include "absl/log/log.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" #include "src/core/lib/iomgr/error.h" @@ -57,7 +58,6 @@ #include "src/core/util/memory.h" #include "src/core/util/strerror.h" #include "test/core/test_util/port.h" -#include "absl/log/log.h" #define LOG_TEST(x) LOG(INFO) << #x diff --git a/test/core/iomgr/timer_heap_test.cc b/test/core/iomgr/timer_heap_test.cc index ec9699970317f..95e06c883662f 100644 --- a/test/core/iomgr/timer_heap_test.cc +++ b/test/core/iomgr/timer_heap_test.cc @@ -22,12 +22,12 @@ #include #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/crash.h" #include "src/core/util/useful.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" static gpr_atm random_deadline(void) { return rand(); } diff --git a/test/core/load_balancing/bm_picker.cc b/test/core/load_balancing/bm_picker.cc index d17e19615a628..c3b069422e721 100644 --- a/test/core/load_balancing/bm_picker.cc +++ b/test/core/load_balancing/bm_picker.cc @@ -17,6 +17,7 @@ #include +#include "absl/strings/string_view.h" #include "src/core/client_channel/subchannel_interface_internal.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/address_utils/parse_address.h" @@ -27,7 +28,6 @@ #include "src/core/load_balancing/lb_policy.h" #include "src/core/util/json/json_reader.h" #include "test/core/test_util/build.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace { diff --git a/test/core/load_balancing/lb_policy_test_lib.h b/test/core/load_balancing/lb_policy_test_lib.h index 9bb2115011f14..80e6339d6f0a0 100644 --- a/test/core/load_balancing/lb_policy_test_lib.h +++ b/test/core/load_balancing/lb_policy_test_lib.h @@ -39,6 +39,19 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" +#include "absl/synchronization/notification.h" +#include "absl/types/span.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/client_channel_internal.h" #include "src/core/client_channel/subchannel_interface_internal.h" #include "src/core/client_channel/subchannel_pool_interface.h" @@ -77,19 +90,6 @@ #include "test/core/event_engine/event_engine_test_utils.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" -#include "absl/synchronization/notification.h" -#include "absl/types/span.h" namespace grpc_core { namespace testing { diff --git a/test/core/load_balancing/outlier_detection_lb_config_parser_test.cc b/test/core/load_balancing/outlier_detection_lb_config_parser_test.cc index c2bf47d02a614..1793807fc55f2 100644 --- a/test/core/load_balancing/outlier_detection_lb_config_parser_test.cc +++ b/test/core/load_balancing/outlier_detection_lb_config_parser_test.cc @@ -18,15 +18,15 @@ #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/service_config/service_config.h" #include "src/core/service_config/service_config_impl.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace testing { diff --git a/test/core/load_balancing/outlier_detection_test.cc b/test/core/load_balancing/outlier_detection_test.cc index bfb9d356f6cf2..7240a5aa76114 100644 --- a/test/core/load_balancing/outlier_detection_test.cc +++ b/test/core/load_balancing/outlier_detection_test.cc @@ -28,6 +28,11 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" +#include "absl/types/span.h" +#include "gtest/gtest.h" #include "src/core/load_balancing/backend_metric_data.h" #include "src/core/load_balancing/lb_policy.h" #include "src/core/resolver/endpoint_addresses.h" @@ -37,11 +42,6 @@ #include "src/core/util/time.h" #include "test/core/load_balancing/lb_policy_test_lib.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" -#include "absl/types/span.h" namespace grpc_core { namespace testing { diff --git a/test/core/load_balancing/pick_first_fuzzer.cc b/test/core/load_balancing/pick_first_fuzzer.cc index 41d7763637054..815759bbce82b 100644 --- a/test/core/load_balancing/pick_first_fuzzer.cc +++ b/test/core/load_balancing/pick_first_fuzzer.cc @@ -14,6 +14,7 @@ // limitations under the License. // +#include #include #include #include @@ -27,6 +28,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "fuzztest/fuzztest.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/client_channel_internal.h" #include "src/core/client_channel/subchannel_interface_internal.h" #include "src/core/client_channel/subchannel_pool_interface.h" @@ -59,15 +68,6 @@ #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h" #include "test/core/load_balancing/pick_first_fuzzer.pb.h" #include "test/core/test_util/fuzzing_channel_args.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" -#include using grpc_event_engine::experimental::EventEngine; using grpc_event_engine::experimental::FuzzingEventEngine; diff --git a/test/core/load_balancing/pick_first_test.cc b/test/core/load_balancing/pick_first_test.cc index 9a4416aaf2412..ac1d9cc495247 100644 --- a/test/core/load_balancing/pick_first_test.cc +++ b/test/core/load_balancing/pick_first_test.cc @@ -29,6 +29,12 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/string_view.h" +#include "absl/synchronization/notification.h" +#include "absl/types/span.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/load_balancing/lb_policy.h" @@ -43,12 +49,6 @@ #include "test/core/load_balancing/lb_policy_test_lib.h" #include "test/core/test_util/fake_stats_plugin.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" -#include "absl/synchronization/notification.h" -#include "absl/types/span.h" namespace grpc_core { namespace testing { diff --git a/test/core/load_balancing/ring_hash_test.cc b/test/core/load_balancing/ring_hash_test.cc index 265bc8770f6fc..adcf7d37c3321 100644 --- a/test/core/load_balancing/ring_hash_test.cc +++ b/test/core/load_balancing/ring_hash_test.cc @@ -27,6 +27,11 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "absl/strings/strip.h" +#include "gtest/gtest.h" #include "src/core/load_balancing/lb_policy.h" #include "src/core/resolver/endpoint_addresses.h" #include "src/core/util/json/json.h" @@ -35,11 +40,6 @@ #include "test/core/load_balancing/lb_policy_test_lib.h" #include "test/core/test_util/scoped_env_var.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" -#include "absl/strings/strip.h" namespace grpc_core { namespace testing { diff --git a/test/core/load_balancing/rls_lb_config_parser_test.cc b/test/core/load_balancing/rls_lb_config_parser_test.cc index 238f16228fbc1..68e0e081c13e8 100644 --- a/test/core/load_balancing/rls_lb_config_parser_test.cc +++ b/test/core/load_balancing/rls_lb_config_parser_test.cc @@ -18,6 +18,10 @@ #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/client_channel_service_config.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/load_balancing/rls/rls.h" @@ -27,10 +31,6 @@ #include "src/core/util/json/json_writer.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace { diff --git a/test/core/load_balancing/round_robin_test.cc b/test/core/load_balancing/round_robin_test.cc index bb8011355bb1d..0eb2a3ef372dd 100644 --- a/test/core/load_balancing/round_robin_test.cc +++ b/test/core/load_balancing/round_robin_test.cc @@ -19,15 +19,15 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/string_view.h" +#include "absl/types/span.h" +#include "gtest/gtest.h" #include "src/core/resolver/endpoint_addresses.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/load_balancing/lb_policy_test_lib.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" -#include "absl/types/span.h" namespace grpc_core { namespace testing { diff --git a/test/core/load_balancing/static_stride_scheduler_benchmark.cc b/test/core/load_balancing/static_stride_scheduler_benchmark.cc index 0fb2adb664bbc..ce16dbd90578c 100644 --- a/test/core/load_balancing/static_stride_scheduler_benchmark.cc +++ b/test/core/load_balancing/static_stride_scheduler_benchmark.cc @@ -22,12 +22,12 @@ #include #include -#include "src/core/load_balancing/weighted_round_robin/static_stride_scheduler.h" -#include "src/core/util/no_destruct.h" #include "absl/algorithm/container.h" #include "absl/log/check.h" #include "absl/random/random.h" #include "absl/types/span.h" +#include "src/core/load_balancing/weighted_round_robin/static_stride_scheduler.h" +#include "src/core/util/no_destruct.h" namespace grpc_core { namespace { diff --git a/test/core/load_balancing/weighted_round_robin_config_test.cc b/test/core/load_balancing/weighted_round_robin_config_test.cc index 38abb20af3b8d..eac134bd823be 100644 --- a/test/core/load_balancing/weighted_round_robin_config_test.cc +++ b/test/core/load_balancing/weighted_round_robin_config_test.cc @@ -18,14 +18,14 @@ #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/service_config/service_config.h" #include "src/core/service_config/service_config_impl.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace testing { diff --git a/test/core/load_balancing/weighted_round_robin_test.cc b/test/core/load_balancing/weighted_round_robin_test.cc index 7b17bb17e4245..bdc27c40f04d3 100644 --- a/test/core/load_balancing/weighted_round_robin_test.cc +++ b/test/core/load_balancing/weighted_round_robin_test.cc @@ -30,6 +30,14 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" +#include "absl/types/span.h" +#include "gtest/gtest.h" #include "src/core/load_balancing/backend_metric_data.h" #include "src/core/load_balancing/lb_policy.h" #include "src/core/load_balancing/weighted_target/weighted_target.h" @@ -44,14 +52,6 @@ #include "test/core/load_balancing/lb_policy_test_lib.h" #include "test/core/test_util/fake_stats_plugin.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" -#include "absl/types/span.h" namespace grpc_core { namespace testing { diff --git a/test/core/load_balancing/xds_override_host_lb_config_parser_test.cc b/test/core/load_balancing/xds_override_host_lb_config_parser_test.cc index c4dd6d5cc502a..fb14dd90c34b9 100644 --- a/test/core/load_balancing/xds_override_host_lb_config_parser_test.cc +++ b/test/core/load_balancing/xds_override_host_lb_config_parser_test.cc @@ -18,6 +18,9 @@ #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "gtest/gtest.h" #include "src/core/client_channel/client_channel_service_config.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/load_balancing/xds/xds_override_host.h" @@ -26,9 +29,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/xds/grpc/xds_health_status.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace testing { diff --git a/test/core/load_balancing/xds_override_host_test.cc b/test/core/load_balancing/xds_override_host_test.cc index 92c0b7f29aefc..324f1f93810f7 100644 --- a/test/core/load_balancing/xds_override_host_test.cc +++ b/test/core/load_balancing/xds_override_host_test.cc @@ -26,6 +26,15 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" +#include "absl/strings/strip.h" +#include "absl/types/span.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/ext/filters/stateful_session/stateful_session_filter.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/load_balancing/lb_policy.h" @@ -36,15 +45,6 @@ #include "src/core/xds/grpc/xds_health_status.h" #include "test/core/load_balancing/lb_policy_test_lib.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" -#include "absl/strings/strip.h" -#include "absl/types/span.h" namespace grpc_core { namespace testing { diff --git a/test/core/memory_usage/callback_client.cc b/test/core/memory_usage/callback_client.cc index 869443d016c16..0f0630517acd8 100644 --- a/test/core/memory_usage/callback_client.cc +++ b/test/core/memory_usage/callback_client.cc @@ -30,18 +30,18 @@ #include #include -#include "src/core/util/notification.h" -#include "src/cpp/ext/chaotic_good.h" -#include "src/proto/grpc/testing/benchmark_service.grpc.pb.h" -#include "src/proto/grpc/testing/messages.pb.h" -#include "test/core/memory_usage/memstats.h" -#include "test/core/test_util/test_config.h" #include "absl/flags/flag.h" #include "absl/flags/parse.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/match.h" #include "absl/strings/str_cat.h" +#include "src/core/util/notification.h" +#include "src/cpp/ext/chaotic_good.h" +#include "src/proto/grpc/testing/benchmark_service.grpc.pb.h" +#include "src/proto/grpc/testing/messages.pb.h" +#include "test/core/memory_usage/memstats.h" +#include "test/core/test_util/test_config.h" ABSL_FLAG(std::string, target, "", "Target host:port"); ABSL_FLAG(bool, secure, false, "Use SSL Credentials"); diff --git a/test/core/memory_usage/callback_server.cc b/test/core/memory_usage/callback_server.cc index bda065674b6ac..81a08b387257a 100644 --- a/test/core/memory_usage/callback_server.cc +++ b/test/core/memory_usage/callback_server.cc @@ -27,15 +27,15 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/flags/parse.h" +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/cpp/ext/chaotic_good.h" #include "src/proto/grpc/testing/benchmark_service.grpc.pb.h" #include "src/proto/grpc/testing/messages.pb.h" #include "test/core/memory_usage/memstats.h" #include "test/core/test_util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/flags/parse.h" -#include "absl/log/check.h" -#include "absl/log/log.h" ABSL_FLAG(std::string, bind, "", "Bind host:port"); ABSL_FLAG(bool, secure, false, "Use SSL Credentials"); diff --git a/test/core/memory_usage/client.cc b/test/core/memory_usage/client.cc index 9c8c35b9e440e..62e1f6e7273b5 100644 --- a/test/core/memory_usage/client.cc +++ b/test/core/memory_usage/client.cc @@ -35,17 +35,17 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/flags/parse.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/match.h" #include "src/core/ext/transport/chaotic_good/client/chaotic_good_connector.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/useful.h" #include "test/core/memory_usage/memstats.h" #include "test/core/test_util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/flags/parse.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/match.h" static grpc_channel* channel; static grpc_completion_queue* cq; diff --git a/test/core/memory_usage/memory_usage_test.cc b/test/core/memory_usage/memory_usage_test.cc index 3491efa5c6647..0e15ed31ce2b4 100644 --- a/test/core/memory_usage/memory_usage_test.cc +++ b/test/core/memory_usage/memory_usage_test.cc @@ -34,15 +34,6 @@ #include #include -#include "google/protobuf/wrappers.pb.h" -#include "src/core/config/config_vars.h" -#include "src/core/util/env.h" -#include "src/core/util/subprocess.h" -#include "test/core/test_util/port.h" -#include "test/core/test_util/resolve_localhost_ip46.h" -#include "test/core/test_util/test_config.h" -#include "test/cpp/end2end/xds/xds_server.h" -#include "test/cpp/end2end/xds/xds_utils.h" #include "absl/algorithm/container.h" #include "absl/flags/flag.h" #include "absl/flags/parse.h" @@ -53,6 +44,15 @@ #include "absl/strings/string_view.h" #include "envoy/config/cluster/v3/cluster.pb.h" #include "envoy/config/core/v3/health_check.pb.h" +#include "google/protobuf/wrappers.pb.h" +#include "src/core/config/config_vars.h" +#include "src/core/util/env.h" +#include "src/core/util/subprocess.h" +#include "test/core/test_util/port.h" +#include "test/core/test_util/resolve_localhost_ip46.h" +#include "test/core/test_util/test_config.h" +#include "test/cpp/end2end/xds/xds_server.h" +#include "test/cpp/end2end/xds/xds_utils.h" using grpc::testing::XdsResourceUtils; diff --git a/test/core/memory_usage/server.cc b/test/core/memory_usage/server.cc index 3ad145fc20b1b..c8c62e2c00a4a 100644 --- a/test/core/memory_usage/server.cc +++ b/test/core/memory_usage/server.cc @@ -40,6 +40,12 @@ #include #include +#include "absl/base/attributes.h" +#include "absl/flags/flag.h" +#include "absl/flags/parse.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" #include "src/core/ext/transport/chaotic_good/server/chaotic_good_server.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/host_port.h" @@ -48,12 +54,6 @@ #include "test/core/memory_usage/memstats.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "absl/base/attributes.h" -#include "absl/flags/flag.h" -#include "absl/flags/parse.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" ABSL_FLAG(std::string, bind, "", "Bind host:port"); ABSL_FLAG(bool, secure, false, "Use security"); diff --git a/test/core/message_size/message_size_service_config_test.cc b/test/core/message_size/message_size_service_config_test.cc index 7d6ee33d822bc..85c53e97efde6 100644 --- a/test/core/message_size/message_size_service_config_test.cc +++ b/test/core/message_size/message_size_service_config_test.cc @@ -20,6 +20,9 @@ #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/filters/message_size/message_size_filter.h" #include "src/core/lib/channel/channel_args.h" @@ -28,9 +31,6 @@ #include "src/core/service_config/service_config_parser.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace testing { diff --git a/test/core/network_benchmarks/low_level_ping_pong.cc b/test/core/network_benchmarks/low_level_ping_pong.cc index ebab35ddfbec0..563e16ce93cd5 100644 --- a/test/core/network_benchmarks/low_level_ping_pong.cc +++ b/test/core/network_benchmarks/low_level_ping_pong.cc @@ -37,6 +37,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/socket_utils_posix.h" #include "src/core/util/strerror.h" @@ -44,8 +46,6 @@ #include "src/core/util/useful.h" #include "test/core/test_util/cmdline.h" #include "test/core/test_util/histogram.h" -#include "absl/log/check.h" -#include "absl/log/log.h" typedef struct fd_pair { int read_fd; diff --git a/test/core/promise/activity_test.cc b/test/core/promise/activity_test.cc index c90eded7b4612..45edfc35eecb2 100644 --- a/test/core/promise/activity_test.cc +++ b/test/core/promise/activity_test.cc @@ -20,14 +20,14 @@ #include #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/join.h" #include "src/core/lib/promise/poll.h" #include "src/core/lib/promise/promise.h" #include "src/core/lib/promise/seq.h" #include "src/core/lib/promise/wait_set.h" #include "test/core/promise/test_wakeup_schedulers.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" using testing::_; using testing::Mock; diff --git a/test/core/promise/all_ok_test.cc b/test/core/promise/all_ok_test.cc index 5140742b2e017..eb6656d067472 100644 --- a/test/core/promise/all_ok_test.cc +++ b/test/core/promise/all_ok_test.cc @@ -18,9 +18,9 @@ #include #include -#include "src/core/lib/promise/promise.h" -#include "gtest/gtest.h" #include "absl/utility/utility.h" +#include "gtest/gtest.h" +#include "src/core/lib/promise/promise.h" namespace grpc_core { diff --git a/test/core/promise/arena_promise_test.cc b/test/core/promise/arena_promise_test.cc index 8d86e79d42978..f51d26f114d4b 100644 --- a/test/core/promise/arena_promise_test.cc +++ b/test/core/promise/arena_promise_test.cc @@ -19,13 +19,13 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/resource_quota/memory_quota.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/promise/test_context.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/promise/cancel_callback_test.cc b/test/core/promise/cancel_callback_test.cc index 0dc17afac1e5b..3a674a009f683 100644 --- a/test/core/promise/cancel_callback_test.cc +++ b/test/core/promise/cancel_callback_test.cc @@ -17,8 +17,8 @@ #include #include -#include "src/core/lib/promise/poll.h" #include "gtest/gtest.h" +#include "src/core/lib/promise/poll.h" namespace grpc_core { diff --git a/test/core/promise/event_engine_wakeup_scheduler_test.cc b/test/core/promise/event_engine_wakeup_scheduler_test.cc index 9abe7322b16dd..4972de9024533 100644 --- a/test/core/promise/event_engine_wakeup_scheduler_test.cc +++ b/test/core/promise/event_engine_wakeup_scheduler_test.cc @@ -20,11 +20,11 @@ #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/poll.h" #include "src/core/util/notification.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/test/core/promise/exec_ctx_wakeup_scheduler_test.cc b/test/core/promise/exec_ctx_wakeup_scheduler_test.cc index 6dc7038831671..d7fb2449bc131 100644 --- a/test/core/promise/exec_ctx_wakeup_scheduler_test.cc +++ b/test/core/promise/exec_ctx_wakeup_scheduler_test.cc @@ -18,10 +18,10 @@ #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/poll.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/test/core/promise/for_each_test.cc b/test/core/promise/for_each_test.cc index c36ddf2a363b3..c1863b6e4eab0 100644 --- a/test/core/promise/for_each_test.cc +++ b/test/core/promise/for_each_test.cc @@ -18,6 +18,8 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/inter_activity_pipe.h" #include "src/core/lib/promise/join.h" @@ -30,8 +32,6 @@ #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/promise/test_wakeup_schedulers.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" using testing::Mock; using testing::MockFunction; diff --git a/test/core/promise/if_test.cc b/test/core/promise/if_test.cc index 8c0194210f046..aba1e99c2df13 100644 --- a/test/core/promise/if_test.cc +++ b/test/core/promise/if_test.cc @@ -14,8 +14,8 @@ #include "src/core/lib/promise/if.h" -#include "gtest/gtest.h" #include "absl/strings/str_cat.h" +#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/promise/inter_activity_latch_test.cc b/test/core/promise/inter_activity_latch_test.cc index 00fb91c60282d..d71ce40cae593 100644 --- a/test/core/promise/inter_activity_latch_test.cc +++ b/test/core/promise/inter_activity_latch_test.cc @@ -16,12 +16,12 @@ #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/promise/event_engine_wakeup_scheduler.h" #include "src/core/lib/promise/seq.h" #include "src/core/util/notification.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" using grpc_event_engine::experimental::GetDefaultEventEngine; diff --git a/test/core/promise/inter_activity_mutex_test.cc b/test/core/promise/inter_activity_mutex_test.cc index 9ab2db02bebad..aa8318f7c3b9e 100644 --- a/test/core/promise/inter_activity_mutex_test.cc +++ b/test/core/promise/inter_activity_mutex_test.cc @@ -14,12 +14,15 @@ #include "src/core/lib/promise/inter_activity_mutex.h" +#include #include #include #include #include +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/party.h" #include "src/core/lib/promise/promise.h" #include "src/core/lib/promise/seq.h" @@ -27,9 +30,6 @@ #include "src/core/util/notification.h" #include "test/core/promise/inter_activity_mutex_test.pb.h" #include "test/core/promise/poll_matcher.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include using ::testing::Mock; using ::testing::StrictMock; diff --git a/test/core/promise/inter_activity_pipe_test.cc b/test/core/promise/inter_activity_pipe_test.cc index 3c8293713bf4d..8b2446c6e2cff 100644 --- a/test/core/promise/inter_activity_pipe_test.cc +++ b/test/core/promise/inter_activity_pipe_test.cc @@ -16,10 +16,10 @@ #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/seq.h" #include "test/core/promise/test_wakeup_schedulers.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/test/core/promise/interceptor_list_test.cc b/test/core/promise/interceptor_list_test.cc index 5d7c879e46e32..f24b9c2df76a2 100644 --- a/test/core/promise/interceptor_list_test.cc +++ b/test/core/promise/interceptor_list_test.cc @@ -18,12 +18,12 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/lib/resource_quota/memory_quota.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/promise/test_context.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/promise/join_test.cc b/test/core/promise/join_test.cc index 11e68ff988927..0dca5ccee19ac 100644 --- a/test/core/promise/join_test.cc +++ b/test/core/promise/join_test.cc @@ -17,11 +17,11 @@ #include #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/poll.h" #include "src/core/lib/promise/status_flag.h" #include "test/core/promise/poll_matcher.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/promise/latch_test.cc b/test/core/promise/latch_test.cc index 68e70ecc63ab7..8fef26a0d40a1 100644 --- a/test/core/promise/latch_test.cc +++ b/test/core/promise/latch_test.cc @@ -17,13 +17,13 @@ #include #include +#include "absl/status/status.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/join.h" #include "src/core/lib/promise/seq.h" #include "test/core/promise/test_wakeup_schedulers.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" using testing::MockFunction; using testing::StrictMock; diff --git a/test/core/promise/loop_test.cc b/test/core/promise/loop_test.cc index 576bb9c8b7d32..dc33cf14437ec 100644 --- a/test/core/promise/loop_test.cc +++ b/test/core/promise/loop_test.cc @@ -17,10 +17,10 @@ #include #include -#include "src/core/lib/promise/seq.h" -#include "gtest/gtest.h" #include "absl/status/status.h" #include "absl/strings/str_cat.h" +#include "gtest/gtest.h" +#include "src/core/lib/promise/seq.h" namespace grpc_core { diff --git a/test/core/promise/map_pipe_test.cc b/test/core/promise/map_pipe_test.cc index 1a701a3cd353a..5f891a361912c 100644 --- a/test/core/promise/map_pipe_test.cc +++ b/test/core/promise/map_pipe_test.cc @@ -19,6 +19,8 @@ #include #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/for_each.h" #include "src/core/lib/promise/join.h" @@ -31,8 +33,6 @@ #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/promise/test_wakeup_schedulers.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" using testing::Mock; using testing::MockFunction; diff --git a/test/core/promise/map_test.cc b/test/core/promise/map_test.cc index c3205ce7e9697..aa3e89621de07 100644 --- a/test/core/promise/map_test.cc +++ b/test/core/promise/map_test.cc @@ -16,11 +16,11 @@ #include -#include "src/core/lib/promise/promise.h" -#include "test/core/promise/poll_matcher.h" -#include "gtest/gtest.h" #include "absl/functional/any_invocable.h" #include "absl/log/log.h" +#include "gtest/gtest.h" +#include "src/core/lib/promise/promise.h" +#include "test/core/promise/poll_matcher.h" namespace grpc_core { diff --git a/test/core/promise/match_promise_test.cc b/test/core/promise/match_promise_test.cc index aa696f943f13c..6430d2b3bd9f1 100644 --- a/test/core/promise/match_promise_test.cc +++ b/test/core/promise/match_promise_test.cc @@ -16,10 +16,10 @@ #include +#include "absl/strings/str_cat.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/promise.h" #include "test/core/promise/poll_matcher.h" -#include "gtest/gtest.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/test/core/promise/mpsc_test.cc b/test/core/promise/mpsc_test.cc index aa63b1aefac64..304b3ec4cdf2c 100644 --- a/test/core/promise/mpsc_test.cc +++ b/test/core/promise/mpsc_test.cc @@ -20,11 +20,11 @@ #include #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/promise.h" #include "test/core/promise/poll_matcher.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" using testing::Mock; using testing::StrictMock; diff --git a/test/core/promise/observable_test.cc b/test/core/promise/observable_test.cc index 645e8aaf4caa2..8de6dd5681276 100644 --- a/test/core/promise/observable_test.cc +++ b/test/core/promise/observable_test.cc @@ -21,13 +21,13 @@ #include #include +#include "absl/strings/str_join.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/loop.h" #include "src/core/lib/promise/map.h" #include "src/core/util/notification.h" #include "test/core/promise/poll_matcher.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/str_join.h" using testing::Mock; using testing::StrictMock; diff --git a/test/core/promise/party_mpsc_test.cc b/test/core/promise/party_mpsc_test.cc index b4ad836dc03f4..e04ab874b81da 100644 --- a/test/core/promise/party_mpsc_test.cc +++ b/test/core/promise/party_mpsc_test.cc @@ -23,6 +23,9 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/event_engine/event_engine_context.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -39,9 +42,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/test/core/promise/party_test.cc b/test/core/promise/party_test.cc index 31415c2f6cdf2..28a9e102321f5 100644 --- a/test/core/promise/party_test.cc +++ b/test/core/promise/party_test.cc @@ -25,6 +25,9 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/event_engine/event_engine_context.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -40,9 +43,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/sync.h" #include "src/core/util/time.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/test/core/promise/pipe_test.cc b/test/core/promise/pipe_test.cc index 10746ddbc9665..e0887802f8aa3 100644 --- a/test/core/promise/pipe_test.cc +++ b/test/core/promise/pipe_test.cc @@ -21,6 +21,10 @@ #include #include +#include "absl/functional/function_ref.h" +#include "absl/status/status.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/join.h" #include "src/core/lib/promise/map.h" @@ -30,10 +34,6 @@ #include "src/core/util/crash.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/promise/test_wakeup_schedulers.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/function_ref.h" -#include "absl/status/status.h" using testing::MockFunction; using testing::StrictMock; diff --git a/test/core/promise/prioritized_race_test.cc b/test/core/promise/prioritized_race_test.cc index 179efa9e87603..2e86eab90ba36 100644 --- a/test/core/promise/prioritized_race_test.cc +++ b/test/core/promise/prioritized_race_test.cc @@ -16,8 +16,8 @@ #include -#include "src/core/lib/promise/poll.h" #include "gtest/gtest.h" +#include "src/core/lib/promise/poll.h" namespace grpc_core { diff --git a/test/core/promise/promise_factory_test.cc b/test/core/promise/promise_factory_test.cc index beeb03680276c..51105b41886e1 100644 --- a/test/core/promise/promise_factory_test.cc +++ b/test/core/promise/promise_factory_test.cc @@ -14,9 +14,9 @@ #include "src/core/lib/promise/detail/promise_factory.h" -#include "src/core/lib/promise/poll.h" -#include "gtest/gtest.h" #include "absl/functional/bind_front.h" +#include "gtest/gtest.h" +#include "src/core/lib/promise/poll.h" namespace grpc_core { namespace promise_detail { diff --git a/test/core/promise/promise_fuzzer.cc b/test/core/promise/promise_fuzzer.cc index dd04f957e6269..c3e5bba64d04a 100644 --- a/test/core/promise/promise_fuzzer.cc +++ b/test/core/promise/promise_fuzzer.cc @@ -20,6 +20,10 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "fuzztest/fuzztest.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/join.h" #include "src/core/lib/promise/map.h" @@ -28,10 +32,6 @@ #include "src/core/lib/promise/race.h" #include "src/core/lib/promise/seq.h" #include "test/core/promise/promise_fuzzer.pb.h" -#include "fuzztest/fuzztest.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/status/status.h" bool squelch = true; bool leak_check = true; diff --git a/test/core/promise/promise_mutex_test.cc b/test/core/promise/promise_mutex_test.cc index 6f0cef494c42e..e502c12a8aef1 100644 --- a/test/core/promise/promise_mutex_test.cc +++ b/test/core/promise/promise_mutex_test.cc @@ -17,13 +17,13 @@ #include #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/join.h" #include "src/core/lib/promise/promise.h" #include "src/core/lib/promise/seq.h" #include "test/core/promise/test_wakeup_schedulers.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { namespace { diff --git a/test/core/promise/race_test.cc b/test/core/promise/race_test.cc index 6738c221704fa..4369fa8147265 100644 --- a/test/core/promise/race_test.cc +++ b/test/core/promise/race_test.cc @@ -16,8 +16,8 @@ #include -#include "src/core/lib/promise/poll.h" #include "gtest/gtest.h" +#include "src/core/lib/promise/poll.h" namespace grpc_core { diff --git a/test/core/promise/seq_test.cc b/test/core/promise/seq_test.cc index 68547fb0e25dc..51a479c96839e 100644 --- a/test/core/promise/seq_test.cc +++ b/test/core/promise/seq_test.cc @@ -18,8 +18,8 @@ #include #include -#include "gtest/gtest.h" #include "absl/strings/str_cat.h" +#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/promise/sleep_test.cc b/test/core/promise/sleep_test.cc index b072042299a8a..f57f79ffabb9e 100644 --- a/test/core/promise/sleep_test.cc +++ b/test/core/promise/sleep_test.cc @@ -22,6 +22,9 @@ #include #include +#include "absl/log/log.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/event_engine/event_engine_context.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -32,9 +35,6 @@ #include "src/core/util/orphanable.h" #include "test/core/event_engine/mock_event_engine.h" #include "test/core/promise/test_wakeup_schedulers.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" using grpc_event_engine::experimental::EventEngine; using grpc_event_engine::experimental::GetDefaultEventEngine; diff --git a/test/core/promise/switch_test.cc b/test/core/promise/switch_test.cc index 31db90768efd5..1d43d1d860e09 100644 --- a/test/core/promise/switch_test.cc +++ b/test/core/promise/switch_test.cc @@ -14,9 +14,9 @@ #include "src/core/lib/promise/switch.h" -#include "src/core/lib/promise/poll.h" -#include "gtest/gtest.h" #include "absl/strings/str_cat.h" +#include "gtest/gtest.h" +#include "src/core/lib/promise/poll.h" namespace grpc_core { diff --git a/test/core/promise/try_join_test.cc b/test/core/promise/try_join_test.cc index c415c30fbe84f..ea11d65ecd469 100644 --- a/test/core/promise/try_join_test.cc +++ b/test/core/promise/try_join_test.cc @@ -18,8 +18,8 @@ #include #include -#include "gtest/gtest.h" #include "absl/utility/utility.h" +#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/promise/try_seq_metadata_test.cc b/test/core/promise/try_seq_metadata_test.cc index 8fdaa826a02f6..243d3c4c6bc09 100644 --- a/test/core/promise/try_seq_metadata_test.cc +++ b/test/core/promise/try_seq_metadata_test.cc @@ -17,10 +17,10 @@ #include +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/promise/poll.h" #include "src/core/lib/promise/try_seq.h" -#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/promise/try_seq_test.cc b/test/core/promise/try_seq_test.cc index ba90e54c3f652..ff63cd1be0d40 100644 --- a/test/core/promise/try_seq_test.cc +++ b/test/core/promise/try_seq_test.cc @@ -20,8 +20,8 @@ #include #include -#include "test/core/promise/poll_matcher.h" #include "gtest/gtest.h" +#include "test/core/promise/poll_matcher.h" namespace grpc_core { diff --git a/test/core/promise/wait_for_callback_test.cc b/test/core/promise/wait_for_callback_test.cc index a953f49ba8a8b..f710717ba787f 100644 --- a/test/core/promise/wait_for_callback_test.cc +++ b/test/core/promise/wait_for_callback_test.cc @@ -14,11 +14,11 @@ #include "src/core/lib/promise/wait_for_callback.h" +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/map.h" #include "src/core/util/notification.h" #include "test/core/promise/test_wakeup_schedulers.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { diff --git a/test/core/resolver/dns_resolver_cooldown_test.cc b/test/core/resolver/dns_resolver_cooldown_test.cc index 8f8713b6d7458..2500330b649a3 100644 --- a/test/core/resolver/dns_resolver_cooldown_test.cc +++ b/test/core/resolver/dns_resolver_cooldown_test.cc @@ -31,6 +31,11 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/event_engine/default_event_engine.h" @@ -56,11 +61,6 @@ #include "src/core/util/uri.h" #include "src/core/util/work_serializer.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" using ::grpc_event_engine::experimental::GetDefaultEventEngine; diff --git a/test/core/resolver/dns_resolver_test.cc b/test/core/resolver/dns_resolver_test.cc index f78fc84c14a55..e14f3d0341fae 100644 --- a/test/core/resolver/dns_resolver_test.cc +++ b/test/core/resolver/dns_resolver_test.cc @@ -20,6 +20,11 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" @@ -32,11 +37,6 @@ #include "src/core/util/uri.h" #include "src/core/util/work_serializer.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" using ::grpc_event_engine::experimental::GetDefaultEventEngine; diff --git a/test/core/resolver/endpoint_addresses_test.cc b/test/core/resolver/endpoint_addresses_test.cc index f3d69f82d2d53..1d2c848aea250 100644 --- a/test/core/resolver/endpoint_addresses_test.cc +++ b/test/core/resolver/endpoint_addresses_test.cc @@ -20,16 +20,16 @@ #include +#include "absl/log/check.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/iomgr/resolved_address.h" #include "src/core/util/uri.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace testing { diff --git a/test/core/resolver/fake_resolver_test.cc b/test/core/resolver/fake_resolver_test.cc index b87344ac1bc70..3a69f984ec293 100644 --- a/test/core/resolver/fake_resolver_test.cc +++ b/test/core/resolver/fake_resolver_test.cc @@ -30,6 +30,11 @@ #include #include +#include "absl/container/inlined_vector.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "absl/synchronization/notification.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/channel/channel_args.h" @@ -45,11 +50,6 @@ #include "src/core/util/uri.h" #include "src/core/util/work_serializer.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/container/inlined_vector.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" -#include "absl/synchronization/notification.h" namespace grpc_core { namespace testing { diff --git a/test/core/resolver/google_c2p_resolver_test.cc b/test/core/resolver/google_c2p_resolver_test.cc index e77653cafcce5..52e9d57b5ae81 100644 --- a/test/core/resolver/google_c2p_resolver_test.cc +++ b/test/core/resolver/google_c2p_resolver_test.cc @@ -28,12 +28,12 @@ #include #include +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/util/env.h" #include "test/core/test_util/fake_udp_and_tcp_server.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/strings/str_format.h" namespace { diff --git a/test/core/resolver/sockaddr_resolver_test.cc b/test/core/resolver/sockaddr_resolver_test.cc index c9b8266be9d9e..ef72bd5f418f2 100644 --- a/test/core/resolver/sockaddr_resolver_test.cc +++ b/test/core/resolver/sockaddr_resolver_test.cc @@ -20,6 +20,10 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -31,10 +35,6 @@ #include "src/core/util/uri.h" #include "src/core/util/work_serializer.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" static std::shared_ptr* g_work_serializer; diff --git a/test/core/resource_quota/arena_fuzztest.cc b/test/core/resource_quota/arena_fuzztest.cc index 4427e9ba2d320..fd5bdb7f8aa07 100644 --- a/test/core/resource_quota/arena_fuzztest.cc +++ b/test/core/resource_quota/arena_fuzztest.cc @@ -19,10 +19,10 @@ #include #include +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/util/match.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" namespace grpc_core { namespace { diff --git a/test/core/resource_quota/arena_test.cc b/test/core/resource_quota/arena_test.cc index 342c65fd51aaa..330a6548da98b 100644 --- a/test/core/resource_quota/arena_test.cc +++ b/test/core/resource_quota/arena_test.cc @@ -30,14 +30,14 @@ #include #include +#include "absl/strings/str_join.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/thd.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/str_join.h" using testing::Mock; using testing::Return; diff --git a/test/core/resource_quota/memory_quota_fuzzer.cc b/test/core/resource_quota/memory_quota_fuzzer.cc index 43d1afe39f29a..93bd2215dfa0c 100644 --- a/test/core/resource_quota/memory_quota_fuzzer.cc +++ b/test/core/resource_quota/memory_quota_fuzzer.cc @@ -25,6 +25,10 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/experiments/config.h" #include "src/core/lib/iomgr/closure.h" @@ -38,10 +42,6 @@ #include "test/core/test_util/fuzz_config_vars.h" #include "test/core/test_util/fuzz_config_vars_helpers.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" namespace grpc_core { namespace testing { diff --git a/test/core/resource_quota/memory_quota_stress_test.cc b/test/core/resource_quota/memory_quota_stress_test.cc index d59b5f6434279..669861fea667d 100644 --- a/test/core/resource_quota/memory_quota_stress_test.cc +++ b/test/core/resource_quota/memory_quota_stress_test.cc @@ -27,14 +27,14 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/resource_quota/memory_quota.h" #include "src/core/util/sync.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/test/core/resource_quota/memory_quota_test.cc b/test/core/resource_quota/memory_quota_test.cc index f346d71b35d6a..270404935ba61 100644 --- a/test/core/resource_quota/memory_quota_test.cc +++ b/test/core/resource_quota/memory_quota_test.cc @@ -25,10 +25,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "test/core/resource_quota/call_checker.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc_core { namespace testing { diff --git a/test/core/resource_quota/periodic_update_test.cc b/test/core/resource_quota/periodic_update_test.cc index 249f81d2ce834..4ae6709e18d07 100644 --- a/test/core/resource_quota/periodic_update_test.cc +++ b/test/core/resource_quota/periodic_update_test.cc @@ -22,8 +22,8 @@ #include #include -#include "src/core/lib/iomgr/exec_ctx.h" #include "gtest/gtest.h" +#include "src/core/lib/iomgr/exec_ctx.h" namespace grpc_core { namespace testing { diff --git a/test/core/resource_quota/resource_quota_test.cc b/test/core/resource_quota/resource_quota_test.cc index cb6b5844372ae..c0dfd8da44e26 100644 --- a/test/core/resource_quota/resource_quota_test.cc +++ b/test/core/resource_quota/resource_quota_test.cc @@ -14,8 +14,8 @@ #include "src/core/lib/resource_quota/resource_quota.h" -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc_core { namespace testing { diff --git a/test/core/security/authorization_matchers_test.cc b/test/core/security/authorization_matchers_test.cc index 3342ee197475f..ebac57159492d 100644 --- a/test/core/security/authorization_matchers_test.cc +++ b/test/core/security/authorization_matchers_test.cc @@ -17,11 +17,11 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/security/authorization/evaluate_args.h" #include "src/core/lib/security/authorization/matchers.h" #include "test/core/test_util/evaluate_args_test_util.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/security/evaluate_args_test.cc b/test/core/security/evaluate_args_test.cc index 2eda3b41ea6e2..dbcaa01870438 100644 --- a/test/core/security/evaluate_args_test.cc +++ b/test/core/security/evaluate_args_test.cc @@ -16,11 +16,11 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "test/core/test_util/evaluate_args_test_util.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/security/grpc_audit_logging_test.cc b/test/core/security/grpc_audit_logging_test.cc index 774b5f59f2584..8f269e23ae312 100644 --- a/test/core/security/grpc_audit_logging_test.cc +++ b/test/core/security/grpc_audit_logging_test.cc @@ -22,19 +22,19 @@ #include #include -#include "src/core/lib/security/authorization/audit_logging.h" -#include "src/core/util/json/json.h" -#include "src/core/util/json/json_reader.h" -#include "src/core/util/json/json_writer.h" -#include "test/core/test_util/test_config.h" -#include "test/core/test_util/tls_utils.h" -#include "gtest/gtest.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/numbers.h" #include "absl/strings/string_view.h" #include "absl/time/clock.h" #include "absl/time/time.h" +#include "gtest/gtest.h" +#include "src/core/lib/security/authorization/audit_logging.h" +#include "src/core/util/json/json.h" +#include "src/core/util/json/json_reader.h" +#include "src/core/util/json/json_writer.h" +#include "test/core/test_util/test_config.h" +#include "test/core/test_util/tls_utils.h" namespace grpc_core { namespace testing { diff --git a/test/core/security/grpc_authorization_engine_test.cc b/test/core/security/grpc_authorization_engine_test.cc index 1b1e83a4eebdb..46f9916c7a633 100644 --- a/test/core/security/grpc_authorization_engine_test.cc +++ b/test/core/security/grpc_authorization_engine_test.cc @@ -20,12 +20,12 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/security/authorization/audit_logging.h" #include "src/core/util/json/json.h" #include "test/core/test_util/audit_logging_utils.h" #include "test/core/test_util/evaluate_args_test_util.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/security/grpc_authorization_policy_provider_test.cc b/test/core/security/grpc_authorization_policy_provider_test.cc index 43ec7853610c6..ea66c8b28affc 100644 --- a/test/core/security/grpc_authorization_policy_provider_test.cc +++ b/test/core/security/grpc_authorization_policy_provider_test.cc @@ -17,19 +17,19 @@ #include #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/security/authorization/grpc_authorization_engine.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#define VALID_POLICY_PATH_1 \ +#define VALID_POLICY_PATH_1 \ "test/core/security/authorization/test_policies/" \ "valid_policy_1.json" -#define VALID_POLICY_PATH_2 \ +#define VALID_POLICY_PATH_2 \ "test/core/security/authorization/test_policies/" \ "valid_policy_2.json" -#define INVALID_POLICY_PATH \ +#define INVALID_POLICY_PATH \ "test/core/security/authorization/test_policies/" \ "invalid_policy.json" diff --git a/test/core/security/rbac_translator_test.cc b/test/core/security/rbac_translator_test.cc index f3316afa3f4b9..ace04392d20b1 100644 --- a/test/core/security/rbac_translator_test.cc +++ b/test/core/security/rbac_translator_test.cc @@ -18,15 +18,15 @@ #include +#include "absl/strings/match.h" +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/security/authorization/audit_logging.h" #include "src/core/util/crash.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_writer.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/match.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/test/core/server/server_config_selector_test.cc b/test/core/server/server_config_selector_test.cc index 20498daa7c25f..3a02323928594 100644 --- a/test/core/server/server_config_selector_test.cc +++ b/test/core/server/server_config_selector_test.cc @@ -20,10 +20,10 @@ #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { namespace testing { diff --git a/test/core/server/xds_channel_stack_modifier_test.cc b/test/core/server/xds_channel_stack_modifier_test.cc index dc4880cadfa0a..a77f123f260e3 100644 --- a/test/core/server/xds_channel_stack_modifier_test.cc +++ b/test/core/server/xds_channel_stack_modifier_test.cc @@ -23,6 +23,7 @@ #include #include +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/channel/channel_stack.h" @@ -34,7 +35,6 @@ #include "src/core/lib/surface/channel_stack_type.h" #include "src/core/lib/transport/transport.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc_core { namespace testing { diff --git a/test/core/service_config/service_config_test.cc b/test/core/service_config/service_config_test.cc index 779f285a0a6c1..852cd7ef40ad1 100644 --- a/test/core/service_config/service_config_test.cc +++ b/test/core/service_config/service_config_test.cc @@ -23,6 +23,11 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/service_config/service_config_impl.h" @@ -33,11 +38,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/validation_errors.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" namespace grpc_core { namespace testing { diff --git a/test/core/slice/c_slice_buffer_test.cc b/test/core/slice/c_slice_buffer_test.cc index 5c88b687487cf..105d96afd706e 100644 --- a/test/core/slice/c_slice_buffer_test.cc +++ b/test/core/slice/c_slice_buffer_test.cc @@ -21,9 +21,9 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/slice/slice_internal.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" static constexpr size_t kTotalDataLength = 4096; diff --git a/test/core/slice/percent_encode_fuzzer.cc b/test/core/slice/percent_encode_fuzzer.cc index 63db6be7a196c..d0fa1b9141b55 100644 --- a/test/core/slice/percent_encode_fuzzer.cc +++ b/test/core/slice/percent_encode_fuzzer.cc @@ -22,10 +22,10 @@ #include +#include "absl/log/check.h" +#include "fuzztest/fuzztest.h" #include "src/core/lib/slice/percent_encoding.h" #include "src/core/lib/slice/slice.h" -#include "fuzztest/fuzztest.h" -#include "absl/log/check.h" using fuzztest::Arbitrary; using fuzztest::ElementOf; diff --git a/test/core/slice/percent_encoding_test.cc b/test/core/slice/percent_encoding_test.cc index e6543cc6926a6..8ed0eac045ccf 100644 --- a/test/core/slice/percent_encoding_test.cc +++ b/test/core/slice/percent_encoding_test.cc @@ -24,11 +24,11 @@ #include #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/slice/slice_string_helpers.h" #include "src/core/util/string.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" #define TEST_VECTOR(raw, encoded, dict) \ test_vector(raw, sizeof(raw) - 1, encoded, sizeof(encoded) - 1, dict) diff --git a/test/core/slice/slice_buffer_test.cc b/test/core/slice/slice_buffer_test.cc index b0431d36c0f5c..f2f3dc422937d 100644 --- a/test/core/slice/slice_buffer_test.cc +++ b/test/core/slice/slice_buffer_test.cc @@ -22,9 +22,9 @@ #include #include -#include "src/core/lib/slice/slice.h" -#include "gtest/gtest.h" #include "absl/log/check.h" +#include "gtest/gtest.h" +#include "src/core/lib/slice/slice.h" using ::grpc_core::Slice; using ::grpc_core::SliceBuffer; diff --git a/test/core/slice/slice_string_helpers_test.cc b/test/core/slice/slice_string_helpers_test.cc index 9574721d82147..ed4dfa62b99eb 100644 --- a/test/core/slice/slice_string_helpers_test.cc +++ b/test/core/slice/slice_string_helpers_test.cc @@ -22,9 +22,9 @@ #include -#include "src/core/util/string.h" -#include "gtest/gtest.h" #include "absl/log/log.h" +#include "gtest/gtest.h" +#include "src/core/util/string.h" static void expect_slice_dump(grpc_slice slice, uint32_t flags, const char* result) { diff --git a/test/core/slice/slice_test.cc b/test/core/slice/slice_test.cc index 5f410d68db14b..734ece4db83ca 100644 --- a/test/core/slice/slice_test.cc +++ b/test/core/slice/slice_test.cc @@ -30,14 +30,14 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/lib/slice/slice_refcount.h" #include "src/core/util/memory.h" #include "src/core/util/no_destruct.h" #include "test/core/test_util/build.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/string_view.h" TEST(GrpcSliceTest, MallocReturnsSomethingSensible) { // Calls grpc_slice_create for various lengths and verifies the internals for diff --git a/test/core/surface/byte_buffer_reader_test.cc b/test/core/surface/byte_buffer_reader_test.cc index f2aeeb8eacd38..7dd5da279b454 100644 --- a/test/core/surface/byte_buffer_reader_test.cc +++ b/test/core/surface/byte_buffer_reader_test.cc @@ -25,9 +25,9 @@ #include -#include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" #include "absl/log/log.h" +#include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" TEST(GrpcByteBufferReaderTest, TestReadOneSlice) { grpc_slice slice; diff --git a/test/core/surface/channel_init_test.cc b/test/core/surface/channel_init_test.cc index c60d111aa137e..fda310a29b6df 100644 --- a/test/core/surface/channel_init_test.cc +++ b/test/core/surface/channel_init_test.cc @@ -18,6 +18,8 @@ #include #include +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/call/call_arena_allocator.h" #include "src/core/lib/channel/channel_stack.h" #include "src/core/lib/channel/channel_stack_builder_impl.h" @@ -25,8 +27,6 @@ #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/lib/surface/channel_stack_type.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace { diff --git a/test/core/surface/completion_queue_test.cc b/test/core/surface/completion_queue_test.cc index 8271b29af5b1d..bdf83a53d4d04 100644 --- a/test/core/surface/completion_queue_test.cc +++ b/test/core/surface/completion_queue_test.cc @@ -25,13 +25,13 @@ #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/shim.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/useful.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/status/status.h" #define LOG_TEST(x) LOG(INFO) << x diff --git a/test/core/surface/completion_queue_threading_test.cc b/test/core/surface/completion_queue_threading_test.cc index ad052699ecfa1..f9a95f1d56baa 100644 --- a/test/core/surface/completion_queue_threading_test.cc +++ b/test/core/surface/completion_queue_threading_test.cc @@ -25,15 +25,15 @@ #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/surface/completion_queue.h" #include "src/core/util/crash.h" #include "src/core/util/thd.h" #include "src/core/util/useful.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/status/status.h" #define LOG_TEST(x) LOG(INFO) << x diff --git a/test/core/surface/concurrent_connectivity_test.cc b/test/core/surface/concurrent_connectivity_test.cc index d56ede6fac006..097b9ecf585f8 100644 --- a/test/core/surface/concurrent_connectivity_test.cc +++ b/test/core/surface/concurrent_connectivity_test.cc @@ -29,6 +29,9 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args_preconditioning.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" @@ -45,9 +48,6 @@ #include "src/core/util/time.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" // TODO(yashykt): When our macos testing infrastructure becomes good enough, we // wouldn't need to reduce the number of threads on MacOS diff --git a/test/core/surface/connection_context_test.cc b/test/core/surface/connection_context_test.cc index adafcd65956aa..c82147786e376 100644 --- a/test/core/surface/connection_context_test.cc +++ b/test/core/surface/connection_context_test.cc @@ -18,9 +18,9 @@ #include "src/core/lib/surface/connection_context.h" +#include "gtest/gtest.h" #include "src/core/util/orphanable.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/surface/init_test.cc b/test/core/surface/init_test.cc index 290d1aacad988..769be146323f2 100644 --- a/test/core/surface/init_test.cc +++ b/test/core/surface/init_test.cc @@ -24,13 +24,13 @@ #include #include +#include "absl/time/clock.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/thd.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" static void test(int rounds) { int i; diff --git a/test/core/surface/lame_client_test.cc b/test/core/surface/lame_client_test.cc index 5cbd2a44a1bd3..f2fb59585a7f8 100644 --- a/test/core/surface/lame_client_test.cc +++ b/test/core/surface/lame_client_test.cc @@ -25,6 +25,8 @@ #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_fwd.h" #include "src/core/lib/channel/channel_stack.h" #include "src/core/lib/experiments/experiments.h" @@ -37,8 +39,6 @@ #include "src/core/util/orphanable.h" #include "test/core/end2end/cq_verifier.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" class Watcher : public grpc_core::ConnectivityStateWatcherInterface { public: diff --git a/test/core/surface/num_external_connectivity_watchers_test.cc b/test/core/surface/num_external_connectivity_watchers_test.cc index 822126a765049..f718ccef7800e 100644 --- a/test/core/surface/num_external_connectivity_watchers_test.cc +++ b/test/core/surface/num_external_connectivity_watchers_test.cc @@ -26,6 +26,8 @@ #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -33,8 +35,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" diff --git a/test/core/surface/secure_channel_create_test.cc b/test/core/surface/secure_channel_create_test.cc index ff66dbb326ee4..52282878992f2 100644 --- a/test/core/surface/secure_channel_create_test.cc +++ b/test/core/surface/secure_channel_create_test.cc @@ -19,6 +19,7 @@ #include +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "src/core/credentials/transport/security_connector.h" @@ -28,7 +29,6 @@ #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/surface/channel.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" void test_unknown_scheme_target(void) { grpc_channel_credentials* creds = diff --git a/test/core/surface/sequential_connectivity_test.cc b/test/core/surface/sequential_connectivity_test.cc index 78e1a035a6f52..e6467316c96e5 100644 --- a/test/core/surface/sequential_connectivity_test.cc +++ b/test/core/surface/sequential_connectivity_test.cc @@ -28,6 +28,8 @@ #include #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/host_port.h" @@ -35,8 +37,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" #define SERVER_CERT_PATH "src/core/tsi/test_creds/server1.pem" diff --git a/test/core/surface/server_chttp2_test.cc b/test/core/surface/server_chttp2_test.cc index a50dba4a34950..c245ed54cb553 100644 --- a/test/core/surface/server_chttp2_test.cc +++ b/test/core/surface/server_chttp2_test.cc @@ -24,12 +24,12 @@ #include +#include "gtest/gtest.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/host_port.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" TEST(ServerChttp2, UnparsableTarget) { grpc_channel_args args = {0, nullptr}; diff --git a/test/core/surface/server_test.cc b/test/core/surface/server_test.cc index 9427e3c19ada1..9047be4d4cbde 100644 --- a/test/core/surface/server_test.cc +++ b/test/core/surface/server_test.cc @@ -26,6 +26,9 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "gtest/gtest.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/event_engine/utils.h" @@ -33,9 +36,6 @@ #include "src/core/util/useful.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" void test_register_method_fail(void) { grpc_server* server = grpc_server_create(nullptr, nullptr); diff --git a/test/core/telemetry/call_tracer_test.cc b/test/core/telemetry/call_tracer_test.cc index af71ff125af69..d89387f82997c 100644 --- a/test/core/telemetry/call_tracer_test.cc +++ b/test/core/telemetry/call_tracer_test.cc @@ -23,13 +23,13 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/promise/context.h" #include "src/core/lib/resource_quota/memory_quota.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/test_util/fake_stats_plugin.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/telemetry/metrics_test.cc b/test/core/telemetry/metrics_test.cc index f0a4c1a36ab8e..18b4c6e31975c 100644 --- a/test/core/telemetry/metrics_test.cc +++ b/test/core/telemetry/metrics_test.cc @@ -17,12 +17,12 @@ #include #include +#include "absl/log/log.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" #include "test/core/test_util/fake_stats_plugin.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" namespace grpc_core { namespace { diff --git a/test/core/telemetry/stats_test.cc b/test/core/telemetry/stats_test.cc index 760cb0d17ada3..24fe4532fa44a 100644 --- a/test/core/telemetry/stats_test.cc +++ b/test/core/telemetry/stats_test.cc @@ -23,11 +23,11 @@ #include #include +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/telemetry/stats_data.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" namespace grpc_core { namespace testing { diff --git a/test/core/telemetry/trace_flags_test.cc b/test/core/telemetry/trace_flags_test.cc index 92e4772d1b3fd..b23ccf3d7fbd2 100644 --- a/test/core/telemetry/trace_flags_test.cc +++ b/test/core/telemetry/trace_flags_test.cc @@ -14,10 +14,10 @@ #include +#include "absl/strings/match.h" +#include "gtest/gtest.h" #include "src/core/lib/debug/trace.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/strings/match.h" class TraceFlags : public ::testing::Test { public: diff --git a/test/core/test_util/audit_logging_utils.cc b/test/core/test_util/audit_logging_utils.cc index e27a39d20528f..a4ff77683452f 100644 --- a/test/core/test_util/audit_logging_utils.cc +++ b/test/core/test_util/audit_logging_utils.cc @@ -25,9 +25,9 @@ #include #include -#include "src/core/util/json/json_writer.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "src/core/util/json/json_writer.h" namespace grpc_core { namespace testing { diff --git a/test/core/test_util/cmdline.cc b/test/core/test_util/cmdline.cc index 13404136778ab..c4bcb29914452 100644 --- a/test/core/test_util/cmdline.cc +++ b/test/core/test_util/cmdline.cc @@ -27,11 +27,11 @@ #include #include -#include "src/core/util/memory.h" #include "absl/log/check.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" +#include "src/core/util/memory.h" typedef enum { ARGTYPE_INT, ARGTYPE_BOOL, ARGTYPE_STRING } argtype; diff --git a/test/core/test_util/cmdline_test.cc b/test/core/test_util/cmdline_test.cc index 25ba665478cae..b94ade30dfada 100644 --- a/test/core/test_util/cmdline_test.cc +++ b/test/core/test_util/cmdline_test.cc @@ -20,10 +20,10 @@ #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/util/useful.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" #define LOG_TEST() LOG(INFO) << "test at " << __FILE__ << ":" << __LINE__ diff --git a/test/core/test_util/evaluate_args_test_util.h b/test/core/test_util/evaluate_args_test_util.h index f6d51919e47e4..55016f69d339c 100644 --- a/test/core/test_util/evaluate_args_test_util.h +++ b/test/core/test_util/evaluate_args_test_util.h @@ -22,6 +22,7 @@ #include +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/handshaker/endpoint_info/endpoint_info_handshaker.h" #include "src/core/lib/channel/channel_args.h" @@ -32,7 +33,6 @@ #include "src/core/lib/slice/slice.h" #include "src/core/transport/auth_context.h" #include "src/core/util/ref_counted_ptr.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/test/core/test_util/fake_stats_plugin.cc b/test/core/test_util/fake_stats_plugin.cc index f1537589a43d3..152b7050b67d6 100644 --- a/test/core/test_util/fake_stats_plugin.cc +++ b/test/core/test_util/fake_stats_plugin.cc @@ -14,8 +14,8 @@ #include "test/core/test_util/fake_stats_plugin.h" -#include "src/core/config/core_configuration.h" #include "absl/log/check.h" +#include "src/core/config/core_configuration.h" namespace grpc_core { diff --git a/test/core/test_util/fake_stats_plugin.h b/test/core/test_util/fake_stats_plugin.h index 5f4f1f627fbd0..3db00ebccf161 100644 --- a/test/core/test_util/fake_stats_plugin.h +++ b/test/core/test_util/fake_stats_plugin.h @@ -21,18 +21,18 @@ #include #include -#include "src/core/lib/channel/promise_based_filter.h" -#include "src/core/telemetry/call_tracer.h" -#include "src/core/telemetry/metrics.h" -#include "src/core/telemetry/tcp_tracer.h" -#include "src/core/util/ref_counted.h" -#include "gmock/gmock.h" #include "absl/container/flat_hash_map.h" #include "absl/functional/any_invocable.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/strings/string_view.h" #include "absl/types/span.h" +#include "gmock/gmock.h" +#include "src/core/lib/channel/promise_based_filter.h" +#include "src/core/telemetry/call_tracer.h" +#include "src/core/telemetry/metrics.h" +#include "src/core/telemetry/tcp_tracer.h" +#include "src/core/util/ref_counted.h" namespace grpc_core { diff --git a/test/core/test_util/fake_udp_and_tcp_server.cc b/test/core/test_util/fake_udp_and_tcp_server.cc index 32fa53a7503b8..92118fa248e0d 100644 --- a/test/core/test_util/fake_udp_and_tcp_server.cc +++ b/test/core/test_util/fake_udp_and_tcp_server.cc @@ -25,14 +25,14 @@ #include #include -#include "src/core/lib/address_utils/sockaddr_utils.h" -#include "src/core/lib/iomgr/resolved_address.h" -#include "src/core/lib/iomgr/sockaddr.h" -#include "test/core/test_util/port.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" +#include "src/core/lib/address_utils/sockaddr_utils.h" +#include "src/core/lib/iomgr/resolved_address.h" +#include "src/core/lib/iomgr/sockaddr.h" +#include "test/core/test_util/port.h" // IWYU pragma: no_include diff --git a/test/core/test_util/fuzz_config_vars_helpers.cc b/test/core/test_util/fuzz_config_vars_helpers.cc index 1ab35c4bd1ee7..337c298bd3f75 100644 --- a/test/core/test_util/fuzz_config_vars_helpers.cc +++ b/test/core/test_util/fuzz_config_vars_helpers.cc @@ -21,9 +21,9 @@ #include #include +#include "absl/strings/str_join.h" #include "src/core/lib/experiments/config.h" #include "src/core/lib/experiments/experiments.h" -#include "absl/strings/str_join.h" namespace grpc_core { diff --git a/test/core/test_util/fuzz_config_vars_helpers.h b/test/core/test_util/fuzz_config_vars_helpers.h index cb5c5e8ad9992..365006fdc0c21 100644 --- a/test/core/test_util/fuzz_config_vars_helpers.h +++ b/test/core/test_util/fuzz_config_vars_helpers.h @@ -26,12 +26,12 @@ #include #include +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" +#include "fuzztest/fuzztest.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/experiments/experiments.h" #include "test/core/test_util/fuzz_config_vars.pb.h" -#include "fuzztest/fuzztest.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" namespace grpc_core { diff --git a/test/core/test_util/fuzzer_corpus_test.cc b/test/core/test_util/fuzzer_corpus_test.cc index d43eab06ad2d7..f3bb98b3e38a5 100644 --- a/test/core/test_util/fuzzer_corpus_test.cc +++ b/test/core/test_util/fuzzer_corpus_test.cc @@ -29,15 +29,15 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/env.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" #include "test/cpp/util/test_config.h" -#include "gtest/gtest.h" -#include "absl/flags/flag.h" -#include "absl/log/check.h" -#include "absl/log/log.h" extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size); extern bool squelch; diff --git a/test/core/test_util/histogram.cc b/test/core/test_util/histogram.cc index afaa215367a67..458de2b749b8e 100644 --- a/test/core/test_util/histogram.cc +++ b/test/core/test_util/histogram.cc @@ -23,8 +23,8 @@ #include #include -#include "src/core/util/useful.h" #include "absl/log/check.h" +#include "src/core/util/useful.h" // Histograms are stored with exponentially increasing bucket sizes. // The first bucket is [0, m) where m = 1 + resolution diff --git a/test/core/test_util/histogram_test.cc b/test/core/test_util/histogram_test.cc index e6153374334b2..5c90ffbb24689 100644 --- a/test/core/test_util/histogram_test.cc +++ b/test/core/test_util/histogram_test.cc @@ -20,8 +20,8 @@ #include -#include "gtest/gtest.h" #include "absl/log/log.h" +#include "gtest/gtest.h" TEST(HistogramTest, NoOp) { grpc_histogram_destroy(grpc_histogram_create(0.01, 60e9)); diff --git a/test/core/test_util/mock_endpoint.cc b/test/core/test_util/mock_endpoint.cc index a7d23dcf27f71..5706d8cedc3b8 100644 --- a/test/core/test_util/mock_endpoint.cc +++ b/test/core/test_util/mock_endpoint.cc @@ -24,12 +24,12 @@ #include -#include "src/core/lib/event_engine/tcp_socket_utils.h" -#include "src/core/lib/iomgr/event_engine_shims/endpoint.h" -#include "src/core/util/down_cast.h" #include "absl/log/check.h" #include "absl/status/status.h" #include "absl/strings/string_view.h" +#include "src/core/lib/event_engine/tcp_socket_utils.h" +#include "src/core/lib/iomgr/event_engine_shims/endpoint.h" +#include "src/core/util/down_cast.h" namespace grpc_event_engine { namespace experimental { diff --git a/test/core/test_util/parse_hexstring.h b/test/core/test_util/parse_hexstring.h index 51158bc193f5b..d43f01480314e 100644 --- a/test/core/test_util/parse_hexstring.h +++ b/test/core/test_util/parse_hexstring.h @@ -19,8 +19,8 @@ #ifndef GRPC_TEST_CORE_TEST_UTIL_PARSE_HEXSTRING_H #define GRPC_TEST_CORE_TEST_UTIL_PARSE_HEXSTRING_H -#include "src/core/lib/slice/slice.h" #include "absl/strings/string_view.h" +#include "src/core/lib/slice/slice.h" namespace grpc_core { Slice ParseHexstring(absl::string_view hexstring); diff --git a/test/core/test_util/port.cc b/test/core/test_util/port.cc index 02b890cf3d36e..bac509ee232a8 100644 --- a/test/core/test_util/port.cc +++ b/test/core/test_util/port.cc @@ -26,10 +26,10 @@ #include +#include "absl/log/check.h" #include "src/core/util/sync.h" #include "test/core/test_util/port.h" #include "test/core/test_util/port_server_client.h" -#include "absl/log/check.h" static int* chosen_ports = nullptr; static size_t num_chosen_ports = 0; diff --git a/test/core/test_util/port_server_client.cc b/test/core/test_util/port_server_client.cc index 2afcba9f3d49f..d7119616c6b0f 100644 --- a/test/core/test_util/port_server_client.cc +++ b/test/core/test_util/port_server_client.cc @@ -34,6 +34,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" #include "src/core/credentials/transport/transport_credentials.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/error.h" @@ -49,10 +53,6 @@ #include "src/core/util/time.h" #include "src/core/util/uri.h" #include "test/core/test_util/resolve_localhost_ip46.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" typedef struct freereq { gpr_mu* mu = nullptr; diff --git a/test/core/test_util/postmortem.cc b/test/core/test_util/postmortem.cc index af6406039581d..26906dc1648e5 100644 --- a/test/core/test_util/postmortem.cc +++ b/test/core/test_util/postmortem.cc @@ -14,9 +14,9 @@ #include "test/core/test_util/postmortem.h" +#include "gtest/gtest.h" #include "src/core/channelz/channelz_registry.h" #include "src/core/telemetry/stats.h" -#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/test_util/reconnect_server.cc b/test/core/test_util/reconnect_server.cc index a16b12bd7d414..478e078cecd3b 100644 --- a/test/core/test_util/reconnect_server.cc +++ b/test/core/test_util/reconnect_server.cc @@ -22,13 +22,13 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/string_view.h" #include "src/core/lib/iomgr/endpoint.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/iomgr_fwd.h" #include "src/core/lib/iomgr/tcp_server.h" #include "test/core/test_util/test_tcp_server.h" -#include "absl/log/log.h" -#include "absl/strings/string_view.h" static void pretty_print_backoffs(reconnect_server* server) { gpr_timespec diff; diff --git a/test/core/test_util/resolve_localhost_ip46.cc b/test/core/test_util/resolve_localhost_ip46.cc index dbca11f9083ca..dd4fc4db19f4e 100644 --- a/test/core/test_util/resolve_localhost_ip46.cc +++ b/test/core/test_util/resolve_localhost_ip46.cc @@ -23,14 +23,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/event_engine/utils.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/iomgr/resolve_address.h" #include "src/core/lib/iomgr/resolved_address.h" #include "src/core/lib/iomgr/sockaddr.h" -#include "absl/log/check.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" namespace grpc_core { namespace { diff --git a/test/core/test_util/socket_use_after_close_detector.cc b/test/core/test_util/socket_use_after_close_detector.cc index a6e9b568b6056..546936d412264 100644 --- a/test/core/test_util/socket_use_after_close_detector.cc +++ b/test/core/test_util/socket_use_after_close_detector.cc @@ -34,10 +34,10 @@ #include #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/sockaddr.h" #include "test/core/test_util/port.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" #define BAD_SOCKET_RETURN_VAL (-1) diff --git a/test/core/test_util/stack_tracer.cc b/test/core/test_util/stack_tracer.cc index 68efce2817164..e61924343ba2f 100644 --- a/test/core/test_util/stack_tracer.cc +++ b/test/core/test_util/stack_tracer.cc @@ -23,9 +23,9 @@ #include #include -#include "src/core/util/examine_stack.h" #include "absl/debugging/stacktrace.h" #include "absl/debugging/symbolize.h" +#include "src/core/util/examine_stack.h" namespace { diff --git a/test/core/test_util/stack_tracer_test.cc b/test/core/test_util/stack_tracer_test.cc index b9f9e44ce19ce..36039e2ac27b8 100644 --- a/test/core/test_util/stack_tracer_test.cc +++ b/test/core/test_util/stack_tracer_test.cc @@ -20,10 +20,10 @@ #include -#include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" #include "absl/log/log.h" #include "absl/strings/match.h" +#include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" TEST(StackTracerTest, Basic) { std::string stack_trace = grpc_core::testing::GetCurrentStackTrace(); diff --git a/test/core/test_util/test_call_creds.cc b/test/core/test_util/test_call_creds.cc index 576ce3377f4e4..1106afffaef60 100644 --- a/test/core/test_util/test_call_creds.cc +++ b/test/core/test_util/test_call_creds.cc @@ -20,10 +20,10 @@ #include +#include "absl/strings/string_view.h" #include "src/core/call/metadata_batch.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/promise/promise.h" -#include "absl/strings/string_view.h" grpc_core::ArenaPromise> grpc_md_only_test_credentials::GetRequestMetadata( diff --git a/test/core/test_util/test_call_creds.h b/test/core/test_util/test_call_creds.h index 0a262e57b1686..9a72486e6691e 100644 --- a/test/core/test_util/test_call_creds.h +++ b/test/core/test_util/test_call_creds.h @@ -24,13 +24,13 @@ #include +#include "absl/status/statusor.h" #include "src/core/credentials/call/call_credentials.h" #include "src/core/lib/promise/arena_promise.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/transport/transport.h" #include "src/core/util/unique_type_name.h" #include "src/core/util/useful.h" -#include "absl/status/statusor.h" class grpc_md_only_test_credentials : public grpc_call_credentials { public: diff --git a/test/core/test_util/test_config.cc b/test/core/test_util/test_config.cc index 2945418f5b796..e9de2d6f14006 100644 --- a/test/core/test_util/test_config.cc +++ b/test/core/test_util/test_config.cc @@ -26,11 +26,6 @@ #include -#include "src/core/lib/surface/init.h" -#include "src/core/util/crash.h" -#include "test/core/event_engine/test_init.h" -#include "test/core/test_util/build.h" -#include "test/core/test_util/stack_tracer.h" #include "absl/debugging/failure_signal_handler.h" #include "absl/log/globals.h" #include "absl/log/initialize.h" @@ -39,6 +34,11 @@ #include "absl/strings/match.h" #include "absl/strings/str_format.h" #include "absl/strings/string_view.h" +#include "src/core/lib/surface/init.h" +#include "src/core/util/crash.h" +#include "test/core/event_engine/test_init.h" +#include "test/core/test_util/build.h" +#include "test/core/test_util/stack_tracer.h" int64_t g_fixture_slowdown_factor = 1; int64_t g_poller_slowdown_factor = 1; diff --git a/test/core/test_util/test_lb_policies.cc b/test/core/test_util/test_lb_policies.cc index 74479be72958e..a05bf1f8957e2 100644 --- a/test/core/test_util/test_lb_policies.cc +++ b/test/core/test_util/test_lb_policies.cc @@ -24,6 +24,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/statusor.h" +#include "absl/strings/string_view.h" #include "src/core/client_channel/lb_metadata.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/address_utils/parse_address.h" @@ -45,10 +49,6 @@ #include "src/core/util/status_helper.h" #include "src/core/util/time.h" #include "src/core/util/uri.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/statusor.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/test/core/test_util/test_lb_policies.h b/test/core/test_util/test_lb_policies.h index 5993cf10a308f..64a358f929042 100644 --- a/test/core/test_util/test_lb_policies.h +++ b/test/core/test_util/test_lb_policies.h @@ -25,11 +25,11 @@ #include #include +#include "absl/status/status.h" +#include "absl/strings/string_view.h" #include "src/core/config/core_configuration.h" #include "src/core/load_balancing/backend_metric_data.h" #include "src/core/resolver/endpoint_addresses.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/test/core/test_util/test_tcp_server.cc b/test/core/test_util/test_tcp_server.cc index 6c87015a2a4b1..e3197c03b0a99 100644 --- a/test/core/test_util/test_tcp_server.cc +++ b/test/core/test_util/test_tcp_server.cc @@ -27,6 +27,8 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args_preconditioning.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" @@ -39,8 +41,6 @@ #include "src/core/lib/iomgr/tcp_server.h" #include "src/core/util/time.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" -#include "absl/log/log.h" static void on_server_destroyed(void* data, grpc_error_handle /*error*/) { test_tcp_server* server = static_cast(data); diff --git a/test/core/test_util/tls_utils.cc b/test/core/test_util/tls_utils.cc index ff3504e91d5ce..a891e43c33cc1 100644 --- a/test/core/test_util/tls_utils.cc +++ b/test/core/test_util/tls_utils.cc @@ -21,13 +21,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/load_file.h" #include "src/core/util/tmpfile.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" -#include "absl/strings/str_cat.h" namespace grpc_core { diff --git a/test/core/test_util/tls_utils.h b/test/core/test_util/tls_utils.h index 77ad605645d59..30f9fc5a113ca 100644 --- a/test/core/test_util/tls_utils.h +++ b/test/core/test_util/tls_utils.h @@ -25,11 +25,11 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/strings/string_view.h" #include "src/core/credentials/transport/tls/ssl_utils.h" #include "src/core/util/sync.h" #include "src/core/util/thd.h" -#include "absl/base/thread_annotations.h" -#include "absl/strings/string_view.h" namespace grpc_core { diff --git a/test/core/transport/auth_context_test.cc b/test/core/transport/auth_context_test.cc index dc40a65f2d5b1..02b75c22f802b 100644 --- a/test/core/transport/auth_context_test.cc +++ b/test/core/transport/auth_context_test.cc @@ -20,12 +20,12 @@ #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/string.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" TEST(AuthContextTest, EmptyContext) { grpc_core::RefCountedPtr ctx = diff --git a/test/core/transport/bdp_estimator_test.cc b/test/core/transport/bdp_estimator_test.cc index d6062992ed4e8..b7174df8e9382 100644 --- a/test/core/transport/bdp_estimator_test.cc +++ b/test/core/transport/bdp_estimator_test.cc @@ -24,10 +24,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/timer_manager.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" extern gpr_timespec (*gpr_now_impl)(gpr_clock_type clock_type); diff --git a/test/core/transport/benchmarks/bm_chaotic_good.cc b/test/core/transport/benchmarks/bm_chaotic_good.cc index 435614f42cdfb..5433d567a7ed0 100644 --- a/test/core/transport/benchmarks/bm_chaotic_good.cc +++ b/test/core/transport/benchmarks/bm_chaotic_good.cc @@ -15,14 +15,14 @@ #include #include +#include "absl/memory/memory.h" +#include "absl/strings/string_view.h" #include "src/core/ext/transport/chaotic_good/client_transport.h" #include "src/core/ext/transport/chaotic_good/server_transport.h" #include "src/core/ext/transport/chaotic_good/tcp_frame_transport.h" #include "src/core/lib/address_utils/parse_address.h" #include "test/core/call/call_spine_benchmarks.h" #include "test/core/test_util/passthrough_endpoint.h" -#include "absl/memory/memory.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace { diff --git a/test/core/transport/benchmarks/bm_inproc.cc b/test/core/transport/benchmarks/bm_inproc.cc index 87c104f8fe6cc..7872cbc6d835c 100644 --- a/test/core/transport/benchmarks/bm_inproc.cc +++ b/test/core/transport/benchmarks/bm_inproc.cc @@ -17,11 +17,11 @@ #include +#include "absl/memory/memory.h" +#include "absl/strings/string_view.h" #include "src/core/ext/transport/inproc/inproc_transport.h" #include "src/core/lib/address_utils/parse_address.h" #include "test/core/call/call_spine_benchmarks.h" -#include "absl/memory/memory.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace { diff --git a/test/core/transport/chaotic_good/chaotic_good_server_test.cc b/test/core/transport/chaotic_good/chaotic_good_server_test.cc index 148969788b614..a4de9c4fe2bb7 100644 --- a/test/core/transport/chaotic_good/chaotic_good_server_test.cc +++ b/test/core/transport/chaotic_good/chaotic_good_server_test.cc @@ -23,6 +23,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/time/time.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/chaotic_good/client/chaotic_good_connector.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/channel/channel_args.h" @@ -36,12 +42,6 @@ #include "test/core/test_util/build.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/time/time.h" namespace grpc_core { namespace chaotic_good { diff --git a/test/core/transport/chaotic_good/client_transport_test.cc b/test/core/transport/chaotic_good/client_transport_test.cc index dbfaf5f758668..4dd5ec019f769 100644 --- a/test/core/transport/chaotic_good/client_transport_test.cc +++ b/test/core/transport/chaotic_good/client_transport_test.cc @@ -31,6 +31,11 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/chaotic_good/chaotic_good_frame.pb.h" @@ -44,11 +49,6 @@ #include "test/core/transport/chaotic_good/transport_test_helper.h" #include "test/core/transport/util/mock_promise_endpoint.h" #include "test/core/transport/util/transport_test.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" using testing::MockFunction; using testing::StrictMock; diff --git a/test/core/transport/chaotic_good/config_test.cc b/test/core/transport/chaotic_good/config_test.cc index 7a3810316785b..fd9599feddea3 100644 --- a/test/core/transport/chaotic_good/config_test.cc +++ b/test/core/transport/chaotic_good/config_test.cc @@ -16,9 +16,9 @@ #include -#include "src/core/ext/transport/chaotic_good/chaotic_good_frame.pb.h" -#include "gtest/gtest.h" #include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" +#include "src/core/ext/transport/chaotic_good/chaotic_good_frame.pb.h" namespace grpc_core { namespace { diff --git a/test/core/transport/chaotic_good/control_endpoint_test.cc b/test/core/transport/chaotic_good/control_endpoint_test.cc index 653f455a08b04..f1a80e3302559 100644 --- a/test/core/transport/chaotic_good/control_endpoint_test.cc +++ b/test/core/transport/chaotic_good/control_endpoint_test.cc @@ -16,9 +16,9 @@ #include +#include "gtest/gtest.h" #include "test/core/call/yodel/yodel_test.h" #include "test/core/transport/util/mock_promise_endpoint.h" -#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/transport/chaotic_good/data_endpoints_test.cc b/test/core/transport/chaotic_good/data_endpoints_test.cc index a2d6904030b67..ad4251fc9698b 100644 --- a/test/core/transport/chaotic_good/data_endpoints_test.cc +++ b/test/core/transport/chaotic_good/data_endpoints_test.cc @@ -28,15 +28,15 @@ #include "src/core/ext/transport/chaotic_good/data_endpoints.h" +#include #include #include #include +#include "gtest/gtest.h" #include "test/core/call/yodel/yodel_test.h" #include "test/core/transport/util/mock_promise_endpoint.h" -#include "gtest/gtest.h" -#include namespace grpc_core { diff --git a/test/core/transport/chaotic_good/frame_test.cc b/test/core/transport/chaotic_good/frame_test.cc index e42f032f518d9..9913294830b7a 100644 --- a/test/core/transport/chaotic_good/frame_test.cc +++ b/test/core/transport/chaotic_good/frame_test.cc @@ -16,14 +16,14 @@ #include -#include "src/core/lib/resource_quota/memory_quota.h" -#include "src/core/lib/resource_quota/resource_quota.h" -#include "test/core/transport/chaotic_good/test_frame.h" -#include "gtest/gtest.h" #include "absl/log/check.h" #include "absl/random/random.h" #include "absl/status/status.h" #include "absl/status/statusor.h" +#include "gtest/gtest.h" +#include "src/core/lib/resource_quota/memory_quota.h" +#include "src/core/lib/resource_quota/resource_quota.h" +#include "test/core/transport/chaotic_good/test_frame.h" namespace grpc_core { namespace chaotic_good { diff --git a/test/core/transport/chaotic_good/message_chunker_test.cc b/test/core/transport/chaotic_good/message_chunker_test.cc index b8506dbc8d6e6..9dbd7ac5908e5 100644 --- a/test/core/transport/chaotic_good/message_chunker_test.cc +++ b/test/core/transport/chaotic_good/message_chunker_test.cc @@ -16,10 +16,10 @@ #include +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/status_flag.h" #include "test/core/promise/poll_matcher.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" namespace grpc_core { namespace { diff --git a/test/core/transport/chaotic_good/mock_frame_transport.cc b/test/core/transport/chaotic_good/mock_frame_transport.cc index c4dc621618cb5..b534fde7b9056 100644 --- a/test/core/transport/chaotic_good/mock_frame_transport.cc +++ b/test/core/transport/chaotic_good/mock_frame_transport.cc @@ -14,12 +14,12 @@ #include "test/core/transport/chaotic_good/mock_frame_transport.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/loop.h" #include "src/core/lib/promise/race.h" #include "src/core/lib/promise/try_seq.h" #include "test/core/promise/poll_matcher.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { namespace chaotic_good { diff --git a/test/core/transport/chaotic_good/mock_frame_transport.h b/test/core/transport/chaotic_good/mock_frame_transport.h index 89016f53ae538..c7e8f894fba6f 100644 --- a/test/core/transport/chaotic_good/mock_frame_transport.h +++ b/test/core/transport/chaotic_good/mock_frame_transport.h @@ -15,11 +15,12 @@ #ifndef GRPC_TEST_CORE_TRANSPORT_CHAOTIC_GOOD_MOCK_FRAME_TRANSPORT_H #define GRPC_TEST_CORE_TRANSPORT_CHAOTIC_GOOD_MOCK_FRAME_TRANSPORT_H +#include + #include #include "src/core/ext/transport/chaotic_good/frame_transport.h" #include "src/core/lib/promise/inter_activity_latch.h" -#include namespace grpc_core { namespace chaotic_good { diff --git a/test/core/transport/chaotic_good/serialize_little_endian_test.cc b/test/core/transport/chaotic_good/serialize_little_endian_test.cc index dbb56036bef68..91732c506a298 100644 --- a/test/core/transport/chaotic_good/serialize_little_endian_test.cc +++ b/test/core/transport/chaotic_good/serialize_little_endian_test.cc @@ -20,10 +20,10 @@ #include -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" #include "absl/status/statusor.h" #include "absl/strings/escaping.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" namespace grpc_core::chaotic_good { diff --git a/test/core/transport/chaotic_good/server_transport_test.cc b/test/core/transport/chaotic_good/server_transport_test.cc index 7cbdf942d4262..685fb33d79d5e 100644 --- a/test/core/transport/chaotic_good/server_transport_test.cc +++ b/test/core/transport/chaotic_good/server_transport_test.cc @@ -27,6 +27,12 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/ext/transport/chaotic_good/chaotic_good_frame.pb.h" #include "src/core/lib/iomgr/timer_manager.h" @@ -41,12 +47,6 @@ #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h" #include "test/core/transport/chaotic_good/mock_frame_transport.h" #include "test/core/transport/util/transport_test.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" using testing::_; using testing::MockFunction; diff --git a/test/core/transport/chaotic_good/tcp_frame_header_fuzzer.cc b/test/core/transport/chaotic_good/tcp_frame_header_fuzzer.cc index 3ba897a63d44d..c7d7a1130a9fc 100644 --- a/test/core/transport/chaotic_good/tcp_frame_header_fuzzer.cc +++ b/test/core/transport/chaotic_good/tcp_frame_header_fuzzer.cc @@ -16,11 +16,11 @@ #include #include -#include "src/core/ext/transport/chaotic_good/tcp_frame_transport.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" #include "absl/status/statusor.h" #include "absl/strings/escaping.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" +#include "src/core/ext/transport/chaotic_good/tcp_frame_transport.h" using grpc_core::chaotic_good::TcpFrameHeader; using HeaderBuffer = std::array; diff --git a/test/core/transport/chaotic_good/tcp_frame_header_test.cc b/test/core/transport/chaotic_good/tcp_frame_header_test.cc index 6b1718dbe9fd6..6365294c86d94 100644 --- a/test/core/transport/chaotic_good/tcp_frame_header_test.cc +++ b/test/core/transport/chaotic_good/tcp_frame_header_test.cc @@ -15,9 +15,9 @@ #include #include -#include "src/core/ext/transport/chaotic_good/tcp_frame_transport.h" -#include "gtest/gtest.h" #include "absl/status/status.h" +#include "gtest/gtest.h" +#include "src/core/ext/transport/chaotic_good/tcp_frame_transport.h" namespace grpc_core { namespace chaotic_good { diff --git a/test/core/transport/chaotic_good/tcp_frame_transport_test.cc b/test/core/transport/chaotic_good/tcp_frame_transport_test.cc index bb5eb56d58ba7..8e480d6d60462 100644 --- a/test/core/transport/chaotic_good/tcp_frame_transport_test.cc +++ b/test/core/transport/chaotic_good/tcp_frame_transport_test.cc @@ -14,17 +14,18 @@ #include "src/core/ext/transport/chaotic_good/tcp_frame_transport.h" +#include + #include +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/chaotic_good/frame_transport.h" #include "src/core/lib/promise/inter_activity_latch.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h" #include "test/core/transport/chaotic_good/test_frame.h" #include "test/core/transport/chaotic_good/test_frame.pb.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include using fuzztest::Arbitrary; using fuzztest::InRange; diff --git a/test/core/transport/chaotic_good/test_frame.h b/test/core/transport/chaotic_good/test_frame.h index 2c8b8da406b58..c637b44057b41 100644 --- a/test/core/transport/chaotic_good/test_frame.h +++ b/test/core/transport/chaotic_good/test_frame.h @@ -15,9 +15,9 @@ #ifndef GRPC_TEST_CORE_TRANSPORT_CHAOTIC_GOOD_TEST_FRAME_H #define GRPC_TEST_CORE_TRANSPORT_CHAOTIC_GOOD_TEST_FRAME_H +#include "fuzztest/fuzztest.h" #include "src/core/ext/transport/chaotic_good/frame.h" #include "test/core/transport/chaotic_good/test_frame.pb.h" -#include "fuzztest/fuzztest.h" namespace grpc_core { namespace chaotic_good { diff --git a/test/core/transport/chaotic_good/transport_test_helper.h b/test/core/transport/chaotic_good/transport_test_helper.h index 84940a545680c..d2bb3ca881f40 100644 --- a/test/core/transport/chaotic_good/transport_test_helper.h +++ b/test/core/transport/chaotic_good/transport_test_helper.h @@ -15,6 +15,10 @@ #ifndef GRPC_TEST_CORE_TRANSPORT_CHAOTIC_GOOD_TRANSPORT_TEST_HELPER_H #define GRPC_TEST_CORE_TRANSPORT_CHAOTIC_GOOD_TRANSPORT_TEST_HELPER_H +#include + +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/call_arena_allocator.h" #include "src/core/call/call_spine.h" #include "src/core/ext/transport/chaotic_good/frame.h" @@ -24,9 +28,6 @@ #include "src/core/lib/resource_quota/resource_quota.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include namespace grpc_core { namespace chaotic_good { diff --git a/test/core/transport/chaotic_good_legacy/chaotic_good_server_test.cc b/test/core/transport/chaotic_good_legacy/chaotic_good_server_test.cc index b67effb0d45e4..bea7728cf0e92 100644 --- a/test/core/transport/chaotic_good_legacy/chaotic_good_server_test.cc +++ b/test/core/transport/chaotic_good_legacy/chaotic_good_server_test.cc @@ -23,6 +23,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/time/time.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/chaotic_good_legacy/client/chaotic_good_connector.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/channel/channel_args.h" @@ -36,12 +42,6 @@ #include "test/core/test_util/build.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/time/time.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/test/core/transport/chaotic_good_legacy/client_transport_error_test.cc b/test/core/transport/chaotic_good_legacy/client_transport_error_test.cc index e573408a82431..acb3bb87cde61 100644 --- a/test/core/transport/chaotic_good_legacy/client_transport_error_test.cc +++ b/test/core/transport/chaotic_good_legacy/client_transport_error_test.cc @@ -28,6 +28,12 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/chaotic_good_legacy/client_transport.h" @@ -50,12 +56,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" using testing::AtMost; using testing::MockFunction; diff --git a/test/core/transport/chaotic_good_legacy/client_transport_test.cc b/test/core/transport/chaotic_good_legacy/client_transport_test.cc index c73ad2cdc7bf1..04735fbba9cc6 100644 --- a/test/core/transport/chaotic_good_legacy/client_transport_test.cc +++ b/test/core/transport/chaotic_good_legacy/client_transport_test.cc @@ -31,6 +31,11 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/chaotic_good/chaotic_good_frame.pb.h" @@ -41,11 +46,6 @@ #include "src/core/lib/slice/slice_buffer.h" #include "test/core/transport/chaotic_good_legacy/transport_test.h" #include "test/core/transport/util/mock_promise_endpoint.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" using testing::MockFunction; using testing::Return; diff --git a/test/core/transport/chaotic_good_legacy/config_test.cc b/test/core/transport/chaotic_good_legacy/config_test.cc index 86082bec01877..9109b4fb86dfb 100644 --- a/test/core/transport/chaotic_good_legacy/config_test.cc +++ b/test/core/transport/chaotic_good_legacy/config_test.cc @@ -16,9 +16,9 @@ #include -#include "src/core/ext/transport/chaotic_good/chaotic_good_frame.pb.h" -#include "gtest/gtest.h" #include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" +#include "src/core/ext/transport/chaotic_good/chaotic_good_frame.pb.h" namespace grpc_core { namespace { diff --git a/test/core/transport/chaotic_good_legacy/control_endpoint_test.cc b/test/core/transport/chaotic_good_legacy/control_endpoint_test.cc index 1c3dd062c382b..e5a5121972bc6 100644 --- a/test/core/transport/chaotic_good_legacy/control_endpoint_test.cc +++ b/test/core/transport/chaotic_good_legacy/control_endpoint_test.cc @@ -16,9 +16,9 @@ #include +#include "gtest/gtest.h" #include "test/core/call/yodel/yodel_test.h" #include "test/core/transport/util/mock_promise_endpoint.h" -#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/transport/chaotic_good_legacy/data_endpoints_test.cc b/test/core/transport/chaotic_good_legacy/data_endpoints_test.cc index 0e49aac18db74..10f0df3636cd3 100644 --- a/test/core/transport/chaotic_good_legacy/data_endpoints_test.cc +++ b/test/core/transport/chaotic_good_legacy/data_endpoints_test.cc @@ -28,12 +28,12 @@ #include "src/core/ext/transport/chaotic_good_legacy/data_endpoints.h" +#include #include +#include "gtest/gtest.h" #include "test/core/call/yodel/yodel_test.h" #include "test/core/transport/util/mock_promise_endpoint.h" -#include "gtest/gtest.h" -#include namespace grpc_core { diff --git a/test/core/transport/chaotic_good_legacy/frame_fuzzer.cc b/test/core/transport/chaotic_good_legacy/frame_fuzzer.cc index 7cc34bd0d680b..64f4793667a11 100644 --- a/test/core/transport/chaotic_good_legacy/frame_fuzzer.cc +++ b/test/core/transport/chaotic_good_legacy/frame_fuzzer.cc @@ -19,6 +19,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/bit_gen_ref.h" +#include "absl/status/statusor.h" +#include "fuzztest/fuzztest.h" #include "src/core/ext/transport/chaotic_good_legacy/frame.h" #include "src/core/ext/transport/chaotic_good_legacy/frame_header.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -30,11 +35,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "test/core/promise/test_context.h" #include "test/core/transport/chaotic_good_legacy/frame_fuzzer.pb.h" -#include "fuzztest/fuzztest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/status/statusor.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/test/core/transport/chaotic_good_legacy/frame_header_fuzzer.cc b/test/core/transport/chaotic_good_legacy/frame_header_fuzzer.cc index 50e1b8222b686..6592018b2e51a 100644 --- a/test/core/transport/chaotic_good_legacy/frame_header_fuzzer.cc +++ b/test/core/transport/chaotic_good_legacy/frame_header_fuzzer.cc @@ -16,11 +16,11 @@ #include #include -#include "src/core/ext/transport/chaotic_good_legacy/frame_header.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" #include "absl/status/statusor.h" #include "absl/strings/escaping.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" +#include "src/core/ext/transport/chaotic_good_legacy/frame_header.h" using grpc_core::chaotic_good_legacy::FrameHeader; using HeaderBuffer = std::array; diff --git a/test/core/transport/chaotic_good_legacy/frame_header_test.cc b/test/core/transport/chaotic_good_legacy/frame_header_test.cc index 8bf8b0ca3aa97..dd18450f0e06d 100644 --- a/test/core/transport/chaotic_good_legacy/frame_header_test.cc +++ b/test/core/transport/chaotic_good_legacy/frame_header_test.cc @@ -17,8 +17,8 @@ #include #include -#include "gtest/gtest.h" #include "absl/status/status.h" +#include "gtest/gtest.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/test/core/transport/chaotic_good_legacy/frame_test.cc b/test/core/transport/chaotic_good_legacy/frame_test.cc index 2ea70d00afac0..1a8802baae1d6 100644 --- a/test/core/transport/chaotic_good_legacy/frame_test.cc +++ b/test/core/transport/chaotic_good_legacy/frame_test.cc @@ -16,13 +16,13 @@ #include -#include "src/core/lib/resource_quota/memory_quota.h" -#include "src/core/lib/resource_quota/resource_quota.h" -#include "gtest/gtest.h" #include "absl/log/check.h" #include "absl/random/random.h" #include "absl/status/status.h" #include "absl/status/statusor.h" +#include "gtest/gtest.h" +#include "src/core/lib/resource_quota/memory_quota.h" +#include "src/core/lib/resource_quota/resource_quota.h" namespace grpc_core { namespace chaotic_good_legacy { diff --git a/test/core/transport/chaotic_good_legacy/message_chunker_test.cc b/test/core/transport/chaotic_good_legacy/message_chunker_test.cc index 1f4b2c71a8117..ea539f44139ee 100644 --- a/test/core/transport/chaotic_good_legacy/message_chunker_test.cc +++ b/test/core/transport/chaotic_good_legacy/message_chunker_test.cc @@ -16,10 +16,10 @@ #include +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/status_flag.h" #include "test/core/promise/poll_matcher.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" namespace grpc_core { namespace { diff --git a/test/core/transport/chaotic_good_legacy/server_transport_test.cc b/test/core/transport/chaotic_good_legacy/server_transport_test.cc index e2d347a0145bc..4939f7f94feb1 100644 --- a/test/core/transport/chaotic_good_legacy/server_transport_test.cc +++ b/test/core/transport/chaotic_good_legacy/server_transport_test.cc @@ -27,6 +27,12 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/ext/transport/chaotic_good/chaotic_good_frame.pb.h" #include "src/core/lib/iomgr/timer_manager.h" @@ -41,12 +47,6 @@ #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h" #include "test/core/transport/chaotic_good_legacy/transport_test.h" #include "test/core/transport/util/mock_promise_endpoint.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" using testing::_; using testing::MockFunction; diff --git a/test/core/transport/chaotic_good_legacy/transport_test.h b/test/core/transport/chaotic_good_legacy/transport_test.h index f9865200ee75e..479b068fdc654 100644 --- a/test/core/transport/chaotic_good_legacy/transport_test.h +++ b/test/core/transport/chaotic_good_legacy/transport_test.h @@ -15,6 +15,10 @@ #ifndef GRPC_TEST_CORE_TRANSPORT_CHAOTIC_GOOD_LEGACY_TRANSPORT_TEST_H #define GRPC_TEST_CORE_TRANSPORT_CHAOTIC_GOOD_LEGACY_TRANSPORT_TEST_H +#include + +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/call_arena_allocator.h" #include "src/core/call/call_spine.h" #include "src/core/ext/transport/chaotic_good_legacy/frame.h" @@ -24,9 +28,6 @@ #include "src/core/lib/resource_quota/resource_quota.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include namespace grpc_core { namespace chaotic_good_legacy { diff --git a/test/core/transport/chttp2/alpn_test.cc b/test/core/transport/chttp2/alpn_test.cc index b608df5917c8d..52286d81752f0 100644 --- a/test/core/transport/chttp2/alpn_test.cc +++ b/test/core/transport/chttp2/alpn_test.cc @@ -20,8 +20,8 @@ #include -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" TEST(AlpnTest, TestAlpnSuccess) { ASSERT_TRUE(grpc_chttp2_is_alpn_version_supported("h2", 2)); diff --git a/test/core/transport/chttp2/bin_decoder_test.cc b/test/core/transport/chttp2/bin_decoder_test.cc index fee388c7f13d5..e471fb4b753f0 100644 --- a/test/core/transport/chttp2/bin_decoder_test.cc +++ b/test/core/transport/chttp2/bin_decoder_test.cc @@ -23,13 +23,13 @@ #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/chttp2/transport/bin_encoder.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/slice/slice_string_helpers.h" #include "src/core/util/string.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" static int all_ok = 1; diff --git a/test/core/transport/chttp2/bin_encoder_test.cc b/test/core/transport/chttp2/bin_encoder_test.cc index 358115aff80ee..0193d35482929 100644 --- a/test/core/transport/chttp2/bin_encoder_test.cc +++ b/test/core/transport/chttp2/bin_encoder_test.cc @@ -24,11 +24,11 @@ #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/slice/slice_string_helpers.h" #include "src/core/util/string.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" static int all_ok = 1; diff --git a/test/core/transport/chttp2/chttp2_server_listener_test.cc b/test/core/transport/chttp2/chttp2_server_listener_test.cc index 43aca6e854994..a3373ffbaabc7 100644 --- a/test/core/transport/chttp2/chttp2_server_listener_test.cc +++ b/test/core/transport/chttp2/chttp2_server_listener_test.cc @@ -20,6 +20,8 @@ #include +#include "absl/synchronization/notification.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/transport/insecure/insecure_credentials.h" #include "src/core/credentials/transport/tls/grpc_tls_credentials_options.h" @@ -33,8 +35,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gtest/gtest.h" -#include "absl/synchronization/notification.h" using grpc_event_engine::experimental::EventEngine; @@ -296,12 +296,12 @@ TEST_F(Chttp2ActiveConnectionTest, CloseWithoutHandshakeStarting) { } RefCountedPtr CreateSecureServerCredentials() { - std::string ca_cert = testing::GetFileContents( - "src/core/tsi/test_creds/client.pem"); - std::string server_cert = testing::GetFileContents( - "src/core/tsi/test_creds/server1.pem"); - std::string server_key = testing::GetFileContents( - "src/core/tsi/test_creds/server1.key"); + std::string ca_cert = + testing::GetFileContents("src/core/tsi/test_creds/client.pem"); + std::string server_cert = + testing::GetFileContents("src/core/tsi/test_creds/server1.pem"); + std::string server_key = + testing::GetFileContents("src/core/tsi/test_creds/server1.key"); grpc_tls_credentials_options* options = grpc_tls_credentials_options_create(); // Set credential provider. grpc_tls_identity_pairs* server_pairs = grpc_tls_identity_pairs_create(); diff --git a/test/core/transport/chttp2/flow_control_fuzzer.cc b/test/core/transport/chttp2/flow_control_fuzzer.cc index 1ed7f93311846..9054a7886cddb 100644 --- a/test/core/transport/chttp2/flow_control_fuzzer.cc +++ b/test/core/transport/chttp2/flow_control_fuzzer.cc @@ -28,6 +28,11 @@ #include #include +#include "absl/base/attributes.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_join.h" +#include "fuzztest/fuzztest.h" #include "src/core/ext/transport/chttp2/transport/flow_control.h" #include "src/core/lib/experiments/config.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -38,11 +43,6 @@ #include "test/core/test_util/fuzz_config_vars.h" #include "test/core/test_util/fuzz_config_vars_helpers.h" #include "test/core/transport/chttp2/flow_control_fuzzer.pb.h" -#include "fuzztest/fuzztest.h" -#include "absl/base/attributes.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_join.h" // IWYU pragma: no_include diff --git a/test/core/transport/chttp2/flow_control_test.cc b/test/core/transport/chttp2/flow_control_test.cc index 4a7e1946a1be8..8ed9ea03ed937 100644 --- a/test/core/transport/chttp2/flow_control_test.cc +++ b/test/core/transport/chttp2/flow_control_test.cc @@ -19,6 +19,8 @@ #include #include +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/resource_quota/resource_quota.h" @@ -26,8 +28,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/time.h" #include "src/core/util/useful.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" extern gpr_timespec (*gpr_now_impl)(gpr_clock_type clock_type); diff --git a/test/core/transport/chttp2/frame_test.cc b/test/core/transport/chttp2/frame_test.cc index b2737006ca787..9b9b4115ab76c 100644 --- a/test/core/transport/chttp2/frame_test.cc +++ b/test/core/transport/chttp2/frame_test.cc @@ -18,11 +18,11 @@ #include #include -#include "src/core/ext/transport/chttp2/transport/http2_status.h" -#include "src/core/lib/slice/slice_buffer.h" +#include "absl/status/status.h" #include "gmock/gmock.h" #include "gtest/gtest.h" -#include "absl/status/status.h" +#include "src/core/ext/transport/chttp2/transport/http2_status.h" +#include "src/core/lib/slice/slice_buffer.h" using grpc_core::http2::Http2ErrorCode; diff --git a/test/core/transport/chttp2/graceful_shutdown_test.cc b/test/core/transport/chttp2/graceful_shutdown_test.cc index 7e7908fcb0bb3..b8e226b1d882c 100644 --- a/test/core/transport/chttp2/graceful_shutdown_test.cc +++ b/test/core/transport/chttp2/graceful_shutdown_test.cc @@ -33,6 +33,14 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/channelz/channelz.h" #include "src/core/ext/transport/chttp2/transport/chttp2_transport.h" #include "src/core/ext/transport/chttp2/transport/frame_goaway.h" @@ -54,14 +62,6 @@ #include "src/core/util/useful.h" #include "test/core/end2end/cq_verifier.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" namespace grpc_core { namespace { diff --git a/test/core/transport/chttp2/header_assembler_test.cc b/test/core/transport/chttp2/header_assembler_test.cc index 6cd503f39f97a..bf65daab08dc5 100644 --- a/test/core/transport/chttp2/header_assembler_test.cc +++ b/test/core/transport/chttp2/header_assembler_test.cc @@ -23,13 +23,13 @@ #include #include -#include "src/core/ext/transport/chttp2/transport/frame.h" -#include "src/core/lib/slice/slice.h" -#include "src/core/lib/slice/slice_buffer.h" -#include "gtest/gtest.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/string_view.h" +#include "gtest/gtest.h" +#include "src/core/ext/transport/chttp2/transport/frame.h" +#include "src/core/lib/slice/slice.h" +#include "src/core/lib/slice/slice_buffer.h" namespace grpc_core { namespace http2 { diff --git a/test/core/transport/chttp2/hpack_encoder_test.cc b/test/core/transport/chttp2/hpack_encoder_test.cc index 03f14be534eb9..3de4eae62f97a 100644 --- a/test/core/transport/chttp2/hpack_encoder_test.cc +++ b/test/core/transport/chttp2/hpack_encoder_test.cc @@ -26,6 +26,9 @@ #include #include +#include "absl/log/log.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/chttp2/transport/legacy_frame.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/resource_quota/arena.h" @@ -35,9 +38,6 @@ #include "test/core/test_util/parse_hexstring.h" #include "test/core/test_util/slice_splitter.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" grpc_core::HPackCompressor* g_compressor; grpc_core::Http2ZTraceCollector* g_ztrace_collector = diff --git a/test/core/transport/chttp2/hpack_encoder_timeout_test.cc b/test/core/transport/chttp2/hpack_encoder_timeout_test.cc index 9ad469eebf4c8..8501c399f5c00 100644 --- a/test/core/transport/chttp2/hpack_encoder_timeout_test.cc +++ b/test/core/transport/chttp2/hpack_encoder_timeout_test.cc @@ -21,14 +21,14 @@ #include #include +#include "absl/random/random.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/ext/transport/chttp2/transport/hpack_encoder.h" #include "src/core/ext/transport/chttp2/transport/hpack_parser.h" #include "src/core/lib/slice/slice_buffer.h" #include "src/core/util/time.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include "absl/random/random.h" namespace grpc_core { diff --git a/test/core/transport/chttp2/hpack_parser_fuzzer.cc b/test/core/transport/chttp2/hpack_parser_fuzzer.cc index 3c7d4a6f5e972..63dc364229e84 100644 --- a/test/core/transport/chttp2/hpack_parser_fuzzer.cc +++ b/test/core/transport/chttp2/hpack_parser_fuzzer.cc @@ -24,6 +24,11 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/log/check.h" +#include "absl/random/bit_gen_ref.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/ext/transport/chttp2/transport/hpack_parser.h" #include "src/core/lib/experiments/config.h" @@ -39,11 +44,6 @@ #include "test/core/test_util/proto_bit_gen.h" #include "test/core/test_util/test_config.h" #include "test/core/transport/chttp2/hpack_parser_fuzzer.pb.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include "absl/cleanup/cleanup.h" -#include "absl/log/check.h" -#include "absl/random/bit_gen_ref.h" // IWYU pragma: no_include diff --git a/test/core/transport/chttp2/hpack_parser_input_size_fuzzer.cc b/test/core/transport/chttp2/hpack_parser_input_size_fuzzer.cc index 5c863c4a7bc38..f35ed8a9da2b2 100644 --- a/test/core/transport/chttp2/hpack_parser_input_size_fuzzer.cc +++ b/test/core/transport/chttp2/hpack_parser_input_size_fuzzer.cc @@ -27,6 +27,13 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/random/bit_gen_ref.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/ext/transport/chttp2/transport/hpack_parser.h" #include "src/core/lib/iomgr/error.h" @@ -38,13 +45,6 @@ #include "src/core/util/ref_counted_ptr.h" #include "src/core/util/status_helper.h" #include "test/core/test_util/slice_splitter.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include "absl/cleanup/cleanup.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" extern gpr_timespec (*gpr_now_impl)(gpr_clock_type clock_type); diff --git a/test/core/transport/chttp2/hpack_parser_table_test.cc b/test/core/transport/chttp2/hpack_parser_table_test.cc index 644d13148c63b..48632fe86cdb7 100644 --- a/test/core/transport/chttp2/hpack_parser_table_test.cc +++ b/test/core/transport/chttp2/hpack_parser_table_test.cc @@ -23,12 +23,12 @@ #include #include +#include "absl/strings/str_cat.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/slice/slice.h" #include "src/core/telemetry/stats.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/strings/str_cat.h" namespace grpc_core { namespace { diff --git a/test/core/transport/chttp2/hpack_parser_test.cc b/test/core/transport/chttp2/hpack_parser_test.cc index 1bc5c54c4d9b6..95b31d910ec57 100644 --- a/test/core/transport/chttp2/hpack_parser_test.cc +++ b/test/core/transport/chttp2/hpack_parser_test.cc @@ -28,6 +28,13 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/random/random.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/lib/resource_quota/memory_quota.h" @@ -40,13 +47,6 @@ #include "test/core/test_util/parse_hexstring.h" #include "test/core/test_util/slice_splitter.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/cleanup/cleanup.h" -#include "absl/random/random.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" namespace grpc_core { namespace { diff --git a/test/core/transport/chttp2/hpack_sync_fuzzer.cc b/test/core/transport/chttp2/hpack_sync_fuzzer.cc index c75827dc72fff..05af67b25233e 100644 --- a/test/core/transport/chttp2/hpack_sync_fuzzer.cc +++ b/test/core/transport/chttp2/hpack_sync_fuzzer.cc @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include #include #include #include @@ -22,6 +23,12 @@ #include #include +#include "absl/random/bit_gen_ref.h" +#include "absl/status/status.h" +#include "absl/strings/escaping.h" +#include "absl/strings/match.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/ext/transport/chttp2/transport/hpack_encoder.h" #include "src/core/ext/transport/chttp2/transport/hpack_encoder_table.h" @@ -42,13 +49,6 @@ #include "test/core/test_util/proto_bit_gen.h" #include "test/core/test_util/test_config.h" #include "test/core/transport/chttp2/hpack_sync_fuzzer.pb.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include "absl/random/bit_gen_ref.h" -#include "absl/status/status.h" -#include "absl/strings/escaping.h" -#include "absl/strings/match.h" -#include namespace grpc_core { namespace { diff --git a/test/core/transport/chttp2/hpack_utils_test.cc b/test/core/transport/chttp2/hpack_utils_test.cc index 48b684f36286e..ca0fd207cb8db 100644 --- a/test/core/transport/chttp2/hpack_utils_test.cc +++ b/test/core/transport/chttp2/hpack_utils_test.cc @@ -17,10 +17,10 @@ #include #include -#include "src/core/ext/transport/chttp2/transport/hpack_encoder_index.h" -#include "gtest/gtest.h" #include "absl/log/check.h" #include "absl/log/log.h" +#include "gtest/gtest.h" +#include "src/core/ext/transport/chttp2/transport/hpack_encoder_index.h" namespace grpc_core { namespace testing { diff --git a/test/core/transport/chttp2/http2_client_transport_test.cc b/test/core/transport/chttp2/http2_client_transport_test.cc index 418da1f2859a8..48f53659668cd 100644 --- a/test/core/transport/chttp2/http2_client_transport_test.cc +++ b/test/core/transport/chttp2/http2_client_transport_test.cc @@ -25,6 +25,10 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/chttp2/transport/http2_status.h" #include "src/core/lib/channel/channel_args.h" @@ -34,10 +38,6 @@ #include "test/core/transport/chttp2/http2_frame_test_helper.h" #include "test/core/transport/util/mock_promise_endpoint.h" #include "test/core/transport/util/transport_test.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace http2 { diff --git a/test/core/transport/chttp2/http2_frame_test_helper.h b/test/core/transport/chttp2/http2_frame_test_helper.h index f87a3d8c285a1..83eaf4193092d 100644 --- a/test/core/transport/chttp2/http2_frame_test_helper.h +++ b/test/core/transport/chttp2/http2_frame_test_helper.h @@ -19,13 +19,13 @@ #include +#include "absl/strings/string_view.h" +#include "absl/types/span.h" #include "src/core/ext/transport/chttp2/transport/frame.h" #include "src/core/ext/transport/chttp2/transport/http2_status.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/slice/slice_buffer.h" -#include "absl/strings/string_view.h" -#include "absl/types/span.h" namespace grpc_core { namespace transport { diff --git a/test/core/transport/chttp2/http2_server_transport_test.cc b/test/core/transport/chttp2/http2_server_transport_test.cc index 1ef17b889cb7e..890f0040e98a8 100644 --- a/test/core/transport/chttp2/http2_server_transport_test.cc +++ b/test/core/transport/chttp2/http2_server_transport_test.cc @@ -24,14 +24,14 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" +#include "gtest/gtest.h" #include "src/core/util/orphanable.h" #include "test/core/transport/chttp2/http2_frame_test_helper.h" #include "test/core/transport/util/mock_promise_endpoint.h" #include "test/core/transport/util/transport_test.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace http2 { diff --git a/test/core/transport/chttp2/http2_status_test.cc b/test/core/transport/chttp2/http2_status_test.cc index 2b6dd65523474..0c7a4096ff8e1 100644 --- a/test/core/transport/chttp2/http2_status_test.cc +++ b/test/core/transport/chttp2/http2_status_test.cc @@ -18,10 +18,10 @@ #include "src/core/ext/transport/chttp2/transport/http2_status.h" -#include "src/core/ext/transport/chttp2/transport/frame.h" -#include "gtest/gtest.h" #include "absl/log/check.h" #include "absl/log/log.h" +#include "gtest/gtest.h" +#include "src/core/ext/transport/chttp2/transport/frame.h" namespace grpc_core { namespace http2 { diff --git a/test/core/transport/chttp2/huff_fuzzer.cc b/test/core/transport/chttp2/huff_fuzzer.cc index fe9597a14f69f..522505c6d1495 100644 --- a/test/core/transport/chttp2/huff_fuzzer.cc +++ b/test/core/transport/chttp2/huff_fuzzer.cc @@ -23,14 +23,14 @@ #include #include +#include "absl/strings/str_cat.h" +#include "absl/strings/str_join.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/chttp2/transport/bin_encoder.h" #include "src/core/ext/transport/chttp2/transport/decode_huff.h" #include "src/core/ext/transport/chttp2/transport/huffsyms.h" #include "src/core/util/dump_args.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_join.h" namespace grpc_core { namespace { diff --git a/test/core/transport/chttp2/message_assembler_fuzz_test.cc b/test/core/transport/chttp2/message_assembler_fuzz_test.cc index 873ba760a2daf..e2b3e298d5aa5 100644 --- a/test/core/transport/chttp2/message_assembler_fuzz_test.cc +++ b/test/core/transport/chttp2/message_assembler_fuzz_test.cc @@ -25,16 +25,16 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/string_view.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/call/message.h" #include "src/core/ext/transport/chttp2/transport/frame.h" #include "src/core/ext/transport/chttp2/transport/message_assembler.h" #include "src/core/lib/slice/slice.h" #include "src/core/lib/slice/slice_buffer.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace http2 { diff --git a/test/core/transport/chttp2/message_assembler_test.cc b/test/core/transport/chttp2/message_assembler_test.cc index be5cb9bee74df..28e8262d7e573 100644 --- a/test/core/transport/chttp2/message_assembler_test.cc +++ b/test/core/transport/chttp2/message_assembler_test.cc @@ -23,13 +23,13 @@ #include #include -#include "src/core/ext/transport/chttp2/transport/frame.h" -#include "src/core/lib/slice/slice.h" -#include "src/core/lib/slice/slice_buffer.h" -#include "gtest/gtest.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/string_view.h" +#include "gtest/gtest.h" +#include "src/core/ext/transport/chttp2/transport/frame.h" +#include "src/core/lib/slice/slice.h" +#include "src/core/lib/slice/slice_buffer.h" namespace grpc_core { namespace http2 { diff --git a/test/core/transport/chttp2/ping_callbacks_test.cc b/test/core/transport/chttp2/ping_callbacks_test.cc index 4053a4fe8cc96..26962c90adab8 100644 --- a/test/core/transport/chttp2/ping_callbacks_test.cc +++ b/test/core/transport/chttp2/ping_callbacks_test.cc @@ -16,11 +16,11 @@ #include -#include "src/core/util/crash.h" -#include "test/core/event_engine/mock_event_engine.h" +#include "absl/random/random.h" #include "gmock/gmock.h" #include "gtest/gtest.h" -#include "absl/random/random.h" +#include "src/core/util/crash.h" +#include "test/core/event_engine/mock_event_engine.h" using grpc_event_engine::experimental::EventEngine; using grpc_event_engine::experimental::MockEventEngine; diff --git a/test/core/transport/chttp2/ping_configuration_test.cc b/test/core/transport/chttp2/ping_configuration_test.cc index 657a9f9e34558..7b85775466bbf 100644 --- a/test/core/transport/chttp2/ping_configuration_test.cc +++ b/test/core/transport/chttp2/ping_configuration_test.cc @@ -18,6 +18,7 @@ #include +#include "gtest/gtest.h" #include "src/core/ext/transport/chttp2/transport/chttp2_transport.h" #include "src/core/ext/transport/chttp2/transport/internal.h" #include "src/core/ext/transport/chttp2/transport/legacy_frame.h" @@ -32,7 +33,6 @@ #include "src/core/util/time.h" #include "test/core/test_util/mock_endpoint.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/transport/chttp2/ping_rate_policy_test.cc b/test/core/transport/chttp2/ping_rate_policy_test.cc index 5711e8b64f965..ca30eb3114f4c 100644 --- a/test/core/transport/chttp2/ping_rate_policy_test.cc +++ b/test/core/transport/chttp2/ping_rate_policy_test.cc @@ -17,10 +17,10 @@ #include #include -#include "src/core/lib/experiments/experiments.h" -#include "test/core/test_util/test_config.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "src/core/lib/experiments/experiments.h" +#include "test/core/test_util/test_config.h" namespace grpc_core { namespace { diff --git a/test/core/transport/chttp2/remove_stream_from_stalled_lists_test.cc b/test/core/transport/chttp2/remove_stream_from_stalled_lists_test.cc index bdc0553cbc404..4642c886e3c68 100644 --- a/test/core/transport/chttp2/remove_stream_from_stalled_lists_test.cc +++ b/test/core/transport/chttp2/remove_stream_from_stalled_lists_test.cc @@ -36,6 +36,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/ext/transport/chttp2/transport/flow_control.h" #include "src/core/lib/channel/channel_args.h" @@ -43,9 +46,6 @@ #include "src/core/util/sync.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace { diff --git a/test/core/transport/chttp2/settings_timeout_test.cc b/test/core/transport/chttp2/settings_timeout_test.cc index a12c9d3610120..524245977d08e 100644 --- a/test/core/transport/chttp2/settings_timeout_test.cc +++ b/test/core/transport/chttp2/settings_timeout_test.cc @@ -34,6 +34,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args_preconditioning.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" @@ -54,12 +60,6 @@ #include "src/core/util/time.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" namespace grpc_core { namespace test { diff --git a/test/core/transport/chttp2/stream_leak_with_queued_flow_control_update_test.cc b/test/core/transport/chttp2/stream_leak_with_queued_flow_control_update_test.cc index 5789b03187a87..a38be490af5d4 100644 --- a/test/core/transport/chttp2/stream_leak_with_queued_flow_control_update_test.cc +++ b/test/core/transport/chttp2/stream_leak_with_queued_flow_control_update_test.cc @@ -27,17 +27,17 @@ #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/chttp2/transport/chttp2_transport.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/util/host_port.h" #include "src/core/util/sync.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" namespace { diff --git a/test/core/transport/chttp2/streams_not_seen_test.cc b/test/core/transport/chttp2/streams_not_seen_test.cc index f85d12d02ea83..ebb458a9737a8 100644 --- a/test/core/transport/chttp2/streams_not_seen_test.cc +++ b/test/core/transport/chttp2/streams_not_seen_test.cc @@ -39,6 +39,14 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/chttp2/transport/chttp2_transport.h" @@ -66,14 +74,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/test_tcp_server.h" -#include "gtest/gtest.h" -#include "absl/base/thread_annotations.h" -#include "absl/log/check.h" -#include "absl/status/status.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" -#include "absl/time/time.h" namespace grpc_core { namespace { diff --git a/test/core/transport/chttp2/too_many_pings_test.cc b/test/core/transport/chttp2/too_many_pings_test.cc index 237ecfe285dee..d027d5ea76d5a 100644 --- a/test/core/transport/chttp2/too_many_pings_test.cc +++ b/test/core/transport/chttp2/too_many_pings_test.cc @@ -34,6 +34,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/ext/transport/chttp2/transport/chttp2_transport.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/channel/channel_args.h" @@ -53,13 +60,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/resolve_localhost_ip46.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/time/time.h" namespace { diff --git a/test/core/transport/chttp2/varint_test.cc b/test/core/transport/chttp2/varint_test.cc index e5d9437bd0fd7..d4253270afa4d 100644 --- a/test/core/transport/chttp2/varint_test.cc +++ b/test/core/transport/chttp2/varint_test.cc @@ -22,10 +22,10 @@ #include -#include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" #include "absl/log/log.h" #include "absl/strings/str_format.h" +#include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" template static void test_varint(uint32_t value, uint8_t prefix_or, diff --git a/test/core/transport/chttp2/write_size_policy_fuzztest.cc b/test/core/transport/chttp2/write_size_policy_fuzztest.cc index 967e87dd241ef..9cb116d5eb4cb 100644 --- a/test/core/transport/chttp2/write_size_policy_fuzztest.cc +++ b/test/core/transport/chttp2/write_size_policy_fuzztest.cc @@ -16,9 +16,9 @@ #include -#include "src/core/ext/transport/chttp2/transport/write_size_policy.h" -#include "gtest/gtest.h" #include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" +#include "src/core/ext/transport/chttp2/transport/write_size_policy.h" namespace grpc_core { diff --git a/test/core/transport/connectivity_state_test.cc b/test/core/transport/connectivity_state_test.cc index 00f14849d12c2..288c446f37007 100644 --- a/test/core/transport/connectivity_state_test.cc +++ b/test/core/transport/connectivity_state_test.cc @@ -20,9 +20,9 @@ #include +#include "gtest/gtest.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tracer_util.h" -#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/transport/error_utils_test.cc b/test/core/transport/error_utils_test.cc index 144f12e73844c..1f3d31fc93601 100644 --- a/test/core/transport/error_utils_test.cc +++ b/test/core/transport/error_utils_test.cc @@ -20,11 +20,11 @@ #include +#include "absl/status/status.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/status_helper.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace { diff --git a/test/core/transport/promise_endpoint_test.cc b/test/core/transport/promise_endpoint_test.cc index 266d5b92c66b3..c1f04a46bb941 100644 --- a/test/core/transport/promise_endpoint_test.cc +++ b/test/core/transport/promise_endpoint_test.cc @@ -25,6 +25,9 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/promise/activity.h" #include "src/core/lib/promise/join.h" #include "src/core/lib/promise/seq.h" @@ -32,9 +35,6 @@ #include "src/core/lib/slice/slice_buffer.h" #include "src/core/lib/slice/slice_internal.h" #include "test/core/promise/test_wakeup_schedulers.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" using testing::AtMost; using testing::MockFunction; diff --git a/test/core/transport/status_conversion_test.cc b/test/core/transport/status_conversion_test.cc index bee724c8e4b62..f1cefd69641ab 100644 --- a/test/core/transport/status_conversion_test.cc +++ b/test/core/transport/status_conversion_test.cc @@ -22,9 +22,9 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" using grpc_core::http2::Http2ErrorCode; diff --git a/test/core/transport/test_suite/call_content.cc b/test/core/transport/test_suite/call_content.cc index 0a9688bb90a9c..5159ef8e011be 100644 --- a/test/core/transport/test_suite/call_content.cc +++ b/test/core/transport/test_suite/call_content.cc @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "test/core/transport/test_suite/transport_test.h" #include "gmock/gmock.h" +#include "test/core/transport/test_suite/transport_test.h" using testing::UnorderedElementsAreArray; diff --git a/test/core/transport/test_suite/chaotic_good_fixture_helpers.h b/test/core/transport/test_suite/chaotic_good_fixture_helpers.h index fa8ce5280769d..9d77e9aa7fdb6 100644 --- a/test/core/transport/test_suite/chaotic_good_fixture_helpers.h +++ b/test/core/transport/test_suite/chaotic_good_fixture_helpers.h @@ -17,6 +17,8 @@ #include +#include "absl/log/check.h" +#include "gmock/gmock.h" #include "src/core/ext/transport/chaotic_good/client_transport.h" #include "src/core/ext/transport/chaotic_good/server_transport.h" #include "src/core/lib/event_engine/memory_allocator_factory.h" @@ -24,8 +26,6 @@ #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/lib/transport/promise_endpoint.h" #include "test/core/transport/test_suite/transport_test.h" -#include "gmock/gmock.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/test/core/transport/test_suite/stress.cc b/test/core/transport/test_suite/stress.cc index 4989f62e18615..5b3ba965cd89f 100644 --- a/test/core/transport/test_suite/stress.cc +++ b/test/core/transport/test_suite/stress.cc @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "test/core/transport/test_suite/transport_test.h" #include "absl/random/random.h" +#include "test/core/transport/test_suite/transport_test.h" namespace grpc_core { diff --git a/test/core/transport/test_suite/transport_test.h b/test/core/transport/test_suite/transport_test.h index e1a6ac293ad16..14332a20373d7 100644 --- a/test/core/transport/test_suite/transport_test.h +++ b/test/core/transport/test_suite/transport_test.h @@ -18,14 +18,14 @@ #include #include +#include "absl/random/bit_gen_ref.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/chaotic_good/config.h" #include "src/core/lib/transport/transport.h" #include "test/core/call/yodel/yodel_test.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/random/bit_gen_ref.h" namespace grpc_core { diff --git a/test/core/transport/timeout_encoding_test.cc b/test/core/transport/timeout_encoding_test.cc index 74f56db12e22a..5906f84e2dc09 100644 --- a/test/core/transport/timeout_encoding_test.cc +++ b/test/core/transport/timeout_encoding_test.cc @@ -20,11 +20,11 @@ #include -#include "src/core/util/time.h" -#include "src/core/util/useful.h" -#include "gtest/gtest.h" #include "absl/strings/str_format.h" #include "absl/strings/string_view.h" +#include "gtest/gtest.h" +#include "src/core/util/time.h" +#include "src/core/util/useful.h" namespace grpc_core { namespace { diff --git a/test/core/transport/util/mock_promise_endpoint.cc b/test/core/transport/util/mock_promise_endpoint.cc index 08f976b4caef5..26d2e3d02f16e 100644 --- a/test/core/transport/util/mock_promise_endpoint.cc +++ b/test/core/transport/util/mock_promise_endpoint.cc @@ -16,9 +16,9 @@ #include -#include "src/core/util/notification.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "src/core/util/notification.h" using EventEngineSlice = grpc_event_engine::experimental::Slice; using grpc_event_engine::experimental::EventEngine; diff --git a/test/core/transport/util/mock_promise_endpoint.h b/test/core/transport/util/mock_promise_endpoint.h index d651d77c4d0a2..960cd4023df46 100644 --- a/test/core/transport/util/mock_promise_endpoint.h +++ b/test/core/transport/util/mock_promise_endpoint.h @@ -17,10 +17,10 @@ #include -#include "src/core/lib/event_engine/tcp_socket_utils.h" -#include "src/core/lib/transport/promise_endpoint.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "src/core/lib/event_engine/tcp_socket_utils.h" +#include "src/core/lib/transport/promise_endpoint.h" namespace grpc_core { namespace util { diff --git a/test/core/transport/util/transport_test.h b/test/core/transport/util/transport_test.h index efd659d36fd35..c55fa3c470b19 100644 --- a/test/core/transport/util/transport_test.h +++ b/test/core/transport/util/transport_test.h @@ -15,6 +15,8 @@ #ifndef GRPC_TEST_CORE_TRANSPORT_UTIL_TRANSPORT_TEST_H #define GRPC_TEST_CORE_TRANSPORT_UTIL_TRANSPORT_TEST_H +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/call_arena_allocator.h" #include "src/core/call/call_spine.h" #include "src/core/config/core_configuration.h" @@ -25,8 +27,6 @@ #include "src/core/lib/resource_quota/resource_quota.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { namespace util { diff --git a/test/core/tsi/alts/crypt/aes_gcm_test.cc b/test/core/tsi/alts/crypt/aes_gcm_test.cc index 85d95eafe9553..c8bd878c1454e 100644 --- a/test/core/tsi/alts/crypt/aes_gcm_test.cc +++ b/test/core/tsi/alts/crypt/aes_gcm_test.cc @@ -20,11 +20,11 @@ #include +#include "absl/types/span.h" +#include "gtest/gtest.h" #include "src/core/tsi/alts/crypt/gsec.h" #include "test/core/test_util/test_config.h" #include "test/core/tsi/alts/crypt/gsec_test_util.h" -#include "gtest/gtest.h" -#include "absl/types/span.h" const size_t kTestMinTagLengthForCorruption = 8; const size_t kTestNumCrypters = 3; diff --git a/test/core/tsi/alts/fake_handshaker/fake_handshaker_server.cc b/test/core/tsi/alts/fake_handshaker/fake_handshaker_server.cc index 3dee6abc09181..42f6f67ec54cc 100644 --- a/test/core/tsi/alts/fake_handshaker/fake_handshaker_server.cc +++ b/test/core/tsi/alts/fake_handshaker/fake_handshaker_server.cc @@ -29,13 +29,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_format.h" #include "src/core/util/crash.h" #include "test/core/tsi/alts/fake_handshaker/handshaker.grpc.pb.h" #include "test/core/tsi/alts/fake_handshaker/handshaker.pb.h" #include "test/core/tsi/alts/fake_handshaker/transport_security_common.pb.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" // Fake handshake messages. constexpr char kClientInitFrame[] = "ClientInit"; diff --git a/test/core/tsi/alts/fake_handshaker/fake_handshaker_server_main.cc b/test/core/tsi/alts/fake_handshaker/fake_handshaker_server_main.cc index a47774de489c5..a70f55fdbccb8 100644 --- a/test/core/tsi/alts/fake_handshaker/fake_handshaker_server_main.cc +++ b/test/core/tsi/alts/fake_handshaker/fake_handshaker_server_main.cc @@ -20,13 +20,13 @@ #include +#include "absl/flags/flag.h" +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "test/core/test_util/test_config.h" #include "test/core/tsi/alts/fake_handshaker/fake_handshaker_server.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/log/check.h" -#include "absl/log/log.h" ABSL_FLAG(int32_t, handshaker_port, 55056, "TCP port on which the fake handshaker server listens to."); diff --git a/test/core/tsi/alts/frame_protector/alts_counter_test.cc b/test/core/tsi/alts/frame_protector/alts_counter_test.cc index 6692b9e72d8e5..eb799aab754b5 100644 --- a/test/core/tsi/alts/frame_protector/alts_counter_test.cc +++ b/test/core/tsi/alts/frame_protector/alts_counter_test.cc @@ -20,9 +20,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "test/core/tsi/alts/crypt/gsec_test_util.h" -#include "gtest/gtest.h" const size_t kSmallCounterSize = 4; const size_t kSmallOverflowSize = 1; diff --git a/test/core/tsi/alts/frame_protector/alts_crypter_test.cc b/test/core/tsi/alts/frame_protector/alts_crypter_test.cc index adb268cde1c3e..7ed539c449ecc 100644 --- a/test/core/tsi/alts/frame_protector/alts_crypter_test.cc +++ b/test/core/tsi/alts/frame_protector/alts_crypter_test.cc @@ -25,9 +25,9 @@ #include -#include "test/core/tsi/alts/crypt/gsec_test_util.h" -#include "gtest/gtest.h" #include "absl/types/span.h" +#include "gtest/gtest.h" +#include "test/core/tsi/alts/crypt/gsec_test_util.h" static void alts_crypter_test_random_seal_unseal(alts_crypter* server_seal, alts_crypter* server_unseal, diff --git a/test/core/tsi/alts/frame_protector/alts_frame_protector_test.cc b/test/core/tsi/alts/frame_protector/alts_frame_protector_test.cc index ce66b62425d48..652857d0d16a2 100644 --- a/test/core/tsi/alts/frame_protector/alts_frame_protector_test.cc +++ b/test/core/tsi/alts/frame_protector/alts_frame_protector_test.cc @@ -21,12 +21,12 @@ #include #include +#include "gtest/gtest.h" #include "src/core/tsi/alts/crypt/gsec.h" #include "src/core/tsi/transport_security_interface.h" #include "src/core/util/crash.h" #include "test/core/tsi/alts/crypt/gsec_test_util.h" #include "test/core/tsi/transport_security_test_lib.h" -#include "gtest/gtest.h" const size_t kChannelSize = 32768; diff --git a/test/core/tsi/alts/frame_protector/frame_handler_test.cc b/test/core/tsi/alts/frame_protector/frame_handler_test.cc index f4d5f922854f4..a6ad1f906a37a 100644 --- a/test/core/tsi/alts/frame_protector/frame_handler_test.cc +++ b/test/core/tsi/alts/frame_protector/frame_handler_test.cc @@ -25,10 +25,10 @@ #include +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/core/util/useful.h" #include "test/core/tsi/alts/crypt/gsec_test_util.h" -#include "gtest/gtest.h" const size_t kFrameHandlerTestBufferSize = 1024; diff --git a/test/core/tsi/alts/handshaker/alts_concurrent_connectivity_test.cc b/test/core/tsi/alts/handshaker/alts_concurrent_connectivity_test.cc index c8706a1b19824..5ed2eab6287b1 100644 --- a/test/core/tsi/alts/handshaker/alts_concurrent_connectivity_test.cc +++ b/test/core/tsi/alts/handshaker/alts_concurrent_connectivity_test.cc @@ -39,6 +39,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/memory/memory.h" +#include "absl/strings/str_cat.h" +#include "gmock/gmock.h" #include "src/core/credentials/transport/alts/alts_credentials.h" #include "src/core/credentials/transport/alts/alts_security_connector.h" #include "src/core/credentials/transport/transport_credentials.h" @@ -54,11 +59,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/tsi/alts/fake_handshaker/fake_handshaker_server.h" -#include "gmock/gmock.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" -#include "absl/strings/str_cat.h" namespace { diff --git a/test/core/tsi/alts/handshaker/alts_handshaker_client_test.cc b/test/core/tsi/alts/handshaker/alts_handshaker_client_test.cc index 6ad58a9f37c2d..1ba0fbe93fe97 100644 --- a/test/core/tsi/alts/handshaker/alts_handshaker_client_test.cc +++ b/test/core/tsi/alts/handshaker/alts_handshaker_client_test.cc @@ -22,6 +22,7 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/tsi/alts/handshaker/alts_shared_resource.h" #include "src/core/tsi/alts/handshaker/alts_tsi_handshaker.h" @@ -31,7 +32,6 @@ #include "src/core/util/env.h" #include "test/core/test_util/test_config.h" #include "test/core/tsi/alts/handshaker/alts_handshaker_service_api_test_lib.h" -#include "gtest/gtest.h" #include "upb/mem/arena.hpp" #define ALTS_HANDSHAKER_CLIENT_TEST_OUT_FRAME "Hello Google" diff --git a/test/core/tsi/alts/handshaker/alts_tsi_handshaker_test.cc b/test/core/tsi/alts/handshaker/alts_tsi_handshaker_test.cc index 83a16d9fd9c97..41ee4795bb0fc 100644 --- a/test/core/tsi/alts/handshaker/alts_tsi_handshaker_test.cc +++ b/test/core/tsi/alts/handshaker/alts_tsi_handshaker_test.cc @@ -23,16 +23,16 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/tsi/alts/handshaker/alts_handshaker_client.h" #include "src/core/tsi/alts/handshaker/alts_shared_resource.h" #include "src/core/tsi/alts/handshaker/alts_tsi_handshaker_private.h" #include "src/core/tsi/transport_security_grpc.h" #include "src/core/util/thd.h" +#include "src/proto/grpc/gcp/altscontext.upb.h" #include "test/core/test_util/test_config.h" #include "test/core/tsi/alts/handshaker/alts_handshaker_service_api_test_lib.h" -#include "gtest/gtest.h" -#include "src/proto/grpc/gcp/altscontext.upb.h" #include "upb/base/string_view.h" #include "upb/mem/arena.hpp" #include "upb/message/internal/map.h" diff --git a/test/core/tsi/alts/handshaker/alts_tsi_utils_test.cc b/test/core/tsi/alts/handshaker/alts_tsi_utils_test.cc index 7ff518b602101..3681470f51c5f 100644 --- a/test/core/tsi/alts/handshaker/alts_tsi_utils_test.cc +++ b/test/core/tsi/alts/handshaker/alts_tsi_utils_test.cc @@ -18,9 +18,9 @@ #include "src/core/tsi/alts/handshaker/alts_tsi_utils.h" +#include "gtest/gtest.h" #include "test/core/test_util/test_config.h" #include "test/core/tsi/alts/handshaker/alts_handshaker_service_api_test_lib.h" -#include "gtest/gtest.h" #include "upb/mem/arena.hpp" #define ALTS_TSI_UTILS_TEST_OUT_FRAME "Hello Google" diff --git a/test/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_test.cc b/test/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_test.cc index 6328c5a621013..0ace78ebb81bf 100644 --- a/test/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_test.cc +++ b/test/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_test.cc @@ -22,13 +22,13 @@ #include +#include "absl/types/span.h" +#include "gtest/gtest.h" #include "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.h" #include "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.h" #include "src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h" #include "test/core/test_util/test_config.h" #include "test/core/tsi/alts/crypt/gsec_test_util.h" -#include "gtest/gtest.h" -#include "absl/types/span.h" constexpr size_t kMaxSliceLength = 256; constexpr size_t kMaxSlices = 10; diff --git a/test/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol_test.cc b/test/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol_test.cc index 982a1107b956e..9873538006730 100644 --- a/test/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol_test.cc +++ b/test/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol_test.cc @@ -22,9 +22,9 @@ #include -#include "test/core/tsi/alts/crypt/gsec_test_util.h" -#include "gtest/gtest.h" #include "absl/types/span.h" +#include "gtest/gtest.h" +#include "test/core/tsi/alts/crypt/gsec_test_util.h" constexpr size_t kMaxDataSize = 1024; constexpr size_t kMaxSlices = 10; diff --git a/test/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector_test.cc b/test/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector_test.cc index c82100e456835..6b0655c2151ca 100644 --- a/test/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector_test.cc +++ b/test/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector_test.cc @@ -21,13 +21,13 @@ #include #include +#include "absl/types/span.h" +#include "gtest/gtest.h" #include "src/core/tsi/alts/crypt/gsec.h" #include "src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h" #include "src/core/tsi/transport_security_grpc.h" #include "test/core/test_util/test_config.h" #include "test/core/tsi/alts/crypt/gsec_test_util.h" -#include "gtest/gtest.h" -#include "absl/types/span.h" // TODO(unknown): tests zero_copy_grpc_protector under TSI test library, which // has more comprehensive tests. diff --git a/test/core/tsi/crl_ssl_transport_security_test.cc b/test/core/tsi/crl_ssl_transport_security_test.cc index e6c7c475566cc..5a971b293c0a3 100644 --- a/test/core/tsi/crl_ssl_transport_security_test.cc +++ b/test/core/tsi/crl_ssl_transport_security_test.cc @@ -22,6 +22,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/tsi/ssl_transport_security.h" #include "src/core/tsi/transport_security.h" @@ -30,12 +36,6 @@ #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" #include "test/core/tsi/transport_security_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" extern "C" { #include @@ -54,14 +54,10 @@ const char* kSslTsiTestCrlSupportedCrlDirMissingIntermediate = const char* kSslTsiTestCrlSupportedCrlDirMissingRoot = "test/core/tsi/test_creds/crl_data/crls_missing_root/"; const char* kSslTsiTestFaultyCrlsDir = "bad_path/"; -const char* kRevokedKeyPath = - "test/core/tsi/test_creds/crl_data/revoked.key"; -const char* kRevokedCertPath = - "test/core/tsi/test_creds/crl_data/revoked.pem"; -const char* kValidKeyPath = - "test/core/tsi/test_creds/crl_data/valid.key"; -const char* kValidCertPath = - "test/core/tsi/test_creds/crl_data/valid.pem"; +const char* kRevokedKeyPath = "test/core/tsi/test_creds/crl_data/revoked.key"; +const char* kRevokedCertPath = "test/core/tsi/test_creds/crl_data/revoked.pem"; +const char* kValidKeyPath = "test/core/tsi/test_creds/crl_data/valid.key"; +const char* kValidCertPath = "test/core/tsi/test_creds/crl_data/valid.pem"; const char* kRevokedIntermediateKeyPath = "test/core/tsi/test_creds/crl_data/" @@ -69,8 +65,7 @@ const char* kRevokedIntermediateKeyPath = const char* kRevokedIntermediateCertPath = "test/core/tsi/test_creds/crl_data/" "leaf_and_intermediate_chain.pem"; -const char* kRootCrlPath = - "test/core/tsi/test_creds/crl_data/crls/current.crl"; +const char* kRootCrlPath = "test/core/tsi/test_creds/crl_data/crls/current.crl"; const char* kIntermediateCrlPath = "test/core/tsi/test_creds/crl_data/crls/intermediate.crl"; const char* kModifiedSignaturePath = diff --git a/test/core/tsi/fake_transport_security_test.cc b/test/core/tsi/fake_transport_security_test.cc index d6dd8f9c45877..78b721a743dfa 100644 --- a/test/core/tsi/fake_transport_security_test.cc +++ b/test/core/tsi/fake_transport_security_test.cc @@ -24,12 +24,12 @@ #include #include +#include "gtest/gtest.h" #include "src/core/credentials/transport/security_connector.h" #include "src/core/tsi/transport_security.h" #include "src/core/util/crash.h" #include "test/core/test_util/test_config.h" #include "test/core/tsi/transport_security_test_lib.h" -#include "gtest/gtest.h" typedef struct fake_tsi_test_fixture { tsi_test_fixture base; diff --git a/test/core/tsi/ssl_session_cache_test.cc b/test/core/tsi/ssl_session_cache_test.cc index 687da39e7051c..af838eaab7320 100644 --- a/test/core/tsi/ssl_session_cache_test.cc +++ b/test/core/tsi/ssl_session_cache_test.cc @@ -23,10 +23,10 @@ #include #include +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" namespace grpc_core { diff --git a/test/core/tsi/ssl_transport_security_test.cc b/test/core/tsi/ssl_transport_security_test.cc index d9fa329cca964..862430677fade 100644 --- a/test/core/tsi/ssl_transport_security_test.cc +++ b/test/core/tsi/ssl_transport_security_test.cc @@ -28,6 +28,9 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "gtest/gtest.h" #include "src/core/tsi/transport_security.h" #include "src/core/tsi/transport_security_interface.h" #include "src/core/util/memory.h" @@ -35,9 +38,6 @@ #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" #include "test/core/tsi/transport_security_test_lib.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" #define SSL_TSI_TEST_ALPN1 "foo" #define SSL_TSI_TEST_ALPN2 "toto" diff --git a/test/core/tsi/ssl_transport_security_utils_test.cc b/test/core/tsi/ssl_transport_security_utils_test.cc index 41824b7017d82..4ac88a1ffd13c 100644 --- a/test/core/tsi/ssl_transport_security_utils_test.cc +++ b/test/core/tsi/ssl_transport_security_utils_test.cc @@ -26,19 +26,19 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/slice/slice.h" #include "src/core/tsi/transport_security.h" #include "src/core/tsi/transport_security_interface.h" #include "src/core/util/load_file.h" #include "test/core/test_util/test_config.h" #include "test/core/tsi/transport_security_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace testing { @@ -48,10 +48,8 @@ using ::testing::NotNull; using ::testing::TestWithParam; using ::testing::ValuesIn; -const char* kValidCrl = - "test/core/tsi/test_creds/crl_data/crls/current.crl"; -const char* kCrlIssuer = - "test/core/tsi/test_creds/crl_data/ca.pem"; +const char* kValidCrl = "test/core/tsi/test_creds/crl_data/crls/current.crl"; +const char* kCrlIssuer = "test/core/tsi/test_creds/crl_data/ca.pem"; const char* kModifiedSignature = "test/core/tsi/test_creds/crl_data/bad_crls/" "invalid_signature.crl"; @@ -65,10 +63,8 @@ const char* kIntermediateCrlIssuer = const char* kLeafCert = "test/core/tsi/test_creds/crl_data/" "leaf_signed_by_intermediate.pem"; -const char* kEvilCa = - "test/core/tsi/test_creds/crl_data/evil_ca.pem"; -const char* kCaWithAkid = - "test/core/tsi/test_creds/crl_data/ca_with_akid.pem"; +const char* kEvilCa = "test/core/tsi/test_creds/crl_data/evil_ca.pem"; +const char* kCaWithAkid = "test/core/tsi/test_creds/crl_data/ca_with_akid.pem"; const char* kCrlWithAkid = "test/core/tsi/test_creds/crl_data/crl_with_akid.crl"; diff --git a/test/core/tsi/transport_security_test.cc b/test/core/tsi/transport_security_test.cc index 090de87d11885..ef60af3c4c9ec 100644 --- a/test/core/tsi/transport_security_test.cc +++ b/test/core/tsi/transport_security_test.cc @@ -25,15 +25,15 @@ #include +#include "absl/log/log.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/tsi/fake_transport_security.h" #include "src/core/tsi/ssl_transport_security.h" #include "src/core/util/crash.h" #include "src/core/util/string.h" #include "src/core/util/useful.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" typedef struct { // 1 if success, 0 if failure. diff --git a/test/core/tsi/transport_security_test_lib.cc b/test/core/tsi/transport_security_test_lib.cc index d34fe802f3533..fdd158e016551 100644 --- a/test/core/tsi/transport_security_test_lib.cc +++ b/test/core/tsi/transport_security_test_lib.cc @@ -32,11 +32,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/crash.h" #include "src/core/util/memory.h" -#include "absl/log/check.h" -#include "absl/strings/str_cat.h" static void notification_signal(tsi_test_fixture* fixture) { gpr_mu_lock(&fixture->mu); diff --git a/test/core/util/alloc_test.cc b/test/core/util/alloc_test.cc index 07ae956e4b91b..55bf93fca5c1a 100644 --- a/test/core/util/alloc_test.cc +++ b/test/core/util/alloc_test.cc @@ -22,8 +22,8 @@ #include -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" TEST(AllocTest, MallocAligned) { for (size_t size = 1; size <= 256; ++size) { diff --git a/test/core/util/avl_fuzzer.cc b/test/core/util/avl_fuzzer.cc index 240f9f8d9f628..f25c5f73a50bd 100644 --- a/test/core/util/avl_fuzzer.cc +++ b/test/core/util/avl_fuzzer.cc @@ -19,9 +19,9 @@ #include #include +#include "fuzztest/fuzztest.h" #include "src/core/util/avl.h" #include "test/core/util/avl_fuzzer.pb.h" -#include "fuzztest/fuzztest.h" bool squelch = true; bool leak_check = true; diff --git a/test/core/util/backoff_test.cc b/test/core/util/backoff_test.cc index 3de7bfd9a642d..a8e7613447aa9 100644 --- a/test/core/util/backoff_test.cc +++ b/test/core/util/backoff_test.cc @@ -23,11 +23,11 @@ #include #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/util/time.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc_core { namespace testing { diff --git a/test/core/util/chunked_vector_fuzzer.cc b/test/core/util/chunked_vector_fuzzer.cc index 6df76bdb07032..9d37ef00ace13 100644 --- a/test/core/util/chunked_vector_fuzzer.cc +++ b/test/core/util/chunked_vector_fuzzer.cc @@ -21,14 +21,14 @@ #include #include +#include "absl/log/check.h" +#include "fuzztest/fuzztest.h" #include "src/core/lib/resource_quota/arena.h" #include "src/core/lib/resource_quota/memory_quota.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/chunked_vector.h" #include "src/core/util/ref_counted_ptr.h" #include "test/core/util/chunked_vector_fuzzer.pb.h" -#include "fuzztest/fuzztest.h" -#include "absl/log/check.h" bool squelch = true; bool leak_check = true; diff --git a/test/core/util/chunked_vector_test.cc b/test/core/util/chunked_vector_test.cc index 60f2b05709d01..8dbb680c1dcb5 100644 --- a/test/core/util/chunked_vector_test.cc +++ b/test/core/util/chunked_vector_test.cc @@ -19,10 +19,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/resource_quota/memory_quota.h" #include "src/core/lib/resource_quota/resource_quota.h" #include "src/core/util/ref_counted_ptr.h" -#include "gtest/gtest.h" namespace grpc_core { namespace testing { diff --git a/test/core/util/cpu_test.cc b/test/core/util/cpu_test.cc index e860bf2fefda7..8dd700dbc0f68 100644 --- a/test/core/util/cpu_test.cc +++ b/test/core/util/cpu_test.cc @@ -31,9 +31,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/thd.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" // Test structure is essentially: // 1) Figure out how many cores are present on the test system diff --git a/test/core/util/directory_reader_test.cc b/test/core/util/directory_reader_test.cc index 1f0dd7786483d..57022e69689bc 100644 --- a/test/core/util/directory_reader_test.cc +++ b/test/core/util/directory_reader_test.cc @@ -19,10 +19,10 @@ #include #include -#include "test/core/test_util/test_config.h" +#include "absl/strings/string_view.h" #include "gmock/gmock.h" #include "gtest/gtest.h" -#include "absl/strings/string_view.h" +#include "test/core/test_util/test_config.h" static constexpr absl::string_view kCrlDirectory = "test/core/tsi/test_creds/crl_data/crls/"; diff --git a/test/core/util/dual_ref_counted_test.cc b/test/core/util/dual_ref_counted_test.cc index 53e8be32d7fba..150fd39c03bf2 100644 --- a/test/core/util/dual_ref_counted_test.cc +++ b/test/core/util/dual_ref_counted_test.cc @@ -18,11 +18,11 @@ #include +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "src/core/util/manual_constructor.h" #include "src/core/util/ref_counted.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" namespace grpc_core { namespace testing { diff --git a/test/core/util/env_test.cc b/test/core/util/env_test.cc index a0224c47fef96..2b497db9106c7 100644 --- a/test/core/util/env_test.cc +++ b/test/core/util/env_test.cc @@ -18,9 +18,9 @@ #include "src/core/util/env.h" -#include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" #include "absl/log/log.h" +#include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" TEST(EnvTest, SetenvGetenv) { const char* name = "FOO"; diff --git a/test/core/util/examine_stack_test.cc b/test/core/util/examine_stack_test.cc index 3d08747747f2d..78a3357648cf9 100644 --- a/test/core/util/examine_stack_test.cc +++ b/test/core/util/examine_stack_test.cc @@ -18,11 +18,11 @@ #include "src/core/util/examine_stack.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "absl/debugging/stacktrace.h" #include "absl/debugging/symbolize.h" #include "absl/log/log.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" namespace { diff --git a/test/core/util/fork_test.cc b/test/core/util/fork_test.cc index aa1dde09d5128..cce0af99e0b19 100644 --- a/test/core/util/fork_test.cc +++ b/test/core/util/fork_test.cc @@ -21,9 +21,9 @@ #include #include +#include "gtest/gtest.h" #include "src/core/util/thd.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" TEST(ForkTest, Init) { ASSERT_FALSE(grpc_core::Fork::Enabled()); diff --git a/test/core/util/glob_test.cc b/test/core/util/glob_test.cc index 5af64aa478e5e..284464f395a68 100644 --- a/test/core/util/glob_test.cc +++ b/test/core/util/glob_test.cc @@ -16,9 +16,9 @@ #include -#include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" #include "absl/strings/match.h" +#include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc_core { namespace testing { diff --git a/test/core/util/gpr_time_test.cc b/test/core/util/gpr_time_test.cc index 83b19aa14fc30..9ae5d0ed7fbbf 100644 --- a/test/core/util/gpr_time_test.cc +++ b/test/core/util/gpr_time_test.cc @@ -25,8 +25,8 @@ #include -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" static void to_fp(void* arg, const char* buf, size_t len) { fwrite(buf, 1, len, static_cast(arg)); diff --git a/test/core/util/host_port_test.cc b/test/core/util/host_port_test.cc index 86bddac20a4e4..9845d54b20392 100644 --- a/test/core/util/host_port_test.cc +++ b/test/core/util/host_port_test.cc @@ -18,8 +18,8 @@ #include "src/core/util/host_port.h" -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" static void join_host_port_expect(const char* host, int port, const char* expected) { diff --git a/test/core/util/http_client/format_request_test.cc b/test/core/util/http_client/format_request_test.cc index 1429d79f1d0df..2d2deb6d4bb75 100644 --- a/test/core/util/http_client/format_request_test.cc +++ b/test/core/util/http_client/format_request_test.cc @@ -22,10 +22,10 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/util/http_client/httpcli.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" TEST(FormatRequestTest, FormatGetRequest) { grpc_http_header hdr = {const_cast("x-yz"), const_cast("abc")}; diff --git a/test/core/util/http_client/fuzzer.cc b/test/core/util/http_client/fuzzer.cc index 714589585b9cf..dd3c6bfca12f9 100644 --- a/test/core/util/http_client/fuzzer.cc +++ b/test/core/util/http_client/fuzzer.cc @@ -23,9 +23,9 @@ #include -#include "src/core/util/http_client/parser.h" -#include "gtest/gtest.h" #include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" +#include "src/core/util/http_client/parser.h" void RequestTest(std::vector buffer) { grpc_http_parser parser; diff --git a/test/core/util/http_client/httpcli_test.cc b/test/core/util/http_client/httpcli_test.cc index d2e6685729be3..13fbe93e8683b 100644 --- a/test/core/util/http_client/httpcli_test.cc +++ b/test/core/util/http_client/httpcli_test.cc @@ -33,6 +33,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/credentials/transport/transport_credentials.h" #include "src/core/lib/iomgr/pollset.h" #include "src/core/lib/iomgr/pollset_set.h" @@ -45,13 +52,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/util/http_client/httpcli_test_util.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" namespace { diff --git a/test/core/util/http_client/httpcli_test_util.cc b/test/core/util/http_client/httpcli_test_util.cc index c885cf55aa19c..578ba9f393849 100644 --- a/test/core/util/http_client/httpcli_test_util.cc +++ b/test/core/util/http_client/httpcli_test_util.cc @@ -27,14 +27,14 @@ #include #include -#include "src/core/config/config_vars.h" -#include "src/core/util/subprocess.h" -#include "test/core/test_util/port.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/match.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" +#include "src/core/config/config_vars.h" +#include "src/core/util/subprocess.h" +#include "test/core/test_util/port.h" namespace grpc_core { namespace testing { diff --git a/test/core/util/http_client/httpscli_test.cc b/test/core/util/http_client/httpscli_test.cc index 2e51d78b239e6..b465e3f859ec9 100644 --- a/test/core/util/http_client/httpscli_test.cc +++ b/test/core/util/http_client/httpscli_test.cc @@ -31,6 +31,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/credentials/transport/transport_credentials.h" // IWYU pragma: keep #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/closure.h" @@ -52,13 +59,6 @@ #include "test/core/test_util/fake_udp_and_tcp_server.h" #include "test/core/test_util/test_config.h" #include "test/core/util/http_client/httpcli_test_util.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" namespace { diff --git a/test/core/util/http_client/parser_test.cc b/test/core/util/http_client/parser_test.cc index 544e07aee07b2..b8b733081d657 100644 --- a/test/core/util/http_client/parser_test.cc +++ b/test/core/util/http_client/parser_test.cc @@ -24,12 +24,12 @@ #include +#include "absl/status/status.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/util/useful.h" #include "test/core/test_util/slice_splitter.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/strings/str_format.h" static void test_request_succeeds(grpc_slice_split_mode split_mode, const char* request_text, diff --git a/test/core/util/http_client/test_server.py b/test/core/util/http_client/test_server.py index 70615378a3fc3..db11c65582158 100755 --- a/test/core/util/http_client/test_server.py +++ b/test/core/util/http_client/test_server.py @@ -47,32 +47,31 @@ class Handler(BaseHTTPRequestHandler): + def good(self): + self.send_response(200) + self.send_header("Content-Type", "text/html") + self.end_headers() + self.wfile.write( + "Hello world!".encode("ascii") + ) + self.wfile.write( + "

This is a test

".encode("ascii") + ) - def good(self): - self.send_response(200) - self.send_header("Content-Type", "text/html") - self.end_headers() - self.wfile.write( - "Hello world!".encode("ascii") - ) - self.wfile.write( - "

This is a test

".encode("ascii") - ) - - def do_GET(self): - if self.path == "/get?foo=bar&baz=quux": - self.good() + def do_GET(self): + if self.path == "/get?foo=bar&baz=quux": + self.good() - def do_POST(self): - content_len = self.headers.get("content-length") - content = self.rfile.read(int(content_len)).decode("ascii") - if self.path == "/post?foo=bar&mumble=frotz" and content == "hello": - self.good() + def do_POST(self): + content_len = self.headers.get("content-length") + content = self.rfile.read(int(content_len)).decode("ascii") + if self.path == "/post?foo=bar&mumble=frotz" and content == "hello": + self.good() httpd = HTTPServer(("localhost", args.port), Handler) if args.ssl: - ctx = ssl.SSLContext() - ctx.load_cert_chain(certfile=_PEM, keyfile=_KEY) - httpd.socket = ctx.wrap_socket(httpd.socket, server_side=True) + ctx = ssl.SSLContext() + ctx.load_cert_chain(certfile=_PEM, keyfile=_KEY) + httpd.socket = ctx.wrap_socket(httpd.socket, server_side=True) httpd.serve_forever() diff --git a/test/core/util/json/json_fuzz_test.cc b/test/core/util/json/json_fuzz_test.cc index f9d721e91e3fb..0511d8bbfaa4f 100644 --- a/test/core/util/json/json_fuzz_test.cc +++ b/test/core/util/json/json_fuzz_test.cc @@ -20,15 +20,15 @@ #include #include -#include "src/core/util/dump_args.h" -#include "src/core/util/json/json_reader.h" -#include "src/core/util/json/json_writer.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" +#include "src/core/util/dump_args.h" +#include "src/core/util/json/json_reader.h" +#include "src/core/util/json/json_writer.h" namespace grpc_core { namespace { diff --git a/test/core/util/json/json_object_loader_test.cc b/test/core/util/json/json_object_loader_test.cc index cd4f87804b529..5fbbefbd81e46 100644 --- a/test/core/util/json/json_object_loader_test.cc +++ b/test/core/util/json/json_object_loader_test.cc @@ -18,13 +18,13 @@ #include +#include "absl/status/status.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/util/json/json_reader.h" #include "src/core/util/json/json_writer.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { namespace { diff --git a/test/core/util/json/json_test.cc b/test/core/util/json/json_test.cc index e1e47ff0913a0..23da50811b39b 100644 --- a/test/core/util/json/json_test.cc +++ b/test/core/util/json/json_test.cc @@ -22,16 +22,16 @@ #include #include -#include "src/core/util/json/json_reader.h" -#include "src/core/util/json/json_writer.h" -#include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/match.h" #include "absl/strings/str_cat.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" +#include "src/core/util/json/json_reader.h" +#include "src/core/util/json/json_writer.h" +#include "test/core/test_util/test_config.h" namespace grpc_core { diff --git a/test/core/util/load_file_test.cc b/test/core/util/load_file_test.cc index 65ad134b37d63..2c83b2a119b5c 100644 --- a/test/core/util/load_file_test.cc +++ b/test/core/util/load_file_test.cc @@ -20,9 +20,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/tmpfile.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" static const char prefix[] = "file_test"; diff --git a/test/core/util/lru_cache_test.cc b/test/core/util/lru_cache_test.cc index d5369e776d9e4..ef4100e743ec3 100644 --- a/test/core/util/lru_cache_test.cc +++ b/test/core/util/lru_cache_test.cc @@ -16,11 +16,11 @@ #include "src/core/util/lru_cache.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "absl/log/check.h" #include "absl/strings/numbers.h" #include "absl/strings/str_cat.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/util/matchers_test.cc b/test/core/util/matchers_test.cc index debb814b4f63e..01515c69f141f 100644 --- a/test/core/util/matchers_test.cc +++ b/test/core/util/matchers_test.cc @@ -14,8 +14,8 @@ #include "src/core/util/matchers.h" -#include "gtest/gtest.h" #include "absl/status/status.h" +#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/util/mpscq_test.cc b/test/core/util/mpscq_test.cc index bfca493be9664..a0c304ead0565 100644 --- a/test/core/util/mpscq_test.cc +++ b/test/core/util/mpscq_test.cc @@ -25,11 +25,11 @@ #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/util/thd.h" #include "src/core/util/useful.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" using grpc_core::MultiProducerSingleConsumerQueue; diff --git a/test/core/util/orphanable_test.cc b/test/core/util/orphanable_test.cc index 887ea6a2b2eae..4d21829ad4725 100644 --- a/test/core/util/orphanable_test.cc +++ b/test/core/util/orphanable_test.cc @@ -18,8 +18,8 @@ #include "src/core/util/orphanable.h" -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc_core { namespace testing { diff --git a/test/core/util/random_early_detection_test.cc b/test/core/util/random_early_detection_test.cc index 4e047a2fe0805..c0531d647d5f4 100644 --- a/test/core/util/random_early_detection_test.cc +++ b/test/core/util/random_early_detection_test.cc @@ -16,8 +16,8 @@ #include -#include "gtest/gtest.h" #include "absl/random/random.h" +#include "gtest/gtest.h" namespace grpc_core { namespace { diff --git a/test/core/util/ref_counted_ptr_test.cc b/test/core/util/ref_counted_ptr_test.cc index c924727aae123..3cac68aa9e41c 100644 --- a/test/core/util/ref_counted_ptr_test.cc +++ b/test/core/util/ref_counted_ptr_test.cc @@ -20,12 +20,12 @@ #include +#include "absl/container/flat_hash_set.h" +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "src/core/util/dual_ref_counted.h" #include "src/core/util/ref_counted.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/container/flat_hash_set.h" -#include "absl/log/check.h" namespace grpc_core { namespace testing { diff --git a/test/core/util/ref_counted_test.cc b/test/core/util/ref_counted_test.cc index 63d76e8e5f29b..2769aec600dc8 100644 --- a/test/core/util/ref_counted_test.cc +++ b/test/core/util/ref_counted_test.cc @@ -23,9 +23,9 @@ #include #include -#include "test/core/test_util/test_config.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc_core { namespace testing { diff --git a/test/core/util/seq_bit_set_test.cc b/test/core/util/seq_bit_set_test.cc index 10937b2d4674e..c5d57976558d1 100644 --- a/test/core/util/seq_bit_set_test.cc +++ b/test/core/util/seq_bit_set_test.cc @@ -18,8 +18,8 @@ #include #include -#include "gtest/gtest.h" #include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/util/shared_bit_gen_test.cc b/test/core/util/shared_bit_gen_test.cc index 28b36f7f86254..624f3b3e42cb9 100644 --- a/test/core/util/shared_bit_gen_test.cc +++ b/test/core/util/shared_bit_gen_test.cc @@ -16,8 +16,8 @@ #include -#include "gtest/gtest.h" #include "absl/random/distributions.h" +#include "gtest/gtest.h" namespace grpc_core { diff --git a/test/core/util/single_set_ptr_test.cc b/test/core/util/single_set_ptr_test.cc index 7b60e74acd784..6ac914ee50728 100644 --- a/test/core/util/single_set_ptr_test.cc +++ b/test/core/util/single_set_ptr_test.cc @@ -18,10 +18,10 @@ #include #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/util/notification.h" #include "src/core/util/ref_counted.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" namespace grpc_core { namespace { diff --git a/test/core/util/spinlock_test.cc b/test/core/util/spinlock_test.cc index 32f93dbea51dd..35eb6a424884e 100644 --- a/test/core/util/spinlock_test.cc +++ b/test/core/util/spinlock_test.cc @@ -27,9 +27,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/thd.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" // ------------------------------------------------- // Tests for gpr_spinlock. diff --git a/test/core/util/stat_test.cc b/test/core/util/stat_test.cc index 2fda8e0f14c16..3c8ad0e5bd55b 100644 --- a/test/core/util/stat_test.cc +++ b/test/core/util/stat_test.cc @@ -21,9 +21,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/tmpfile.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc_core { namespace testing { diff --git a/test/core/util/status_helper_test.cc b/test/core/util/status_helper_test.cc index ecc12f37bec11..148c061103349 100644 --- a/test/core/util/status_helper_test.cc +++ b/test/core/util/status_helper_test.cc @@ -18,13 +18,13 @@ #include -#include "google/rpc/status.upb.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "absl/status/status.h" #include "absl/strings/str_cat.h" #include "absl/time/civil_time.h" #include "absl/time/clock.h" +#include "gmock/gmock.h" +#include "google/rpc/status.upb.h" +#include "gtest/gtest.h" #include "upb/mem/arena.hpp" namespace grpc_core { diff --git a/test/core/util/string_test.cc b/test/core/util/string_test.cc index 2a0df5c2c4f48..7ba0c920c9496 100644 --- a/test/core/util/string_test.cc +++ b/test/core/util/string_test.cc @@ -24,8 +24,8 @@ #include #include -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" TEST(StringTest, Strdup) { static const char* src1 = "hello world"; diff --git a/test/core/util/sync_test.cc b/test/core/util/sync_test.cc index 14b2580cb6331..78b7272c1baa2 100644 --- a/test/core/util/sync_test.cc +++ b/test/core/util/sync_test.cc @@ -26,9 +26,9 @@ #include +#include "gtest/gtest.h" #include "src/core/util/thd.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" // ==================Example use of interface=================== diff --git a/test/core/util/tdigest_fuzztest.cc b/test/core/util/tdigest_fuzztest.cc index f788aa84b1d01..b53e54f540349 100644 --- a/test/core/util/tdigest_fuzztest.cc +++ b/test/core/util/tdigest_fuzztest.cc @@ -16,9 +16,9 @@ #include #include -#include "src/core/util/tdigest.h" -#include "gtest/gtest.h" #include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" +#include "src/core/util/tdigest.h" using fuzztest::InRange; using fuzztest::VectorOf; diff --git a/test/core/util/tdigest_test.cc b/test/core/util/tdigest_test.cc index 5d9ce73fdd44f..a2aadde36716b 100644 --- a/test/core/util/tdigest_test.cc +++ b/test/core/util/tdigest_test.cc @@ -23,10 +23,10 @@ #include #include -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "absl/container/flat_hash_map.h" #include "absl/random/random.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" using testing::DoubleNear; using testing::NanSensitiveDoubleEq; diff --git a/test/core/util/thd_test.cc b/test/core/util/thd_test.cc index 1c330699529a4..993b6d5ab620f 100644 --- a/test/core/util/thd_test.cc +++ b/test/core/util/thd_test.cc @@ -25,8 +25,8 @@ #include -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" #define NUM_THREADS 100 diff --git a/test/core/util/time_util_test.cc b/test/core/util/time_util_test.cc index 2955b68957c0f..85a1558befbe0 100644 --- a/test/core/util/time_util_test.cc +++ b/test/core/util/time_util_test.cc @@ -21,8 +21,8 @@ #include #include -#include "gtest/gtest.h" #include "absl/time/time.h" +#include "gtest/gtest.h" TEST(TimeUtilTest, ToGprTimeSpecFromAbslDurationWithRegularValues) { std::vector times = {-10, -1, 0, 1, 10}; diff --git a/test/core/util/unique_type_name_test.cc b/test/core/util/unique_type_name_test.cc index b182d00892c51..80cffc497aaf5 100644 --- a/test/core/util/unique_type_name_test.cc +++ b/test/core/util/unique_type_name_test.cc @@ -17,10 +17,10 @@ #include #include -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "absl/container/flat_hash_map.h" #include "absl/strings/str_format.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" using testing::Pair; using testing::UnorderedElementsAre; diff --git a/test/core/util/uri_fuzzer_test.cc b/test/core/util/uri_fuzzer_test.cc index 12a693c5c9b54..5b9512553cdc5 100644 --- a/test/core/util/uri_fuzzer_test.cc +++ b/test/core/util/uri_fuzzer_test.cc @@ -21,11 +21,11 @@ #include #include +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/dump_args.h" #include "src/core/util/uri.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" namespace grpc_core { namespace { diff --git a/test/core/util/uri_test.cc b/test/core/util/uri_test.cc index 2c312e1d5537f..0719b1e5ba2cd 100644 --- a/test/core/util/uri_test.cc +++ b/test/core/util/uri_test.cc @@ -20,10 +20,10 @@ #include -#include "test/core/test_util/test_config.h" +#include "absl/status/status.h" #include "gmock/gmock.h" #include "gtest/gtest.h" -#include "absl/status/status.h" +#include "test/core/test_util/test_config.h" using ::testing::ContainerEq; using ::testing::Contains; diff --git a/test/core/util/useful_fuzztest.cc b/test/core/util/useful_fuzztest.cc index 33a3fe8d78ea9..8272fd0143998 100644 --- a/test/core/util/useful_fuzztest.cc +++ b/test/core/util/useful_fuzztest.cc @@ -14,9 +14,9 @@ #include -#include "src/core/util/useful.h" -#include "gtest/gtest.h" #include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" +#include "src/core/util/useful.h" namespace grpc_core { diff --git a/test/core/util/validation_errors_test.cc b/test/core/util/validation_errors_test.cc index 6df515209470a..40466961339e0 100644 --- a/test/core/util/validation_errors_test.cc +++ b/test/core/util/validation_errors_test.cc @@ -16,8 +16,8 @@ #include "src/core/util/validation_errors.h" -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc_core { namespace testing { diff --git a/test/core/util/work_serializer_test.cc b/test/core/util/work_serializer_test.cc index d21fe84c26c45..9d6cd3ccb9fbc 100644 --- a/test/core/util/work_serializer_test.cc +++ b/test/core/util/work_serializer_test.cc @@ -28,6 +28,11 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "absl/synchronization/barrier.h" +#include "absl/time/clock.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/lib/experiments/experiments.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -39,11 +44,6 @@ #include "src/core/util/wait_for_single_owner.h" #include "test/core/event_engine/event_engine_test_utils.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" -#include "absl/synchronization/barrier.h" -#include "absl/time/clock.h" -#include "absl/time/time.h" using grpc_event_engine::experimental::GetDefaultEventEngine; diff --git a/test/core/xds/certificate_provider_store_test.cc b/test/core/xds/certificate_provider_store_test.cc index 1179b3a5bfd37..e9ffc91202bc9 100644 --- a/test/core/xds/certificate_provider_store_test.cc +++ b/test/core/xds/certificate_provider_store_test.cc @@ -25,11 +25,11 @@ #include #include +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/util/unique_type_name.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" namespace grpc_core { namespace testing { diff --git a/test/core/xds/file_watcher_certificate_provider_factory_test.cc b/test/core/xds/file_watcher_certificate_provider_factory_test.cc index 2d9365b344e4e..1d51ef8d68900 100644 --- a/test/core/xds/file_watcher_certificate_provider_factory_test.cc +++ b/test/core/xds/file_watcher_certificate_provider_factory_test.cc @@ -22,12 +22,12 @@ #include -#include "src/core/util/json/json_reader.h" -#include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_format.h" +#include "gtest/gtest.h" +#include "src/core/util/json/json_reader.h" +#include "test/core/test_util/test_config.h" namespace grpc_core { namespace testing { diff --git a/test/core/xds/xds_audit_logger_registry_test.cc b/test/core/xds/xds_audit_logger_registry_test.cc index d1e596fbfc7d4..79780c76cd400 100644 --- a/test/core/xds/xds_audit_logger_registry_test.cc +++ b/test/core/xds/xds_audit_logger_registry_test.cc @@ -25,23 +25,23 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" +#include "envoy/config/rbac/v3/rbac.pb.h" +#include "envoy/extensions/rbac/audit_loggers/stream/v3/stream.pb.h" #include "google/protobuf/struct.pb.h" +#include "gtest/gtest.h" #include "src/core/lib/security/authorization/audit_logging.h" #include "src/core/util/crash.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_writer.h" #include "src/core/xds/grpc/xds_bootstrap_grpc.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" -#include "envoy/config/rbac/v3/rbac.pb.h" -#include "envoy/extensions/rbac/audit_loggers/stream/v3/stream.pb.h" -#include "xds/type/v3/typed_struct.pb.h" #include "upb/mem/arena.hpp" #include "upb/reflection/def.hpp" +#include "xds/type/v3/typed_struct.pb.h" namespace grpc_core { namespace testing { diff --git a/test/core/xds/xds_bootstrap_test.cc b/test/core/xds/xds_bootstrap_test.cc index 7ce5d116c469f..9309bd670c480 100644 --- a/test/core/xds/xds_bootstrap_test.cc +++ b/test/core/xds/xds_bootstrap_test.cc @@ -27,6 +27,12 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/transport/channel_creds_registry.h" #include "src/core/credentials/transport/tls/certificate_provider_factory.h" @@ -42,12 +48,6 @@ #include "src/core/xds/grpc/xds_bootstrap_grpc.h" #include "src/core/xds/grpc/xds_server_grpc.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" namespace grpc_core { namespace testing { diff --git a/test/core/xds/xds_certificate_provider_test.cc b/test/core/xds/xds_certificate_provider_test.cc index b2c2a9d398178..ae652b6a656bd 100644 --- a/test/core/xds/xds_certificate_provider_test.cc +++ b/test/core/xds/xds_certificate_provider_test.cc @@ -22,15 +22,15 @@ #include +#include "absl/status/status.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/credentials/transport/tls/ssl_utils.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/status_helper.h" #include "src/core/util/useful.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" namespace grpc_core { namespace testing { diff --git a/test/core/xds/xds_client_fuzzer.cc b/test/core/xds/xds_client_fuzzer.cc index 2b8814fcd67bd..89922ea28a228 100644 --- a/test/core/xds/xds_client_fuzzer.cc +++ b/test/core/xds/xds_client_fuzzer.cc @@ -14,6 +14,7 @@ // limitations under the License. // +#include #include #include @@ -23,6 +24,15 @@ #include #include +#include "absl/log/log.h" +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "absl/time/time.h" +#include "envoy/service/discovery/v3/discovery.pb.h" +#include "fuzztest/fuzztest.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/timer_manager.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" @@ -43,16 +53,6 @@ #include "test/core/xds/xds_client_fuzzer.pb.h" #include "test/core/xds/xds_client_test_peer.h" #include "test/core/xds/xds_transport_fake.h" -#include "gtest/gtest.h" -#include "fuzztest/fuzztest.h" -#include "absl/log/log.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" -#include "absl/time/time.h" -#include "envoy/service/discovery/v3/discovery.pb.h" -#include using grpc_event_engine::experimental::FuzzingEventEngine; diff --git a/test/core/xds/xds_client_test.cc b/test/core/xds/xds_client_test.cc index 5b2d7b36b99ff..5b18f4f39db10 100644 --- a/test/core/xds/xds_client_test.cc +++ b/test/core/xds/xds_client_test.cc @@ -36,6 +36,13 @@ #include #include +#include "absl/strings/str_cat.h" +#include "absl/time/time.h" +#include "envoy/config/core/v3/base.pb.h" +#include "envoy/service/discovery/v3/discovery.pb.h" +#include "envoy/service/status/v3/csds.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/timer_manager.h" #include "src/core/util/debug_location.h" #include "src/core/util/json/json.h" @@ -54,13 +61,6 @@ #include "test/core/test_util/test_config.h" #include "test/core/xds/xds_client_test_peer.h" #include "test/core/xds/xds_transport_fake.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/str_cat.h" -#include "absl/time/time.h" -#include "envoy/config/core/v3/base.pb.h" -#include "envoy/service/discovery/v3/discovery.pb.h" -#include "envoy/service/status/v3/csds.pb.h" #include "upb/reflection/def.h" // IWYU pragma: no_include diff --git a/test/core/xds/xds_client_test_peer.h b/test/core/xds/xds_client_test_peer.h index bcfbce455bc59..7e34859cff5df 100644 --- a/test/core/xds/xds_client_test_peer.h +++ b/test/core/xds/xds_client_test_peer.h @@ -21,9 +21,9 @@ #include -#include "src/core/xds/xds_client/xds_client.h" #include "absl/functional/function_ref.h" #include "absl/strings/str_cat.h" +#include "src/core/xds/xds_client/xds_client.h" namespace grpc_core { namespace testing { diff --git a/test/core/xds/xds_cluster_resource_type_test.cc b/test/core/xds/xds_cluster_resource_type_test.cc index 21ae236dec3d7..eacd07db05c39 100644 --- a/test/core/xds/xds_cluster_resource_type_test.cc +++ b/test/core/xds/xds_cluster_resource_type_test.cc @@ -26,26 +26,6 @@ #include #include -#include "src/core/lib/debug/trace.h" -#include "src/core/lib/iomgr/error.h" -#include "src/core/load_balancing/outlier_detection/outlier_detection.h" -#include "src/core/util/crash.h" -#include "src/core/util/json/json.h" -#include "src/core/util/json/json_writer.h" -#include "src/core/util/ref_counted_ptr.h" -#include "src/core/util/time.h" -#include "src/core/xds/grpc/xds_bootstrap_grpc.h" -#include "src/core/xds/grpc/xds_cluster.h" -#include "src/core/xds/grpc/xds_cluster_parser.h" -#include "src/core/xds/grpc/xds_common_types.h" -#include "src/core/xds/grpc/xds_health_status.h" -#include "src/core/xds/xds_client/xds_bootstrap.h" -#include "src/core/xds/xds_client/xds_client.h" -#include "src/core/xds/xds_client/xds_resource_type.h" -#include "test/core/test_util/scoped_env_var.h" -#include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_format.h" @@ -64,9 +44,29 @@ #include "envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.pb.h" #include "envoy/extensions/transport_sockets/tls/v3/tls.pb.h" #include "envoy/extensions/upstreams/http/v3/http_protocol_options.pb.h" -#include "xds/type/v3/typed_struct.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" +#include "src/core/lib/debug/trace.h" +#include "src/core/lib/iomgr/error.h" +#include "src/core/load_balancing/outlier_detection/outlier_detection.h" +#include "src/core/util/crash.h" +#include "src/core/util/json/json.h" +#include "src/core/util/json/json_writer.h" +#include "src/core/util/ref_counted_ptr.h" +#include "src/core/util/time.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_cluster.h" +#include "src/core/xds/grpc/xds_cluster_parser.h" +#include "src/core/xds/grpc/xds_common_types.h" +#include "src/core/xds/grpc/xds_health_status.h" +#include "src/core/xds/xds_client/xds_bootstrap.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "src/core/xds/xds_client/xds_resource_type.h" +#include "test/core/test_util/scoped_env_var.h" +#include "test/core/test_util/test_config.h" #include "upb/mem/arena.hpp" #include "upb/reflection/def.hpp" +#include "xds/type/v3/typed_struct.pb.h" using envoy::config::cluster::v3::Cluster; using envoy::extensions::clusters::aggregate::v3::ClusterConfig; diff --git a/test/core/xds/xds_common_types_test.cc b/test/core/xds/xds_common_types_test.cc index be5d5d05dc150..d84e23311f9d9 100644 --- a/test/core/xds/xds_common_types_test.cc +++ b/test/core/xds/xds_common_types_test.cc @@ -25,8 +25,18 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "envoy/extensions/transport_sockets/tls/v3/tls.pb.h" +#include "envoy/extensions/transport_sockets/tls/v3/tls.upb.h" +#include "envoy/type/matcher/v3/regex.pb.h" +#include "envoy/type/matcher/v3/string.pb.h" +#include "gmock/gmock.h" #include "google/protobuf/any.upb.h" #include "google/protobuf/duration.upb.h" +#include "gtest/gtest.h" +#include "re2/re2.h" #include "src/core/lib/debug/trace.h" #include "src/core/util/crash.h" #include "src/core/util/json/json_writer.h" @@ -43,20 +53,10 @@ #include "test/core/test_util/scoped_env_var.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/config_grpc_cli.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" -#include "envoy/extensions/transport_sockets/tls/v3/tls.pb.h" -#include "envoy/extensions/transport_sockets/tls/v3/tls.upb.h" -#include "envoy/type/matcher/v3/regex.pb.h" -#include "envoy/type/matcher/v3/string.pb.h" -#include "re2/re2.h" #include "udpa/type/v1/typed_struct.pb.h" -#include "xds/type/v3/typed_struct.pb.h" #include "upb/mem/arena.hpp" #include "upb/reflection/def.hpp" +#include "xds/type/v3/typed_struct.pb.h" using CommonTlsContextProto = envoy::extensions::transport_sockets::tls::v3::CommonTlsContext; diff --git a/test/core/xds/xds_endpoint_resource_type_test.cc b/test/core/xds/xds_endpoint_resource_type_test.cc index aa41297ca8fe7..1ca8e4a932f22 100644 --- a/test/core/xds/xds_endpoint_resource_type_test.cc +++ b/test/core/xds/xds_endpoint_resource_type_test.cc @@ -26,6 +26,15 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "envoy/config/core/v3/address.pb.h" +#include "envoy/config/core/v3/base.pb.h" +#include "envoy/config/core/v3/health_check.pb.h" +#include "envoy/config/endpoint/v3/endpoint.pb.h" +#include "envoy/type/v3/percent.pb.h" +#include "gtest/gtest.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/debug/trace.h" @@ -44,15 +53,6 @@ #include "src/core/xds/xds_client/xds_resource_type.h" #include "test/core/test_util/scoped_env_var.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" -#include "envoy/config/core/v3/address.pb.h" -#include "envoy/config/core/v3/base.pb.h" -#include "envoy/config/core/v3/health_check.pb.h" -#include "envoy/config/endpoint/v3/endpoint.pb.h" -#include "envoy/type/v3/percent.pb.h" #include "upb/mem/arena.hpp" #include "upb/reflection/def.hpp" diff --git a/test/core/xds/xds_http_filters_test.cc b/test/core/xds/xds_http_filters_test.cc index 6dc70d0ec26bc..a966788800adb 100644 --- a/test/core/xds/xds_http_filters_test.cc +++ b/test/core/xds/xds_http_filters_test.cc @@ -27,25 +27,6 @@ #include #include -#include "src/core/ext/filters/fault_injection/fault_injection_filter.h" -#include "src/core/ext/filters/fault_injection/fault_injection_service_config_parser.h" -#include "src/core/ext/filters/gcp_authentication/gcp_authentication_filter.h" -#include "src/core/ext/filters/gcp_authentication/gcp_authentication_service_config_parser.h" -#include "src/core/ext/filters/rbac/rbac_filter.h" -#include "src/core/ext/filters/rbac/rbac_service_config_parser.h" -#include "src/core/ext/filters/stateful_session/stateful_session_filter.h" -#include "src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h" -#include "src/core/lib/iomgr/error.h" -#include "src/core/util/crash.h" -#include "src/core/util/json/json_writer.h" -#include "src/core/util/ref_counted_ptr.h" -#include "src/core/xds/grpc/xds_bootstrap_grpc.h" -#include "src/core/xds/grpc/xds_http_filter.h" -#include "src/core/xds/grpc/xds_http_filter_registry.h" -#include "src/core/xds/xds_client/xds_client.h" -#include "test/core/test_util/scoped_env_var.h" -#include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" #include "absl/log/check.h" #include "absl/status/status.h" #include "absl/strings/str_format.h" @@ -68,9 +49,28 @@ #include "envoy/type/matcher/v3/string.pb.h" #include "envoy/type/v3/percent.pb.h" #include "envoy/type/v3/range.pb.h" -#include "xds/type/v3/typed_struct.pb.h" +#include "gtest/gtest.h" +#include "src/core/ext/filters/fault_injection/fault_injection_filter.h" +#include "src/core/ext/filters/fault_injection/fault_injection_service_config_parser.h" +#include "src/core/ext/filters/gcp_authentication/gcp_authentication_filter.h" +#include "src/core/ext/filters/gcp_authentication/gcp_authentication_service_config_parser.h" +#include "src/core/ext/filters/rbac/rbac_filter.h" +#include "src/core/ext/filters/rbac/rbac_service_config_parser.h" +#include "src/core/ext/filters/stateful_session/stateful_session_filter.h" +#include "src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h" +#include "src/core/lib/iomgr/error.h" +#include "src/core/util/crash.h" +#include "src/core/util/json/json_writer.h" +#include "src/core/util/ref_counted_ptr.h" +#include "src/core/xds/grpc/xds_bootstrap_grpc.h" +#include "src/core/xds/grpc/xds_http_filter.h" +#include "src/core/xds/grpc/xds_http_filter_registry.h" +#include "src/core/xds/xds_client/xds_client.h" +#include "test/core/test_util/scoped_env_var.h" +#include "test/core/test_util/test_config.h" #include "upb/mem/arena.hpp" #include "upb/reflection/def.hpp" +#include "xds/type/v3/typed_struct.pb.h" // IWYU pragma: no_include diff --git a/test/core/xds/xds_lb_policy_registry_test.cc b/test/core/xds/xds_lb_policy_registry_test.cc index 4f22608a1ab01..2b6bf34d7b7df 100644 --- a/test/core/xds/xds_lb_policy_registry_test.cc +++ b/test/core/xds/xds_lb_policy_registry_test.cc @@ -26,6 +26,17 @@ #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "envoy/config/cluster/v3/cluster.pb.h" +#include "envoy/config/core/v3/extension.pb.h" +#include "envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.pb.h" +#include "envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.pb.h" +#include "envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.pb.h" +#include "envoy/extensions/load_balancing_policies/round_robin/v3/round_robin.pb.h" +#include "envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/load_balancing/lb_policy.h" #include "src/core/load_balancing/lb_policy_factory.h" @@ -36,20 +47,9 @@ #include "src/core/util/validation_errors.h" #include "src/core/xds/grpc/xds_bootstrap_grpc.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "envoy/config/cluster/v3/cluster.pb.h" -#include "envoy/config/core/v3/extension.pb.h" -#include "envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.pb.h" -#include "envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.pb.h" -#include "envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.pb.h" -#include "envoy/extensions/load_balancing_policies/round_robin/v3/round_robin.pb.h" -#include "envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.pb.h" -#include "xds/type/v3/typed_struct.pb.h" #include "upb/mem/arena.hpp" #include "upb/reflection/def.hpp" +#include "xds/type/v3/typed_struct.pb.h" namespace grpc_core { namespace testing { diff --git a/test/core/xds/xds_listener_resource_type_test.cc b/test/core/xds/xds_listener_resource_type_test.cc index 4612d9d2fca23..a0bb01b220520 100644 --- a/test/core/xds/xds_listener_resource_type_test.cc +++ b/test/core/xds/xds_listener_resource_type_test.cc @@ -27,6 +27,24 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" +#include "envoy/config/core/v3/address.pb.h" +#include "envoy/config/core/v3/base.pb.h" +#include "envoy/config/core/v3/config_source.pb.h" +#include "envoy/config/core/v3/protocol.pb.h" +#include "envoy/config/listener/v3/listener.pb.h" +#include "envoy/extensions/filters/http/fault/v3/fault.pb.h" +#include "envoy/extensions/filters/http/rbac/v3/rbac.pb.h" +#include "envoy/extensions/filters/http/router/v3/router.pb.h" +#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" +#include "envoy/extensions/transport_sockets/tls/v3/tls.pb.h" +#include "envoy/type/matcher/v3/string.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/error.h" @@ -44,27 +62,9 @@ #include "src/core/xds/xds_client/xds_resource_type.h" #include "test/core/test_util/scoped_env_var.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" -#include "envoy/config/core/v3/address.pb.h" -#include "envoy/config/core/v3/base.pb.h" -#include "envoy/config/core/v3/config_source.pb.h" -#include "envoy/config/core/v3/protocol.pb.h" -#include "envoy/config/listener/v3/listener.pb.h" -#include "envoy/extensions/filters/http/fault/v3/fault.pb.h" -#include "envoy/extensions/filters/http/rbac/v3/rbac.pb.h" -#include "envoy/extensions/filters/http/router/v3/router.pb.h" -#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" -#include "envoy/extensions/transport_sockets/tls/v3/tls.pb.h" -#include "envoy/type/matcher/v3/string.pb.h" -#include "xds/type/v3/typed_struct.pb.h" #include "upb/mem/arena.hpp" #include "upb/reflection/def.hpp" +#include "xds/type/v3/typed_struct.pb.h" using envoy::config::listener::v3::Listener; using envoy::extensions::filters::http::fault::v3::HTTPFault; diff --git a/test/core/xds/xds_metadata_test.cc b/test/core/xds/xds_metadata_test.cc index 9a7e69b68cd68..64f0fef2db77f 100644 --- a/test/core/xds/xds_metadata_test.cc +++ b/test/core/xds/xds_metadata_test.cc @@ -22,6 +22,13 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_format.h" +#include "envoy/config/core/v3/base.pb.h" +#include "envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/lib/debug/trace.h" #include "src/core/util/crash.h" #include "src/core/util/json/json.h" @@ -34,13 +41,6 @@ #include "src/core/xds/xds_client/xds_resource_type.h" #include "test/core/test_util/scoped_env_var.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_format.h" -#include "envoy/config/core/v3/base.pb.h" -#include "envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.pb.h" using envoy::config::core::v3::Metadata; using envoy::extensions::filters::http::gcp_authn::v3::Audience; diff --git a/test/core/xds/xds_route_config_resource_type_test.cc b/test/core/xds/xds_route_config_resource_type_test.cc index 810bc8242fe46..b3da4c24f7352 100644 --- a/test/core/xds/xds_route_config_resource_type_test.cc +++ b/test/core/xds/xds_route_config_resource_type_test.cc @@ -30,6 +30,22 @@ #include #include +#include "absl/status/status.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/string_view.h" +#include "envoy/config/core/v3/base.pb.h" +#include "envoy/config/core/v3/extension.pb.h" +#include "envoy/config/route/v3/route.pb.h" +#include "envoy/extensions/filters/http/fault/v3/fault.pb.h" +#include "envoy/type/matcher/v3/regex.pb.h" +#include "envoy/type/matcher/v3/string.pb.h" +#include "envoy/type/v3/percent.pb.h" +#include "envoy/type/v3/range.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" +#include "re2/re2.h" #include "src/core/call/status_util.h" #include "src/core/lib/debug/trace.h" #include "src/core/lib/iomgr/error.h" @@ -47,25 +63,9 @@ #include "src/proto/grpc/lookup/v1/rls_config.pb.h" #include "test/core/test_util/scoped_env_var.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/status/status.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" -#include "envoy/config/core/v3/base.pb.h" -#include "envoy/config/core/v3/extension.pb.h" -#include "envoy/config/route/v3/route.pb.h" -#include "envoy/extensions/filters/http/fault/v3/fault.pb.h" -#include "envoy/type/matcher/v3/regex.pb.h" -#include "envoy/type/matcher/v3/string.pb.h" -#include "envoy/type/v3/percent.pb.h" -#include "envoy/type/v3/range.pb.h" -#include "re2/re2.h" -#include "xds/type/v3/typed_struct.pb.h" #include "upb/mem/arena.hpp" #include "upb/reflection/def.hpp" +#include "xds/type/v3/typed_struct.pb.h" using envoy::config::route::v3::RouteConfiguration; using grpc::lookup::v1::RouteLookupClusterSpecifier; diff --git a/test/core/xds/xds_transport_fake.cc b/test/core/xds/xds_transport_fake.cc index 90b67d923177f..d393febf73b54 100644 --- a/test/core/xds/xds_transport_fake.cc +++ b/test/core/xds/xds_transport_fake.cc @@ -26,13 +26,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted_ptr.h" #include "src/core/xds/xds_client/xds_bootstrap.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc_core { diff --git a/test/core/xds/xds_transport_fake.h b/test/core/xds/xds_transport_fake.h index 3075aafe759ef..2f6fa358032ae 100644 --- a/test/core/xds/xds_transport_fake.h +++ b/test/core/xds/xds_transport_fake.h @@ -28,6 +28,10 @@ #include #include +#include "absl/base/thread_annotations.h" +#include "absl/status/status.h" +#include "absl/strings/string_view.h" +#include "absl/time/time.h" #include "src/core/util/orphanable.h" #include "src/core/util/ref_counted.h" #include "src/core/util/ref_counted_ptr.h" @@ -35,10 +39,6 @@ #include "src/core/xds/xds_client/xds_bootstrap.h" #include "src/core/xds/xds_client/xds_transport.h" #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h" -#include "absl/base/thread_annotations.h" -#include "absl/status/status.h" -#include "absl/strings/string_view.h" -#include "absl/time/time.h" namespace grpc_core { diff --git a/test/cpp/client/credentials_test.cc b/test/cpp/client/credentials_test.cc index 8b7de244ad44c..80d1c01c27909 100644 --- a/test/cpp/client/credentials_test.cc +++ b/test/cpp/client/credentials_test.cc @@ -26,13 +26,13 @@ #include +#include "absl/log/check.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/util/env.h" #include "src/core/util/tmpfile.h" #include "src/cpp/client/secure_credentials.h" #include "test/cpp/util/tls_test_utils.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" #define SERVER_CERT_PATH "src/core/tsi/test_creds/server1.pem" diff --git a/test/cpp/client/destroy_grpclb_channel_with_active_connect_stress_test.cc b/test/cpp/client/destroy_grpclb_channel_with_active_connect_stress_test.cc index 26c30ef554343..b8ed24b6c3507 100644 --- a/test/cpp/client/destroy_grpclb_channel_with_active_connect_stress_test.cc +++ b/test/cpp/client/destroy_grpclb_channel_with_active_connect_stress_test.cc @@ -34,6 +34,7 @@ #include #include +#include "gmock/gmock.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/lib/channel/channel_args.h" #include "src/core/lib/iomgr/sockaddr.h" @@ -46,7 +47,6 @@ #include "src/core/util/thd.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" namespace { diff --git a/test/cpp/codegen/codegen_test_full.cc b/test/cpp/codegen/codegen_test_full.cc index a3ec0cc5169bf..a9e47bcb0d90d 100644 --- a/test/cpp/codegen/codegen_test_full.cc +++ b/test/cpp/codegen/codegen_test_full.cc @@ -19,8 +19,8 @@ #include #include -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc { namespace { diff --git a/test/cpp/codegen/codegen_test_minimal.cc b/test/cpp/codegen/codegen_test_minimal.cc index 398ffb4dc7a25..80b775e4435ed 100644 --- a/test/cpp/codegen/codegen_test_minimal.cc +++ b/test/cpp/codegen/codegen_test_minimal.cc @@ -16,8 +16,8 @@ // // -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc { namespace { diff --git a/test/cpp/codegen/golden_file_test.cc b/test/cpp/codegen/golden_file_test.cc index cf82a51fd3d53..308f01c4692eb 100644 --- a/test/cpp/codegen/golden_file_test.cc +++ b/test/cpp/codegen/golden_file_test.cc @@ -19,10 +19,10 @@ #include #include +#include "absl/flags/flag.h" +#include "gtest/gtest.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/test_config.h" -#include "gtest/gtest.h" -#include "absl/flags/flag.h" ABSL_FLAG( std::string, generated_file_path, "", diff --git a/test/cpp/codegen/proto_utils_test.cc b/test/cpp/codegen/proto_utils_test.cc index 660a20765ca28..e543cd9515639 100644 --- a/test/cpp/codegen/proto_utils_test.cc +++ b/test/cpp/codegen/proto_utils_test.cc @@ -21,8 +21,8 @@ #include #include -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc { diff --git a/test/cpp/common/alarm_test.cc b/test/cpp/common/alarm_test.cc index 03492f742f271..16d063b83fce0 100644 --- a/test/cpp/common/alarm_test.cc +++ b/test/cpp/common/alarm_test.cc @@ -24,9 +24,9 @@ #include #include +#include "gtest/gtest.h" #include "src/core/util/notification.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc { namespace { diff --git a/test/cpp/common/alts_util_test.cc b/test/cpp/common/alts_util_test.cc index fe8e96bc33f3a..32a4213bd0044 100644 --- a/test/cpp/common/alts_util_test.cc +++ b/test/cpp/common/alts_util_test.cc @@ -20,12 +20,12 @@ #include #include +#include "gtest/gtest.h" #include "src/core/tsi/alts/handshaker/alts_tsi_handshaker.h" #include "src/cpp/common/secure_auth_context.h" +#include "src/proto/grpc/gcp/altscontext.upb.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/string_ref_helper.h" -#include "gtest/gtest.h" -#include "src/proto/grpc/gcp/altscontext.upb.h" #include "upb/mem/arena.hpp" namespace grpc { diff --git a/test/cpp/common/auth_property_iterator_test.cc b/test/cpp/common/auth_property_iterator_test.cc index 0f3d38e9a7e42..6a74951fa0309 100644 --- a/test/cpp/common/auth_property_iterator_test.cc +++ b/test/cpp/common/auth_property_iterator_test.cc @@ -19,10 +19,10 @@ #include #include +#include "gtest/gtest.h" #include "src/core/transport/auth_context.h" #include "src/cpp/common/secure_auth_context.h" #include "test/cpp/util/string_ref_helper.h" -#include "gtest/gtest.h" using ::grpc::testing::ToString; diff --git a/test/cpp/common/channel_arguments_test.cc b/test/cpp/common/channel_arguments_test.cc index 0c4db9781fbb6..3d533d34830f0 100644 --- a/test/cpp/common/channel_arguments_test.cc +++ b/test/cpp/common/channel_arguments_test.cc @@ -20,11 +20,11 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/socket_mutator.h" #include "src/core/util/useful.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc { namespace testing { diff --git a/test/cpp/common/secure_auth_context_test.cc b/test/cpp/common/secure_auth_context_test.cc index cb4d85f18d85e..5cff774abe6fe 100644 --- a/test/cpp/common/secure_auth_context_test.cc +++ b/test/cpp/common/secure_auth_context_test.cc @@ -21,9 +21,9 @@ #include #include +#include "gtest/gtest.h" #include "src/core/transport/auth_context.h" #include "test/cpp/util/string_ref_helper.h" -#include "gtest/gtest.h" using grpc::testing::ToString; diff --git a/test/cpp/common/time_jump_test.cc b/test/cpp/common/time_jump_test.cc index 0be99c7013ed3..c40e6cc5911e0 100644 --- a/test/cpp/common/time_jump_test.cc +++ b/test/cpp/common/time_jump_test.cc @@ -24,6 +24,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -32,10 +36,6 @@ #include "src/core/util/crash.h" #include "src/core/util/sync.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/time/time.h" extern char** environ; diff --git a/test/cpp/common/timer_test.cc b/test/cpp/common/timer_test.cc index 600b3e77f4620..435602604186f 100644 --- a/test/cpp/common/timer_test.cc +++ b/test/cpp/common/timer_test.cc @@ -20,6 +20,9 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/closure.h" #include "src/core/lib/iomgr/error.h" #include "src/core/lib/iomgr/exec_ctx.h" @@ -27,9 +30,6 @@ #include "src/core/util/crash.h" #include "src/core/util/time.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" #ifdef GRPC_POSIX_SOCKET_EV #include "src/core/lib/iomgr/ev_posix.h" diff --git a/test/cpp/end2end/admin_services_end2end_test.cc b/test/cpp/end2end/admin_services_end2end_test.cc index 772ccbfa6d54b..5b8de1aeee51c 100644 --- a/test/cpp/end2end/admin_services_end2end_test.cc +++ b/test/cpp/end2end/admin_services_end2end_test.cc @@ -20,12 +20,12 @@ #include #include +#include "absl/strings/str_cat.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/str_cat.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/async_end2end_test.cc b/test/cpp/end2end/async_end2end_test.cc index 9e80f6343e3a4..bdbdaeb2e3a0c 100644 --- a/test/cpp/end2end/async_end2end_test.cc +++ b/test/cpp/end2end/async_end2end_test.cc @@ -31,6 +31,11 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/memory/memory.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/config_vars.h" #include "src/core/lib/iomgr/port.h" @@ -44,11 +49,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/util/string_ref_helper.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" #ifdef GRPC_POSIX_SOCKET_EV #include "src/core/lib/iomgr/ev_posix.h" diff --git a/test/cpp/end2end/cfstream_test.cc b/test/cpp/end2end/cfstream_test.cc index 897e7c96befa8..82ef0fa528bac 100644 --- a/test/cpp/end2end/cfstream_test.cc +++ b/test/cpp/end2end/cfstream_test.cc @@ -34,6 +34,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/backoff.h" #include "src/core/util/crash.h" @@ -43,9 +46,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/test_credentials_provider.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" #ifdef GRPC_CFSTREAM using grpc::ClientAsyncResponseReader; diff --git a/test/cpp/end2end/channelz_service_test.cc b/test/cpp/end2end/channelz_service_test.cc index 6590d4a7c43c5..cd6f78b9ce7ca 100644 --- a/test/cpp/end2end/channelz_service_test.cc +++ b/test/cpp/end2end/channelz_service_test.cc @@ -29,6 +29,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/memory/memory.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/credentials/transport/tls/grpc_tls_certificate_provider.h" #include "src/core/credentials/transport/tls/ssl_utils.h" #include "src/core/lib/event_engine/default_event_engine.h" @@ -45,10 +49,6 @@ #include "test/core/test_util/tls_utils.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/test_credentials_provider.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/memory/memory.h" using grpc::channelz::v1::Address; using grpc::channelz::v1::GetChannelRequest; @@ -128,16 +128,11 @@ enum class CredentialsType { kMtls = 2, }; -constexpr char kCaCertPath[] = - "src/core/tsi/test_creds/ca.pem"; -constexpr char kServerCertPath[] = - "src/core/tsi/test_creds/server1.pem"; -constexpr char kServerKeyPath[] = - "src/core/tsi/test_creds/server1.key"; -constexpr char kClientCertPath[] = - "src/core/tsi/test_creds/client.pem"; -constexpr char kClientKeyPath[] = - "src/core/tsi/test_creds/client.key"; +constexpr char kCaCertPath[] = "src/core/tsi/test_creds/ca.pem"; +constexpr char kServerCertPath[] = "src/core/tsi/test_creds/server1.pem"; +constexpr char kServerKeyPath[] = "src/core/tsi/test_creds/server1.key"; +constexpr char kClientCertPath[] = "src/core/tsi/test_creds/client.pem"; +constexpr char kClientKeyPath[] = "src/core/tsi/test_creds/client.key"; std::shared_ptr GetChannelCredentials( CredentialsType type, ChannelArguments* args) { diff --git a/test/cpp/end2end/client_callback_end2end_test.cc b/test/cpp/end2end/client_callback_end2end_test.cc index 614e743107fce..1e19bb6f11a64 100644 --- a/test/cpp/end2end/client_callback_end2end_test.cc +++ b/test/cpp/end2end/client_callback_end2end_test.cc @@ -33,6 +33,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/memory/memory.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/iomgr.h" #include "src/core/util/env.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" @@ -43,10 +47,6 @@ #include "test/cpp/util/byte_buffer_proto_helper.h" #include "test/cpp/util/string_ref_helper.h" #include "test/cpp/util/test_credentials_provider.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/client_crash_test.cc b/test/cpp/end2end/client_crash_test.cc index 10522a646c055..1da52fd067246 100644 --- a/test/cpp/end2end/client_crash_test.cc +++ b/test/cpp/end2end/client_crash_test.cc @@ -25,15 +25,15 @@ #include #include +#include "absl/log/check.h" +#include "absl/memory/memory.h" +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/subprocess.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/memory/memory.h" static std::string g_root; diff --git a/test/cpp/end2end/client_crash_test_server.cc b/test/cpp/end2end/client_crash_test_server.cc index 944c3067d9eaa..517889f4f685b 100644 --- a/test/cpp/end2end/client_crash_test_server.cc +++ b/test/cpp/end2end/client_crash_test_server.cc @@ -24,11 +24,11 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/log/log.h" ABSL_FLAG(std::string, address, "", "Address to bind to"); diff --git a/test/cpp/end2end/client_fork_test.cc b/test/cpp/end2end/client_fork_test.cc index 03dc4e33a2318..065f0015c482e 100644 --- a/test/cpp/end2end/client_fork_test.cc +++ b/test/cpp/end2end/client_fork_test.cc @@ -30,14 +30,14 @@ int main(int /* argc */, char** /* argv */) { return 0; } #include #include +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "gtest/gtest.h" #include "src/core/util/fork.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/client_interceptors_end2end_test.cc b/test/cpp/end2end/client_interceptors_end2end_test.cc index fc747be9ae7a0..b28053f1d0e4d 100644 --- a/test/cpp/end2end/client_interceptors_end2end_test.cc +++ b/test/cpp/end2end/client_interceptors_end2end_test.cc @@ -31,6 +31,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/memory/memory.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/port.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" @@ -39,9 +42,6 @@ #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/byte_buffer_proto_helper.h" #include "test/cpp/util/string_ref_helper.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/memory/memory.h" #ifdef GRPC_POSIX_SOCKET #include diff --git a/test/cpp/end2end/client_lb_end2end_test.cc b/test/cpp/end2end/client_lb_end2end_test.cc index eb80cbdf36849..e6bd924d5f864 100644 --- a/test/cpp/end2end/client_lb_end2end_test.cc +++ b/test/cpp/end2end/client_lb_end2end_test.cc @@ -38,6 +38,15 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/memory/memory.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/client_channel/config_selector.h" #include "src/core/client_channel/global_subchannel_pool.h" @@ -70,15 +79,6 @@ #include "test/cpp/end2end/connection_attempt_injector.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/credentials.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" #include "xds/data/orca/v3/orca_load_report.pb.h" namespace grpc { diff --git a/test/cpp/end2end/connection_attempt_injector.cc b/test/cpp/end2end/connection_attempt_injector.cc index 9bba9b518505f..f28eecae69461 100644 --- a/test/cpp/end2end/connection_attempt_injector.cc +++ b/test/cpp/end2end/connection_attempt_injector.cc @@ -16,14 +16,14 @@ #include -#include "src/core/lib/address_utils/sockaddr_utils.h" -#include "src/core/lib/event_engine/default_event_engine.h" -#include "src/core/lib/iomgr/exec_ctx.h" -#include "src/core/util/sync.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/memory/memory.h" #include "absl/utility/utility.h" +#include "src/core/lib/address_utils/sockaddr_utils.h" +#include "src/core/lib/event_engine/default_event_engine.h" +#include "src/core/lib/iomgr/exec_ctx.h" +#include "src/core/util/sync.h" // defined in tcp_client.cc extern grpc_tcp_client_vtable* grpc_tcp_client_impl; diff --git a/test/cpp/end2end/context_allocator_end2end_test.cc b/test/cpp/end2end/context_allocator_end2end_test.cc index a3297a8f0daa9..5184b4bfcfd6e 100644 --- a/test/cpp/end2end/context_allocator_end2end_test.cc +++ b/test/cpp/end2end/context_allocator_end2end_test.cc @@ -34,15 +34,15 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/iomgr.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/test_credentials_provider.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/crl_provider_test.cc b/test/cpp/end2end/crl_provider_test.cc index e79d305d85cdc..c0c4c3d78b7bf 100644 --- a/test/cpp/end2end/crl_provider_test.cc +++ b/test/cpp/end2end/crl_provider_test.cc @@ -34,19 +34,19 @@ #include #include -#include "src/cpp/client/secure_credentials.h" -#include "src/proto/grpc/testing/echo_messages.pb.h" -#include "test/core/test_util/port.h" -#include "test/core/test_util/test_config.h" -#include "test/core/test_util/tls_utils.h" -#include "test/cpp/end2end/test_service_impl.h" -#include "gtest/gtest.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" #include "absl/synchronization/notification.h" +#include "gtest/gtest.h" +#include "src/cpp/client/secure_credentials.h" +#include "src/proto/grpc/testing/echo_messages.pb.h" +#include "test/core/test_util/port.h" +#include "test/core/test_util/test_config.h" +#include "test/core/test_util/tls_utils.h" +#include "test/cpp/end2end/test_service_impl.h" // CRL Providers not supported for <1.1 #if OPENSSL_VERSION_NUMBER >= 0x10100000 @@ -54,18 +54,12 @@ namespace grpc { namespace testing { namespace { -const char* kRootPath = - "test/core/tsi/test_creds/crl_data/ca.pem"; -const char* kRevokedKeyPath = - "test/core/tsi/test_creds/crl_data/revoked.key"; -const char* kRevokedCertPath = - "test/core/tsi/test_creds/crl_data/revoked.pem"; -const char* kValidKeyPath = - "test/core/tsi/test_creds/crl_data/valid.key"; -const char* kValidCertPath = - "test/core/tsi/test_creds/crl_data/valid.pem"; -const char* kRootCrlPath = - "test/core/tsi/test_creds/crl_data/crls/current.crl"; +const char* kRootPath = "test/core/tsi/test_creds/crl_data/ca.pem"; +const char* kRevokedKeyPath = "test/core/tsi/test_creds/crl_data/revoked.key"; +const char* kRevokedCertPath = "test/core/tsi/test_creds/crl_data/revoked.pem"; +const char* kValidKeyPath = "test/core/tsi/test_creds/crl_data/valid.key"; +const char* kValidCertPath = "test/core/tsi/test_creds/crl_data/valid.pem"; +const char* kRootCrlPath = "test/core/tsi/test_creds/crl_data/crls/current.crl"; const char* kCrlDirectoryPath = "test/core/tsi/test_creds/crl_data/crl_provider_test_dir/"; constexpr char kMessage[] = "Hello"; diff --git a/test/cpp/end2end/delegating_channel_test.cc b/test/cpp/end2end/delegating_channel_test.cc index 0baf66bf40708..a4b6aeeaa8405 100644 --- a/test/cpp/end2end/delegating_channel_test.cc +++ b/test/cpp/end2end/delegating_channel_test.cc @@ -30,13 +30,13 @@ #include #include +#include "gtest/gtest.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/byte_buffer_proto_helper.h" #include "test/cpp/util/string_ref_helper.h" -#include "gtest/gtest.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/end2end_test.cc b/test/cpp/end2end/end2end_test.cc index 5a861d5a5fec6..57066b9ef9b2b 100644 --- a/test/cpp/end2end/end2end_test.cc +++ b/test/cpp/end2end/end2end_test.cc @@ -35,6 +35,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/memory/memory.h" +#include "absl/strings/ascii.h" +#include "absl/strings/match.h" +#include "absl/strings/str_format.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/config_vars.h" #include "src/core/credentials/call/call_credentials.h" @@ -50,12 +56,6 @@ #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/string_ref_helper.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" -#include "absl/strings/ascii.h" -#include "absl/strings/match.h" -#include "absl/strings/str_format.h" #ifdef GRPC_POSIX_SOCKET_EV #include "src/core/lib/iomgr/ev_posix.h" diff --git a/test/cpp/end2end/exception_test.cc b/test/cpp/end2end/exception_test.cc index 2a3ccbc526cf0..13deccc0258bf 100644 --- a/test/cpp/end2end/exception_test.cc +++ b/test/cpp/end2end/exception_test.cc @@ -26,9 +26,9 @@ #include #include +#include "gtest/gtest.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/flaky_network_test.cc b/test/cpp/end2end/flaky_network_test.cc index d52f9cffaa17f..564a9047080f5 100644 --- a/test/cpp/end2end/flaky_network_test.cc +++ b/test/cpp/end2end/flaky_network_test.cc @@ -36,6 +36,9 @@ #include #include +#include "absl/log/log.h" +#include "absl/memory/memory.h" +#include "gtest/gtest.h" #include "src/core/util/backoff.h" #include "src/core/util/crash.h" #include "src/core/util/env.h" @@ -44,9 +47,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/test_credentials_provider.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" #ifdef GPR_LINUX diff --git a/test/cpp/end2end/generic_end2end_test.cc b/test/cpp/end2end/generic_end2end_test.cc index 28c15c1145aa3..6c780952ab03c 100644 --- a/test/cpp/end2end/generic_end2end_test.cc +++ b/test/cpp/end2end/generic_end2end_test.cc @@ -32,12 +32,12 @@ #include #include +#include "absl/memory/memory.h" +#include "gtest/gtest.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/byte_buffer_proto_helper.h" -#include "gtest/gtest.h" -#include "absl/memory/memory.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/grpc_authz_end2end_test.cc b/test/cpp/end2end/grpc_authz_end2end_test.cc index 3f966b5e8eabb..4edc73128941d 100644 --- a/test/cpp/end2end/grpc_authz_end2end_test.cc +++ b/test/cpp/end2end/grpc_authz_end2end_test.cc @@ -22,6 +22,8 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "src/core/lib/security/authorization/audit_logging.h" #include "src/core/lib/security/authorization/grpc_authorization_policy_provider.h" @@ -33,19 +35,14 @@ #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" #include "test/cpp/end2end/test_service_impl.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc { namespace testing { namespace { -constexpr char kCaCertPath[] = - "src/core/tsi/test_creds/ca.pem"; -constexpr char kServerCertPath[] = - "src/core/tsi/test_creds/server1.pem"; -constexpr char kServerKeyPath[] = - "src/core/tsi/test_creds/server1.key"; +constexpr char kCaCertPath[] = "src/core/tsi/test_creds/ca.pem"; +constexpr char kServerCertPath[] = "src/core/tsi/test_creds/server1.pem"; +constexpr char kServerKeyPath[] = "src/core/tsi/test_creds/server1.key"; constexpr char kClientCertPath[] = "src/core/tsi/test_creds/client-with-spiffe.pem"; constexpr char kClientKeyPath[] = diff --git a/test/cpp/end2end/grpclb_end2end_test.cc b/test/cpp/end2end/grpclb_end2end_test.cc index 6b86c2c23c940..4004204866d8a 100644 --- a/test/cpp/end2end/grpclb_end2end_test.cc +++ b/test/cpp/end2end/grpclb_end2end_test.cc @@ -32,6 +32,16 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/memory/memory.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/synchronization/notification.h" +#include "absl/types/span.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/config_vars.h" #include "src/core/credentials/transport/fake/fake_credentials.h" @@ -59,16 +69,6 @@ #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/credentials.h" #include "test/cpp/util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/cleanup/cleanup.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/synchronization/notification.h" -#include "absl/types/span.h" // TODO(dgq): Other scenarios in need of testing: // - Send a serverlist with faulty ip:port addresses (port > 2^16, etc). diff --git a/test/cpp/end2end/health_service_end2end_test.cc b/test/cpp/end2end/health_service_end2end_test.cc index d56bf872e7491..713130576eacd 100644 --- a/test/cpp/end2end/health_service_end2end_test.cc +++ b/test/cpp/end2end/health_service_end2end_test.cc @@ -31,6 +31,7 @@ #include #include +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/proto/grpc/health/v1/health.grpc.pb.h" #include "src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.h" @@ -39,7 +40,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_health_check_service_impl.h" #include "test/cpp/end2end/test_service_impl.h" -#include "gtest/gtest.h" using grpc::health::v1::Health; using grpc::health::v1::HealthCheckRequest; diff --git a/test/cpp/end2end/hybrid_end2end_test.cc b/test/cpp/end2end/hybrid_end2end_test.cc index 941686bbf011a..7a5c71e2106c8 100644 --- a/test/cpp/end2end/hybrid_end2end_test.cc +++ b/test/cpp/end2end/hybrid_end2end_test.cc @@ -28,6 +28,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/iomgr.h" #include "src/core/util/env.h" #include "src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.h" @@ -36,9 +39,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/byte_buffer_proto_helper.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/interceptors_util.cc b/test/cpp/end2end/interceptors_util.cc index f9f4418f78df5..eb0070bc0e714 100644 --- a/test/cpp/end2end/interceptors_util.cc +++ b/test/cpp/end2end/interceptors_util.cc @@ -18,9 +18,9 @@ #include "test/cpp/end2end/interceptors_util.h" -#include "test/core/test_util/test_config.h" #include "absl/log/check.h" #include "absl/memory/memory.h" +#include "test/core/test_util/test_config.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/interceptors_util.h b/test/cpp/end2end/interceptors_util.h index 945bf1583b6cc..17eca5fe28cff 100644 --- a/test/cpp/end2end/interceptors_util.h +++ b/test/cpp/end2end/interceptors_util.h @@ -23,12 +23,12 @@ #include +#include "absl/log/check.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/cpp/util/string_ref_helper.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/strings/str_format.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/message_allocator_end2end_test.cc b/test/cpp/end2end/message_allocator_end2end_test.cc index 8961f35ec62b0..44b289e7d8f59 100644 --- a/test/cpp/end2end/message_allocator_end2end_test.cc +++ b/test/cpp/end2end/message_allocator_end2end_test.cc @@ -16,6 +16,7 @@ // // +#include #include #include #include @@ -34,15 +35,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/iomgr.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/test_credentials_provider.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include namespace grpc { namespace testing { diff --git a/test/cpp/end2end/mock_test.cc b/test/cpp/end2end/mock_test.cc index c7033dbd10f5b..44206951b0d3d 100644 --- a/test/cpp/end2end/mock_test.cc +++ b/test/cpp/end2end/mock_test.cc @@ -31,15 +31,15 @@ #include #include +#include "absl/log/log.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "src/proto/grpc/testing/echo_mock.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" using std::vector; using ::testing::_; diff --git a/test/cpp/end2end/nonblocking_test.cc b/test/cpp/end2end/nonblocking_test.cc index 72c0eeacc3305..55412cca98b3d 100644 --- a/test/cpp/end2end/nonblocking_test.cc +++ b/test/cpp/end2end/nonblocking_test.cc @@ -25,12 +25,12 @@ #include +#include "absl/log/check.h" +#include "absl/memory/memory.h" #include "src/core/lib/iomgr/port.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" -#include "absl/memory/memory.h" #ifdef GRPC_POSIX_SOCKET #include "src/core/lib/iomgr/ev_posix.h" diff --git a/test/cpp/end2end/orca_service_end2end_test.cc b/test/cpp/end2end/orca_service_end2end_test.cc index 2f4e36c36c746..5fe842a1f59f5 100644 --- a/test/cpp/end2end/orca_service_end2end_test.cc +++ b/test/cpp/end2end/orca_service_end2end_test.cc @@ -31,17 +31,17 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/time/time.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/util/notification.h" #include "src/core/util/time.h" #include "src/proto/grpc/testing/xds/v3/orca_service.grpc.pb.h" #include "src/proto/grpc/testing/xds/v3/orca_service.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/time/time.h" using xds::data::orca::v3::OrcaLoadReport; using xds::service::orca::v3::OpenRcaService; diff --git a/test/cpp/end2end/port_sharing_end2end_test.cc b/test/cpp/end2end/port_sharing_end2end_test.cc index afde991072272..bdec8d55baf6d 100644 --- a/test/cpp/end2end/port_sharing_end2end_test.cc +++ b/test/cpp/end2end/port_sharing_end2end_test.cc @@ -31,6 +31,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/endpoint.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/iomgr/pollset.h" @@ -46,9 +49,6 @@ #include "test/core/test_util/test_tcp_server.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/test_credentials_provider.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" #ifdef GRPC_POSIX_SOCKET_TCP_SERVER diff --git a/test/cpp/end2end/proto_server_reflection_test.cc b/test/cpp/end2end/proto_server_reflection_test.cc index 8676aae1a084b..686d9eed1b234 100644 --- a/test/cpp/end2end/proto_server_reflection_test.cc +++ b/test/cpp/end2end/proto_server_reflection_test.cc @@ -31,6 +31,7 @@ #include #include +#include "gtest/gtest.h" #include "src/proto/grpc/reflection/v1/reflection.grpc.pb.h" #include "src/proto/grpc/reflection/v1/reflection.pb.h" #include "src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h" @@ -39,7 +40,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/proto_reflection_descriptor_database.h" -#include "gtest/gtest.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/raw_end2end_test.cc b/test/cpp/end2end/raw_end2end_test.cc index dd40608859da8..2396b7e36d4ae 100644 --- a/test/cpp/end2end/raw_end2end_test.cc +++ b/test/cpp/end2end/raw_end2end_test.cc @@ -30,6 +30,8 @@ #include #include +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/port.h" #include "src/core/util/crash.h" #include "src/core/util/env.h" @@ -39,8 +41,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/util/byte_buffer_proto_helper.h" #include "test/cpp/util/string_ref_helper.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" using grpc::testing::EchoRequest; using grpc::testing::EchoResponse; diff --git a/test/cpp/end2end/resource_quota_end2end_stress_test.cc b/test/cpp/end2end/resource_quota_end2end_stress_test.cc index e1c83e4705d90..99f6ea5d185e6 100644 --- a/test/cpp/end2end/resource_quota_end2end_stress_test.cc +++ b/test/cpp/end2end/resource_quota_end2end_stress_test.cc @@ -24,6 +24,10 @@ #include #include +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/time/time.h" +#include "gtest/gtest.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "src/core/lib/event_engine/tcp_socket_utils.h" #include "src/core/lib/experiments/config.h" @@ -33,10 +37,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/credentials.h" -#include "gtest/gtest.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/time/time.h" // IWYU pragma: no_include diff --git a/test/cpp/end2end/rls_end2end_test.cc b/test/cpp/end2end/rls_end2end_test.cc index 14243f428af3a..7f40455299d5f 100644 --- a/test/cpp/end2end/rls_end2end_test.cc +++ b/test/cpp/end2end/rls_end2end_test.cc @@ -34,6 +34,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/config_vars.h" #include "src/core/credentials/transport/fake/fake_credentials.h" @@ -64,12 +70,6 @@ #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/credentials.h" #include "test/cpp/util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" using ::grpc::lookup::v1::RouteLookupRequest; diff --git a/test/cpp/end2end/rls_server.cc b/test/cpp/end2end/rls_server.cc index a4e7bd062b295..22fc10ccad0ba 100644 --- a/test/cpp/end2end/rls_server.cc +++ b/test/cpp/end2end/rls_server.cc @@ -16,11 +16,11 @@ #include "test/cpp/end2end/rls_server.h" +#include "absl/log/log.h" +#include "gmock/gmock.h" #include "src/proto/grpc/lookup/v1/rls.grpc.pb.h" #include "src/proto/grpc/lookup/v1/rls.pb.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "absl/log/log.h" using ::grpc::lookup::v1::RouteLookupRequest; using ::grpc::lookup::v1::RouteLookupResponse; diff --git a/test/cpp/end2end/server_builder_plugin_test.cc b/test/cpp/end2end/server_builder_plugin_test.cc index 76b33a95edd35..6276212d4c7d5 100644 --- a/test/cpp/end2end/server_builder_plugin_test.cc +++ b/test/cpp/end2end/server_builder_plugin_test.cc @@ -31,12 +31,12 @@ #include +#include "absl/memory/memory.h" +#include "gtest/gtest.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" -#include "gtest/gtest.h" -#include "absl/memory/memory.h" #define PLUGIN_NAME "TestServerBuilderPlugin" diff --git a/test/cpp/end2end/server_crash_test.cc b/test/cpp/end2end/server_crash_test.cc index c0d3be939c3c8..33fc4bce64443 100644 --- a/test/cpp/end2end/server_crash_test.cc +++ b/test/cpp/end2end/server_crash_test.cc @@ -25,16 +25,16 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/memory/memory.h" +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/subprocess.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" using grpc::testing::EchoRequest; using grpc::testing::EchoResponse; diff --git a/test/cpp/end2end/server_crash_test_client.cc b/test/cpp/end2end/server_crash_test_client.cc index 51bf6fb335cf1..ac1918fa6d737 100644 --- a/test/cpp/end2end/server_crash_test_client.cc +++ b/test/cpp/end2end/server_crash_test_client.cc @@ -25,12 +25,12 @@ #include #include -#include "src/core/util/crash.h" -#include "src/proto/grpc/testing/echo.grpc.pb.h" -#include "test/cpp/util/test_config.h" #include "absl/flags/flag.h" #include "absl/log/check.h" #include "absl/log/log.h" +#include "src/core/util/crash.h" +#include "src/proto/grpc/testing/echo.grpc.pb.h" +#include "test/cpp/util/test_config.h" ABSL_FLAG(std::string, address, "", "Address to connect to"); ABSL_FLAG(std::string, mode, "", "Test mode to use"); diff --git a/test/cpp/end2end/server_early_return_test.cc b/test/cpp/end2end/server_early_return_test.cc index b64ec10fc2c74..fdaf415960fd8 100644 --- a/test/cpp/end2end/server_early_return_test.cc +++ b/test/cpp/end2end/server_early_return_test.cc @@ -28,12 +28,12 @@ #include #include +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/string_ref_helper.h" -#include "gtest/gtest.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/server_interceptors_end2end_test.cc b/test/cpp/end2end/server_interceptors_end2end_test.cc index d79c9f556db13..ee144a98da3eb 100644 --- a/test/cpp/end2end/server_interceptors_end2end_test.cc +++ b/test/cpp/end2end/server_interceptors_end2end_test.cc @@ -29,15 +29,15 @@ #include #include +#include "absl/memory/memory.h" +#include "absl/strings/match.h" +#include "gtest/gtest.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/interceptors_util.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/byte_buffer_proto_helper.h" -#include "gtest/gtest.h" -#include "absl/memory/memory.h" -#include "absl/strings/match.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/server_load_reporting_end2end_test.cc b/test/cpp/end2end/server_load_reporting_end2end_test.cc index 5852403bf46be..994539e301b1f 100644 --- a/test/cpp/end2end/server_load_reporting_end2end_test.cc +++ b/test/cpp/end2end/server_load_reporting_end2end_test.cc @@ -25,6 +25,9 @@ #include +#include "absl/log/log.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/config_vars.h" #include "src/core/util/crash.h" @@ -32,9 +35,6 @@ #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/service_config_end2end_test.cc b/test/cpp/end2end/service_config_end2end_test.cc index 705c44aeacf27..f617b81e9421b 100644 --- a/test/cpp/end2end/service_config_end2end_test.cc +++ b/test/cpp/end2end/service_config_end2end_test.cc @@ -37,6 +37,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/memory/memory.h" +#include "absl/strings/str_cat.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/client_channel/global_subchannel_pool.h" #include "src/core/config/config_vars.h" @@ -59,12 +65,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/credentials.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" -#include "absl/strings/str_cat.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/shutdown_test.cc b/test/cpp/end2end/shutdown_test.cc index f9a609ddb7c09..80c6cfe46419b 100644 --- a/test/cpp/end2end/shutdown_test.cc +++ b/test/cpp/end2end/shutdown_test.cc @@ -27,15 +27,15 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/core/util/env.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/test_credentials_provider.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/ssl_credentials_test.cc b/test/cpp/end2end/ssl_credentials_test.cc index 494e196d03d04..575535ab2cf61 100644 --- a/test/cpp/end2end/ssl_credentials_test.cc +++ b/test/cpp/end2end/ssl_credentials_test.cc @@ -25,29 +25,24 @@ #include +#include "absl/log/log.h" +#include "absl/synchronization/notification.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" #include "test/cpp/end2end/test_service_impl.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/synchronization/notification.h" namespace grpc { namespace testing { namespace { -constexpr char kCaCertPath[] = - "src/core/tsi/test_creds/ca.pem"; -constexpr char kServerCertPath[] = - "src/core/tsi/test_creds/server1.pem"; -constexpr char kServerKeyPath[] = - "src/core/tsi/test_creds/server1.key"; -constexpr char kClientCertPath[] = - "src/core/tsi/test_creds/client.pem"; -constexpr char kClientKeyPath[] = - "src/core/tsi/test_creds/client.key"; +constexpr char kCaCertPath[] = "src/core/tsi/test_creds/ca.pem"; +constexpr char kServerCertPath[] = "src/core/tsi/test_creds/server1.pem"; +constexpr char kServerKeyPath[] = "src/core/tsi/test_creds/server1.key"; +constexpr char kClientCertPath[] = "src/core/tsi/test_creds/client.pem"; +constexpr char kClientKeyPath[] = "src/core/tsi/test_creds/client.key"; constexpr char kMessage[] = "Hello"; class SslCredentialsTest : public ::testing::Test { diff --git a/test/cpp/end2end/streaming_throughput_test.cc b/test/cpp/end2end/streaming_throughput_test.cc index a02257981a7ab..f6c5ba4e3e121 100644 --- a/test/cpp/end2end/streaming_throughput_test.cc +++ b/test/cpp/end2end/streaming_throughput_test.cc @@ -32,13 +32,13 @@ #include #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" using grpc::testing::EchoRequest; using grpc::testing::EchoResponse; diff --git a/test/cpp/end2end/test_service_impl.cc b/test/cpp/end2end/test_service_impl.cc index 5c4f10d3abbe0..1c8e0c80ce65f 100644 --- a/test/cpp/end2end/test_service_impl.cc +++ b/test/cpp/end2end/test_service_impl.cc @@ -25,13 +25,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/core/util/notification.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/cpp/util/string_ref_helper.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" using std::chrono::system_clock; diff --git a/test/cpp/end2end/test_service_impl.h b/test/cpp/end2end/test_service_impl.h index cbd9fa4edbb92..691a39ba8df28 100644 --- a/test/cpp/end2end/test_service_impl.h +++ b/test/cpp/end2end/test_service_impl.h @@ -30,13 +30,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/string_ref_helper.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/thread_stress_test.cc b/test/cpp/end2end/thread_stress_test.cc index 3f3da6b75ce38..067d7602fe7e6 100644 --- a/test/cpp/end2end/thread_stress_test.cc +++ b/test/cpp/end2end/thread_stress_test.cc @@ -31,13 +31,13 @@ #include #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/util/env.h" #include "src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" const int kNumThreads = 10; // Number of threads const int kNumAsyncSendThreads = 2; diff --git a/test/cpp/end2end/time_change_test.cc b/test/cpp/end2end/time_change_test.cc index 9f10040863ca1..8436eb3118cb7 100644 --- a/test/cpp/end2end/time_change_test.cc +++ b/test/cpp/end2end/time_change_test.cc @@ -28,6 +28,9 @@ #include +#include "absl/log/check.h" +#include "absl/memory/memory.h" +#include "gtest/gtest.h" #include "src/core/lib/iomgr/timer.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" @@ -35,9 +38,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/subprocess.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/memory/memory.h" static std::string g_root; diff --git a/test/cpp/end2end/tls_credentials_test.cc b/test/cpp/end2end/tls_credentials_test.cc index e93444962fc20..f6151c23951f0 100644 --- a/test/cpp/end2end/tls_credentials_test.cc +++ b/test/cpp/end2end/tls_credentials_test.cc @@ -26,14 +26,14 @@ #include +#include "absl/log/log.h" +#include "absl/synchronization/notification.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" #include "test/cpp/end2end/test_service_impl.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/synchronization/notification.h" namespace grpc { namespace testing { @@ -42,12 +42,9 @@ namespace { using ::grpc::experimental::ExternalCertificateVerifier; using ::grpc::experimental::TlsChannelCredentialsOptions; -constexpr char kCaCertPath[] = - "src/core/tsi/test_creds/ca.pem"; -constexpr char kServerCertPath[] = - "src/core/tsi/test_creds/server1.pem"; -constexpr char kServerKeyPath[] = - "src/core/tsi/test_creds/server1.key"; +constexpr char kCaCertPath[] = "src/core/tsi/test_creds/ca.pem"; +constexpr char kServerCertPath[] = "src/core/tsi/test_creds/server1.pem"; +constexpr char kServerKeyPath[] = "src/core/tsi/test_creds/server1.key"; constexpr char kMessage[] = "Hello"; class NoOpCertificateVerifier : public ExternalCertificateVerifier { diff --git a/test/cpp/end2end/tls_key_export_test.cc b/test/cpp/end2end/tls_key_export_test.cc index f604b565cbb8b..e3db9de2f5373 100644 --- a/test/cpp/end2end/tls_key_export_test.cc +++ b/test/cpp/end2end/tls_key_export_test.cc @@ -24,18 +24,18 @@ #include // NOLINT #include +#include "absl/log/check.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_split.h" +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/util/tmpfile.h" #include "src/cpp/client/secure_credentials.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/resolve_localhost_ip46.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_split.h" -#include "absl/strings/string_view.h" extern "C" { #include diff --git a/test/cpp/end2end/xds/xds_cluster_end2end_test.cc b/test/cpp/end2end/xds/xds_cluster_end2end_test.cc index 6335836fd1bc2..17af4ad9ad7ba 100644 --- a/test/cpp/end2end/xds/xds_cluster_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_cluster_end2end_test.cc @@ -17,6 +17,11 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/config_vars.h" #include "src/core/lib/address_utils/sockaddr_utils.h" @@ -26,11 +31,6 @@ #include "test/core/test_util/scoped_env_var.h" #include "test/cpp/end2end/connection_attempt_injector.h" #include "test/cpp/end2end/xds/xds_end2end_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/match.h" -#include "absl/strings/str_cat.h" #include "xds/data/orca/v3/orca_load_report.pb.h" namespace grpc { diff --git a/test/cpp/end2end/xds/xds_cluster_type_end2end_test.cc b/test/cpp/end2end/xds/xds_cluster_type_end2end_test.cc index f76aafeae5bd4..4f0af7ab94338 100644 --- a/test/cpp/end2end/xds/xds_cluster_type_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_cluster_type_end2end_test.cc @@ -17,6 +17,13 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "envoy/extensions/clusters/aggregate/v3/cluster.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/config_vars.h" #include "src/core/lib/address_utils/sockaddr_utils.h" @@ -28,13 +35,6 @@ #include "test/core/test_util/scoped_env_var.h" #include "test/cpp/end2end/connection_attempt_injector.h" #include "test/cpp/end2end/xds/xds_end2end_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "envoy/extensions/clusters/aggregate/v3/cluster.pb.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_core_end2end_test.cc b/test/cpp/end2end/xds/xds_core_end2end_test.cc index 38f2f86c306e9..c5738b4e69cd7 100644 --- a/test/cpp/end2end/xds/xds_core_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_core_end2end_test.cc @@ -19,6 +19,11 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "envoy/config/listener/v3/listener.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/config_vars.h" #include "test/core/test_util/fake_stats_plugin.h" @@ -26,11 +31,6 @@ #include "test/core/test_util/scoped_env_var.h" #include "test/cpp/end2end/xds/xds_end2end_test_lib.h" #include "test/cpp/end2end/xds/xds_server.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "envoy/config/listener/v3/listener.pb.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_credentials_end2end_test.cc b/test/cpp/end2end/xds/xds_credentials_end2end_test.cc index 89d8e50f83c09..e9c3edd081945 100644 --- a/test/cpp/end2end/xds/xds_credentials_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_credentials_end2end_test.cc @@ -19,12 +19,12 @@ #include #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/test_credentials_provider.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_csds_end2end_test.cc b/test/cpp/end2end/xds/xds_csds_end2end_test.cc index 4f026d1004df6..fa8cb46e2e196 100644 --- a/test/cpp/end2end/xds/xds_csds_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_csds_end2end_test.cc @@ -20,14 +20,6 @@ #include #include -#include "src/core/client_channel/backup_poller.h" -#include "src/core/config/config_vars.h" -#include "test/core/test_util/resolve_localhost_ip46.h" -#include "test/core/test_util/test_config.h" -#include "test/cpp/end2end/xds/xds_end2end_test_lib.h" -#include "test/cpp/util/credentials.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "absl/log/log.h" #include "absl/memory/memory.h" #include "absl/strings/str_cat.h" @@ -37,6 +29,14 @@ #include "envoy/config/listener/v3/listener.pb.h" #include "envoy/config/route/v3/route.pb.h" #include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" +#include "src/core/client_channel/backup_poller.h" +#include "src/core/config/config_vars.h" +#include "test/core/test_util/resolve_localhost_ip46.h" +#include "test/core/test_util/test_config.h" +#include "test/cpp/end2end/xds/xds_end2end_test_lib.h" +#include "test/cpp/util/credentials.h" #ifndef DISABLED_XDS_PROTO_IN_CC diff --git a/test/cpp/end2end/xds/xds_enabled_server_end2end_test.cc b/test/cpp/end2end/xds/xds_enabled_server_end2end_test.cc index 2edf629ad6f59..03301dcb749c7 100644 --- a/test/cpp/end2end/xds/xds_enabled_server_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_enabled_server_end2end_test.cc @@ -26,6 +26,13 @@ #include #include +#include "absl/strings/str_cat.h" +#include "absl/time/time.h" +#include "envoy/config/listener/v3/listener.pb.h" +#include "envoy/config/route/v3/route.pb.h" +#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/util/env.h" #include "src/core/util/time.h" @@ -35,13 +42,6 @@ #include "test/core/test_util/scoped_env_var.h" #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/xds/xds_end2end_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/str_cat.h" -#include "absl/time/time.h" -#include "envoy/config/listener/v3/listener.pb.h" -#include "envoy/config/route/v3/route.pb.h" -#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_end2end_test_lib.cc b/test/cpp/end2end/xds/xds_end2end_test_lib.cc index d14ca06496cda..44c912a58bf30 100644 --- a/test/cpp/end2end/xds/xds_end2end_test_lib.cc +++ b/test/cpp/end2end/xds/xds_end2end_test_lib.cc @@ -26,6 +26,16 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/memory/memory.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "absl/strings/string_view.h" +#include "envoy/extensions/filters/http/router/v3/router.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/ext/filters/http/server/http_server_filter.h" #include "src/core/server/server.h" #include "src/core/util/env.h" @@ -36,16 +46,6 @@ #include "test/core/test_util/tls_utils.h" #include "test/cpp/util/credentials.h" #include "test/cpp/util/tls_test_utils.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "absl/strings/string_view.h" -#include "envoy/extensions/filters/http/router/v3/router.pb.h" namespace grpc { namespace testing { @@ -371,8 +371,7 @@ void XdsEnd2endTest::RpcOptions::SetupRpc(ClientContext* context, // XdsEnd2endTest // -const char XdsEnd2endTest::kCaCertPath[] = - "src/core/tsi/test_creds/ca.pem"; +const char XdsEnd2endTest::kCaCertPath[] = "src/core/tsi/test_creds/ca.pem"; const char XdsEnd2endTest::kServerCertPath[] = "src/core/tsi/test_creds/server1.pem"; const char XdsEnd2endTest::kServerKeyPath[] = diff --git a/test/cpp/end2end/xds/xds_end2end_test_lib.h b/test/cpp/end2end/xds/xds_end2end_test_lib.h index 2b51f1f3c21f8..505f29073b8dc 100644 --- a/test/cpp/end2end/xds/xds_end2end_test_lib.h +++ b/test/cpp/end2end/xds/xds_end2end_test_lib.h @@ -31,6 +31,16 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/status/statusor.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "envoy/config/rbac/v3/rbac.pb.h" +#include "envoy/extensions/filters/http/rbac/v3/rbac.pb.h" +#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/credentials/transport/fake/fake_credentials.h" #include "src/core/credentials/transport/tls/ssl_utils.h" #include "src/core/lib/event_engine/default_event_engine.h" @@ -42,16 +52,6 @@ #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/end2end/xds/xds_server.h" #include "test/cpp/end2end/xds/xds_utils.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/status/statusor.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" -#include "envoy/config/rbac/v3/rbac.pb.h" -#include "envoy/extensions/filters/http/rbac/v3/rbac.pb.h" -#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" #include "xds/data/orca/v3/orca_load_report.pb.h" namespace grpc { diff --git a/test/cpp/end2end/xds/xds_fallback_end2end_test.cc b/test/cpp/end2end/xds/xds_fallback_end2end_test.cc index 49a51f6f90b18..e3c630f589059 100644 --- a/test/cpp/end2end/xds/xds_fallback_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_fallback_end2end_test.cc @@ -21,6 +21,11 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/strings/str_format.h" +#include "absl/strings/strip.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/proto/grpc/testing/echo.pb.h" #include "src/proto/grpc/testing/echo_messages.pb.h" @@ -28,11 +33,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/xds/xds_end2end_test_lib.h" #include "test/cpp/end2end/xds/xds_utils.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/cleanup/cleanup.h" -#include "absl/strings/str_format.h" -#include "absl/strings/strip.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_fault_injection_end2end_test.cc b/test/cpp/end2end/xds/xds_fault_injection_end2end_test.cc index f059839a4f45f..3a0f431f2ff01 100644 --- a/test/cpp/end2end/xds/xds_fault_injection_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_fault_injection_end2end_test.cc @@ -16,16 +16,16 @@ #include #include -#include "src/core/client_channel/backup_poller.h" -#include "src/core/config/config_vars.h" -#include "test/core/test_util/test_config.h" -#include "test/cpp/end2end/xds/xds_end2end_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "envoy/config/cluster/v3/cluster.pb.h" #include "envoy/extensions/filters/http/fault/v3/fault.pb.h" #include "envoy/extensions/filters/http/router/v3/router.pb.h" #include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" +#include "src/core/client_channel/backup_poller.h" +#include "src/core/config/config_vars.h" +#include "test/core/test_util/test_config.h" +#include "test/cpp/end2end/xds/xds_end2end_test_lib.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_gcp_authn_end2end_test.cc b/test/cpp/end2end/xds/xds_gcp_authn_end2end_test.cc index 6c25984179945..e5e469507d107 100644 --- a/test/cpp/end2end/xds/xds_gcp_authn_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_gcp_authn_end2end_test.cc @@ -19,18 +19,18 @@ #include #include +#include "envoy/config/cluster/v3/cluster.pb.h" +#include "envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.pb.h" +#include "envoy/extensions/filters/http/router/v3/router.pb.h" +#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/config_vars.h" #include "src/core/util/http_client/httpcli.h" #include "test/core/test_util/scoped_env_var.h" #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/xds/xds_end2end_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "envoy/config/cluster/v3/cluster.pb.h" -#include "envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.pb.h" -#include "envoy/extensions/filters/http/router/v3/router.pb.h" -#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_http_connect_end2end_test.cc b/test/cpp/end2end/xds/xds_http_connect_end2end_test.cc index b8035ae71f9e9..bb9d707c7e3d2 100644 --- a/test/cpp/end2end/xds/xds_http_connect_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_http_connect_end2end_test.cc @@ -17,19 +17,19 @@ #include #include +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "envoy/config/core/v3/address.pb.h" +#include "envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/config_vars.h" #include "test/core/end2end/fixtures/http_proxy_fixture.h" #include "test/core/test_util/resolve_localhost_ip46.h" #include "test/core/test_util/scoped_env_var.h" #include "test/cpp/end2end/xds/xds_end2end_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "envoy/config/core/v3/address.pb.h" -#include "envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.pb.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_outlier_detection_end2end_test.cc b/test/cpp/end2end/xds/xds_outlier_detection_end2end_test.cc index 74d159149094b..7c25647794ef4 100644 --- a/test/cpp/end2end/xds/xds_outlier_detection_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_outlier_detection_end2end_test.cc @@ -17,17 +17,17 @@ #include #include -#include "src/core/client_channel/backup_poller.h" -#include "src/core/config/config_vars.h" -#include "test/core/test_util/resolve_localhost_ip46.h" -#include "test/cpp/end2end/xds/xds_end2end_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "absl/log/check.h" #include "envoy/config/cluster/v3/cluster.pb.h" #include "envoy/config/cluster/v3/outlier_detection.pb.h" #include "envoy/extensions/filters/http/fault/v3/fault.pb.h" #include "envoy/extensions/filters/http/router/v3/router.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" +#include "src/core/client_channel/backup_poller.h" +#include "src/core/config/config_vars.h" +#include "test/core/test_util/resolve_localhost_ip46.h" +#include "test/cpp/end2end/xds/xds_end2end_test_lib.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_override_host_end2end_test.cc b/test/cpp/end2end/xds/xds_override_host_end2end_test.cc index 240caaa7bca7e..80aeac6036360 100644 --- a/test/cpp/end2end/xds/xds_override_host_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_override_host_end2end_test.cc @@ -15,18 +15,18 @@ #include #include -#include "src/core/config/config_vars.h" -#include "src/core/util/time.h" -#include "test/core/test_util/scoped_env_var.h" -#include "test/cpp/end2end/xds/xds_end2end_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "absl/log/log.h" #include "absl/strings/str_format.h" #include "absl/strings/str_join.h" #include "absl/strings/str_split.h" #include "envoy/extensions/filters/http/stateful_session/v3/stateful_session.pb.h" #include "envoy/extensions/http/stateful_session/cookie/v3/cookie.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" +#include "src/core/config/config_vars.h" +#include "src/core/util/time.h" +#include "test/core/test_util/scoped_env_var.h" +#include "test/cpp/end2end/xds/xds_end2end_test_lib.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_pick_first_end2end_test.cc b/test/cpp/end2end/xds/xds_pick_first_end2end_test.cc index ac31708f2e230..abd07728af202 100644 --- a/test/cpp/end2end/xds/xds_pick_first_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_pick_first_end2end_test.cc @@ -23,6 +23,11 @@ #include #include +#include "absl/strings/str_cat.h" +#include "envoy/config/cluster/v3/cluster.pb.h" +#include "envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/config_vars.h" #include "src/core/lib/address_utils/sockaddr_utils.h" @@ -32,11 +37,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/connection_attempt_injector.h" #include "test/cpp/end2end/xds/xds_end2end_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/str_cat.h" -#include "envoy/config/cluster/v3/cluster.pb.h" -#include "envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.pb.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_ring_hash_end2end_test.cc b/test/cpp/end2end/xds/xds_ring_hash_end2end_test.cc index cbbadc81dbec1..b42f1d15e969e 100644 --- a/test/cpp/end2end/xds/xds_ring_hash_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_ring_hash_end2end_test.cc @@ -18,6 +18,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "envoy/config/cluster/v3/cluster.pb.h" +#include "envoy/extensions/clusters/aggregate/v3/cluster.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/config_vars.h" #include "src/core/lib/address_utils/sockaddr_utils.h" @@ -28,14 +36,6 @@ #include "test/core/test_util/scoped_env_var.h" #include "test/cpp/end2end/connection_attempt_injector.h" #include "test/cpp/end2end/xds/xds_end2end_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "envoy/config/cluster/v3/cluster.pb.h" -#include "envoy/extensions/clusters/aggregate/v3/cluster.pb.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_rls_end2end_test.cc b/test/cpp/end2end/xds/xds_rls_end2end_test.cc index fcf724318e65c..8be35f6ad10ad 100644 --- a/test/cpp/end2end/xds/xds_rls_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_rls_end2end_test.cc @@ -15,6 +15,10 @@ #include +#include "absl/memory/memory.h" +#include "absl/strings/str_cat.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/config_vars.h" #include "src/core/util/env.h" @@ -23,10 +27,6 @@ #include "test/core/test_util/scoped_env_var.h" #include "test/cpp/end2end/rls_server.h" #include "test/cpp/end2end/xds/xds_end2end_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/memory/memory.h" -#include "absl/strings/str_cat.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_routing_end2end_test.cc b/test/cpp/end2end/xds/xds_routing_end2end_test.cc index 35606f84fb8c7..33e507d3024b7 100644 --- a/test/cpp/end2end/xds/xds_routing_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_routing_end2end_test.cc @@ -17,15 +17,15 @@ #include #include +#include "absl/log/log.h" +#include "envoy/extensions/filters/http/fault/v3/fault.pb.h" +#include "envoy/extensions/filters/http/router/v3/router.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/client_channel/backup_poller.h" #include "src/core/config/config_vars.h" #include "test/core/test_util/scoped_env_var.h" #include "test/cpp/end2end/xds/xds_end2end_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "envoy/extensions/filters/http/fault/v3/fault.pb.h" -#include "envoy/extensions/filters/http/router/v3/router.pb.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_security_end2end_test.cc b/test/cpp/end2end/xds/xds_security_end2end_test.cc index dd0352807991c..dd962cc6d864d 100644 --- a/test/cpp/end2end/xds/xds_security_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_security_end2end_test.cc @@ -34,6 +34,24 @@ #include #include +#include "absl/functional/function_ref.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "absl/time/time.h" +#include "envoy/config/cluster/v3/cluster.pb.h" +#include "envoy/config/endpoint/v3/endpoint.pb.h" +#include "envoy/config/listener/v3/listener.pb.h" +#include "envoy/config/route/v3/route.pb.h" +#include "envoy/extensions/clusters/aggregate/v3/cluster.pb.h" +#include "envoy/extensions/filters/http/rbac/v3/rbac.pb.h" +#include "envoy/extensions/filters/http/router/v3/router.pb.h" +#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" +#include "envoy/extensions/transport_sockets/tls/v3/tls.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/config/core_configuration.h" #include "src/core/credentials/transport/fake/fake_credentials.h" @@ -58,24 +76,6 @@ #include "test/cpp/end2end/xds/xds_end2end_test_lib.h" #include "test/cpp/util/test_config.h" #include "test/cpp/util/tls_test_utils.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/function_ref.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "absl/time/time.h" -#include "envoy/config/cluster/v3/cluster.pb.h" -#include "envoy/config/endpoint/v3/endpoint.pb.h" -#include "envoy/config/listener/v3/listener.pb.h" -#include "envoy/config/route/v3/route.pb.h" -#include "envoy/extensions/clusters/aggregate/v3/cluster.pb.h" -#include "envoy/extensions/filters/http/rbac/v3/rbac.pb.h" -#include "envoy/extensions/filters/http/router/v3/router.pb.h" -#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" -#include "envoy/extensions/transport_sockets/tls/v3/tls.pb.h" #include "xds/type/v3/typed_struct.pb.h" namespace grpc { @@ -107,14 +107,10 @@ using ::grpc_core::experimental::AuditLoggerRegistry; using ::grpc_core::testing::ScopedExperimentalEnvVar; using ::grpc_core::testing::TestAuditLoggerFactory; -constexpr char kClientCertPath[] = - "src/core/tsi/test_creds/client.pem"; -constexpr char kClientKeyPath[] = - "src/core/tsi/test_creds/client.key"; -constexpr char kBadClientCertPath[] = - "src/core/tsi/test_creds/badclient.pem"; -constexpr char kBadClientKeyPath[] = - "src/core/tsi/test_creds/badclient.key"; +constexpr char kClientCertPath[] = "src/core/tsi/test_creds/client.pem"; +constexpr char kClientKeyPath[] = "src/core/tsi/test_creds/client.key"; +constexpr char kBadClientCertPath[] = "src/core/tsi/test_creds/badclient.pem"; +constexpr char kBadClientKeyPath[] = "src/core/tsi/test_creds/badclient.key"; // Based on StaticDataCertificateProvider, but provides alternate certificates // if the certificate name is not empty. diff --git a/test/cpp/end2end/xds/xds_server.cc b/test/cpp/end2end/xds/xds_server.cc index b0010d8c2f31b..936d65c78a04e 100644 --- a/test/cpp/end2end/xds/xds_server.cc +++ b/test/cpp/end2end/xds/xds_server.cc @@ -23,14 +23,14 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/util/crash.h" #include "src/core/util/sync.h" #include "src/proto/grpc/testing/xds/v3/ads.grpc.pb.h" #include "src/proto/grpc/testing/xds/v3/discovery.pb.h" #include "src/proto/grpc/testing/xds/v3/lrs.grpc.pb.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_server.h b/test/cpp/end2end/xds/xds_server.h index 4181d7a441ed0..9c01fe46af851 100644 --- a/test/cpp/end2end/xds/xds_server.h +++ b/test/cpp/end2end/xds/xds_server.h @@ -26,6 +26,12 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "envoy/config/cluster/v3/cluster.pb.h" +#include "envoy/config/endpoint/v3/endpoint.pb.h" +#include "envoy/config/listener/v3/listener.pb.h" +#include "envoy/config/route/v3/route.pb.h" #include "src/core/lib/address_utils/parse_address.h" #include "src/core/util/crash.h" #include "src/core/util/sync.h" @@ -34,12 +40,6 @@ #include "src/proto/grpc/testing/xds/v3/lrs.grpc.pb.h" #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/counted_service.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "envoy/config/cluster/v3/cluster.pb.h" -#include "envoy/config/endpoint/v3/endpoint.pb.h" -#include "envoy/config/listener/v3/listener.pb.h" -#include "envoy/config/route/v3/route.pb.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_utils.cc b/test/cpp/end2end/xds/xds_utils.cc index 815b2d94ff720..421849a795936 100644 --- a/test/cpp/end2end/xds/xds_utils.cc +++ b/test/cpp/end2end/xds/xds_utils.cc @@ -26,14 +26,6 @@ #include #include -#include "src/core/ext/filters/http/server/http_server_filter.h" -#include "src/core/server/server.h" -#include "src/core/util/env.h" -#include "src/core/util/tmpfile.h" -#include "src/core/xds/grpc/xds_client_grpc.h" -#include "src/core/xds/xds_client/xds_channel_args.h" -#include "src/cpp/client/secure_credentials.h" -#include "test/core/test_util/resolve_localhost_ip46.h" #include "absl/memory/memory.h" #include "absl/strings/numbers.h" #include "absl/strings/str_cat.h" @@ -42,6 +34,14 @@ #include "absl/strings/str_replace.h" #include "absl/strings/string_view.h" #include "envoy/extensions/filters/http/router/v3/router.pb.h" +#include "src/core/ext/filters/http/server/http_server_filter.h" +#include "src/core/server/server.h" +#include "src/core/util/env.h" +#include "src/core/util/tmpfile.h" +#include "src/core/xds/grpc/xds_client_grpc.h" +#include "src/core/xds/xds_client/xds_channel_args.h" +#include "src/cpp/client/secure_credentials.h" +#include "test/core/test_util/resolve_localhost_ip46.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_utils.h b/test/cpp/end2end/xds/xds_utils.h index 1dcc5274c56bc..114edc0e3d1c6 100644 --- a/test/cpp/end2end/xds/xds_utils.h +++ b/test/cpp/end2end/xds/xds_utils.h @@ -19,13 +19,13 @@ #include #include -#include "test/cpp/end2end/xds/xds_server.h" #include "absl/strings/string_view.h" #include "envoy/config/cluster/v3/cluster.pb.h" #include "envoy/config/endpoint/v3/endpoint.pb.h" #include "envoy/config/listener/v3/listener.pb.h" #include "envoy/config/route/v3/route.pb.h" #include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" +#include "test/cpp/end2end/xds/xds_server.h" namespace grpc { namespace testing { diff --git a/test/cpp/end2end/xds/xds_wrr_end2end_test.cc b/test/cpp/end2end/xds/xds_wrr_end2end_test.cc index 649fdb0c0108d..30c75a22eea68 100644 --- a/test/cpp/end2end/xds/xds_wrr_end2end_test.cc +++ b/test/cpp/end2end/xds/xds_wrr_end2end_test.cc @@ -19,18 +19,18 @@ #include #include -#include "src/core/client_channel/backup_poller.h" -#include "src/core/config/config_vars.h" -#include "test/core/test_util/fake_stats_plugin.h" -#include "test/core/test_util/scoped_env_var.h" -#include "test/cpp/end2end/xds/xds_end2end_test_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" #include "absl/log/log.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.pb.h" #include "envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.pb.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" +#include "src/core/client_channel/backup_poller.h" +#include "src/core/config/config_vars.h" +#include "test/core/test_util/fake_stats_plugin.h" +#include "test/core/test_util/scoped_env_var.h" +#include "test/cpp/end2end/xds/xds_end2end_test_lib.h" namespace grpc { namespace testing { diff --git a/test/cpp/ext/chaotic_good_test.cc b/test/cpp/ext/chaotic_good_test.cc index d7a1546da1ebb..c7d7927354d74 100644 --- a/test/cpp/ext/chaotic_good_test.cc +++ b/test/cpp/ext/chaotic_good_test.cc @@ -16,8 +16,8 @@ #include -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc { namespace { diff --git a/test/cpp/ext/csm/csm_observability_test.cc b/test/cpp/ext/csm/csm_observability_test.cc index 087e230758c6f..ea113f5ca3e0b 100644 --- a/test/cpp/ext/csm/csm_observability_test.cc +++ b/test/cpp/ext/csm/csm_observability_test.cc @@ -21,11 +21,11 @@ #include #include +#include "google/cloud/opentelemetry/resource_detector.h" +#include "gtest/gtest.h" #include "opentelemetry/sdk/metrics/meter_provider.h" #include "src/core/xds/grpc/xds_enabled_server.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "google/cloud/opentelemetry/resource_detector.h" namespace grpc { namespace testing { diff --git a/test/cpp/ext/csm/metadata_exchange_test.cc b/test/cpp/ext/csm/metadata_exchange_test.cc index 0b00519ecc3c4..22728d651cb3f 100644 --- a/test/cpp/ext/csm/metadata_exchange_test.cc +++ b/test/cpp/ext/csm/metadata_exchange_test.cc @@ -21,6 +21,10 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "gmock/gmock.h" +#include "google/cloud/opentelemetry/resource_detector.h" +#include "gtest/gtest.h" #include "opentelemetry/metrics/provider.h" #include "opentelemetry/sdk/metrics/meter_provider.h" #include "opentelemetry/sdk/metrics/metric_reader.h" @@ -33,10 +37,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/ext/otel/otel_test_library.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" -#include "google/cloud/opentelemetry/resource_detector.h" namespace grpc { namespace testing { diff --git a/test/cpp/ext/filters/census/constant_labels_test.cc b/test/cpp/ext/filters/census/constant_labels_test.cc index 1d95bd4175076..0688e5c07b6c3 100644 --- a/test/cpp/ext/filters/census/constant_labels_test.cc +++ b/test/cpp/ext/filters/census/constant_labels_test.cc @@ -23,6 +23,9 @@ #include // NOLINT #include +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "opencensus/stats/stats.h" #include "opencensus/stats/testing/test_utils.h" #include "opencensus/tags/tag_map.h" @@ -31,9 +34,6 @@ #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/test_config.h" #include "test/cpp/ext/filters/census/library.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/string_view.h" namespace grpc { namespace testing { diff --git a/test/cpp/ext/filters/census/library.h b/test/cpp/ext/filters/census/library.h index f279578bb4066..33df8fc74dc25 100644 --- a/test/cpp/ext/filters/census/library.h +++ b/test/cpp/ext/filters/census/library.h @@ -26,6 +26,8 @@ #include // NOLINT #include +#include "absl/strings/str_cat.h" +#include "gtest/gtest.h" #include "opencensus/stats/stats.h" #include "opencensus/trace/exporter/span_exporter.h" #include "src/core/config/core_configuration.h" @@ -35,8 +37,6 @@ #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/test_lb_policies.h" #include "test/cpp/end2end/test_service_impl.h" -#include "gtest/gtest.h" -#include "absl/strings/str_cat.h" namespace opencensus { namespace trace { diff --git a/test/cpp/ext/filters/census/stats_plugin_end2end_test.cc b/test/cpp/ext/filters/census/stats_plugin_end2end_test.cc index 9ac1fb3dec28e..d604b8a17c59a 100644 --- a/test/cpp/ext/filters/census/stats_plugin_end2end_test.cc +++ b/test/cpp/ext/filters/census/stats_plugin_end2end_test.cc @@ -23,6 +23,11 @@ #include // NOLINT #include +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/string_view.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "opencensus/stats/stats.h" #include "opencensus/stats/testing/test_utils.h" #include "opencensus/tags/tag_map.h" @@ -34,11 +39,6 @@ #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/test_config.h" #include "test/cpp/ext/filters/census/library.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/string_view.h" namespace grpc { namespace testing { diff --git a/test/cpp/ext/filters/logging/library.h b/test/cpp/ext/filters/logging/library.h index ec5ec20ec49c9..fcb918660c1c6 100644 --- a/test/cpp/ext/filters/logging/library.h +++ b/test/cpp/ext/filters/logging/library.h @@ -26,7 +26,13 @@ #include #include // NOLINT +#include "absl/log/log.h" +#include "absl/strings/escaping.h" +#include "absl/strings/str_cat.h" +#include "absl/time/time.h" +#include "gmock/gmock.h" #include "google/protobuf/text_format.h" +#include "gtest/gtest.h" #include "src/core/ext/filters/logging/logging_filter.h" #include "src/core/util/sync.h" #include "src/cpp/ext/gcp/observability_logging_sink.h" @@ -35,12 +41,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/escaping.h" -#include "absl/strings/str_cat.h" -#include "absl/time/time.h" namespace grpc { namespace testing { diff --git a/test/cpp/ext/filters/logging/logging_census_integration_test.cc b/test/cpp/ext/filters/logging/logging_census_integration_test.cc index 5dc02721e4304..bd93107327470 100644 --- a/test/cpp/ext/filters/logging/logging_census_integration_test.cc +++ b/test/cpp/ext/filters/logging/logging_census_integration_test.cc @@ -23,7 +23,11 @@ #include #include // NOLINT +#include "absl/strings/escaping.h" +#include "absl/strings/str_cat.h" +#include "gmock/gmock.h" #include "google/protobuf/text_format.h" +#include "gtest/gtest.h" #include "opencensus/stats/testing/test_utils.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/filters/logging/logging_filter.h" @@ -36,10 +40,6 @@ #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/ext/filters/census/library.h" #include "test/cpp/ext/filters/logging/library.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/escaping.h" -#include "absl/strings/str_cat.h" namespace grpc { namespace testing { diff --git a/test/cpp/ext/filters/logging/logging_test.cc b/test/cpp/ext/filters/logging/logging_test.cc index 1180b609234b0..39fb1b3410c2f 100644 --- a/test/cpp/ext/filters/logging/logging_test.cc +++ b/test/cpp/ext/filters/logging/logging_test.cc @@ -22,7 +22,11 @@ #include #include // NOLINT +#include "absl/strings/escaping.h" +#include "absl/strings/str_cat.h" +#include "gmock/gmock.h" #include "google/protobuf/text_format.h" +#include "gtest/gtest.h" #include "src/core/ext/filters/logging/logging_filter.h" #include "src/core/util/dump_args.h" #include "src/core/util/sync.h" @@ -33,10 +37,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/ext/filters/logging/library.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/escaping.h" -#include "absl/strings/str_cat.h" namespace grpc { namespace testing { diff --git a/test/cpp/ext/gcp/environment_autodetect_test.cc b/test/cpp/ext/gcp/environment_autodetect_test.cc index 0ad0a3da69319..fa70726682984 100644 --- a/test/cpp/ext/gcp/environment_autodetect_test.cc +++ b/test/cpp/ext/gcp/environment_autodetect_test.cc @@ -24,13 +24,13 @@ #include // NOLINT #include +#include "absl/strings/string_view.h" +#include "absl/synchronization/notification.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/util/env.h" #include "src/core/util/notification.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/string_view.h" -#include "absl/synchronization/notification.h" namespace grpc { namespace testing { diff --git a/test/cpp/ext/gcp/observability_config_test.cc b/test/cpp/ext/gcp/observability_config_test.cc index 21872bba519c8..021458a1cd7ef 100644 --- a/test/cpp/ext/gcp/observability_config_test.cc +++ b/test/cpp/ext/gcp/observability_config_test.cc @@ -18,13 +18,13 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/util/env.h" #include "src/core/util/json/json_reader.h" #include "src/core/util/tmpfile.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc { namespace internal { diff --git a/test/cpp/ext/gcp/observability_logging_sink_test.cc b/test/cpp/ext/gcp/observability_logging_sink_test.cc index e909ac025861c..f425fb7ac64b9 100644 --- a/test/cpp/ext/gcp/observability_logging_sink_test.cc +++ b/test/cpp/ext/gcp/observability_logging_sink_test.cc @@ -16,13 +16,13 @@ #include "src/cpp/ext/gcp/observability_logging_sink.h" +#include "absl/strings/escaping.h" +#include "absl/strings/str_format.h" +#include "gmock/gmock.h" #include "google/protobuf/text_format.h" +#include "gtest/gtest.h" #include "src/core/util/json/json_reader.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/escaping.h" -#include "absl/strings/str_format.h" namespace grpc { namespace internal { diff --git a/test/cpp/ext/gcp/observability_test.cc b/test/cpp/ext/gcp/observability_test.cc index 8079cb7b2dcd7..1decf157d27cd 100644 --- a/test/cpp/ext/gcp/observability_test.cc +++ b/test/cpp/ext/gcp/observability_test.cc @@ -17,14 +17,14 @@ #include #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "src/proto/grpc/testing/echo_messages.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc { namespace testing { diff --git a/test/cpp/ext/otel/grpc_text_map_carrier_test.cc b/test/cpp/ext/otel/grpc_text_map_carrier_test.cc index b45182a2810f5..d04519168f4c6 100644 --- a/test/cpp/ext/otel/grpc_text_map_carrier_test.cc +++ b/test/cpp/ext/otel/grpc_text_map_carrier_test.cc @@ -16,12 +16,12 @@ // // +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/call/metadata_batch.h" #include "src/cpp/ext/otel/otel_plugin.h" #include "test/core/promise/test_context.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc { namespace internal { diff --git a/test/cpp/ext/otel/grpc_trace_bin_text_map_propagator_test.cc b/test/cpp/ext/otel/grpc_trace_bin_text_map_propagator_test.cc index e0dd82fb93d00..232a5de34238c 100644 --- a/test/cpp/ext/otel/grpc_trace_bin_text_map_propagator_test.cc +++ b/test/cpp/ext/otel/grpc_trace_bin_text_map_propagator_test.cc @@ -18,13 +18,13 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "opentelemetry/trace/context.h" #include "src/core/call/metadata_batch.h" #include "src/cpp/ext/otel/otel_plugin.h" #include "test/core/promise/test_context.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc { namespace testing { diff --git a/test/cpp/ext/otel/otel_npc_metrics_test.cc b/test/cpp/ext/otel/otel_npc_metrics_test.cc index 76837f39c3044..219d2c932c2dc 100644 --- a/test/cpp/ext/otel/otel_npc_metrics_test.cc +++ b/test/cpp/ext/otel/otel_npc_metrics_test.cc @@ -24,6 +24,9 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "opentelemetry/common/timestamp.h" #include "opentelemetry/metrics/provider.h" #include "opentelemetry/nostd/variant.h" @@ -40,9 +43,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/ext/otel/otel_test_library.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" namespace grpc { namespace testing { diff --git a/test/cpp/ext/otel/otel_plugin_option_test.cc b/test/cpp/ext/otel/otel_plugin_option_test.cc index 2ebf8ff792d91..20900001b9048 100644 --- a/test/cpp/ext/otel/otel_plugin_option_test.cc +++ b/test/cpp/ext/otel/otel_plugin_option_test.cc @@ -24,6 +24,9 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "opentelemetry/common/timestamp.h" #include "opentelemetry/metrics/provider.h" #include "opentelemetry/nostd/variant.h" @@ -40,9 +43,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/ext/otel/otel_test_library.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" namespace grpc { namespace testing { diff --git a/test/cpp/ext/otel/otel_plugin_test.cc b/test/cpp/ext/otel/otel_plugin_test.cc index 08bff2eef3af7..805e464dcdf72 100644 --- a/test/cpp/ext/otel/otel_plugin_test.cc +++ b/test/cpp/ext/otel/otel_plugin_test.cc @@ -26,6 +26,9 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "opentelemetry/common/timestamp.h" #include "opentelemetry/metrics/provider.h" #include "opentelemetry/nostd/variant.h" @@ -41,9 +44,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/ext/otel/otel_test_library.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" namespace grpc { namespace testing { diff --git a/test/cpp/ext/otel/otel_test_library.cc b/test/cpp/ext/otel/otel_test_library.cc index e2196b8440bb7..e552dfcf2483e 100644 --- a/test/cpp/ext/otel/otel_test_library.cc +++ b/test/cpp/ext/otel/otel_test_library.cc @@ -23,6 +23,9 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "opentelemetry/metrics/provider.h" #include "opentelemetry/sdk/metrics/export/metric_producer.h" #include "opentelemetry/sdk/metrics/meter_provider.h" @@ -35,9 +38,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" #include "test/cpp/util/byte_buffer_proto_helper.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" namespace { diff --git a/test/cpp/ext/otel/otel_test_library.h b/test/cpp/ext/otel/otel_test_library.h index 3beaf82129629..f7e667e58cee7 100644 --- a/test/cpp/ext/otel/otel_test_library.h +++ b/test/cpp/ext/otel/otel_test_library.h @@ -26,6 +26,9 @@ #include #include +#include "absl/functional/any_invocable.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "opentelemetry/metrics/provider.h" #include "opentelemetry/sdk/metrics/meter_provider.h" #include "opentelemetry/sdk/metrics/metric_reader.h" @@ -35,9 +38,6 @@ #include "src/cpp/ext/otel/otel_plugin.h" #include "test/core/test_util/test_config.h" #include "test/cpp/end2end/test_service_impl.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/functional/any_invocable.h" OPENTELEMETRY_BEGIN_NAMESPACE namespace sdk { diff --git a/test/cpp/ext/otel/otel_tracing_test.cc b/test/cpp/ext/otel/otel_tracing_test.cc index 3423b30d2812f..3dc84bc12b30a 100644 --- a/test/cpp/ext/otel/otel_tracing_test.cc +++ b/test/cpp/ext/otel/otel_tracing_test.cc @@ -19,6 +19,9 @@ #include #include +#include "absl/synchronization/notification.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "opentelemetry/exporters/memory/in_memory_span_exporter_factory.h" #include "opentelemetry/sdk/trace/simple_processor_factory.h" #include "opentelemetry/sdk/trace/tracer.h" @@ -32,9 +35,6 @@ #include "test/core/test_util/fake_stats_plugin.h" #include "test/core/test_util/port.h" #include "test/cpp/end2end/test_service_impl.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/synchronization/notification.h" namespace grpc { namespace testing { diff --git a/test/cpp/grpclb/grpclb_api_test.cc b/test/cpp/grpclb/grpclb_api_test.cc index fe98c62f9eec9..24b16a396bc61 100644 --- a/test/cpp/grpclb/grpclb_api_test.cc +++ b/test/cpp/grpclb/grpclb_api_test.cc @@ -19,14 +19,14 @@ #include #include +#include "absl/log/check.h" #include "google/protobuf/duration.upb.h" +#include "gtest/gtest.h" #include "src/core/lib/address_utils/sockaddr_utils.h" #include "src/core/lib/iomgr/sockaddr.h" #include "src/core/load_balancing/grpclb/load_balancer_api.h" #include "src/proto/grpc/lb/v1/load_balancer.pb.h" // C++ version #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" #include "upb/mem/arena.hpp" namespace grpc { diff --git a/test/cpp/interop/backend_metrics_lb_policy.cc b/test/cpp/interop/backend_metrics_lb_policy.cc index 5a3862d2ac78e..97dac835d2ad4 100644 --- a/test/cpp/interop/backend_metrics_lb_policy.cc +++ b/test/cpp/interop/backend_metrics_lb_policy.cc @@ -20,12 +20,12 @@ #include -#include "src/core/lib/iomgr/pollset_set.h" -#include "src/core/load_balancing/delegating_helper.h" -#include "src/core/load_balancing/oob_backend_metric.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/str_format.h" +#include "src/core/lib/iomgr/pollset_set.h" +#include "src/core/load_balancing/delegating_helper.h" +#include "src/core/load_balancing/oob_backend_metric.h" namespace grpc { namespace testing { diff --git a/test/cpp/interop/backend_metrics_lb_policy_test.cc b/test/cpp/interop/backend_metrics_lb_policy_test.cc index 3e9aa7e23691e..7fe2ef7b6ee1f 100644 --- a/test/cpp/interop/backend_metrics_lb_policy_test.cc +++ b/test/cpp/interop/backend_metrics_lb_policy_test.cc @@ -27,14 +27,14 @@ #include #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/config/config_vars.h" #include "src/core/util/sync.h" #include "src/proto/grpc/testing/messages.pb.h" #include "src/proto/grpc/testing/test.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace grpc { namespace testing { diff --git a/test/cpp/interop/client.cc b/test/cpp/interop/client.cc index dd8f55c151877..4802be5786e3b 100644 --- a/test/cpp/interop/client.cc +++ b/test/cpp/interop/client.cc @@ -25,14 +25,14 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/core/util/string.h" #include "test/core/test_util/test_config.h" #include "test/cpp/interop/client_helper.h" #include "test/cpp/interop/interop_client.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/log/log.h" ABSL_FLAG(bool, use_alts, false, "Whether to use alts. Enable alts will disable tls."); diff --git a/test/cpp/interop/client_helper.cc b/test/cpp/interop/client_helper.cc index f52cd0924dc25..9e02f994256c1 100644 --- a/test/cpp/interop/client_helper.cc +++ b/test/cpp/interop/client_helper.cc @@ -29,15 +29,15 @@ #include #include -#include "test/core/credentials/call/oauth2/oauth2_utils.h" -#include "test/cpp/util/create_test_channel.h" -#include "test/cpp/util/test_credentials_provider.h" #include "absl/flags/declare.h" #include "absl/flags/flag.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/escaping.h" #include "absl/strings/match.h" +#include "test/core/credentials/call/oauth2/oauth2_utils.h" +#include "test/cpp/util/create_test_channel.h" +#include "test/cpp/util/test_credentials_provider.h" ABSL_DECLARE_FLAG(std::string, custom_credentials_type); ABSL_DECLARE_FLAG(std::string, default_service_account); diff --git a/test/cpp/interop/grpclb_fallback_test.cc b/test/cpp/interop/grpclb_fallback_test.cc index bb232c8371bca..2a8a02c6fc3f6 100644 --- a/test/cpp/interop/grpclb_fallback_test.cc +++ b/test/cpp/interop/grpclb_fallback_test.cc @@ -36,6 +36,11 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_format.h" +#include "absl/time/time.h" #include "src/core/lib/iomgr/port.h" #include "src/core/lib/iomgr/socket_mutator.h" #include "src/core/util/crash.h" @@ -46,11 +51,6 @@ #include "src/proto/grpc/testing/test.pb.h" #include "test/cpp/util/test_config.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/flags/flag.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" -#include "absl/time/time.h" ABSL_FLAG(std::string, custom_credentials_type, "", "User provided credentials type."); diff --git a/test/cpp/interop/http2_client.cc b/test/cpp/interop/http2_client.cc index 8d476a3c5a5d1..76e7794b42716 100644 --- a/test/cpp/interop/http2_client.cc +++ b/test/cpp/interop/http2_client.cc @@ -24,6 +24,10 @@ #include +#include "absl/flags/flag.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_format.h" #include "src/core/util/crash.h" #include "src/core/util/string.h" #include "src/core/util/useful.h" @@ -31,10 +35,6 @@ #include "src/proto/grpc/testing/test.grpc.pb.h" #include "test/cpp/util/create_test_channel.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" namespace grpc { namespace testing { diff --git a/test/cpp/interop/interop_client.cc b/test/cpp/interop/interop_client.cc index 107ac120e09b2..028be462b0d10 100644 --- a/test/cpp/interop/interop_client.cc +++ b/test/cpp/interop/interop_client.cc @@ -34,6 +34,12 @@ #include #include +#include "absl/cleanup/cleanup.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/match.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" #include "src/core/config/config_vars.h" #include "src/core/config/core_configuration.h" #include "src/core/util/crash.h" @@ -43,12 +49,6 @@ #include "test/core/test_util/histogram.h" #include "test/cpp/interop/backend_metrics_lb_policy.h" #include "test/cpp/interop/client_helper.h" -#include "absl/cleanup/cleanup.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/match.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" namespace grpc { namespace testing { diff --git a/test/cpp/interop/interop_server.cc b/test/cpp/interop/interop_server.cc index 73f3cf67ab121..b6bf2e66573bb 100644 --- a/test/cpp/interop/interop_server.cc +++ b/test/cpp/interop/interop_server.cc @@ -31,6 +31,9 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/core/util/string.h" #include "src/core/util/sync.h" @@ -39,9 +42,6 @@ #include "src/proto/grpc/testing/test.grpc.pb.h" #include "test/cpp/interop/server_helper.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/log/check.h" -#include "absl/log/log.h" ABSL_FLAG(bool, use_alts, false, "Whether to use alts. Enable alts will disable tls."); diff --git a/test/cpp/interop/interop_test.cc b/test/cpp/interop/interop_test.cc index c600fe14ce9b6..74c30d778fd09 100644 --- a/test/cpp/interop/interop_test.cc +++ b/test/cpp/interop/interop_test.cc @@ -29,14 +29,14 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" #include "src/core/lib/iomgr/socket_utils_posix.h" #include "src/core/util/crash.h" #include "src/core/util/string.h" #include "test/core/test_util/port.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" ABSL_FLAG(std::vector, extra_client_flags, {}, "Extra flags to pass to clients."); diff --git a/test/cpp/interop/istio_echo_server.cc b/test/cpp/interop/istio_echo_server.cc index b54177611e8dd..e09ca66f47651 100644 --- a/test/cpp/interop/istio_echo_server.cc +++ b/test/cpp/interop/istio_echo_server.cc @@ -37,6 +37,12 @@ #include #include +#include "absl/algorithm/container.h" +#include "absl/flags/flag.h" +#include "absl/log/log.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" +#include "absl/strings/str_split.h" #include "src/core/call/status_util.h" #include "src/core/util/env.h" #include "src/core/util/gethostname.h" @@ -45,12 +51,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/interop/istio_echo_server_lib.h" #include "test/cpp/util/test_config.h" -#include "absl/algorithm/container.h" -#include "absl/flags/flag.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" -#include "absl/strings/str_split.h" // A list of ports to listen on, for gRPC traffic. ABSL_FLAG(std::vector, grpc, std::vector({"7070"}), diff --git a/test/cpp/interop/istio_echo_server_lib.cc b/test/cpp/interop/istio_echo_server_lib.cc index 8a65d2119ddd0..8d8949a820b46 100644 --- a/test/cpp/interop/istio_echo_server_lib.cc +++ b/test/cpp/interop/istio_echo_server_lib.cc @@ -21,13 +21,13 @@ #include -#include "src/core/util/host_port.h" -#include "src/proto/grpc/testing/istio_echo.pb.h" #include "absl/log/log.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" #include "absl/strings/str_split.h" #include "absl/synchronization/blocking_counter.h" +#include "src/core/util/host_port.h" +#include "src/proto/grpc/testing/istio_echo.pb.h" using proto::EchoRequest; using proto::EchoResponse; diff --git a/test/cpp/interop/istio_echo_server_test.cc b/test/cpp/interop/istio_echo_server_test.cc index 7f3849e7a64c4..80289abb893db 100644 --- a/test/cpp/interop/istio_echo_server_test.cc +++ b/test/cpp/interop/istio_echo_server_test.cc @@ -21,15 +21,15 @@ #include +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/core/util/host_port.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/interop/istio_echo_server_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" namespace grpc { namespace testing { diff --git a/test/cpp/interop/metrics_client.cc b/test/cpp/interop/metrics_client.cc index fc2eb7a32b07a..1876f90cf981d 100644 --- a/test/cpp/interop/metrics_client.cc +++ b/test/cpp/interop/metrics_client.cc @@ -21,13 +21,13 @@ #include #include +#include "absl/flags/flag.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/metrics.grpc.pb.h" #include "src/proto/grpc/testing/metrics.pb.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/metrics_server.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" int kDeadlineSecs = 10; diff --git a/test/cpp/interop/observability_client.cc b/test/cpp/interop/observability_client.cc index bb64b2121e212..8e2132dcd98c1 100644 --- a/test/cpp/interop/observability_client.cc +++ b/test/cpp/interop/observability_client.cc @@ -26,6 +26,8 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/log.h" #include "opentelemetry/exporters/prometheus/exporter_factory.h" #include "opentelemetry/exporters/prometheus/exporter_options.h" #include "opentelemetry/sdk/metrics/meter_provider.h" @@ -35,8 +37,6 @@ #include "test/cpp/interop/client_helper.h" #include "test/cpp/interop/interop_client.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/log/log.h" ABSL_FLAG(bool, use_alts, false, "Whether to use alts. Enable alts will disable tls."); diff --git a/test/cpp/interop/observability_interop_server_bootstrap.cc b/test/cpp/interop/observability_interop_server_bootstrap.cc index f5b5af76e5a0a..097ff933d03b8 100644 --- a/test/cpp/interop/observability_interop_server_bootstrap.cc +++ b/test/cpp/interop/observability_interop_server_bootstrap.cc @@ -19,11 +19,11 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/log.h" #include "test/core/test_util/test_config.h" #include "test/cpp/interop/server_helper.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/log/log.h" gpr_atm grpc::testing::interop::g_got_sigint; diff --git a/test/cpp/interop/pre_stop_hook_server.cc b/test/cpp/interop/pre_stop_hook_server.cc index b7c5891eeb910..ea8b7d8b80725 100644 --- a/test/cpp/interop/pre_stop_hook_server.cc +++ b/test/cpp/interop/pre_stop_hook_server.cc @@ -22,9 +22,9 @@ #include +#include "absl/strings/str_format.h" #include "src/core/util/sync.h" #include "src/proto/grpc/testing/messages.pb.h" -#include "absl/strings/str_format.h" namespace grpc { namespace testing { diff --git a/test/cpp/interop/pre_stop_hook_server_test.cc b/test/cpp/interop/pre_stop_hook_server_test.cc index da891c16f1145..7f24af6f5e8d3 100644 --- a/test/cpp/interop/pre_stop_hook_server_test.cc +++ b/test/cpp/interop/pre_stop_hook_server_test.cc @@ -22,15 +22,15 @@ #include +#include "absl/strings/str_format.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/util/sync.h" #include "src/proto/grpc/testing/empty.pb.h" #include "src/proto/grpc/testing/messages.pb.h" #include "src/proto/grpc/testing/test.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/str_format.h" namespace grpc { namespace testing { diff --git a/test/cpp/interop/reconnect_interop_client.cc b/test/cpp/interop/reconnect_interop_client.cc index b474dda890c2b..bb46bfedd1095 100644 --- a/test/cpp/interop/reconnect_interop_client.cc +++ b/test/cpp/interop/reconnect_interop_client.cc @@ -24,15 +24,15 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/empty.pb.h" #include "src/proto/grpc/testing/messages.pb.h" #include "src/proto/grpc/testing/test.grpc.pb.h" #include "test/cpp/util/create_test_channel.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/log/check.h" -#include "absl/log/log.h" ABSL_FLAG(int32_t, server_control_port, 0, "Server port for control rpcs."); ABSL_FLAG(int32_t, server_retry_port, 0, diff --git a/test/cpp/interop/reconnect_interop_server.cc b/test/cpp/interop/reconnect_interop_server.cc index a9178266a80b7..a118802661cfc 100644 --- a/test/cpp/interop/reconnect_interop_server.cc +++ b/test/cpp/interop/reconnect_interop_server.cc @@ -29,15 +29,15 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/empty.pb.h" #include "src/proto/grpc/testing/messages.pb.h" #include "src/proto/grpc/testing/test.grpc.pb.h" #include "test/core/test_util/reconnect_server.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/log/check.h" -#include "absl/log/log.h" ABSL_FLAG(int32_t, control_port, 0, "Server port for controlling the server."); ABSL_FLAG(int32_t, retry_port, 0, diff --git a/test/cpp/interop/rpc_behavior_lb_policy.cc b/test/cpp/interop/rpc_behavior_lb_policy.cc index 50ac05d050565..69ba098f89cf1 100644 --- a/test/cpp/interop/rpc_behavior_lb_policy.cc +++ b/test/cpp/interop/rpc_behavior_lb_policy.cc @@ -20,12 +20,12 @@ #include +#include "absl/log/check.h" +#include "absl/strings/str_format.h" #include "src/core/lib/iomgr/pollset_set.h" #include "src/core/load_balancing/delegating_helper.h" #include "src/core/util/json/json_args.h" #include "src/core/util/json/json_object_loader.h" -#include "absl/log/check.h" -#include "absl/strings/str_format.h" namespace grpc { namespace testing { diff --git a/test/cpp/interop/server_helper.cc b/test/cpp/interop/server_helper.cc index f77f34df64ab0..e79912f3bde98 100644 --- a/test/cpp/interop/server_helper.cc +++ b/test/cpp/interop/server_helper.cc @@ -22,11 +22,11 @@ #include +#include "absl/flags/declare.h" +#include "absl/flags/flag.h" #include "src/core/lib/surface/call_test_only.h" #include "src/core/lib/transport/transport.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/flags/declare.h" -#include "absl/flags/flag.h" ABSL_DECLARE_FLAG(bool, use_alts); ABSL_DECLARE_FLAG(bool, use_tls); diff --git a/test/cpp/interop/stress_interop_client.cc b/test/cpp/interop/stress_interop_client.cc index 09f816b3c6613..cf92bd1ba8bc3 100644 --- a/test/cpp/interop/stress_interop_client.cc +++ b/test/cpp/interop/stress_interop_client.cc @@ -24,12 +24,12 @@ #include #include -#include "src/core/util/crash.h" -#include "test/cpp/interop/interop_client.h" -#include "test/cpp/util/metrics_server.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/str_format.h" +#include "src/core/util/crash.h" +#include "test/cpp/interop/interop_client.h" +#include "test/cpp/util/metrics_server.h" namespace grpc { namespace testing { diff --git a/test/cpp/interop/stress_test.cc b/test/cpp/interop/stress_test.cc index 83bccb1420e19..538b66bb79200 100644 --- a/test/cpp/interop/stress_test.cc +++ b/test/cpp/interop/stress_test.cc @@ -27,6 +27,10 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/check.h" +#include "absl/log/globals.h" +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/metrics.grpc.pb.h" #include "src/proto/grpc/testing/metrics.pb.h" @@ -35,10 +39,6 @@ #include "test/cpp/util/create_test_channel.h" #include "test/cpp/util/metrics_server.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/log/check.h" -#include "absl/log/globals.h" -#include "absl/log/log.h" ABSL_FLAG(int32_t, metrics_port, 8081, "The metrics server port."); diff --git a/test/cpp/interop/xds_federation_client.cc b/test/cpp/interop/xds_federation_client.cc index aae1437228a15..2edbf4918159c 100644 --- a/test/cpp/interop/xds_federation_client.cc +++ b/test/cpp/interop/xds_federation_client.cc @@ -22,16 +22,16 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_split.h" #include "src/core/util/string.h" #include "test/core/test_util/test_config.h" #include "test/cpp/interop/client_helper.h" #include "test/cpp/interop/interop_client.h" #include "test/cpp/util/create_test_channel.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_split.h" ABSL_FLAG(std::string, server_uris, "", "Comma-separated list of sever URIs to make RPCs to"); diff --git a/test/cpp/interop/xds_interop_client.cc b/test/cpp/interop/xds_interop_client.cc index a743163ff5976..83421fa81f497 100644 --- a/test/cpp/interop/xds_interop_client.cc +++ b/test/cpp/interop/xds_interop_client.cc @@ -38,6 +38,11 @@ #include #include +#include "absl/algorithm/container.h" +#include "absl/flags/flag.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_split.h" #include "opentelemetry/exporters/prometheus/exporter_factory.h" #include "opentelemetry/exporters/prometheus/exporter_options.h" #include "opentelemetry/sdk/metrics/meter_provider.h" @@ -50,11 +55,6 @@ #include "test/cpp/interop/rpc_behavior_lb_policy.h" #include "test/cpp/interop/xds_stats_watcher.h" #include "test/cpp/util/test_config.h" -#include "absl/algorithm/container.h" -#include "absl/flags/flag.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_split.h" ABSL_FLAG(bool, fail_on_failed_rpc, false, "Fail client if any RPCs fail after first successful RPC."); diff --git a/test/cpp/interop/xds_interop_server.cc b/test/cpp/interop/xds_interop_server.cc index 4dd95458720c7..6208f62dd52fc 100644 --- a/test/cpp/interop/xds_interop_server.cc +++ b/test/cpp/interop/xds_interop_server.cc @@ -22,6 +22,8 @@ #include +#include "absl/flags/flag.h" +#include "absl/log/log.h" #include "opentelemetry/exporters/prometheus/exporter_factory.h" #include "opentelemetry/exporters/prometheus/exporter_options.h" #include "opentelemetry/sdk/metrics/meter_provider.h" @@ -29,8 +31,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/interop/xds_interop_server_lib.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" -#include "absl/log/log.h" ABSL_FLAG(int32_t, port, 8080, "Server port for service."); ABSL_FLAG(int32_t, maintenance_port, 8081, diff --git a/test/cpp/interop/xds_interop_server_lib.cc b/test/cpp/interop/xds_interop_server_lib.cc index 6e05ca610ef82..7acf0e4401539 100644 --- a/test/cpp/interop/xds_interop_server_lib.cc +++ b/test/cpp/interop/xds_interop_server_lib.cc @@ -29,14 +29,14 @@ #include +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_split.h" #include "src/proto/grpc/testing/empty.pb.h" #include "src/proto/grpc/testing/messages.pb.h" #include "src/proto/grpc/testing/test.grpc.pb.h" #include "test/cpp/end2end/test_health_check_service_impl.h" #include "test/cpp/interop/pre_stop_hook_server.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_split.h" namespace grpc { namespace testing { diff --git a/test/cpp/interop/xds_interop_server_test.cc b/test/cpp/interop/xds_interop_server_test.cc index c398a14d86167..9f4cc4176f094 100644 --- a/test/cpp/interop/xds_interop_server_test.cc +++ b/test/cpp/interop/xds_interop_server_test.cc @@ -19,15 +19,15 @@ #include +#include "absl/strings/str_format.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/core/util/sync.h" #include "src/proto/grpc/testing/empty.pb.h" #include "src/proto/grpc/testing/test.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/interop/xds_interop_server_lib.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/strings/str_format.h" namespace grpc { namespace testing { diff --git a/test/cpp/interop/xds_stats_watcher.h b/test/cpp/interop/xds_stats_watcher.h index 5b80afc8c9836..5d92f8517f2b1 100644 --- a/test/cpp/interop/xds_stats_watcher.h +++ b/test/cpp/interop/xds_stats_watcher.h @@ -34,10 +34,10 @@ #include #include -#include "src/proto/grpc/testing/empty.pb.h" -#include "src/proto/grpc/testing/messages.pb.h" #include "absl/status/status.h" #include "absl/types/span.h" +#include "src/proto/grpc/testing/empty.pb.h" +#include "src/proto/grpc/testing/messages.pb.h" namespace grpc { namespace testing { diff --git a/test/cpp/interop/xds_stats_watcher_test.cc b/test/cpp/interop/xds_stats_watcher_test.cc index deb6f2df2efde..d20a227325f7c 100644 --- a/test/cpp/interop/xds_stats_watcher_test.cc +++ b/test/cpp/interop/xds_stats_watcher_test.cc @@ -21,9 +21,9 @@ #include #include -#include "test/core/test_util/test_config.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc { namespace testing { diff --git a/test/cpp/microbenchmarks/bm_basic_work_queue.cc b/test/cpp/microbenchmarks/bm_basic_work_queue.cc index c649cf2ad9795..c0188e6cb98d2 100644 --- a/test/cpp/microbenchmarks/bm_basic_work_queue.cc +++ b/test/cpp/microbenchmarks/bm_basic_work_queue.cc @@ -17,11 +17,11 @@ #include +#include "absl/log/check.h" #include "src/core/lib/event_engine/common_closures.h" #include "src/core/lib/event_engine/work_queue/basic_work_queue.h" #include "src/core/util/sync.h" #include "test/core/test_util/test_config.h" -#include "absl/log/check.h" namespace { diff --git a/test/cpp/microbenchmarks/bm_byte_buffer.cc b/test/cpp/microbenchmarks/bm_byte_buffer.cc index 4761a058582f7..8b0c9a302a8c6 100644 --- a/test/cpp/microbenchmarks/bm_byte_buffer.cc +++ b/test/cpp/microbenchmarks/bm_byte_buffer.cc @@ -27,10 +27,10 @@ #include +#include "absl/log/check.h" #include "test/core/test_util/test_config.h" #include "test/cpp/microbenchmarks/helpers.h" #include "test/cpp/util/test_config.h" -#include "absl/log/check.h" namespace grpc { namespace testing { diff --git a/test/cpp/microbenchmarks/bm_channel_args.cc b/test/cpp/microbenchmarks/bm_channel_args.cc index 51d81ab96ce77..3ccdcd2039b11 100644 --- a/test/cpp/microbenchmarks/bm_channel_args.cc +++ b/test/cpp/microbenchmarks/bm_channel_args.cc @@ -20,8 +20,8 @@ #include -#include "src/core/lib/channel/channel_args.h" #include "absl/container/btree_map.h" +#include "src/core/lib/channel/channel_args.h" const char kKey[] = "a very long key"; const char kValue[] = "a very long value"; diff --git a/test/cpp/microbenchmarks/bm_chttp2_hpack.cc b/test/cpp/microbenchmarks/bm_chttp2_hpack.cc index 1bc8b8a9a7069..bf7848b9cb04e 100644 --- a/test/cpp/microbenchmarks/bm_chttp2_hpack.cc +++ b/test/cpp/microbenchmarks/bm_chttp2_hpack.cc @@ -26,6 +26,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/random/random.h" #include "src/core/call/metadata_batch.h" #include "src/core/ext/transport/chttp2/transport/hpack_encoder.h" #include "src/core/ext/transport/chttp2/transport/hpack_parser.h" @@ -38,9 +41,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/microbenchmarks/helpers.h" #include "test/cpp/util/test_config.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/random/random.h" static grpc_slice MakeSlice(const std::vector& bytes) { grpc_slice s = grpc_slice_malloc(bytes.size()); diff --git a/test/cpp/microbenchmarks/bm_cq.cc b/test/cpp/microbenchmarks/bm_cq.cc index 32697e0107dc8..107302243b584 100644 --- a/test/cpp/microbenchmarks/bm_cq.cc +++ b/test/cpp/microbenchmarks/bm_cq.cc @@ -24,13 +24,13 @@ #include #include +#include "absl/log/check.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/core/lib/surface/completion_queue.h" #include "src/core/util/crash.h" #include "test/core/test_util/test_config.h" #include "test/cpp/microbenchmarks/helpers.h" #include "test/cpp/util/test_config.h" -#include "absl/log/check.h" namespace grpc { namespace testing { diff --git a/test/cpp/microbenchmarks/bm_cq_multiple_threads.cc b/test/cpp/microbenchmarks/bm_cq_multiple_threads.cc index 51010aef45457..8acdb307950ee 100644 --- a/test/cpp/microbenchmarks/bm_cq_multiple_threads.cc +++ b/test/cpp/microbenchmarks/bm_cq_multiple_threads.cc @@ -23,6 +23,8 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/lib/iomgr/ev_posix.h" #include "src/core/lib/iomgr/port.h" #include "src/core/lib/surface/completion_queue.h" @@ -31,8 +33,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/microbenchmarks/helpers.h" #include "test/cpp/util/test_config.h" -#include "absl/log/check.h" -#include "absl/log/log.h" struct grpc_pollset { gpr_mu mu; diff --git a/test/cpp/microbenchmarks/bm_event_engine_run.cc b/test/cpp/microbenchmarks/bm_event_engine_run.cc index e38dfc4d20286..418d88b9d327c 100644 --- a/test/cpp/microbenchmarks/bm_event_engine_run.cc +++ b/test/cpp/microbenchmarks/bm_event_engine_run.cc @@ -21,6 +21,10 @@ #include #include +#include "absl/debugging/leak_check.h" +#include "absl/functional/any_invocable.h" +#include "absl/log/check.h" +#include "absl/strings/str_format.h" #include "src/core/lib/event_engine/common_closures.h" #include "src/core/lib/event_engine/default_event_engine.h" #include "src/core/util/crash.h" @@ -28,10 +32,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/microbenchmarks/helpers.h" #include "test/cpp/util/test_config.h" -#include "absl/debugging/leak_check.h" -#include "absl/functional/any_invocable.h" -#include "absl/log/check.h" -#include "absl/strings/str_format.h" namespace { diff --git a/test/cpp/microbenchmarks/bm_huffman_decode.cc b/test/cpp/microbenchmarks/bm_huffman_decode.cc index d36ebcddab76c..770082666a551 100644 --- a/test/cpp/microbenchmarks/bm_huffman_decode.cc +++ b/test/cpp/microbenchmarks/bm_huffman_decode.cc @@ -17,13 +17,13 @@ #include #include +#include "absl/strings/escaping.h" #include "src/core/ext/transport/chttp2/transport/bin_encoder.h" #include "src/core/ext/transport/chttp2/transport/decode_huff.h" #include "src/core/lib/slice/slice.h" #include "src/core/util/no_destruct.h" #include "test/core/test_util/test_config.h" #include "test/cpp/microbenchmarks/huffman_geometries/index.h" -#include "absl/strings/escaping.h" std::vector MakeInput(int min, int max) { std::vector v; diff --git a/test/cpp/microbenchmarks/bm_opencensus_plugin.cc b/test/cpp/microbenchmarks/bm_opencensus_plugin.cc index 8f939482e9c1e..c8ac81ff2e0c4 100644 --- a/test/cpp/microbenchmarks/bm_opencensus_plugin.cc +++ b/test/cpp/microbenchmarks/bm_opencensus_plugin.cc @@ -24,14 +24,14 @@ #include #include // NOLINT +#include "absl/base/call_once.h" +#include "absl/strings/str_cat.h" #include "opencensus/stats/stats.h" #include "src/core/config/core_configuration.h" #include "src/cpp/ext/filters/census/grpc_plugin.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/test_config.h" #include "test/cpp/microbenchmarks/helpers.h" -#include "absl/base/call_once.h" -#include "absl/strings/str_cat.h" absl::once_flag once; void RegisterOnce() { absl::call_once(once, grpc::RegisterOpenCensusPlugin); } diff --git a/test/cpp/microbenchmarks/bm_rng.cc b/test/cpp/microbenchmarks/bm_rng.cc index 5f5f857b907e1..fe34430b8e026 100644 --- a/test/cpp/microbenchmarks/bm_rng.cc +++ b/test/cpp/microbenchmarks/bm_rng.cc @@ -20,8 +20,8 @@ #include -#include "src/core/util/sync.h" #include "absl/random/random.h" +#include "src/core/util/sync.h" static void BM_OneRngFromFreshBitSet(benchmark::State& state) { for (auto _ : state) { diff --git a/test/cpp/microbenchmarks/bm_stats_plugin.cc b/test/cpp/microbenchmarks/bm_stats_plugin.cc index d660873f1f502..c7c99e5fcbfd5 100644 --- a/test/cpp/microbenchmarks/bm_stats_plugin.cc +++ b/test/cpp/microbenchmarks/bm_stats_plugin.cc @@ -17,6 +17,8 @@ #include +#include "absl/log/absl_check.h" +#include "absl/strings/string_view.h" #include "opentelemetry/sdk/metrics/meter_provider.h" #include "src/core/lib/event_engine/channel_args_endpoint_config.h" #include "src/core/telemetry/metrics.h" @@ -24,8 +26,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/microbenchmarks/helpers.h" #include "test/cpp/util/test_config.h" -#include "absl/log/absl_check.h" -#include "absl/strings/string_view.h" namespace { diff --git a/test/cpp/microbenchmarks/bm_thread_pool.cc b/test/cpp/microbenchmarks/bm_thread_pool.cc index adce7093eb2a8..a185c36145182 100644 --- a/test/cpp/microbenchmarks/bm_thread_pool.cc +++ b/test/cpp/microbenchmarks/bm_thread_pool.cc @@ -21,6 +21,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/strings/str_format.h" #include "src/core/lib/event_engine/common_closures.h" #include "src/core/lib/event_engine/thread_pool/thread_pool.h" #include "src/core/util/crash.h" @@ -29,8 +31,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/microbenchmarks/helpers.h" #include "test/cpp/util/test_config.h" -#include "absl/log/check.h" -#include "absl/strings/str_format.h" namespace { diff --git a/test/cpp/microbenchmarks/callback_streaming_ping_pong.h b/test/cpp/microbenchmarks/callback_streaming_ping_pong.h index 6d9e794750a52..54deee578685a 100644 --- a/test/cpp/microbenchmarks/callback_streaming_ping_pong.h +++ b/test/cpp/microbenchmarks/callback_streaming_ping_pong.h @@ -23,12 +23,12 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/cpp/microbenchmarks/callback_test_service.h" #include "test/cpp/microbenchmarks/fullstack_context_mutators.h" #include "test/cpp/microbenchmarks/fullstack_fixtures.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/microbenchmarks/callback_unary_ping_pong.h b/test/cpp/microbenchmarks/callback_unary_ping_pong.h index ce64b00dc3756..17b48b1e7540e 100644 --- a/test/cpp/microbenchmarks/callback_unary_ping_pong.h +++ b/test/cpp/microbenchmarks/callback_unary_ping_pong.h @@ -25,11 +25,11 @@ #include +#include "absl/log/check.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/cpp/microbenchmarks/callback_test_service.h" #include "test/cpp/microbenchmarks/fullstack_context_mutators.h" #include "test/cpp/microbenchmarks/fullstack_fixtures.h" -#include "absl/log/check.h" namespace grpc { namespace testing { diff --git a/test/cpp/microbenchmarks/fullstack_fixtures.h b/test/cpp/microbenchmarks/fullstack_fixtures.h index ad69076e95ce9..ba787d4b402cf 100644 --- a/test/cpp/microbenchmarks/fullstack_fixtures.h +++ b/test/cpp/microbenchmarks/fullstack_fixtures.h @@ -28,6 +28,7 @@ #include #include +#include "absl/log/check.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/chttp2/transport/chttp2_transport.h" #include "src/core/lib/channel/channel_args.h" @@ -44,7 +45,6 @@ #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/microbenchmarks/helpers.h" -#include "absl/log/check.h" namespace grpc { namespace testing { diff --git a/test/cpp/microbenchmarks/fullstack_streaming_ping_pong.h b/test/cpp/microbenchmarks/fullstack_streaming_ping_pong.h index 66777cff3bd54..4a18d7a1cecfe 100644 --- a/test/cpp/microbenchmarks/fullstack_streaming_ping_pong.h +++ b/test/cpp/microbenchmarks/fullstack_streaming_ping_pong.h @@ -25,10 +25,10 @@ #include +#include "absl/log/check.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/cpp/microbenchmarks/fullstack_context_mutators.h" #include "test/cpp/microbenchmarks/fullstack_fixtures.h" -#include "absl/log/check.h" namespace grpc { namespace testing { diff --git a/test/cpp/microbenchmarks/fullstack_streaming_pump.h b/test/cpp/microbenchmarks/fullstack_streaming_pump.h index cd56284c4d0c9..70187affb2fbc 100644 --- a/test/cpp/microbenchmarks/fullstack_streaming_pump.h +++ b/test/cpp/microbenchmarks/fullstack_streaming_pump.h @@ -25,10 +25,10 @@ #include +#include "absl/log/check.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/cpp/microbenchmarks/fullstack_context_mutators.h" #include "test/cpp/microbenchmarks/fullstack_fixtures.h" -#include "absl/log/check.h" namespace grpc { namespace testing { diff --git a/test/cpp/microbenchmarks/fullstack_unary_ping_pong.h b/test/cpp/microbenchmarks/fullstack_unary_ping_pong.h index fa7c5e8a5c0b5..b4c8f7baaf50f 100644 --- a/test/cpp/microbenchmarks/fullstack_unary_ping_pong.h +++ b/test/cpp/microbenchmarks/fullstack_unary_ping_pong.h @@ -25,10 +25,10 @@ #include +#include "absl/log/check.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/cpp/microbenchmarks/fullstack_context_mutators.h" #include "test/cpp/microbenchmarks/fullstack_fixtures.h" -#include "absl/log/check.h" namespace grpc { namespace testing { diff --git a/test/cpp/naming/address_sorting_test.cc b/test/cpp/naming/address_sorting_test.cc index 2133f8f8327ec..3fcb70b80c7f5 100644 --- a/test/cpp/naming/address_sorting_test.cc +++ b/test/cpp/naming/address_sorting_test.cc @@ -27,6 +27,9 @@ #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gmock/gmock.h" #include "src/core/client_channel/client_channel_filter.h" #include "src/core/config/config_vars.h" #include "src/core/lib/address_utils/sockaddr_utils.h" @@ -46,9 +49,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/util/subprocess.h" #include "test/cpp/util/test_config.h" -#include "gmock/gmock.h" -#include "absl/log/check.h" -#include "absl/log/log.h" #ifndef GPR_WINDOWS #include diff --git a/test/cpp/naming/cancel_ares_query_test.cc b/test/cpp/naming/cancel_ares_query_test.cc index 8f79d8e216216..5b3d083248185 100644 --- a/test/cpp/naming/cancel_ares_query_test.cc +++ b/test/cpp/naming/cancel_ares_query_test.cc @@ -27,6 +27,10 @@ #include +#include "absl/log/check.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "gmock/gmock.h" #include "src/core/config/config_vars.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/channel/channel_args.h" @@ -54,10 +58,6 @@ #include "test/core/test_util/socket_use_after_close_detector.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/test_config.h" -#include "gmock/gmock.h" -#include "absl/log/check.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" #ifdef GPR_WINDOWS #include "src/core/lib/iomgr/sockaddr_windows.h" diff --git a/test/cpp/naming/gen_build_yaml.py b/test/cpp/naming/gen_build_yaml.py index 176d41846b351..a65f2b3e9b2ae 100755 --- a/test/cpp/naming/gen_build_yaml.py +++ b/test/cpp/naming/gen_build_yaml.py @@ -24,75 +24,79 @@ def _append_zone_name(name, zone_name): - return "%s.%s" % (name, zone_name) + return "%s.%s" % (name, zone_name) def _build_expected_addrs_cmd_arg(expected_addrs): - out = [] - for addr in expected_addrs: - out.append("%s,%s" % (addr["address"], str(addr["is_balancer"]))) - return ";".join(out) + out = [] + for addr in expected_addrs: + out.append("%s,%s" % (addr["address"], str(addr["is_balancer"]))) + return ";".join(out) def _resolver_test_cases(resolver_component_data): - out = [] - for test_case in resolver_component_data["resolver_component_tests"]: - target_name = _append_zone_name( - test_case["record_to_resolve"], - resolver_component_data["resolver_tests_common_zone_name"], - ) - out.append({ - "test_title": target_name, - "arg_names_and_values": [ - ("target_name", target_name), - ( - "do_ordered_address_comparison", - test_case["do_ordered_address_comparison"], - ), - ( - "expected_addrs", - _build_expected_addrs_cmd_arg(test_case["expected_addrs"]), - ), - ( - "expected_chosen_service_config", - (test_case["expected_chosen_service_config"] or ""), - ), - ( - "expected_service_config_error", - (test_case["expected_service_config_error"] or ""), - ), - ( - "expected_lb_policy", - (test_case["expected_lb_policy"] or ""), - ), - ("enable_srv_queries", test_case["enable_srv_queries"]), - ("enable_txt_queries", test_case["enable_txt_queries"]), - ( - "inject_broken_nameserver_list", - test_case["inject_broken_nameserver_list"], - ), - ], - }) - return out + out = [] + for test_case in resolver_component_data["resolver_component_tests"]: + target_name = _append_zone_name( + test_case["record_to_resolve"], + resolver_component_data["resolver_tests_common_zone_name"], + ) + out.append( + { + "test_title": target_name, + "arg_names_and_values": [ + ("target_name", target_name), + ( + "do_ordered_address_comparison", + test_case["do_ordered_address_comparison"], + ), + ( + "expected_addrs", + _build_expected_addrs_cmd_arg( + test_case["expected_addrs"] + ), + ), + ( + "expected_chosen_service_config", + (test_case["expected_chosen_service_config"] or ""), + ), + ( + "expected_service_config_error", + (test_case["expected_service_config_error"] or ""), + ), + ( + "expected_lb_policy", + (test_case["expected_lb_policy"] or ""), + ), + ("enable_srv_queries", test_case["enable_srv_queries"]), + ("enable_txt_queries", test_case["enable_txt_queries"]), + ( + "inject_broken_nameserver_list", + test_case["inject_broken_nameserver_list"], + ), + ], + } + ) + return out def main(): - resolver_component_data = "" - with open("test/cpp/naming/resolver_test_record_groups.yaml") as f: - resolver_component_data = yaml.safe_load(f) + resolver_component_data = "" + with open("test/cpp/naming/resolver_test_record_groups.yaml") as f: + resolver_component_data = yaml.safe_load(f) - json = { - "resolver_tests_common_zone_name": resolver_component_data[ - "resolver_tests_common_zone_name" - ], - # this data is required by the resolver_component_tests_runner.py.template - "resolver_component_test_cases": _resolver_test_cases( - resolver_component_data - ), - } + json = { + "resolver_tests_common_zone_name": resolver_component_data[ + "resolver_tests_common_zone_name" + ], + # this data is required by the resolver_component_tests_runner.py.template + "resolver_component_test_cases": _resolver_test_cases( + resolver_component_data + ), + } - print(yaml.safe_dump(json)) + print(yaml.safe_dump(json)) if __name__ == "__main__": - main() + main() diff --git a/test/cpp/naming/manual_run_resolver_component_test.py b/test/cpp/naming/manual_run_resolver_component_test.py index 2594174872914..6a4059dc98449 100644 --- a/test/cpp/naming/manual_run_resolver_component_test.py +++ b/test/cpp/naming/manual_run_resolver_component_test.py @@ -24,19 +24,21 @@ # This port is arbitrary, but it needs to be available. _DNS_SERVER_PORT = 15353 -subprocess.call([ - sys.executable, - "test\\cpp\\naming\\resolver_component_tests_runner.py", - "--test_bin_path", - "cmake\\build\\%s\\resolver_component_test.exe" % _MSBUILD_CONFIG, - "--dns_server_bin_path", - "test\\cpp\\naming\\utils\\dns_server.py", - "--records_config_path", - "test\\cpp\\naming\\resolver_test_record_groups.yaml", - "--dns_server_port", - str(_DNS_SERVER_PORT), - "--dns_resolver_bin_path", - "test\\cpp\\naming\\utils\\dns_resolver.py", - "--tcp_connect_bin_path", - "test\\cpp\\naming\\utils\\tcp_connect.py", -]) +subprocess.call( + [ + sys.executable, + "test\\cpp\\naming\\resolver_component_tests_runner.py", + "--test_bin_path", + "cmake\\build\\%s\\resolver_component_test.exe" % _MSBUILD_CONFIG, + "--dns_server_bin_path", + "test\\cpp\\naming\\utils\\dns_server.py", + "--records_config_path", + "test\\cpp\\naming\\resolver_test_record_groups.yaml", + "--dns_server_port", + str(_DNS_SERVER_PORT), + "--dns_resolver_bin_path", + "test\\cpp\\naming\\utils\\dns_resolver.py", + "--tcp_connect_bin_path", + "test\\cpp\\naming\\utils\\tcp_connect.py", + ] +) diff --git a/test/cpp/naming/resolver_component_test.cc b/test/cpp/naming/resolver_component_test.cc index 947ef1280a02a..989d963ea1f18 100644 --- a/test/cpp/naming/resolver_component_test.cc +++ b/test/cpp/naming/resolver_component_test.cc @@ -30,6 +30,13 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/memory/memory.h" +#include "absl/strings/str_cat.h" +#include "absl/strings/str_format.h" +#include "gmock/gmock.h" #include "src/core/client_channel/client_channel_filter.h" #include "src/core/config/core_configuration.h" #include "src/core/lib/address_utils/parse_address.h" @@ -58,13 +65,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/util/subprocess.h" #include "test/cpp/util/test_config.h" -#include "gmock/gmock.h" -#include "absl/flags/flag.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" -#include "absl/strings/str_cat.h" -#include "absl/strings/str_format.h" using ::grpc_event_engine::experimental::GetDefaultEventEngine; using std::vector; diff --git a/test/cpp/naming/resolver_component_tests_runner.py b/test/cpp/naming/resolver_component_tests_runner.py index 7d1a1ae4b66c5..ad36616dea0da 100755 --- a/test/cpp/naming/resolver_component_tests_runner.py +++ b/test/cpp/naming/resolver_component_tests_runner.py @@ -25,156 +25,90 @@ import time argp = argparse.ArgumentParser(description='Run c-ares resolver tests') -argp.add_argument( - '--test_bin_path', - default=None, - type=str, - help='Path to gtest test binary to invoke.', -) -argp.add_argument( - '--dns_server_bin_path', - default=None, - type=str, - help='Path to local DNS server python script.', -) -argp.add_argument( - '--records_config_path', - default=None, - type=str, - help=( - 'Path to DNS records yaml file that ' - 'specifies records for the DNS sever. ' - ), -) -argp.add_argument( - '--dns_server_port', - default=None, - type=int, - help='Port that local DNS server is listening on.', -) -argp.add_argument( - '--dns_resolver_bin_path', - default=None, - type=str, - help='Path to the DNS health check utility.', -) -argp.add_argument( - '--tcp_connect_bin_path', - default=None, - type=str, - help='Path to the TCP health check utility.', -) -argp.add_argument( - '--extra_args', - default='', - type=str, - help=( - 'Comma-separate list of command args to ' - 'plumb through to --test_bin_path' - ), -) +argp.add_argument('--test_bin_path', default=None, type=str, + help='Path to gtest test binary to invoke.') +argp.add_argument('--dns_server_bin_path', default=None, type=str, + help='Path to local DNS server python script.') +argp.add_argument('--records_config_path', default=None, type=str, + help=('Path to DNS records yaml file that ' + 'specifies records for the DNS sever. ')) +argp.add_argument('--dns_server_port', default=None, type=int, + help=('Port that local DNS server is listening on.')) +argp.add_argument('--dns_resolver_bin_path', default=None, type=str, + help=('Path to the DNS health check utility.')) +argp.add_argument('--tcp_connect_bin_path', default=None, type=str, + help=('Path to the TCP health check utility.')) +argp.add_argument('--extra_args', default='', type=str, + help=('Comma-separate list of command args to ' + 'plumb through to --test_bin_path')) args = argp.parse_args() - def test_runner_log(msg): sys.stderr.write('\n%s: %s\n' % (__file__, msg)) - def python_args(arg_list): if platform.system() == 'Windows' and arg_list[0].endswith('.py'): return [sys.executable] + arg_list return arg_list - cur_resolver = os.environ.get('GRPC_DNS_RESOLVER') if cur_resolver and cur_resolver != 'ares': - test_runner_log(( - 'WARNING: cur resolver set to %s. This set of tests ' - 'needs to use GRPC_DNS_RESOLVER=ares.' - )) + test_runner_log(('WARNING: cur resolver set to %s. This set of tests ' + 'needs to use GRPC_DNS_RESOLVER=ares.')) test_runner_log('Exit 1 without running tests.') sys.exit(1) os.environ.update({'GRPC_TRACE': 'cares_resolver,cares_address_sorting'}) experiments = os.environ.get('GRPC_EXPERIMENTS') if experiments is not None and 'event_engine_dns' in experiments: - os.environ.update( - {'GRPC_TRACE': 'event_engine_client_channel_resolver,cares_resolver'} - ) - + os.environ.update({'GRPC_TRACE': 'event_engine_client_channel_resolver,cares_resolver'}) -def wait_until_dns_server_is_up( - args, dns_server_subprocess, dns_server_subprocess_output -): +def wait_until_dns_server_is_up(args, + dns_server_subprocess, + dns_server_subprocess_output): for i in range(0, 30): test_runner_log('Health check: attempt to connect to DNS server over TCP.') - tcp_connect_subprocess = subprocess.Popen( - python_args([ - args.tcp_connect_bin_path, - '--server_host', - '127.0.0.1', - '--server_port', - str(args.dns_server_port), - '--timeout', - str(1), - ]) - ) + tcp_connect_subprocess = subprocess.Popen(python_args([ + args.tcp_connect_bin_path, + '--server_host', '127.0.0.1', + '--server_port', str(args.dns_server_port), + '--timeout', str(1)])) tcp_connect_subprocess.communicate() if tcp_connect_subprocess.returncode == 0: - test_runner_log( - 'Health check: attempt to make an A-record query to DNS server.' - ) - dns_resolver_subprocess = subprocess.Popen( - python_args([ - args.dns_resolver_bin_path, - '--qname', - 'health-check-local-dns-server-is-alive.resolver-tests.grpctestingexp', - '--server_host', - '127.0.0.1', - '--server_port', - str(args.dns_server_port), - ]), - stdout=subprocess.PIPE, - ) - dns_resolver_stdout, _ = dns_resolver_subprocess.communicate( - str.encode('ascii') - ) + test_runner_log(('Health check: attempt to make an A-record ' + 'query to DNS server.')) + dns_resolver_subprocess = subprocess.Popen(python_args([ + args.dns_resolver_bin_path, + '--qname', 'health-check-local-dns-server-is-alive.resolver-tests.grpctestingexp', + '--server_host', '127.0.0.1', + '--server_port', str(args.dns_server_port)]), + stdout=subprocess.PIPE) + dns_resolver_stdout, _ = dns_resolver_subprocess.communicate(str.encode('ascii')) if dns_resolver_subprocess.returncode == 0: if '123.123.123.123'.encode('ascii') in dns_resolver_stdout: - test_runner_log( - 'DNS server is up! Successfully reached it over UDP and TCP.' - ) + test_runner_log(('DNS server is up! ' + 'Successfully reached it over UDP and TCP.')) return time.sleep(0.1) dns_server_subprocess.kill() dns_server_subprocess.wait() - test_runner_log(( - 'Failed to reach DNS server over TCP and/or UDP. ' - 'Exiting without running tests.' - )) - test_runner_log( - '======= DNS server stdout (merged stdout and stderr) =============' - ) + test_runner_log(('Failed to reach DNS server over TCP and/or UDP. ' + 'Exiting without running tests.')) + test_runner_log('======= DNS server stdout ' + '(merged stdout and stderr) =============') with open(dns_server_subprocess_output, 'r') as l: test_runner_log(l.read()) test_runner_log('======= end DNS server output=========') sys.exit(1) - dns_server_subprocess_output = tempfile.mktemp() with open(dns_server_subprocess_output, 'w') as l: - dns_server_subprocess = subprocess.Popen( - python_args([ - args.dns_server_bin_path, - '--port', - str(args.dns_server_port), - '--records_config_path', - args.records_config_path, - ]), + dns_server_subprocess = subprocess.Popen(python_args([ + args.dns_server_bin_path, + '--port', str(args.dns_server_port), + '--records_config_path', args.records_config_path]), stdin=subprocess.PIPE, stdout=l, - stderr=l, - ) - + stderr=l) def _quit_on_signal(signum, _frame): test_runner_log('Received signal: %d' % signum) @@ -182,996 +116,531 @@ def _quit_on_signal(signum, _frame): dns_server_subprocess.wait() sys.exit(1) - signal.signal(signal.SIGINT, _quit_on_signal) signal.signal(signal.SIGTERM, _quit_on_signal) -wait_until_dns_server_is_up( - args, dns_server_subprocess, dns_server_subprocess_output -) +wait_until_dns_server_is_up(args, + dns_server_subprocess, + dns_server_subprocess_output) num_test_failures = 0 -test_runner_log( - 'Run test with target: %s' - % 'no-srv-ipv4-single-target.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'no-srv-ipv4-single-target.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '5.5.5.5:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'no-srv-ipv4-single-target.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'no-srv-ipv4-single-target.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '5.5.5.5:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'srv-ipv4-single-target.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'srv-ipv4-single-target.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:1234,True', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'srv-ipv4-single-target.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'srv-ipv4-single-target.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:1234,True', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'srv-ipv4-multi-target.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'srv-ipv4-multi-target.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.5:1234,True;1.2.3.6:1234,True;1.2.3.7:1234,True', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'srv-ipv4-multi-target.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'srv-ipv4-multi-target.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.5:1234,True;1.2.3.6:1234,True;1.2.3.7:1234,True', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'srv-ipv6-single-target.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'srv-ipv6-single-target.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '[2607:f8b0:400a:801::1001]:1234,True', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'srv-ipv6-single-target.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'srv-ipv6-single-target.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '[2607:f8b0:400a:801::1001]:1234,True', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'srv-ipv6-multi-target.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'srv-ipv6-multi-target.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '[2607:f8b0:400a:801::1002]:1234,True;[2607:f8b0:400a:801::1003]:1234,True;[2607:f8b0:400a:801::1004]:1234,True', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'srv-ipv6-multi-target.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'srv-ipv6-multi-target.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '[2607:f8b0:400a:801::1002]:1234,True;[2607:f8b0:400a:801::1003]:1234,True;[2607:f8b0:400a:801::1004]:1234,True', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'srv-ipv4-simple-service-config.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'srv-ipv4-simple-service-config.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:1234,True', - '--expected_chosen_service_config', - '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService"}],"waitForReady":true}]}', - '--expected_service_config_error', - '', - '--expected_lb_policy', - 'round_robin', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'srv-ipv4-simple-service-config.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'srv-ipv4-simple-service-config.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:1234,True', + '--expected_chosen_service_config', '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService"}],"waitForReady":true}]}', + '--expected_service_config_error', '', + '--expected_lb_policy', 'round_robin', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'ipv4-no-srv-simple-service-config.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'ipv4-no-srv-simple-service-config.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:443,False', - '--expected_chosen_service_config', - '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"NoSrvSimpleService"}],"waitForReady":true}]}', - '--expected_service_config_error', - '', - '--expected_lb_policy', - 'round_robin', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'ipv4-no-srv-simple-service-config.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'ipv4-no-srv-simple-service-config.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:443,False', + '--expected_chosen_service_config', '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"NoSrvSimpleService"}],"waitForReady":true}]}', + '--expected_service_config_error', '', + '--expected_lb_policy', 'round_robin', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'ipv4-no-config-for-cpp.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'ipv4-no-config-for-cpp.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'ipv4-no-config-for-cpp.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'ipv4-no-config-for-cpp.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'ipv4-cpp-config-has-zero-percentage.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'ipv4-cpp-config-has-zero-percentage.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'ipv4-cpp-config-has-zero-percentage.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'ipv4-cpp-config-has-zero-percentage.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'ipv4-second-language-is-cpp.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'ipv4-second-language-is-cpp.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:443,False', - '--expected_chosen_service_config', - '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"CppService"}],"waitForReady":true}]}', - '--expected_service_config_error', - '', - '--expected_lb_policy', - 'round_robin', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'ipv4-second-language-is-cpp.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'ipv4-second-language-is-cpp.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:443,False', + '--expected_chosen_service_config', '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"CppService"}],"waitForReady":true}]}', + '--expected_service_config_error', '', + '--expected_lb_policy', 'round_robin', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'ipv4-config-with-percentages.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'ipv4-config-with-percentages.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:443,False', - '--expected_chosen_service_config', - '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"AlwaysPickedService"}],"waitForReady":true}]}', - '--expected_service_config_error', - '', - '--expected_lb_policy', - 'round_robin', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'ipv4-config-with-percentages.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'ipv4-config-with-percentages.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:443,False', + '--expected_chosen_service_config', '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"AlwaysPickedService"}],"waitForReady":true}]}', + '--expected_service_config_error', '', + '--expected_lb_policy', 'round_robin', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:1234,True;1.2.3.4:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:1234,True;1.2.3.4:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '[2607:f8b0:400a:801::1002]:1234,True;[2607:f8b0:400a:801::1002]:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '[2607:f8b0:400a:801::1002]:1234,True;[2607:f8b0:400a:801::1002]:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'ipv4-config-causing-fallback-to-tcp.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'ipv4-config-causing-fallback-to-tcp.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:443,False', - '--expected_chosen_service_config', - '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooTwo","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooThree","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooFour","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooFive","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooSix","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooSeven","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooEight","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooNine","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooTen","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooEleven","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooTwelve","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooThirteen","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooFourteen","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooFifteen","service":"SimpleService"}],"waitForReady":true}]}', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'ipv4-config-causing-fallback-to-tcp.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'ipv4-config-causing-fallback-to-tcp.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:443,False', + '--expected_chosen_service_config', '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooTwo","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooThree","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooFour","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooFive","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooSix","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooSeven","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooEight","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooNine","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooTen","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooEleven","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooTwelve","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooThirteen","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooFourteen","service":"SimpleService"}],"waitForReady":true},{"name":[{"method":"FooFifteen","service":"SimpleService"}],"waitForReady":true}]}', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'srv-ipv4-single-target-srv-disabled.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'srv-ipv4-single-target-srv-disabled.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '2.3.4.5:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'False', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'srv-ipv4-single-target-srv-disabled.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'srv-ipv4-single-target-srv-disabled.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '2.3.4.5:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'False', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'srv-ipv4-multi-target-srv-disabled.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'srv-ipv4-multi-target-srv-disabled.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '9.2.3.5:443,False;9.2.3.6:443,False;9.2.3.7:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'False', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'srv-ipv4-multi-target-srv-disabled.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'srv-ipv4-multi-target-srv-disabled.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '9.2.3.5:443,False;9.2.3.6:443,False;9.2.3.7:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'False', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'srv-ipv6-single-target-srv-disabled.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'srv-ipv6-single-target-srv-disabled.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '[2600::1001]:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'False', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'srv-ipv6-single-target-srv-disabled.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'srv-ipv6-single-target-srv-disabled.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '[2600::1001]:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'False', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'srv-ipv6-multi-target-srv-disabled.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'srv-ipv6-multi-target-srv-disabled.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '[2600::1002]:443,False;[2600::1003]:443,False;[2600::1004]:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'False', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'srv-ipv6-multi-target-srv-disabled.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'srv-ipv6-multi-target-srv-disabled.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '[2600::1002]:443,False;[2600::1003]:443,False;[2600::1004]:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'False', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'srv-ipv4-simple-service-config-srv-disabled.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'srv-ipv4-simple-service-config-srv-disabled.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '5.5.3.4:443,False', - '--expected_chosen_service_config', - '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService"}],"waitForReady":true}]}', - '--expected_service_config_error', - '', - '--expected_lb_policy', - 'round_robin', - '--enable_srv_queries', - 'False', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'srv-ipv4-simple-service-config-srv-disabled.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'srv-ipv4-simple-service-config-srv-disabled.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '5.5.3.4:443,False', + '--expected_chosen_service_config', '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService"}],"waitForReady":true}]}', + '--expected_service_config_error', '', + '--expected_lb_policy', 'round_robin', + '--enable_srv_queries', 'False', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'srv-ipv4-simple-service-config-txt-disabled.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'srv-ipv4-simple-service-config-txt-disabled.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:1234,True', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'False', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'srv-ipv4-simple-service-config-txt-disabled.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'srv-ipv4-simple-service-config-txt-disabled.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:1234,True', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'False', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'ipv4-cpp-config-has-zero-percentage-txt-disabled.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'ipv4-cpp-config-has-zero-percentage-txt-disabled.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'False', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'ipv4-cpp-config-has-zero-percentage-txt-disabled.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'ipv4-cpp-config-has-zero-percentage-txt-disabled.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'False', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'ipv4-second-language-is-cpp-txt-disabled.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'ipv4-second-language-is-cpp-txt-disabled.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'False', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'ipv4-second-language-is-cpp-txt-disabled.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'ipv4-second-language-is-cpp-txt-disabled.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'False', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'ipv4-svc_cfg_bad_json.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'ipv4-svc_cfg_bad_json.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - 'JSON parse error', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'ipv4-svc_cfg_bad_json.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'ipv4-svc_cfg_bad_json.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', 'JSON parse error', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'ipv4-svc_cfg_bad_client_language.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'ipv4-svc_cfg_bad_client_language.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - 'clientLanguage error:is not an array', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'ipv4-svc_cfg_bad_client_language.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'ipv4-svc_cfg_bad_client_language.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', 'clientLanguage error:is not an array', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'ipv4-svc_cfg_bad_percentage.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'ipv4-svc_cfg_bad_percentage.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - 'percentage error:failed to parse number', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'ipv4-svc_cfg_bad_percentage.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'ipv4-svc_cfg_bad_percentage.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', 'percentage error:failed to parse number', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'ipv4-svc_cfg_bad_wait_for_ready.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'ipv4-svc_cfg_bad_wait_for_ready.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - 'field:methodConfig[0].waitForReady error:is not a boolean', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'ipv4-svc_cfg_bad_wait_for_ready.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'ipv4-svc_cfg_bad_wait_for_ready.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', 'field:methodConfig[0].waitForReady error:is not a boolean', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'no-srv-ipv4-single-target-inject-broken-nameservers.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'no-srv-ipv4-single-target-inject-broken-nameservers.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '5.5.5.5:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'True', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'no-srv-ipv4-single-target-inject-broken-nameservers.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'no-srv-ipv4-single-target-inject-broken-nameservers.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '5.5.5.5:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'True', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'ipv4-config-causing-fallback-to-tcp-inject-broken-nameservers.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'ipv4-config-causing-fallback-to-tcp-inject-broken-nameservers.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'False', - '--expected_addrs', - '1.2.3.4:443,False', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - 'field:loadBalancingPolicy error:is not a string', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'True', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'ipv4-config-causing-fallback-to-tcp-inject-broken-nameservers.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'ipv4-config-causing-fallback-to-tcp-inject-broken-nameservers.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'False', + '--expected_addrs', '1.2.3.4:443,False', + '--expected_chosen_service_config', '', + '--expected_service_config_error', 'field:loadBalancingPolicy error:is not a string', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'True', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 -test_runner_log( - 'Run test with target: %s' - % 'load-balanced-name-with-dualstack-balancer.resolver-tests-version-4.grpctestingexp.' -) -current_test_subprocess = subprocess.Popen( - [ - args.test_bin_path, - '--target_name', - 'load-balanced-name-with-dualstack-balancer.resolver-tests-version-4.grpctestingexp.', - '--do_ordered_address_comparison', - 'True', - '--expected_addrs', - '[::1]:1234,True;[2002::1111]:1234,True', - '--expected_chosen_service_config', - '', - '--expected_service_config_error', - '', - '--expected_lb_policy', - '', - '--enable_srv_queries', - 'True', - '--enable_txt_queries', - 'True', - '--inject_broken_nameserver_list', - 'False', - '--local_dns_server_address', - '127.0.0.1:%d' % args.dns_server_port, - ] - + args.extra_args.split(',') -) +test_runner_log('Run test with target: %s' % 'load-balanced-name-with-dualstack-balancer.resolver-tests-version-4.grpctestingexp.') +current_test_subprocess = subprocess.Popen([ + args.test_bin_path, + '--target_name', 'load-balanced-name-with-dualstack-balancer.resolver-tests-version-4.grpctestingexp.', + '--do_ordered_address_comparison', 'True', + '--expected_addrs', '[::1]:1234,True;[2002::1111]:1234,True', + '--expected_chosen_service_config', '', + '--expected_service_config_error', '', + '--expected_lb_policy', '', + '--enable_srv_queries', 'True', + '--enable_txt_queries', 'True', + '--inject_broken_nameserver_list', 'False', + '--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port + ] + args.extra_args.split(',')) current_test_subprocess.communicate() if current_test_subprocess.returncode != 0: num_test_failures += 1 diff --git a/test/cpp/naming/resolver_component_tests_runner_invoker.cc b/test/cpp/naming/resolver_component_tests_runner_invoker.cc index 4b438fdd4fb8e..64d83864640c7 100644 --- a/test/cpp/naming/resolver_component_tests_runner_invoker.cc +++ b/test/cpp/naming/resolver_component_tests_runner_invoker.cc @@ -29,11 +29,11 @@ #include #include -#include "src/core/util/crash.h" #include "absl/flags/flag.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/str_format.h" +#include "src/core/util/crash.h" #ifdef __FreeBSD__ #include diff --git a/test/cpp/performance/writes_per_rpc_test.cc b/test/cpp/performance/writes_per_rpc_test.cc index b6783092f0594..3da0c4acfe113 100644 --- a/test/cpp/performance/writes_per_rpc_test.cc +++ b/test/cpp/performance/writes_per_rpc_test.cc @@ -27,6 +27,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/config/core_configuration.h" #include "src/core/ext/transport/chttp2/transport/chttp2_transport.h" #include "src/core/lib/channel/channel_args.h" @@ -46,9 +49,6 @@ #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/benchmark_config.cc b/test/cpp/qps/benchmark_config.cc index e58ac6301d97b..007480fe9949f 100644 --- a/test/cpp/qps/benchmark_config.cc +++ b/test/cpp/qps/benchmark_config.cc @@ -21,10 +21,10 @@ #include #include -#include "src/core/util/crash.h" -#include "test/cpp/util/test_credentials_provider.h" #include "absl/flags/flag.h" #include "absl/log/check.h" +#include "src/core/util/crash.h" +#include "test/cpp/util/test_credentials_provider.h" ABSL_FLAG(bool, enable_log_reporter, true, "Enable reporting of benchmark results through GprLog"); diff --git a/test/cpp/qps/client.h b/test/cpp/qps/client.h index 5c9a8d26dec7e..fdc2e8bbff734 100644 --- a/test/cpp/qps/client.h +++ b/test/cpp/qps/client.h @@ -34,6 +34,10 @@ #include #include +#include "absl/log/log.h" +#include "absl/memory/memory.h" +#include "absl/strings/match.h" +#include "absl/strings/str_format.h" #include "src/core/util/crash.h" #include "src/core/util/env.h" #include "src/proto/grpc/testing/benchmark_service.grpc.pb.h" @@ -45,10 +49,6 @@ #include "test/cpp/qps/usage_timer.h" #include "test/cpp/util/create_test_channel.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" -#include "absl/strings/match.h" -#include "absl/strings/str_format.h" #define INPROC_NAME_PREFIX "qpsinproc:" diff --git a/test/cpp/qps/client_async.cc b/test/cpp/qps/client_async.cc index 74b9031a5b821..855859159cfd5 100644 --- a/test/cpp/qps/client_async.cc +++ b/test/cpp/qps/client_async.cc @@ -34,15 +34,15 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/memory/memory.h" #include "src/core/lib/surface/completion_queue.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/benchmark_service.grpc.pb.h" #include "test/cpp/qps/client.h" #include "test/cpp/qps/usage_timer.h" #include "test/cpp/util/create_test_channel.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/client_callback.cc b/test/cpp/qps/client_callback.cc index 7e667c921bc39..d34373def1557 100644 --- a/test/cpp/qps/client_callback.cc +++ b/test/cpp/qps/client_callback.cc @@ -31,12 +31,12 @@ #include #include +#include "absl/log/log.h" +#include "absl/memory/memory.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/benchmark_service.grpc.pb.h" #include "test/cpp/qps/client.h" #include "test/cpp/qps/usage_timer.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/client_sync.cc b/test/cpp/qps/client_sync.cc index e36e683f52211..fd2c6d17589af 100644 --- a/test/cpp/qps/client_sync.cc +++ b/test/cpp/qps/client_sync.cc @@ -32,13 +32,13 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/benchmark_service.grpc.pb.h" #include "test/cpp/qps/client.h" #include "test/cpp/qps/interarrival.h" #include "test/cpp/qps/usage_timer.h" -#include "absl/log/check.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/driver.cc b/test/cpp/qps/driver.cc index 3bf1b2b171742..706f4f8b87971 100644 --- a/test/cpp/qps/driver.cc +++ b/test/cpp/qps/driver.cc @@ -31,6 +31,8 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" #include "google/protobuf/timestamp.pb.h" #include "src/core/util/crash.h" #include "src/core/util/env.h" @@ -43,8 +45,6 @@ #include "test/cpp/qps/qps_worker.h" #include "test/cpp/qps/stats.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/log/check.h" -#include "absl/log/log.h" using std::deque; using std::list; diff --git a/test/cpp/qps/inproc_sync_unary_ping_pong_test.cc b/test/cpp/qps/inproc_sync_unary_ping_pong_test.cc index fd68120b83c72..766e555c7aa38 100644 --- a/test/cpp/qps/inproc_sync_unary_ping_pong_test.cc +++ b/test/cpp/qps/inproc_sync_unary_ping_pong_test.cc @@ -18,6 +18,7 @@ #include +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "test/core/test_util/test_config.h" #include "test/cpp/qps/benchmark_config.h" @@ -26,7 +27,6 @@ #include "test/cpp/qps/server.h" #include "test/cpp/util/test_config.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/json_run_localhost.cc b/test/cpp/qps/json_run_localhost.cc index ad28b5221efc4..c577328637b7c 100644 --- a/test/cpp/qps/json_run_localhost.cc +++ b/test/cpp/qps/json_run_localhost.cc @@ -28,12 +28,12 @@ #include #endif +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/core/util/env.h" #include "test/core/test_util/port.h" #include "test/cpp/util/subprocess.h" -#include "absl/log/check.h" -#include "absl/log/log.h" using grpc::SubProcess; diff --git a/test/cpp/qps/parse_json.cc b/test/cpp/qps/parse_json.cc index 6013d1c5b629a..2a28339d384e5 100644 --- a/test/cpp/qps/parse_json.cc +++ b/test/cpp/qps/parse_json.cc @@ -20,10 +20,10 @@ #include -#include "src/core/util/crash.h" #include "absl/log/check.h" #include "absl/log/log.h" #include "absl/strings/str_format.h" +#include "src/core/util/crash.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/qps_json_driver.cc b/test/cpp/qps/qps_json_driver.cc index 74f7679cf51c8..4f6cffc6fe2ab 100644 --- a/test/cpp/qps/qps_json_driver.cc +++ b/test/cpp/qps/qps_json_driver.cc @@ -23,6 +23,9 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/check.h" +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "test/core/test_util/test_config.h" #include "test/cpp/qps/benchmark_config.h" @@ -32,9 +35,6 @@ #include "test/cpp/qps/server.h" #include "test/cpp/util/test_config.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/flags/flag.h" -#include "absl/log/check.h" -#include "absl/log/log.h" ABSL_FLAG(std::string, scenarios_file, "", "JSON file containing an array of Scenario objects"); diff --git a/test/cpp/qps/qps_openloop_test.cc b/test/cpp/qps/qps_openloop_test.cc index 0145c0c8fa3b9..5335aab76899f 100644 --- a/test/cpp/qps/qps_openloop_test.cc +++ b/test/cpp/qps/qps_openloop_test.cc @@ -18,6 +18,7 @@ #include +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "test/core/test_util/test_config.h" #include "test/cpp/qps/benchmark_config.h" @@ -26,7 +27,6 @@ #include "test/cpp/qps/server.h" #include "test/cpp/util/test_config.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/qps_worker.cc b/test/cpp/qps/qps_worker.cc index 52a5d0ed8287b..7dff6a20c0afa 100644 --- a/test/cpp/qps/qps_worker.cc +++ b/test/cpp/qps/qps_worker.cc @@ -33,6 +33,9 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/memory/memory.h" #include "src/core/util/crash.h" #include "src/core/util/host_port.h" #include "src/proto/grpc/testing/worker_service.grpc.pb.h" @@ -43,9 +46,6 @@ #include "test/cpp/qps/server.h" #include "test/cpp/util/create_test_channel.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/report.cc b/test/cpp/qps/report.cc index a421bcc6f6c76..0b3784e488538 100644 --- a/test/cpp/qps/report.cc +++ b/test/cpp/qps/report.cc @@ -22,12 +22,12 @@ #include +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/report_qps_scenario_service.grpc.pb.h" #include "test/cpp/qps/driver.h" #include "test/cpp/qps/parse_json.h" #include "test/cpp/qps/stats.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/scenario_generator_helper.py b/test/cpp/qps/scenario_generator_helper.py index be8e1d12f3b8c..907925b5e521b 100755 --- a/test/cpp/qps/scenario_generator_helper.py +++ b/test/cpp/qps/scenario_generator_helper.py @@ -46,72 +46,74 @@ def _mutate_scenario(scenario_json): - """Modifies vanilla benchmark scenario config to make it more suitable for running as a unit test.""" - # tweak parameters to get fast test times - scenario_json = dict(scenario_json) - scenario_json["warmup_seconds"] = 0 - scenario_json["benchmark_seconds"] = 1 - outstanding_rpcs_divisor = 1 - if ( - scenario_json["client_config"]["client_type"] == "SYNC_CLIENT" - or scenario_json["server_config"]["server_type"] == "SYNC_SERVER" - ): - # reduce the number of threads needed for scenarios that use synchronous API - outstanding_rpcs_divisor = 10 - scenario_json["client_config"]["outstanding_rpcs_per_channel"] = max( - 1, - scenario_json["client_config"]["outstanding_rpcs_per_channel"] - // outstanding_rpcs_divisor, - ) - # Some scenarios use high channel count since when actually - # benchmarking, we want to saturate the machine that runs the benchmark. - # For unit test, this is an overkill. - max_client_channels = 16 - if scenario_json["client_config"]["rpc_type"] == "STREAMING_FROM_SERVER": - # streaming from server scenarios tend to have trouble shutting down - # quickly if there are too many channels. - max_client_channels = 4 - - scenario_json["client_config"]["client_channels"] = min( - max_client_channels, scenario_json["client_config"]["client_channels"] - ) - - return scenario_config.remove_nonproto_fields(scenario_json) + """Modifies vanilla benchmark scenario config to make it more suitable for running as a unit test.""" + # tweak parameters to get fast test times + scenario_json = dict(scenario_json) + scenario_json["warmup_seconds"] = 0 + scenario_json["benchmark_seconds"] = 1 + outstanding_rpcs_divisor = 1 + if ( + scenario_json["client_config"]["client_type"] == "SYNC_CLIENT" + or scenario_json["server_config"]["server_type"] == "SYNC_SERVER" + ): + # reduce the number of threads needed for scenarios that use synchronous API + outstanding_rpcs_divisor = 10 + scenario_json["client_config"]["outstanding_rpcs_per_channel"] = max( + 1, + scenario_json["client_config"]["outstanding_rpcs_per_channel"] + // outstanding_rpcs_divisor, + ) + # Some scenarios use high channel count since when actually + # benchmarking, we want to saturate the machine that runs the benchmark. + # For unit test, this is an overkill. + max_client_channels = 16 + if scenario_json["client_config"]["rpc_type"] == "STREAMING_FROM_SERVER": + # streaming from server scenarios tend to have trouble shutting down + # quickly if there are too many channels. + max_client_channels = 4 + + scenario_json["client_config"]["client_channels"] = min( + max_client_channels, scenario_json["client_config"]["client_channels"] + ) + + return scenario_config.remove_nonproto_fields(scenario_json) def generate_json_run_localhost_scenarios(): - return [ - _mutate_scenario(scenario_json) - for scenario_json in scenario_config.CXXLanguage().scenarios() - if "scalable" in scenario_json.get("CATEGORIES", []) - ] + return [ + _mutate_scenario(scenario_json) + for scenario_json in scenario_config.CXXLanguage().scenarios() + if "scalable" in scenario_json.get("CATEGORIES", []) + ] def generate_qps_json_driver_scenarios(): - return [ - _mutate_scenario(scenario_json) - for scenario_json in scenario_config.CXXLanguage().scenarios() - if "inproc" in scenario_json.get("CATEGORIES", []) - ] + return [ + _mutate_scenario(scenario_json) + for scenario_json in scenario_config.CXXLanguage().scenarios() + if "inproc" in scenario_json.get("CATEGORIES", []) + ] def generate_scenarios_bzl(json_scenarios, bzl_filename, bzl_variablename): - """Generate .bzl file that defines a variable with JSON scenario configs.""" - all_scenarios = [] - for scenario in json_scenarios: - scenario_name = scenario["name"] - # argument will be passed as "--scenarios_json" to the test binary - # the string needs to be quoted in \' to ensure it gets passed as a single argument in shell - scenarios_json_arg_str = "\\'%s\\'" % json.dumps({"scenarios": [scenario]}) - all_scenarios.append((scenario_name, scenarios_json_arg_str)) - - with open(bzl_filename, "w") as f: - f.write(_COPYRIGHT) - f.write( - '"""AUTOGENERATED: configuration of benchmark scenarios to be run' - ' as bazel test"""\n\n' - ) - f.write("%s = {\n" % bzl_variablename) - for scenario in all_scenarios: - f.write(" \"%s\": '%s',\n" % (scenario[0], scenario[1])) - f.write("}\n") + """Generate .bzl file that defines a variable with JSON scenario configs.""" + all_scenarios = [] + for scenario in json_scenarios: + scenario_name = scenario["name"] + # argument will be passed as "--scenarios_json" to the test binary + # the string needs to be quoted in \' to ensure it gets passed as a single argument in shell + scenarios_json_arg_str = "\\'%s\\'" % json.dumps( + {"scenarios": [scenario]} + ) + all_scenarios.append((scenario_name, scenarios_json_arg_str)) + + with open(bzl_filename, "w") as f: + f.write(_COPYRIGHT) + f.write( + '"""AUTOGENERATED: configuration of benchmark scenarios to be run' + ' as bazel test"""\n\n' + ) + f.write("%s = {\n" % bzl_variablename) + for scenario in all_scenarios: + f.write(" \"%s\": '%s',\n" % (scenario[0], scenario[1])) + f.write("}\n") diff --git a/test/cpp/qps/scenario_runner.cc b/test/cpp/qps/scenario_runner.cc index 674c4071ba0c6..220a65697fd63 100644 --- a/test/cpp/qps/scenario_runner.cc +++ b/test/cpp/qps/scenario_runner.cc @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "absl/flags/flag.h" +#include "absl/log/log.h" #include "src/core/lib/slice/slice_internal.h" #include "src/core/telemetry/stats.h" #include "src/core/telemetry/stats_data.h" @@ -23,8 +25,6 @@ #include "test/cpp/qps/parse_json.h" #include "test/cpp/util/test_config.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/flags/flag.h" -#include "absl/log/log.h" ABSL_FLAG(std::string, loadtest_config, "", "Path to a gRPC benchmark loadtest scenario JSON file. See " diff --git a/test/cpp/qps/scenario_runner.py b/test/cpp/qps/scenario_runner.py index c21062b7f8756..abddd3d1b3928 100644 --- a/test/cpp/qps/scenario_runner.py +++ b/test/cpp/qps/scenario_runner.py @@ -84,57 +84,59 @@ def run_command(filename): - cmd = [ - os.path.join( - os.path.dirname(os.path.abspath(__file__)), - "scenario_runner_cc", - ), - "--loadtest_config", - filename, - ] - if _RUNNER_CMD.value: - cmd = _RUNNER_CMD.value.split(" ") + cmd - print(cmd) - subprocess.run(cmd, check=True) - if _RUN_FIRST.value: - print("Exiting due to --run_first") - sys.exit(0) + cmd = [ + os.path.join( + os.path.dirname(os.path.abspath(__file__)), + "scenario_runner_cc", + ), + "--loadtest_config", + filename, + ] + if _RUNNER_CMD.value: + cmd = _RUNNER_CMD.value.split(" ") + cmd + print(cmd) + subprocess.run(cmd, check=True) + if _RUN_FIRST.value: + print("Exiting due to --run_first") + sys.exit(0) def run_loadtests(): - loadtests = [] - with open( - os.path.join( - os.path.dirname(os.path.abspath(__file__)), _LOADTEST_YAML.value - ) - ) as f: - loadtests = list(yaml.safe_load_all(f)) - if len(loadtests) > 1 and not (_RUN_FIRST.value or _RUN_ALL.value): - print( - "The loadtest configuration file contains more than one loadtest." - " Please specify --run_first or --run_all.", - file=sys.stderr, - ) - sys.exit(1) - for loadtest in loadtests: - with tempfile.NamedTemporaryFile() as tmp_f: - tmp_f.write("".join(loadtest["spec"]["scenariosJSON"]).encode("utf-8")) - tmp_f.flush() - run_command(tmp_f.name) + loadtests = [] + with open( + os.path.join( + os.path.dirname(os.path.abspath(__file__)), _LOADTEST_YAML.value + ) + ) as f: + loadtests = list(yaml.safe_load_all(f)) + if len(loadtests) > 1 and not (_RUN_FIRST.value or _RUN_ALL.value): + print( + "The loadtest configuration file contains more than one loadtest." + " Please specify --run_first or --run_all.", + file=sys.stderr, + ) + sys.exit(1) + for loadtest in loadtests: + with tempfile.NamedTemporaryFile() as tmp_f: + tmp_f.write( + "".join(loadtest["spec"]["scenariosJSON"]).encode("utf-8") + ) + tmp_f.flush() + run_command(tmp_f.name) def run_scenario_file(): - run_command(_SCENARIO_JSON.value) + run_command(_SCENARIO_JSON.value) def main(args): - if _LOADTEST_YAML.value: - run_loadtests() - elif _SCENARIO_JSON.value: - run_scenario_file() - else: - "You must provide either a scenario.json or loadtest.yaml" + if _LOADTEST_YAML.value: + run_loadtests() + elif _SCENARIO_JSON.value: + run_scenario_file() + else: + "You must provide either a scenario.json or loadtest.yaml" if __name__ == "__main__": - app.run(main) + app.run(main) diff --git a/test/cpp/qps/secure_sync_unary_ping_pong_test.cc b/test/cpp/qps/secure_sync_unary_ping_pong_test.cc index ca838725e6f5d..091502f96e387 100644 --- a/test/cpp/qps/secure_sync_unary_ping_pong_test.cc +++ b/test/cpp/qps/secure_sync_unary_ping_pong_test.cc @@ -18,6 +18,7 @@ #include +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "test/core/test_util/test_config.h" #include "test/cpp/qps/benchmark_config.h" @@ -26,7 +27,6 @@ #include "test/cpp/qps/server.h" #include "test/cpp/util/test_config.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/server.h b/test/cpp/qps/server.h index 2d6432634bbc3..4edf5b7531b8f 100644 --- a/test/cpp/qps/server.h +++ b/test/cpp/qps/server.h @@ -27,6 +27,7 @@ #include +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/control.pb.h" #include "src/proto/grpc/testing/messages.pb.h" @@ -34,7 +35,6 @@ #include "test/core/test_util/port.h" #include "test/cpp/qps/usage_timer.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/server_async.cc b/test/cpp/qps/server_async.cc index b8d043a7f6439..2e290ca7e3e07 100644 --- a/test/cpp/qps/server_async.cc +++ b/test/cpp/qps/server_async.cc @@ -33,6 +33,7 @@ #include #include +#include "absl/log/log.h" #include "src/core/lib/surface/completion_queue.h" #include "src/core/util/crash.h" #include "src/core/util/host_port.h" @@ -40,7 +41,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/qps/qps_server_builder.h" #include "test/cpp/qps/server.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/server_callback.cc b/test/cpp/qps/server_callback.cc index db03342466ba4..a3f56541d935e 100644 --- a/test/cpp/qps/server_callback.cc +++ b/test/cpp/qps/server_callback.cc @@ -22,12 +22,12 @@ #include #include +#include "absl/log/log.h" #include "src/core/util/host_port.h" #include "src/proto/grpc/testing/benchmark_service.grpc.pb.h" #include "test/cpp/qps/qps_server_builder.h" #include "test/cpp/qps/server.h" #include "test/cpp/qps/usage_timer.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/server_sync.cc b/test/cpp/qps/server_sync.cc index 6a1f7db02fbf3..54aaee5d245a7 100644 --- a/test/cpp/qps/server_sync.cc +++ b/test/cpp/qps/server_sync.cc @@ -25,12 +25,12 @@ #include #include +#include "absl/log/log.h" #include "src/core/util/host_port.h" #include "src/proto/grpc/testing/benchmark_service.grpc.pb.h" #include "test/cpp/qps/qps_server_builder.h" #include "test/cpp/qps/server.h" #include "test/cpp/qps/usage_timer.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/usage_timer.cc b/test/cpp/qps/usage_timer.cc index 4a78a5c18115f..7a25691801c5c 100644 --- a/test/cpp/qps/usage_timer.cc +++ b/test/cpp/qps/usage_timer.cc @@ -24,8 +24,8 @@ #include #include -#include "src/core/util/crash.h" #include "absl/log/log.h" +#include "src/core/util/crash.h" #ifdef __linux__ #include #include diff --git a/test/cpp/qps/worker.cc b/test/cpp/qps/worker.cc index 87a22ad714191..5d06dd2cb47a2 100644 --- a/test/cpp/qps/worker.cc +++ b/test/cpp/qps/worker.cc @@ -24,12 +24,12 @@ #include #include +#include "absl/flags/flag.h" #include "src/core/telemetry/stats.h" #include "test/core/test_util/test_config.h" #include "test/cpp/qps/qps_worker.h" #include "test/cpp/util/test_config.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/flags/flag.h" ABSL_FLAG(int32_t, driver_port, 0, "Port for communication with driver"); ABSL_FLAG(int32_t, server_port, 0, diff --git a/test/cpp/security/tls_certificate_verifier_test.cc b/test/cpp/security/tls_certificate_verifier_test.cc index 151f192381008..3a17f2f01755e 100644 --- a/test/cpp/security/tls_certificate_verifier_test.cc +++ b/test/cpp/security/tls_certificate_verifier_test.cc @@ -21,12 +21,12 @@ #include +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "src/cpp/client/secure_credentials.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/tls_test_utils.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" namespace { diff --git a/test/cpp/server/authorization_policy_provider_test.cc b/test/cpp/server/authorization_policy_provider_test.cc index 8c60547ad2736..348c999128606 100644 --- a/test/cpp/server/authorization_policy_provider_test.cc +++ b/test/cpp/server/authorization_policy_provider_test.cc @@ -14,17 +14,17 @@ #include +#include "gtest/gtest.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" -#include "gtest/gtest.h" -#define VALID_POLICY_PATH_1 \ +#define VALID_POLICY_PATH_1 \ "test/core/security/authorization/test_policies/" \ "valid_policy_1.json" -#define VALID_POLICY_PATH_2 \ +#define VALID_POLICY_PATH_2 \ "test/core/security/authorization/test_policies/" \ "valid_policy_2.json" -#define INVALID_POLICY_PATH \ +#define INVALID_POLICY_PATH \ "test/core/security/authorization/test_policies/" \ "invalid_policy.json" diff --git a/test/cpp/server/credentials_test.cc b/test/cpp/server/credentials_test.cc index 3273bdbda01a7..854a0ec9a1829 100644 --- a/test/cpp/server/credentials_test.cc +++ b/test/cpp/server/credentials_test.cc @@ -23,18 +23,17 @@ #include +#include "absl/log/check.h" +#include "gtest/gtest.h" #include "test/core/test_util/test_config.h" #include "test/core/test_util/tls_utils.h" #include "test/cpp/util/tls_test_utils.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" #define SERVER_CERT_PATH "src/core/tsi/test_creds/server1.pem" #define SERVER_KEY_PATH "src/core/tsi/test_creds/server1.key" #define CRL_DIR_PATH "test/core/tsi/test_creds/crl_data/crls" -#define MALFORMED_CERT_PATH \ - "src/core/tsi/test_creds/malformed-cert.pem" +#define MALFORMED_CERT_PATH "src/core/tsi/test_creds/malformed-cert.pem" namespace { diff --git a/test/cpp/server/load_reporter/get_cpu_stats_test.cc b/test/cpp/server/load_reporter/get_cpu_stats_test.cc index 0d575688f0867..c555c20ab3307 100644 --- a/test/cpp/server/load_reporter/get_cpu_stats_test.cc +++ b/test/cpp/server/load_reporter/get_cpu_stats_test.cc @@ -21,9 +21,9 @@ #include #include +#include "gtest/gtest.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc { namespace testing { diff --git a/test/cpp/server/load_reporter/load_data_store_test.cc b/test/cpp/server/load_reporter/load_data_store_test.cc index b915477d3a933..f806b944e53fa 100644 --- a/test/cpp/server/load_reporter/load_data_store_test.cc +++ b/test/cpp/server/load_reporter/load_data_store_test.cc @@ -24,10 +24,10 @@ #include #include +#include "gtest/gtest.h" #include "src/cpp/server/load_reporter/constants.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc { namespace testing { diff --git a/test/cpp/server/load_reporter/load_reporter_test.cc b/test/cpp/server/load_reporter/load_reporter_test.cc index 2d7d4822166ad..fbf104634e39b 100644 --- a/test/cpp/server/load_reporter/load_reporter_test.cc +++ b/test/cpp/server/load_reporter/load_reporter_test.cc @@ -24,17 +24,17 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/memory/memory.h" +#include "gmock/gmock.h" +#include "gtest/gtest.h" #include "opencensus/stats/testing/test_utils.h" #include "src/core/ext/filters/load_reporting/registered_opencensus_objects.h" #include "src/core/lib/iomgr/exec_ctx.h" #include "src/cpp/server/load_reporter/constants.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/memory/memory.h" namespace grpc { namespace testing { diff --git a/test/cpp/server/orca_service_test.cc b/test/cpp/server/orca_service_test.cc index 85dc9881ce58a..2627f6bb5c0e4 100644 --- a/test/cpp/server/orca_service_test.cc +++ b/test/cpp/server/orca_service_test.cc @@ -27,11 +27,11 @@ #include #include -#include "src/core/util/notification.h" -#include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" #include "absl/strings/string_view.h" #include "absl/time/time.h" +#include "gtest/gtest.h" +#include "src/core/util/notification.h" +#include "test/core/test_util/test_config.h" namespace grpc { namespace testing { diff --git a/test/cpp/server/server_builder_test.cc b/test/cpp/server/server_builder_test.cc index 4ad7c2e608f6b..fcb60598c9503 100644 --- a/test/cpp/server/server_builder_test.cc +++ b/test/cpp/server/server_builder_test.cc @@ -23,12 +23,12 @@ #include #include +#include "gtest/gtest.h" #include "src/core/util/notification.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/event_engine/event_engine_test_utils.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc { namespace { diff --git a/test/cpp/server/server_builder_with_socket_mutator_test.cc b/test/cpp/server/server_builder_with_socket_mutator_test.cc index b04057a02ba5e..5ecbeaad0230a 100644 --- a/test/cpp/server/server_builder_with_socket_mutator_test.cc +++ b/test/cpp/server/server_builder_with_socket_mutator_test.cc @@ -23,11 +23,11 @@ #include +#include "gtest/gtest.h" #include "src/core/lib/iomgr/socket_mutator.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" // This test does a sanity check that grpc_socket_mutator's // are used by servers. It's meant to protect code and end-to-end diff --git a/test/cpp/server/server_request_call_test.cc b/test/cpp/server/server_request_call_test.cc index beb7838a1b142..4ad5be3259a9b 100644 --- a/test/cpp/server/server_request_call_test.cc +++ b/test/cpp/server/server_request_call_test.cc @@ -24,13 +24,13 @@ #include +#include "absl/log/log.h" +#include "absl/strings/str_format.h" +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" namespace grpc { namespace { diff --git a/test/cpp/test/mock_stream_test.cc b/test/cpp/test/mock_stream_test.cc index b2c557065ffa4..91ba1f12ec198 100644 --- a/test/cpp/test/mock_stream_test.cc +++ b/test/cpp/test/mock_stream_test.cc @@ -18,9 +18,9 @@ #include -#include "src/proto/grpc/testing/echo.grpc.pb.h" -#include "gtest/gtest.h" #include "absl/memory/memory.h" +#include "gtest/gtest.h" +#include "src/proto/grpc/testing/echo.grpc.pb.h" using grpc::testing::EchoRequest; using grpc::testing::EchoResponse; diff --git a/test/cpp/thread_manager/thread_manager_test.cc b/test/cpp/thread_manager/thread_manager_test.cc index f2f9c14a2073a..662ca921ce47c 100644 --- a/test/cpp/thread_manager/thread_manager_test.cc +++ b/test/cpp/thread_manager/thread_manager_test.cc @@ -27,10 +27,10 @@ #include #include +#include "absl/log/log.h" +#include "gtest/gtest.h" #include "src/core/util/crash.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" -#include "absl/log/log.h" namespace grpc { namespace { diff --git a/test/cpp/util/byte_buffer_test.cc b/test/cpp/util/byte_buffer_test.cc index ab6b5f7ca740b..17f500ba78048 100644 --- a/test/cpp/util/byte_buffer_test.cc +++ b/test/cpp/util/byte_buffer_test.cc @@ -25,8 +25,8 @@ #include #include -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc { diff --git a/test/cpp/util/channel_trace_proto_helper.cc b/test/cpp/util/channel_trace_proto_helper.cc index 3cae8c4fe58bd..65bb27811ac34 100644 --- a/test/cpp/util/channel_trace_proto_helper.cc +++ b/test/cpp/util/channel_trace_proto_helper.cc @@ -23,13 +23,13 @@ #include #include +#include "gtest/gtest.h" #include "src/core/lib/iomgr/error.h" #include "src/core/util/crash.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_reader.h" #include "src/core/util/json/json_writer.h" #include "src/proto/grpc/channelz/channelz.pb.h" -#include "gtest/gtest.h" namespace grpc { diff --git a/test/cpp/util/channelz_sampler.cc b/test/cpp/util/channelz_sampler.cc index 601d5af3e395d..6344dbd272ce7 100644 --- a/test/cpp/util/channelz_sampler.cc +++ b/test/cpp/util/channelz_sampler.cc @@ -38,6 +38,11 @@ #include #include +#include "absl/flags/flag.h" +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" #include "google/protobuf/text_format.h" #include "src/core/util/json/json.h" #include "src/core/util/json/json_writer.h" @@ -46,11 +51,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/util/test_config.h" #include "test/cpp/util/test_credentials_provider.h" -#include "absl/flags/flag.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_format.h" -#include "absl/strings/str_join.h" ABSL_FLAG(std::string, server_address, "", "channelz server address"); ABSL_FLAG(std::string, custom_credentials_type, "", "custom credentials type"); @@ -445,7 +445,8 @@ class ChannelzSampler final { for (const auto& _subchannel : all_subchannels_) { std::cout << "subchannel ID" << GetSubchannelID(_subchannel) << "_" << GetSubchannelName(_subchannel) << " data:" << std::endl; - ::google::protobuf::TextFormat::PrintToString(_subchannel.data(), &data_str); + ::google::protobuf::TextFormat::PrintToString(_subchannel.data(), + &data_str); printf("%s\n", data_str.c_str()); } for (const auto& _server : all_servers_) { @@ -477,7 +478,8 @@ class ChannelzSampler final { std::string id = grpc::to_string(GetSubchannelID(subchannel)); std::string type = "Subchannel"; std::string description; - ::google::protobuf::TextFormat::PrintToString(subchannel.data(), &description); + ::google::protobuf::TextFormat::PrintToString(subchannel.data(), + &description); grpc_core::Json description_json = grpc_core::Json::FromString(description); StoreEntityInJson(id, type, description_json); } diff --git a/test/cpp/util/channelz_sampler_test.cc b/test/cpp/util/channelz_sampler_test.cc index 63edf7e28dead..eb480e5e1436e 100644 --- a/test/cpp/util/channelz_sampler_test.cc +++ b/test/cpp/util/channelz_sampler_test.cc @@ -37,6 +37,10 @@ #include #include +#include "absl/log/check.h" +#include "absl/log/log.h" +#include "absl/strings/str_cat.h" +#include "gtest/gtest.h" #include "src/core/util/env.h" #include "src/cpp/server/channelz/channelz_service.h" #include "src/proto/grpc/testing/test.grpc.pb.h" @@ -44,10 +48,6 @@ #include "test/core/test_util/test_config.h" #include "test/cpp/util/subprocess.h" #include "test/cpp/util/test_credentials_provider.h" -#include "gtest/gtest.h" -#include "absl/log/check.h" -#include "absl/log/log.h" -#include "absl/strings/str_cat.h" static std::string g_root; diff --git a/test/cpp/util/cli_call.cc b/test/cpp/util/cli_call.cc index 4a8d7870b0ce7..367669fecf159 100644 --- a/test/cpp/util/cli_call.cc +++ b/test/cpp/util/cli_call.cc @@ -28,8 +28,8 @@ #include #include -#include "src/core/util/crash.h" #include "absl/log/check.h" +#include "src/core/util/crash.h" namespace grpc { namespace testing { diff --git a/test/cpp/util/cli_call_test.cc b/test/cpp/util/cli_call_test.cc index cfaea4ecf9ce7..d230cbe1f480c 100644 --- a/test/cpp/util/cli_call_test.cc +++ b/test/cpp/util/cli_call_test.cc @@ -26,11 +26,11 @@ #include #include +#include "gtest/gtest.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "test/core/test_util/port.h" #include "test/core/test_util/test_config.h" #include "test/cpp/util/string_ref_helper.h" -#include "gtest/gtest.h" namespace grpc { namespace testing { diff --git a/test/cpp/util/cli_credentials.cc b/test/cpp/util/cli_credentials.cc index 96c41d0e3c762..e3aba5e5f1176 100644 --- a/test/cpp/util/cli_credentials.cc +++ b/test/cpp/util/cli_credentials.cc @@ -21,10 +21,10 @@ #include #include -#include "src/core/util/crash.h" -#include "src/core/util/load_file.h" #include "absl/flags/flag.h" #include "absl/log/log.h" +#include "src/core/util/crash.h" +#include "src/core/util/load_file.h" ABSL_RETIRED_FLAG(bool, enable_ssl, false, "Replaced by --channel_creds_type=ssl."); diff --git a/test/cpp/util/create_test_channel.cc b/test/cpp/util/create_test_channel.cc index 986e614e43b23..38828ec698ae6 100644 --- a/test/cpp/util/create_test_channel.cc +++ b/test/cpp/util/create_test_channel.cc @@ -21,10 +21,10 @@ #include #include -#include "src/core/util/crash.h" -#include "test/cpp/util/test_credentials_provider.h" #include "absl/flags/flag.h" #include "absl/log/check.h" +#include "src/core/util/crash.h" +#include "test/cpp/util/test_credentials_provider.h" ABSL_FLAG(std::string, grpc_test_use_grpclb_with_child_policy, "", "If non-empty, set a static service config on channels created by " diff --git a/test/cpp/util/error_details_test.cc b/test/cpp/util/error_details_test.cc index 6d2b4fe21decf..0d5eabb49c0f8 100644 --- a/test/cpp/util/error_details_test.cc +++ b/test/cpp/util/error_details_test.cc @@ -19,9 +19,9 @@ #include #include "google/rpc/status.pb.h" +#include "gtest/gtest.h" #include "src/proto/grpc/testing/echo_messages.pb.h" #include "test/core/test_util/test_config.h" -#include "gtest/gtest.h" namespace grpc { namespace { diff --git a/test/cpp/util/grpc_cli.cc b/test/cpp/util/grpc_cli.cc index 035eee5b4bb64..9790d5ec003f6 100644 --- a/test/cpp/util/grpc_cli.cc +++ b/test/cpp/util/grpc_cli.cc @@ -67,10 +67,10 @@ #include #include +#include "absl/flags/flag.h" #include "test/cpp/util/cli_credentials.h" #include "test/cpp/util/grpc_tool.h" #include "test/cpp/util/test_config.h" -#include "absl/flags/flag.h" ABSL_FLAG(std::string, outfile, "", "Output file (default is stdout)"); diff --git a/test/cpp/util/grpc_tool.cc b/test/cpp/util/grpc_tool.cc index 7d86114e241c5..9040de69a9bd6 100644 --- a/test/cpp/util/grpc_tool.cc +++ b/test/cpp/util/grpc_tool.cc @@ -35,14 +35,14 @@ #include #include -#include "test/cpp/util/cli_call.h" -#include "test/cpp/util/proto_file_parser.h" -#include "test/cpp/util/proto_reflection_descriptor_database.h" -#include "test/cpp/util/service_describer.h" #include "absl/flags/flag.h" #include "absl/strings/numbers.h" #include "absl/strings/str_split.h" #include "absl/strings/string_view.h" +#include "test/cpp/util/cli_call.h" +#include "test/cpp/util/proto_file_parser.h" +#include "test/cpp/util/proto_reflection_descriptor_database.h" +#include "test/cpp/util/service_describer.h" #if GPR_WINDOWS #include diff --git a/test/cpp/util/grpc_tool_test.cc b/test/cpp/util/grpc_tool_test.cc index f5a4e59b6affc..dc6c9cb997c89 100644 --- a/test/cpp/util/grpc_tool_test.cc +++ b/test/cpp/util/grpc_tool_test.cc @@ -32,6 +32,10 @@ #include #include +#include "absl/flags/declare.h" +#include "absl/flags/flag.h" +#include "absl/strings/str_split.h" +#include "gtest/gtest.h" #include "src/core/util/env.h" #include "src/proto/grpc/testing/echo.grpc.pb.h" #include "src/proto/grpc/testing/echo.pb.h" @@ -41,10 +45,6 @@ #include "test/cpp/util/cli_credentials.h" #include "test/cpp/util/string_ref_helper.h" #include "test/cpp/util/test_config.h" -#include "gtest/gtest.h" -#include "absl/flags/declare.h" -#include "absl/flags/flag.h" -#include "absl/strings/str_split.h" #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" #define SERVER_CERT_PATH "src/core/tsi/test_creds/server1.pem" @@ -69,7 +69,7 @@ using grpc::testing::EchoResponse; "UnimplementedBidi\n" #define ECHO_TEST_SERVICE_DESCRIPTION \ - "filename: src/proto/grpc/testing/echo.proto\n" \ + "filename: src/proto/grpc/testing/echo.proto\n" \ "package: grpc.testing;\n" \ "service EchoTestService {\n" \ " rpc Echo(grpc.testing.EchoRequest) returns (grpc.testing.EchoResponse) " \ diff --git a/test/cpp/util/metrics_server.cc b/test/cpp/util/metrics_server.cc index 5355416321a35..a3830c73a8223 100644 --- a/test/cpp/util/metrics_server.cc +++ b/test/cpp/util/metrics_server.cc @@ -21,10 +21,10 @@ #include #include +#include "absl/log/log.h" #include "src/core/util/crash.h" #include "src/proto/grpc/testing/metrics.grpc.pb.h" #include "src/proto/grpc/testing/metrics.pb.h" -#include "absl/log/log.h" namespace grpc { namespace testing { diff --git a/test/cpp/util/proto_buffer_reader_test.cc b/test/cpp/util/proto_buffer_reader_test.cc index 78bc4cfc35f68..573f32c6c95fb 100644 --- a/test/cpp/util/proto_buffer_reader_test.cc +++ b/test/cpp/util/proto_buffer_reader_test.cc @@ -17,8 +17,8 @@ #include #include -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc { namespace { diff --git a/test/cpp/util/proto_buffer_writer_test.cc b/test/cpp/util/proto_buffer_writer_test.cc index 14e371776ddd2..1f5a4673137fa 100644 --- a/test/cpp/util/proto_buffer_writer_test.cc +++ b/test/cpp/util/proto_buffer_writer_test.cc @@ -17,8 +17,8 @@ #include #include -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc { namespace { diff --git a/test/cpp/util/proto_reflection_descriptor_database.cc b/test/cpp/util/proto_reflection_descriptor_database.cc index 42319daf6c205..6025a502c420a 100644 --- a/test/cpp/util/proto_reflection_descriptor_database.cc +++ b/test/cpp/util/proto_reflection_descriptor_database.cc @@ -20,8 +20,8 @@ #include -#include "src/core/util/crash.h" #include "absl/log/log.h" +#include "src/core/util/crash.h" using grpc::reflection::v1alpha::ErrorResponse; using grpc::reflection::v1alpha::ListServiceResponse; diff --git a/test/cpp/util/slice_test.cc b/test/cpp/util/slice_test.cc index de1a667836305..a9ff9a757df63 100644 --- a/test/cpp/util/slice_test.cc +++ b/test/cpp/util/slice_test.cc @@ -21,8 +21,8 @@ #include #include -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc { diff --git a/test/cpp/util/string_ref_test.cc b/test/cpp/util/string_ref_test.cc index 486b668c36651..1ad2b7a4ee4f7 100644 --- a/test/cpp/util/string_ref_test.cc +++ b/test/cpp/util/string_ref_test.cc @@ -19,8 +19,8 @@ #include #include -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" namespace grpc { namespace { diff --git a/test/cpp/util/test_credentials_provider.cc b/test/cpp/util/test_credentials_provider.cc index 0db07f15a5164..748d1398a96fe 100644 --- a/test/cpp/util/test_credentials_provider.cc +++ b/test/cpp/util/test_credentials_provider.cc @@ -28,11 +28,11 @@ #include #include -#include "src/core/util/crash.h" -#include "test/core/end2end/data/ssl_test_data.h" #include "absl/flags/flag.h" #include "absl/log/check.h" #include "absl/log/log.h" +#include "src/core/util/crash.h" +#include "test/core/end2end/data/ssl_test_data.h" ABSL_FLAG(std::string, tls_cert_file, "", "The TLS cert file used when --use_tls=true"); diff --git a/test/cpp/util/time_test.cc b/test/cpp/util/time_test.cc index 3f7d022489b57..fa6b53a433761 100644 --- a/test/cpp/util/time_test.cc +++ b/test/cpp/util/time_test.cc @@ -19,8 +19,8 @@ #include #include -#include "test/core/test_util/test_config.h" #include "gtest/gtest.h" +#include "test/core/test_util/test_config.h" using std::chrono::microseconds; using std::chrono::system_clock; diff --git a/test/cpp/util/windows/manifest_file.cc b/test/cpp/util/windows/manifest_file.cc index 72516b1998dba..d983f74bcc34f 100644 --- a/test/cpp/util/windows/manifest_file.cc +++ b/test/cpp/util/windows/manifest_file.cc @@ -24,11 +24,11 @@ #include #include -#include "src/core/util/crash.h" #include "absl/log/check.h" #include "absl/strings/str_format.h" #include "absl/strings/str_replace.h" #include "absl/strings/str_split.h" +#include "src/core/util/crash.h" namespace grpc { namespace testing { diff --git a/tools/distrib/python/grpcio_tools/grpc_tools/command.py b/tools/distrib/python/grpcio_tools/grpc_tools/command.py index 7eccf798a840a..33e43ffc6fb78 100644 --- a/tools/distrib/python/grpcio_tools/grpc_tools/command.py +++ b/tools/distrib/python/grpcio_tools/grpc_tools/command.py @@ -19,72 +19,78 @@ import setuptools if sys.version_info >= (3, 9, 0): - from importlib import resources + from importlib import resources else: - import pkg_resources + import pkg_resources def _get_resource_file_name( package_or_requirement: str, resource_name: str ) -> str: - """Obtain the filename for a resource on the file system.""" - file_name = None - if sys.version_info >= (3, 9, 0): - file_name = ( - resources.files(package_or_requirement) / resource_name - ).resolve() - else: - file_name = pkg_resources.resource_filename( - package_or_requirement, resource_name - ) - return str(file_name) + """Obtain the filename for a resource on the file system.""" + file_name = None + if sys.version_info >= (3, 9, 0): + file_name = ( + resources.files(package_or_requirement) / resource_name + ).resolve() + else: + file_name = pkg_resources.resource_filename( + package_or_requirement, resource_name + ) + return str(file_name) def build_package_protos(package_root, strict_mode=False): - proto_files = [] - inclusion_root = os.path.abspath(package_root) - for root, _, files in os.walk(inclusion_root): - for filename in files: - if filename.endswith(".proto"): - proto_files.append(os.path.abspath(os.path.join(root, filename))) + proto_files = [] + inclusion_root = os.path.abspath(package_root) + for root, _, files in os.walk(inclusion_root): + for filename in files: + if filename.endswith(".proto"): + proto_files.append( + os.path.abspath(os.path.join(root, filename)) + ) - well_known_protos_include = _get_resource_file_name("grpc_tools", "_proto") + well_known_protos_include = _get_resource_file_name("grpc_tools", "_proto") - for proto_file in proto_files: - command = [ - "grpc_tools.protoc", - "--proto_path={}".format(inclusion_root), - "--proto_path={}".format(well_known_protos_include), - "--python_out={}".format(inclusion_root), - "--pyi_out={}".format(inclusion_root), - "--grpc_python_out={}".format(inclusion_root), - ] + [proto_file] - if protoc.main(command) != 0: - if strict_mode: - raise Exception("error: {} failed".format(command)) - else: - sys.stderr.write("warning: {} failed".format(command)) + for proto_file in proto_files: + command = [ + "grpc_tools.protoc", + "--proto_path={}".format(inclusion_root), + "--proto_path={}".format(well_known_protos_include), + "--python_out={}".format(inclusion_root), + "--pyi_out={}".format(inclusion_root), + "--grpc_python_out={}".format(inclusion_root), + ] + [proto_file] + if protoc.main(command) != 0: + if strict_mode: + raise Exception("error: {} failed".format(command)) + else: + sys.stderr.write("warning: {} failed".format(command)) class BuildPackageProtos(setuptools.Command): - """Command to generate project *_pb2.py modules from proto files.""" + """Command to generate project *_pb2.py modules from proto files.""" - description = "build grpc protobuf modules" - user_options = [( - "strict-mode", - "s", - "exit with non-zero value if the proto compiling fails.", - )] + description = "build grpc protobuf modules" + user_options = [ + ( + "strict-mode", + "s", + "exit with non-zero value if the proto compiling fails.", + ) + ] - def initialize_options(self): - self.strict_mode = False + def initialize_options(self): + self.strict_mode = False - def finalize_options(self): - pass + def finalize_options(self): + pass - def run(self): - # due to limitations of the proto generator, we require that only *one* - # directory is provided as an 'include' directory. We assume it's the '' key - # to `self.distribution.package_dir` (and get a key error if it's not - # there). - build_package_protos(self.distribution.package_dir[""], self.strict_mode) + def run(self): + # due to limitations of the proto generator, we require that only *one* + # directory is provided as an 'include' directory. We assume it's the '' key + # to `self.distribution.package_dir` (and get a key error if it's not + # there). + build_package_protos( + self.distribution.package_dir[""], self.strict_mode + ) diff --git a/tools/distrib/python/grpcio_tools/grpc_tools/main.cc b/tools/distrib/python/grpcio_tools/grpc_tools/main.cc index 7777b69c4b437..6ccdafaae29fe 100644 --- a/tools/distrib/python/grpcio_tools/grpc_tools/main.cc +++ b/tools/distrib/python/grpcio_tools/grpc_tools/main.cc @@ -14,6 +14,14 @@ #include "grpc_tools/main.h" +#include +#include +#include +#include +#include +#include +#include + #include #include #include @@ -21,15 +29,8 @@ #include #include -#include "src/compiler/python_generator.h" #include "absl/strings/string_view.h" -#include -#include -#include -#include -#include -#include -#include +#include "src/compiler/python_generator.h" using ::google::protobuf::FileDescriptor; using ::google::protobuf::compiler::CodeGenerator; @@ -93,7 +94,8 @@ class GeneratorContextImpl : public GeneratorContext { return Open(filename); } - void ListParsedFiles(std::vector* output) { + void ListParsedFiles( + std::vector* output) { *output = parsed_files_; } diff --git a/tools/distrib/python/grpcio_tools/grpc_tools/protoc.py b/tools/distrib/python/grpcio_tools/grpc_tools/protoc.py index 10be761dd8757..0eb9c8c07f78f 100644 --- a/tools/distrib/python/grpcio_tools/grpc_tools/protoc.py +++ b/tools/distrib/python/grpcio_tools/grpc_tools/protoc.py @@ -20,9 +20,9 @@ from grpc_tools import _protoc_compiler if sys.version_info >= (3, 9, 0): - from importlib import resources + from importlib import resources else: - import pkg_resources + import pkg_resources _PROTO_MODULE_SUFFIX = "_pb2" _SERVICE_MODULE_SUFFIX = "_pb2_grpc" @@ -31,181 +31,185 @@ def main(command_arguments): - """Run the protocol buffer compiler with the given command-line arguments. + """Run the protocol buffer compiler with the given command-line arguments. - Args: - command_arguments: a list of strings representing command line arguments to - `protoc`. - """ - command_arguments = [argument.encode() for argument in command_arguments] - return _protoc_compiler.run_main(command_arguments) + Args: + command_arguments: a list of strings representing command line arguments to + `protoc`. + """ + command_arguments = [argument.encode() for argument in command_arguments] + return _protoc_compiler.run_main(command_arguments) def _get_resource_file_name( package_or_requirement: str, resource_name: str ) -> str: - """Obtain the filename for a resource on the file system.""" - file_name = None - if sys.version_info >= (3, 9, 0): - file_name = ( - resources.files(package_or_requirement) / resource_name - ).resolve() - else: - file_name = pkg_resources.resource_filename( - package_or_requirement, resource_name - ) - return str(file_name) + """Obtain the filename for a resource on the file system.""" + file_name = None + if sys.version_info >= (3, 9, 0): + file_name = ( + resources.files(package_or_requirement) / resource_name + ).resolve() + else: + file_name = pkg_resources.resource_filename( + package_or_requirement, resource_name + ) + return str(file_name) # NOTE(rbellevi): importlib.abc is not supported on 3.4. if sys.version_info >= (3, 5, 0): - import contextlib - import importlib - import importlib.abc - import importlib.machinery - import threading - - _FINDERS_INSTALLED = False - _FINDERS_INSTALLED_LOCK = threading.Lock() - - def _maybe_install_proto_finders(): - global _FINDERS_INSTALLED - with _FINDERS_INSTALLED_LOCK: - if not _FINDERS_INSTALLED: - sys.meta_path.extend([ - ProtoFinder(_PROTO_MODULE_SUFFIX, _protoc_compiler.get_protos), - ProtoFinder( - _SERVICE_MODULE_SUFFIX, - _protoc_compiler.get_services, - ), - ]) - - proto_include = _get_resource_file_name("grpc_tools", "_proto") - sys.path.append(proto_include) - - _FINDERS_INSTALLED = True - - def _module_name_to_proto_file(suffix, module_name): - components = module_name.split(".") - proto_name = components[-1][: -1 * len(suffix)] - # NOTE(rbellevi): The Protobuf library expects this path to use - # forward slashes on every platform. - return "/".join(components[:-1] + [proto_name + ".proto"]) - - def _proto_file_to_module_name(suffix, proto_file): - components = proto_file.split(os.path.sep) - proto_base_name = os.path.splitext(components[-1])[0] - return ".".join(components[:-1] + [proto_base_name + suffix]) - - def _protos(protobuf_path): - """Returns a gRPC module generated from the indicated proto file.""" - _maybe_install_proto_finders() - module_name = _proto_file_to_module_name( - _PROTO_MODULE_SUFFIX, protobuf_path - ) - module = importlib.import_module(module_name) - return module - - def _services(protobuf_path): - """Returns a module generated from the indicated proto file.""" - _maybe_install_proto_finders() - _protos(protobuf_path) - module_name = _proto_file_to_module_name( - _SERVICE_MODULE_SUFFIX, protobuf_path - ) - module = importlib.import_module(module_name) - return module - - def _protos_and_services(protobuf_path): - """Returns two modules, corresponding to _pb2.py and _pb2_grpc.py files.""" - return (_protos(protobuf_path), _services(protobuf_path)) - - _proto_code_cache = {} - _proto_code_cache_lock = threading.RLock() - - class ProtoLoader(importlib.abc.Loader): - - def __init__( - self, suffix, codegen_fn, module_name, protobuf_path, proto_root - ): - self._suffix = suffix - self._codegen_fn = codegen_fn - self._module_name = module_name - self._protobuf_path = protobuf_path - self._proto_root = proto_root - - def create_module(self, spec): - return None - - def _generated_file_to_module_name(self, filepath): - components = filepath.split(os.path.sep) - return ".".join(components[:-1] + [os.path.splitext(components[-1])[0]]) - - def exec_module(self, module): - assert module.__name__ == self._module_name - code = None - with _proto_code_cache_lock: - if self._module_name in _proto_code_cache: - code = _proto_code_cache[self._module_name] - exec(code, module.__dict__) - else: - files = self._codegen_fn( - self._protobuf_path.encode("ascii"), - [path.encode("ascii") for path in sys.path], - ) - # NOTE: The files are returned in topological order of dependencies. Each - # entry is guaranteed to depend only on the modules preceding it in the - # list and the last entry is guaranteed to be our requested module. We - # cache the code from the first invocation at module-scope so that we - # don't have to regenerate code that has already been generated by protoc. - for f in files[:-1]: - module_name = self._generated_file_to_module_name( - f[0].decode("ascii") + import contextlib + import importlib + import importlib.abc + import importlib.machinery + import threading + + _FINDERS_INSTALLED = False + _FINDERS_INSTALLED_LOCK = threading.Lock() + + def _maybe_install_proto_finders(): + global _FINDERS_INSTALLED + with _FINDERS_INSTALLED_LOCK: + if not _FINDERS_INSTALLED: + sys.meta_path.extend( + [ + ProtoFinder( + _PROTO_MODULE_SUFFIX, _protoc_compiler.get_protos + ), + ProtoFinder( + _SERVICE_MODULE_SUFFIX, + _protoc_compiler.get_services, + ), + ] + ) + + proto_include = _get_resource_file_name("grpc_tools", "_proto") + sys.path.append(proto_include) + + _FINDERS_INSTALLED = True + + def _module_name_to_proto_file(suffix, module_name): + components = module_name.split(".") + proto_name = components[-1][: -1 * len(suffix)] + # NOTE(rbellevi): The Protobuf library expects this path to use + # forward slashes on every platform. + return "/".join(components[:-1] + [proto_name + ".proto"]) + + def _proto_file_to_module_name(suffix, proto_file): + components = proto_file.split(os.path.sep) + proto_base_name = os.path.splitext(components[-1])[0] + return ".".join(components[:-1] + [proto_base_name + suffix]) + + def _protos(protobuf_path): + """Returns a gRPC module generated from the indicated proto file.""" + _maybe_install_proto_finders() + module_name = _proto_file_to_module_name( + _PROTO_MODULE_SUFFIX, protobuf_path + ) + module = importlib.import_module(module_name) + return module + + def _services(protobuf_path): + """Returns a module generated from the indicated proto file.""" + _maybe_install_proto_finders() + _protos(protobuf_path) + module_name = _proto_file_to_module_name( + _SERVICE_MODULE_SUFFIX, protobuf_path + ) + module = importlib.import_module(module_name) + return module + + def _protos_and_services(protobuf_path): + """Returns two modules, corresponding to _pb2.py and _pb2_grpc.py files.""" + return (_protos(protobuf_path), _services(protobuf_path)) + + _proto_code_cache = {} + _proto_code_cache_lock = threading.RLock() + + class ProtoLoader(importlib.abc.Loader): + def __init__( + self, suffix, codegen_fn, module_name, protobuf_path, proto_root + ): + self._suffix = suffix + self._codegen_fn = codegen_fn + self._module_name = module_name + self._protobuf_path = protobuf_path + self._proto_root = proto_root + + def create_module(self, spec): + return None + + def _generated_file_to_module_name(self, filepath): + components = filepath.split(os.path.sep) + return ".".join( + components[:-1] + [os.path.splitext(components[-1])[0]] ) - if module_name not in sys.modules: - if module_name not in _proto_code_cache: - _proto_code_cache[module_name] = f[1] - importlib.import_module(module_name) - exec(files[-1][1], module.__dict__) - - class ProtoFinder(importlib.abc.MetaPathFinder): - - def __init__(self, suffix, codegen_fn): - self._suffix = suffix - self._codegen_fn = codegen_fn - - def find_spec(self, fullname, path, target=None): - if not fullname.endswith(self._suffix): - return None - filepath = _module_name_to_proto_file(self._suffix, fullname) - for search_path in sys.path: - try: - prospective_path = os.path.join(search_path, filepath) - os.stat(prospective_path) - except (FileNotFoundError, NotADirectoryError, OSError): - continue - else: - return importlib.machinery.ModuleSpec( - fullname, - ProtoLoader( - self._suffix, - self._codegen_fn, - fullname, - filepath, - search_path, - ), - ) - - # NOTE(rbellevi): We provide an environment variable that enables users to completely - # disable this behavior if it is not desired, e.g. for performance reasons. - if not os.getenv(_DISABLE_DYNAMIC_STUBS): - _maybe_install_proto_finders() + + def exec_module(self, module): + assert module.__name__ == self._module_name + code = None + with _proto_code_cache_lock: + if self._module_name in _proto_code_cache: + code = _proto_code_cache[self._module_name] + exec(code, module.__dict__) + else: + files = self._codegen_fn( + self._protobuf_path.encode("ascii"), + [path.encode("ascii") for path in sys.path], + ) + # NOTE: The files are returned in topological order of dependencies. Each + # entry is guaranteed to depend only on the modules preceding it in the + # list and the last entry is guaranteed to be our requested module. We + # cache the code from the first invocation at module-scope so that we + # don't have to regenerate code that has already been generated by protoc. + for f in files[:-1]: + module_name = self._generated_file_to_module_name( + f[0].decode("ascii") + ) + if module_name not in sys.modules: + if module_name not in _proto_code_cache: + _proto_code_cache[module_name] = f[1] + importlib.import_module(module_name) + exec(files[-1][1], module.__dict__) + + class ProtoFinder(importlib.abc.MetaPathFinder): + def __init__(self, suffix, codegen_fn): + self._suffix = suffix + self._codegen_fn = codegen_fn + + def find_spec(self, fullname, path, target=None): + if not fullname.endswith(self._suffix): + return None + filepath = _module_name_to_proto_file(self._suffix, fullname) + for search_path in sys.path: + try: + prospective_path = os.path.join(search_path, filepath) + os.stat(prospective_path) + except (FileNotFoundError, NotADirectoryError, OSError): + continue + else: + return importlib.machinery.ModuleSpec( + fullname, + ProtoLoader( + self._suffix, + self._codegen_fn, + fullname, + filepath, + search_path, + ), + ) + + # NOTE(rbellevi): We provide an environment variable that enables users to completely + # disable this behavior if it is not desired, e.g. for performance reasons. + if not os.getenv(_DISABLE_DYNAMIC_STUBS): + _maybe_install_proto_finders() def entrypoint() -> None: - proto_include = _get_resource_file_name("grpc_tools", "_proto") - sys.exit(main(sys.argv + ["-I{}".format(proto_include)])) + proto_include = _get_resource_file_name("grpc_tools", "_proto") + sys.exit(main(sys.argv + ["-I{}".format(proto_include)])) if __name__ == "__main__": - entrypoint() + entrypoint()