diff --git a/BUILD b/BUILD index d66d1db719d..bc4a0a357ec 100644 --- a/BUILD +++ b/BUILD @@ -493,6 +493,73 @@ grpc_cc_library( ], ) +grpc_cc_library( + name = "grpc++_binder", + srcs = [ + "src/core/ext/transport/binder/client/channel_create.cc", + "src/core/ext/transport/binder/client/channel_create_impl.cc", + "src/core/ext/transport/binder/client/jni_utils.cc", + "src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc", + "src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc", + "src/core/ext/transport/binder/server/binder_server.cc", + "src/core/ext/transport/binder/server/binder_server_credentials.cc", + "src/core/ext/transport/binder/transport/binder_transport.cc", + "src/core/ext/transport/binder/utils/transport_stream_receiver_impl.cc", + "src/core/ext/transport/binder/wire_format/binder_android.cc", + "src/core/ext/transport/binder/wire_format/binder_constants.cc", + "src/core/ext/transport/binder/wire_format/transaction.cc", + "src/core/ext/transport/binder/wire_format/wire_reader_impl.cc", + "src/core/ext/transport/binder/wire_format/wire_writer.cc", + ], + hdrs = [ + "src/core/ext/transport/binder/client/channel_create.h", + "src/core/ext/transport/binder/client/channel_create_impl.h", + "src/core/ext/transport/binder/client/jni_utils.h", + "src/core/ext/transport/binder/security_policy/internal_only_security_policy.h", + "src/core/ext/transport/binder/security_policy/security_policy.h", + "src/core/ext/transport/binder/security_policy/untrusted_security_policy.h", + "src/core/ext/transport/binder/server/binder_server.h", + "src/core/ext/transport/binder/server/binder_server_credentials.h", + "src/core/ext/transport/binder/transport/binder_stream.h", + "src/core/ext/transport/binder/transport/binder_transport.h", + "src/core/ext/transport/binder/utils/transport_stream_receiver.h", + "src/core/ext/transport/binder/utils/transport_stream_receiver_impl.h", + "src/core/ext/transport/binder/wire_format/binder.h", + "src/core/ext/transport/binder/wire_format/binder_android.h", + "src/core/ext/transport/binder/wire_format/binder_constants.h", + "src/core/ext/transport/binder/wire_format/transaction.h", + "src/core/ext/transport/binder/wire_format/wire_reader.h", + "src/core/ext/transport/binder/wire_format/wire_reader_impl.h", + "src/core/ext/transport/binder/wire_format/wire_writer.h", + ], + external_deps = [ + "absl/base:core_headers", + "absl/container:flat_hash_map", + "absl/memory", + "absl/status", + "absl/strings", + "absl/synchronization", + "absl/status:statusor", + "absl/time", + ], + language = "c++", + # TODO(mingcl): Move public headers under include/ and put them here + public_hdrs = [ + ], + deps = [ + "gpr", + "gpr_base", + "gpr_platform", + "grpc", + "grpc++_base", + "grpc++_internals", + "grpc_base", + "grpc_codegen", + "orphanable", + "slice_refcount", + ], +) + grpc_cc_library( name = "grpc++_xds_client", srcs = [ diff --git a/CMakeLists.txt b/CMakeLists.txt index eaa3264049c..7f8567d5b42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8299,7 +8299,10 @@ add_executable(binder_server_test ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/simple_messages.grpc.pb.cc ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/simple_messages.pb.h ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/simple_messages.grpc.pb.h + src/core/ext/transport/binder/client/channel_create.cc src/core/ext/transport/binder/client/channel_create_impl.cc + src/core/ext/transport/binder/client/jni_utils.cc + src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc src/core/ext/transport/binder/server/binder_server.cc src/core/ext/transport/binder/server/binder_server_credentials.cc @@ -8348,13 +8351,68 @@ endif() if(gRPC_BUILD_TESTS) add_executable(binder_transport_test + src/core/ext/transport/binder/client/channel_create.cc + src/core/ext/transport/binder/client/channel_create_impl.cc + src/core/ext/transport/binder/client/jni_utils.cc + src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc + src/core/ext/transport/binder/server/binder_server.cc + src/core/ext/transport/binder/server/binder_server_credentials.cc src/core/ext/transport/binder/transport/binder_transport.cc src/core/ext/transport/binder/utils/transport_stream_receiver_impl.cc + src/core/ext/transport/binder/wire_format/binder_android.cc src/core/ext/transport/binder/wire_format/binder_constants.cc src/core/ext/transport/binder/wire_format/transaction.cc src/core/ext/transport/binder/wire_format/wire_reader_impl.cc src/core/ext/transport/binder/wire_format/wire_writer.cc + src/cpp/client/channel_cc.cc + src/cpp/client/client_callback.cc + src/cpp/client/client_context.cc + src/cpp/client/client_interceptor.cc + src/cpp/client/create_channel.cc + src/cpp/client/create_channel_internal.cc + src/cpp/client/create_channel_posix.cc + src/cpp/client/credentials_cc.cc + src/cpp/client/insecure_credentials.cc + src/cpp/client/secure_credentials.cc + src/cpp/codegen/codegen_init.cc + src/cpp/common/alarm.cc + src/cpp/common/auth_property_iterator.cc + src/cpp/common/channel_arguments.cc + src/cpp/common/channel_filter.cc + src/cpp/common/completion_queue_cc.cc + src/cpp/common/core_codegen.cc + src/cpp/common/resource_quota_cc.cc + src/cpp/common/rpc_method.cc + src/cpp/common/secure_auth_context.cc + src/cpp/common/secure_channel_arguments.cc + src/cpp/common/secure_create_auth_context.cc + src/cpp/common/tls_certificate_provider.cc + src/cpp/common/tls_credentials_options.cc + src/cpp/common/tls_credentials_options_util.cc + src/cpp/common/validate_service_config.cc + src/cpp/common/version_cc.cc + src/cpp/server/async_generic_service.cc + src/cpp/server/channel_argument_option.cc + src/cpp/server/create_default_thread_pool.cc + src/cpp/server/dynamic_thread_pool.cc + src/cpp/server/external_connection_acceptor_impl.cc + src/cpp/server/health/default_health_check_service.cc + src/cpp/server/health/health_check_service.cc + src/cpp/server/health/health_check_service_server_builder_option.cc + src/cpp/server/insecure_server_credentials.cc + src/cpp/server/secure_server_credentials.cc + src/cpp/server/server_builder.cc + src/cpp/server/server_callback.cc + src/cpp/server/server_cc.cc + src/cpp/server/server_context.cc + src/cpp/server/server_credentials.cc + src/cpp/server/server_posix.cc + src/cpp/thread_manager/thread_manager.cc + src/cpp/util/byte_buffer_cc.cc + src/cpp/util/status.cc + src/cpp/util/string_ref.cc + src/cpp/util/time_cc.cc test/core/transport/binder/binder_transport_test.cc test/core/transport/binder/mock_objects.cc third_party/googletest/googletest/src/gtest-all.cc @@ -9908,9 +9966,16 @@ add_executable(end2end_binder_transport_test ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/simple_messages.grpc.pb.cc ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/simple_messages.pb.h ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/simple_messages.grpc.pb.h + src/core/ext/transport/binder/client/channel_create.cc + src/core/ext/transport/binder/client/channel_create_impl.cc + src/core/ext/transport/binder/client/jni_utils.cc + src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc + src/core/ext/transport/binder/server/binder_server.cc + src/core/ext/transport/binder/server/binder_server_credentials.cc src/core/ext/transport/binder/transport/binder_transport.cc src/core/ext/transport/binder/utils/transport_stream_receiver_impl.cc + src/core/ext/transport/binder/wire_format/binder_android.cc src/core/ext/transport/binder/wire_format/binder_constants.cc src/core/ext/transport/binder/wire_format/transaction.cc src/core/ext/transport/binder/wire_format/wire_reader_impl.cc @@ -10325,11 +10390,68 @@ endif() if(gRPC_BUILD_TESTS) add_executable(fake_binder_test + src/core/ext/transport/binder/client/channel_create.cc + src/core/ext/transport/binder/client/channel_create_impl.cc + src/core/ext/transport/binder/client/jni_utils.cc + src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc + src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc + src/core/ext/transport/binder/server/binder_server.cc + src/core/ext/transport/binder/server/binder_server_credentials.cc + src/core/ext/transport/binder/transport/binder_transport.cc src/core/ext/transport/binder/utils/transport_stream_receiver_impl.cc + src/core/ext/transport/binder/wire_format/binder_android.cc src/core/ext/transport/binder/wire_format/binder_constants.cc src/core/ext/transport/binder/wire_format/transaction.cc src/core/ext/transport/binder/wire_format/wire_reader_impl.cc src/core/ext/transport/binder/wire_format/wire_writer.cc + src/cpp/client/channel_cc.cc + src/cpp/client/client_callback.cc + src/cpp/client/client_context.cc + src/cpp/client/client_interceptor.cc + src/cpp/client/create_channel.cc + src/cpp/client/create_channel_internal.cc + src/cpp/client/create_channel_posix.cc + src/cpp/client/credentials_cc.cc + src/cpp/client/insecure_credentials.cc + src/cpp/client/secure_credentials.cc + src/cpp/codegen/codegen_init.cc + src/cpp/common/alarm.cc + src/cpp/common/auth_property_iterator.cc + src/cpp/common/channel_arguments.cc + src/cpp/common/channel_filter.cc + src/cpp/common/completion_queue_cc.cc + src/cpp/common/core_codegen.cc + src/cpp/common/resource_quota_cc.cc + src/cpp/common/rpc_method.cc + src/cpp/common/secure_auth_context.cc + src/cpp/common/secure_channel_arguments.cc + src/cpp/common/secure_create_auth_context.cc + src/cpp/common/tls_certificate_provider.cc + src/cpp/common/tls_credentials_options.cc + src/cpp/common/tls_credentials_options_util.cc + src/cpp/common/validate_service_config.cc + src/cpp/common/version_cc.cc + src/cpp/server/async_generic_service.cc + src/cpp/server/channel_argument_option.cc + src/cpp/server/create_default_thread_pool.cc + src/cpp/server/dynamic_thread_pool.cc + src/cpp/server/external_connection_acceptor_impl.cc + src/cpp/server/health/default_health_check_service.cc + src/cpp/server/health/health_check_service.cc + src/cpp/server/health/health_check_service_server_builder_option.cc + src/cpp/server/insecure_server_credentials.cc + src/cpp/server/secure_server_credentials.cc + src/cpp/server/server_builder.cc + src/cpp/server/server_callback.cc + src/cpp/server/server_cc.cc + src/cpp/server/server_context.cc + src/cpp/server/server_credentials.cc + src/cpp/server/server_posix.cc + src/cpp/thread_manager/thread_manager.cc + src/cpp/util/byte_buffer_cc.cc + src/cpp/util/status.cc + src/cpp/util/string_ref.cc + src/cpp/util/time_cc.cc test/core/transport/binder/end2end/fake_binder.cc test/core/transport/binder/end2end/fake_binder_test.cc third_party/googletest/googletest/src/gtest-all.cc @@ -15808,8 +15930,68 @@ endif() if(gRPC_BUILD_TESTS) add_executable(transport_stream_receiver_test + src/core/ext/transport/binder/client/channel_create.cc + src/core/ext/transport/binder/client/channel_create_impl.cc + src/core/ext/transport/binder/client/jni_utils.cc + src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc + src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc + src/core/ext/transport/binder/server/binder_server.cc + src/core/ext/transport/binder/server/binder_server_credentials.cc + src/core/ext/transport/binder/transport/binder_transport.cc src/core/ext/transport/binder/utils/transport_stream_receiver_impl.cc + src/core/ext/transport/binder/wire_format/binder_android.cc + src/core/ext/transport/binder/wire_format/binder_constants.cc src/core/ext/transport/binder/wire_format/transaction.cc + src/core/ext/transport/binder/wire_format/wire_reader_impl.cc + src/core/ext/transport/binder/wire_format/wire_writer.cc + src/cpp/client/channel_cc.cc + src/cpp/client/client_callback.cc + src/cpp/client/client_context.cc + src/cpp/client/client_interceptor.cc + src/cpp/client/create_channel.cc + src/cpp/client/create_channel_internal.cc + src/cpp/client/create_channel_posix.cc + src/cpp/client/credentials_cc.cc + src/cpp/client/insecure_credentials.cc + src/cpp/client/secure_credentials.cc + src/cpp/codegen/codegen_init.cc + src/cpp/common/alarm.cc + src/cpp/common/auth_property_iterator.cc + src/cpp/common/channel_arguments.cc + src/cpp/common/channel_filter.cc + src/cpp/common/completion_queue_cc.cc + src/cpp/common/core_codegen.cc + src/cpp/common/resource_quota_cc.cc + src/cpp/common/rpc_method.cc + src/cpp/common/secure_auth_context.cc + src/cpp/common/secure_channel_arguments.cc + src/cpp/common/secure_create_auth_context.cc + src/cpp/common/tls_certificate_provider.cc + src/cpp/common/tls_credentials_options.cc + src/cpp/common/tls_credentials_options_util.cc + src/cpp/common/validate_service_config.cc + src/cpp/common/version_cc.cc + src/cpp/server/async_generic_service.cc + src/cpp/server/channel_argument_option.cc + src/cpp/server/create_default_thread_pool.cc + src/cpp/server/dynamic_thread_pool.cc + src/cpp/server/external_connection_acceptor_impl.cc + src/cpp/server/health/default_health_check_service.cc + src/cpp/server/health/health_check_service.cc + src/cpp/server/health/health_check_service_server_builder_option.cc + src/cpp/server/insecure_server_credentials.cc + src/cpp/server/secure_server_credentials.cc + src/cpp/server/server_builder.cc + src/cpp/server/server_callback.cc + src/cpp/server/server_cc.cc + src/cpp/server/server_context.cc + src/cpp/server/server_credentials.cc + src/cpp/server/server_posix.cc + src/cpp/thread_manager/thread_manager.cc + src/cpp/util/byte_buffer_cc.cc + src/cpp/util/status.cc + src/cpp/util/string_ref.cc + src/cpp/util/time_cc.cc test/core/transport/binder/transport_stream_receiver_test.cc third_party/googletest/googletest/src/gtest-all.cc third_party/googletest/googlemock/src/gmock-all.cc @@ -16062,12 +16244,68 @@ endif() if(gRPC_BUILD_TESTS) add_executable(wire_reader_test + src/core/ext/transport/binder/client/channel_create.cc + src/core/ext/transport/binder/client/channel_create_impl.cc + src/core/ext/transport/binder/client/jni_utils.cc + src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc + src/core/ext/transport/binder/server/binder_server.cc + src/core/ext/transport/binder/server/binder_server_credentials.cc + src/core/ext/transport/binder/transport/binder_transport.cc src/core/ext/transport/binder/utils/transport_stream_receiver_impl.cc + src/core/ext/transport/binder/wire_format/binder_android.cc src/core/ext/transport/binder/wire_format/binder_constants.cc src/core/ext/transport/binder/wire_format/transaction.cc src/core/ext/transport/binder/wire_format/wire_reader_impl.cc src/core/ext/transport/binder/wire_format/wire_writer.cc + src/cpp/client/channel_cc.cc + src/cpp/client/client_callback.cc + src/cpp/client/client_context.cc + src/cpp/client/client_interceptor.cc + src/cpp/client/create_channel.cc + src/cpp/client/create_channel_internal.cc + src/cpp/client/create_channel_posix.cc + src/cpp/client/credentials_cc.cc + src/cpp/client/insecure_credentials.cc + src/cpp/client/secure_credentials.cc + src/cpp/codegen/codegen_init.cc + src/cpp/common/alarm.cc + src/cpp/common/auth_property_iterator.cc + src/cpp/common/channel_arguments.cc + src/cpp/common/channel_filter.cc + src/cpp/common/completion_queue_cc.cc + src/cpp/common/core_codegen.cc + src/cpp/common/resource_quota_cc.cc + src/cpp/common/rpc_method.cc + src/cpp/common/secure_auth_context.cc + src/cpp/common/secure_channel_arguments.cc + src/cpp/common/secure_create_auth_context.cc + src/cpp/common/tls_certificate_provider.cc + src/cpp/common/tls_credentials_options.cc + src/cpp/common/tls_credentials_options_util.cc + src/cpp/common/validate_service_config.cc + src/cpp/common/version_cc.cc + src/cpp/server/async_generic_service.cc + src/cpp/server/channel_argument_option.cc + src/cpp/server/create_default_thread_pool.cc + src/cpp/server/dynamic_thread_pool.cc + src/cpp/server/external_connection_acceptor_impl.cc + src/cpp/server/health/default_health_check_service.cc + src/cpp/server/health/health_check_service.cc + src/cpp/server/health/health_check_service_server_builder_option.cc + src/cpp/server/insecure_server_credentials.cc + src/cpp/server/secure_server_credentials.cc + src/cpp/server/server_builder.cc + src/cpp/server/server_callback.cc + src/cpp/server/server_cc.cc + src/cpp/server/server_context.cc + src/cpp/server/server_credentials.cc + src/cpp/server/server_posix.cc + src/cpp/thread_manager/thread_manager.cc + src/cpp/util/byte_buffer_cc.cc + src/cpp/util/status.cc + src/cpp/util/string_ref.cc + src/cpp/util/time_cc.cc test/core/transport/binder/mock_objects.cc test/core/transport/binder/wire_reader_test.cc third_party/googletest/googletest/src/gtest-all.cc @@ -16104,11 +16342,68 @@ endif() if(gRPC_BUILD_TESTS) add_executable(wire_writer_test + src/core/ext/transport/binder/client/channel_create.cc + src/core/ext/transport/binder/client/channel_create_impl.cc + src/core/ext/transport/binder/client/jni_utils.cc + src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc + src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc + src/core/ext/transport/binder/server/binder_server.cc + src/core/ext/transport/binder/server/binder_server_credentials.cc + src/core/ext/transport/binder/transport/binder_transport.cc src/core/ext/transport/binder/utils/transport_stream_receiver_impl.cc + src/core/ext/transport/binder/wire_format/binder_android.cc src/core/ext/transport/binder/wire_format/binder_constants.cc src/core/ext/transport/binder/wire_format/transaction.cc src/core/ext/transport/binder/wire_format/wire_reader_impl.cc src/core/ext/transport/binder/wire_format/wire_writer.cc + src/cpp/client/channel_cc.cc + src/cpp/client/client_callback.cc + src/cpp/client/client_context.cc + src/cpp/client/client_interceptor.cc + src/cpp/client/create_channel.cc + src/cpp/client/create_channel_internal.cc + src/cpp/client/create_channel_posix.cc + src/cpp/client/credentials_cc.cc + src/cpp/client/insecure_credentials.cc + src/cpp/client/secure_credentials.cc + src/cpp/codegen/codegen_init.cc + src/cpp/common/alarm.cc + src/cpp/common/auth_property_iterator.cc + src/cpp/common/channel_arguments.cc + src/cpp/common/channel_filter.cc + src/cpp/common/completion_queue_cc.cc + src/cpp/common/core_codegen.cc + src/cpp/common/resource_quota_cc.cc + src/cpp/common/rpc_method.cc + src/cpp/common/secure_auth_context.cc + src/cpp/common/secure_channel_arguments.cc + src/cpp/common/secure_create_auth_context.cc + src/cpp/common/tls_certificate_provider.cc + src/cpp/common/tls_credentials_options.cc + src/cpp/common/tls_credentials_options_util.cc + src/cpp/common/validate_service_config.cc + src/cpp/common/version_cc.cc + src/cpp/server/async_generic_service.cc + src/cpp/server/channel_argument_option.cc + src/cpp/server/create_default_thread_pool.cc + src/cpp/server/dynamic_thread_pool.cc + src/cpp/server/external_connection_acceptor_impl.cc + src/cpp/server/health/default_health_check_service.cc + src/cpp/server/health/health_check_service.cc + src/cpp/server/health/health_check_service_server_builder_option.cc + src/cpp/server/insecure_server_credentials.cc + src/cpp/server/secure_server_credentials.cc + src/cpp/server/server_builder.cc + src/cpp/server/server_callback.cc + src/cpp/server/server_cc.cc + src/cpp/server/server_context.cc + src/cpp/server/server_credentials.cc + src/cpp/server/server_posix.cc + src/cpp/thread_manager/thread_manager.cc + src/cpp/util/byte_buffer_cc.cc + src/cpp/util/status.cc + src/cpp/util/string_ref.cc + src/cpp/util/time_cc.cc test/core/transport/binder/mock_objects.cc test/core/transport/binder/wire_writer_test.cc third_party/googletest/googletest/src/gtest-all.cc diff --git a/build_autogenerated.yaml b/build_autogenerated.yaml index 2f1acea74b8..43b3d99a019 100644 --- a/build_autogenerated.yaml +++ b/build_autogenerated.yaml @@ -4610,7 +4610,10 @@ targets: build: test language: c++ headers: + - src/core/ext/transport/binder/client/channel_create.h - src/core/ext/transport/binder/client/channel_create_impl.h + - src/core/ext/transport/binder/client/jni_utils.h + - src/core/ext/transport/binder/security_policy/internal_only_security_policy.h - src/core/ext/transport/binder/security_policy/security_policy.h - src/core/ext/transport/binder/security_policy/untrusted_security_policy.h - src/core/ext/transport/binder/server/binder_server.h @@ -4632,7 +4635,10 @@ targets: - src/proto/grpc/testing/echo.proto - src/proto/grpc/testing/echo_messages.proto - src/proto/grpc/testing/simple_messages.proto + - src/core/ext/transport/binder/client/channel_create.cc - src/core/ext/transport/binder/client/channel_create_impl.cc + - src/core/ext/transport/binder/client/jni_utils.cc + - src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc - src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc - src/core/ext/transport/binder/server/binder_server.cc - src/core/ext/transport/binder/server/binder_server_credentials.cc @@ -4654,27 +4660,100 @@ targets: build: test language: c++ headers: + - src/core/ext/transport/binder/client/channel_create.h + - src/core/ext/transport/binder/client/channel_create_impl.h + - src/core/ext/transport/binder/client/jni_utils.h + - src/core/ext/transport/binder/security_policy/internal_only_security_policy.h - src/core/ext/transport/binder/security_policy/security_policy.h - src/core/ext/transport/binder/security_policy/untrusted_security_policy.h + - src/core/ext/transport/binder/server/binder_server.h + - src/core/ext/transport/binder/server/binder_server_credentials.h - src/core/ext/transport/binder/transport/binder_stream.h - src/core/ext/transport/binder/transport/binder_transport.h - src/core/ext/transport/binder/utils/transport_stream_receiver.h - src/core/ext/transport/binder/utils/transport_stream_receiver_impl.h - src/core/ext/transport/binder/wire_format/binder.h + - src/core/ext/transport/binder/wire_format/binder_android.h - src/core/ext/transport/binder/wire_format/binder_constants.h - src/core/ext/transport/binder/wire_format/transaction.h - src/core/ext/transport/binder/wire_format/wire_reader.h - src/core/ext/transport/binder/wire_format/wire_reader_impl.h - src/core/ext/transport/binder/wire_format/wire_writer.h + - src/cpp/client/create_channel_internal.h + - src/cpp/client/secure_credentials.h + - src/cpp/common/channel_filter.h + - src/cpp/common/secure_auth_context.h + - src/cpp/common/tls_credentials_options_util.h + - src/cpp/server/dynamic_thread_pool.h + - src/cpp/server/external_connection_acceptor_impl.h + - src/cpp/server/health/default_health_check_service.h + - src/cpp/server/secure_server_credentials.h + - src/cpp/server/thread_pool_interface.h + - src/cpp/thread_manager/thread_manager.h - test/core/transport/binder/mock_objects.h src: + - src/core/ext/transport/binder/client/channel_create.cc + - src/core/ext/transport/binder/client/channel_create_impl.cc + - src/core/ext/transport/binder/client/jni_utils.cc + - src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc - src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc + - src/core/ext/transport/binder/server/binder_server.cc + - src/core/ext/transport/binder/server/binder_server_credentials.cc - src/core/ext/transport/binder/transport/binder_transport.cc - src/core/ext/transport/binder/utils/transport_stream_receiver_impl.cc + - src/core/ext/transport/binder/wire_format/binder_android.cc - src/core/ext/transport/binder/wire_format/binder_constants.cc - src/core/ext/transport/binder/wire_format/transaction.cc - src/core/ext/transport/binder/wire_format/wire_reader_impl.cc - src/core/ext/transport/binder/wire_format/wire_writer.cc + - src/cpp/client/channel_cc.cc + - src/cpp/client/client_callback.cc + - src/cpp/client/client_context.cc + - src/cpp/client/client_interceptor.cc + - src/cpp/client/create_channel.cc + - src/cpp/client/create_channel_internal.cc + - src/cpp/client/create_channel_posix.cc + - src/cpp/client/credentials_cc.cc + - src/cpp/client/insecure_credentials.cc + - src/cpp/client/secure_credentials.cc + - src/cpp/codegen/codegen_init.cc + - src/cpp/common/alarm.cc + - src/cpp/common/auth_property_iterator.cc + - src/cpp/common/channel_arguments.cc + - src/cpp/common/channel_filter.cc + - src/cpp/common/completion_queue_cc.cc + - src/cpp/common/core_codegen.cc + - src/cpp/common/resource_quota_cc.cc + - src/cpp/common/rpc_method.cc + - src/cpp/common/secure_auth_context.cc + - src/cpp/common/secure_channel_arguments.cc + - src/cpp/common/secure_create_auth_context.cc + - src/cpp/common/tls_certificate_provider.cc + - src/cpp/common/tls_credentials_options.cc + - src/cpp/common/tls_credentials_options_util.cc + - src/cpp/common/validate_service_config.cc + - src/cpp/common/version_cc.cc + - src/cpp/server/async_generic_service.cc + - src/cpp/server/channel_argument_option.cc + - src/cpp/server/create_default_thread_pool.cc + - src/cpp/server/dynamic_thread_pool.cc + - src/cpp/server/external_connection_acceptor_impl.cc + - src/cpp/server/health/default_health_check_service.cc + - src/cpp/server/health/health_check_service.cc + - src/cpp/server/health/health_check_service_server_builder_option.cc + - src/cpp/server/insecure_server_credentials.cc + - src/cpp/server/secure_server_credentials.cc + - src/cpp/server/server_builder.cc + - src/cpp/server/server_callback.cc + - src/cpp/server/server_cc.cc + - src/cpp/server/server_context.cc + - src/cpp/server/server_credentials.cc + - src/cpp/server/server_posix.cc + - src/cpp/thread_manager/thread_manager.cc + - src/cpp/util/byte_buffer_cc.cc + - src/cpp/util/status.cc + - src/cpp/util/string_ref.cc + - src/cpp/util/time_cc.cc - test/core/transport/binder/binder_transport_test.cc - test/core/transport/binder/mock_objects.cc deps: @@ -5351,13 +5430,20 @@ targets: build: test language: c++ headers: + - src/core/ext/transport/binder/client/channel_create.h + - src/core/ext/transport/binder/client/channel_create_impl.h + - src/core/ext/transport/binder/client/jni_utils.h + - src/core/ext/transport/binder/security_policy/internal_only_security_policy.h - src/core/ext/transport/binder/security_policy/security_policy.h - src/core/ext/transport/binder/security_policy/untrusted_security_policy.h + - src/core/ext/transport/binder/server/binder_server.h + - src/core/ext/transport/binder/server/binder_server_credentials.h - src/core/ext/transport/binder/transport/binder_stream.h - src/core/ext/transport/binder/transport/binder_transport.h - src/core/ext/transport/binder/utils/transport_stream_receiver.h - src/core/ext/transport/binder/utils/transport_stream_receiver_impl.h - src/core/ext/transport/binder/wire_format/binder.h + - src/core/ext/transport/binder/wire_format/binder_android.h - src/core/ext/transport/binder/wire_format/binder_constants.h - src/core/ext/transport/binder/wire_format/transaction.h - src/core/ext/transport/binder/wire_format/wire_reader.h @@ -5370,9 +5456,16 @@ targets: - src/proto/grpc/testing/echo.proto - src/proto/grpc/testing/echo_messages.proto - src/proto/grpc/testing/simple_messages.proto + - src/core/ext/transport/binder/client/channel_create.cc + - src/core/ext/transport/binder/client/channel_create_impl.cc + - src/core/ext/transport/binder/client/jni_utils.cc + - src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc - src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc + - src/core/ext/transport/binder/server/binder_server.cc + - src/core/ext/transport/binder/server/binder_server_credentials.cc - src/core/ext/transport/binder/transport/binder_transport.cc - src/core/ext/transport/binder/utils/transport_stream_receiver_impl.cc + - src/core/ext/transport/binder/wire_format/binder_android.cc - src/core/ext/transport/binder/wire_format/binder_constants.cc - src/core/ext/transport/binder/wire_format/transaction.cc - src/core/ext/transport/binder/wire_format/wire_reader_impl.cc @@ -5532,22 +5625,100 @@ targets: build: test language: c++ headers: + - src/core/ext/transport/binder/client/channel_create.h + - src/core/ext/transport/binder/client/channel_create_impl.h + - src/core/ext/transport/binder/client/jni_utils.h + - src/core/ext/transport/binder/security_policy/internal_only_security_policy.h - src/core/ext/transport/binder/security_policy/security_policy.h + - src/core/ext/transport/binder/security_policy/untrusted_security_policy.h + - src/core/ext/transport/binder/server/binder_server.h + - src/core/ext/transport/binder/server/binder_server_credentials.h + - src/core/ext/transport/binder/transport/binder_stream.h + - src/core/ext/transport/binder/transport/binder_transport.h - src/core/ext/transport/binder/utils/transport_stream_receiver.h - src/core/ext/transport/binder/utils/transport_stream_receiver_impl.h - src/core/ext/transport/binder/wire_format/binder.h + - src/core/ext/transport/binder/wire_format/binder_android.h - src/core/ext/transport/binder/wire_format/binder_constants.h - src/core/ext/transport/binder/wire_format/transaction.h - src/core/ext/transport/binder/wire_format/wire_reader.h - src/core/ext/transport/binder/wire_format/wire_reader_impl.h - src/core/ext/transport/binder/wire_format/wire_writer.h + - src/cpp/client/create_channel_internal.h + - src/cpp/client/secure_credentials.h + - src/cpp/common/channel_filter.h + - src/cpp/common/secure_auth_context.h + - src/cpp/common/tls_credentials_options_util.h + - src/cpp/server/dynamic_thread_pool.h + - src/cpp/server/external_connection_acceptor_impl.h + - src/cpp/server/health/default_health_check_service.h + - src/cpp/server/secure_server_credentials.h + - src/cpp/server/thread_pool_interface.h + - src/cpp/thread_manager/thread_manager.h - test/core/transport/binder/end2end/fake_binder.h src: + - src/core/ext/transport/binder/client/channel_create.cc + - src/core/ext/transport/binder/client/channel_create_impl.cc + - src/core/ext/transport/binder/client/jni_utils.cc + - src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc + - src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc + - src/core/ext/transport/binder/server/binder_server.cc + - src/core/ext/transport/binder/server/binder_server_credentials.cc + - src/core/ext/transport/binder/transport/binder_transport.cc - src/core/ext/transport/binder/utils/transport_stream_receiver_impl.cc + - src/core/ext/transport/binder/wire_format/binder_android.cc - src/core/ext/transport/binder/wire_format/binder_constants.cc - src/core/ext/transport/binder/wire_format/transaction.cc - src/core/ext/transport/binder/wire_format/wire_reader_impl.cc - src/core/ext/transport/binder/wire_format/wire_writer.cc + - src/cpp/client/channel_cc.cc + - src/cpp/client/client_callback.cc + - src/cpp/client/client_context.cc + - src/cpp/client/client_interceptor.cc + - src/cpp/client/create_channel.cc + - src/cpp/client/create_channel_internal.cc + - src/cpp/client/create_channel_posix.cc + - src/cpp/client/credentials_cc.cc + - src/cpp/client/insecure_credentials.cc + - src/cpp/client/secure_credentials.cc + - src/cpp/codegen/codegen_init.cc + - src/cpp/common/alarm.cc + - src/cpp/common/auth_property_iterator.cc + - src/cpp/common/channel_arguments.cc + - src/cpp/common/channel_filter.cc + - src/cpp/common/completion_queue_cc.cc + - src/cpp/common/core_codegen.cc + - src/cpp/common/resource_quota_cc.cc + - src/cpp/common/rpc_method.cc + - src/cpp/common/secure_auth_context.cc + - src/cpp/common/secure_channel_arguments.cc + - src/cpp/common/secure_create_auth_context.cc + - src/cpp/common/tls_certificate_provider.cc + - src/cpp/common/tls_credentials_options.cc + - src/cpp/common/tls_credentials_options_util.cc + - src/cpp/common/validate_service_config.cc + - src/cpp/common/version_cc.cc + - src/cpp/server/async_generic_service.cc + - src/cpp/server/channel_argument_option.cc + - src/cpp/server/create_default_thread_pool.cc + - src/cpp/server/dynamic_thread_pool.cc + - src/cpp/server/external_connection_acceptor_impl.cc + - src/cpp/server/health/default_health_check_service.cc + - src/cpp/server/health/health_check_service.cc + - src/cpp/server/health/health_check_service_server_builder_option.cc + - src/cpp/server/insecure_server_credentials.cc + - src/cpp/server/secure_server_credentials.cc + - src/cpp/server/server_builder.cc + - src/cpp/server/server_callback.cc + - src/cpp/server/server_cc.cc + - src/cpp/server/server_context.cc + - src/cpp/server/server_credentials.cc + - src/cpp/server/server_posix.cc + - src/cpp/thread_manager/thread_manager.cc + - src/cpp/util/byte_buffer_cc.cc + - src/cpp/util/status.cc + - src/cpp/util/string_ref.cc + - src/cpp/util/time_cc.cc - test/core/transport/binder/end2end/fake_binder.cc - test/core/transport/binder/end2end/fake_binder_test.cc deps: @@ -7806,12 +7977,99 @@ targets: build: test language: c++ headers: + - src/core/ext/transport/binder/client/channel_create.h + - src/core/ext/transport/binder/client/channel_create_impl.h + - src/core/ext/transport/binder/client/jni_utils.h + - src/core/ext/transport/binder/security_policy/internal_only_security_policy.h + - src/core/ext/transport/binder/security_policy/security_policy.h + - src/core/ext/transport/binder/security_policy/untrusted_security_policy.h + - src/core/ext/transport/binder/server/binder_server.h + - src/core/ext/transport/binder/server/binder_server_credentials.h + - src/core/ext/transport/binder/transport/binder_stream.h + - src/core/ext/transport/binder/transport/binder_transport.h - src/core/ext/transport/binder/utils/transport_stream_receiver.h - src/core/ext/transport/binder/utils/transport_stream_receiver_impl.h + - src/core/ext/transport/binder/wire_format/binder.h + - src/core/ext/transport/binder/wire_format/binder_android.h + - src/core/ext/transport/binder/wire_format/binder_constants.h - src/core/ext/transport/binder/wire_format/transaction.h + - src/core/ext/transport/binder/wire_format/wire_reader.h + - src/core/ext/transport/binder/wire_format/wire_reader_impl.h + - src/core/ext/transport/binder/wire_format/wire_writer.h + - src/cpp/client/create_channel_internal.h + - src/cpp/client/secure_credentials.h + - src/cpp/common/channel_filter.h + - src/cpp/common/secure_auth_context.h + - src/cpp/common/tls_credentials_options_util.h + - src/cpp/server/dynamic_thread_pool.h + - src/cpp/server/external_connection_acceptor_impl.h + - src/cpp/server/health/default_health_check_service.h + - src/cpp/server/secure_server_credentials.h + - src/cpp/server/thread_pool_interface.h + - src/cpp/thread_manager/thread_manager.h src: + - src/core/ext/transport/binder/client/channel_create.cc + - src/core/ext/transport/binder/client/channel_create_impl.cc + - src/core/ext/transport/binder/client/jni_utils.cc + - src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc + - src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc + - src/core/ext/transport/binder/server/binder_server.cc + - src/core/ext/transport/binder/server/binder_server_credentials.cc + - src/core/ext/transport/binder/transport/binder_transport.cc - src/core/ext/transport/binder/utils/transport_stream_receiver_impl.cc + - src/core/ext/transport/binder/wire_format/binder_android.cc + - src/core/ext/transport/binder/wire_format/binder_constants.cc - src/core/ext/transport/binder/wire_format/transaction.cc + - src/core/ext/transport/binder/wire_format/wire_reader_impl.cc + - src/core/ext/transport/binder/wire_format/wire_writer.cc + - src/cpp/client/channel_cc.cc + - src/cpp/client/client_callback.cc + - src/cpp/client/client_context.cc + - src/cpp/client/client_interceptor.cc + - src/cpp/client/create_channel.cc + - src/cpp/client/create_channel_internal.cc + - src/cpp/client/create_channel_posix.cc + - src/cpp/client/credentials_cc.cc + - src/cpp/client/insecure_credentials.cc + - src/cpp/client/secure_credentials.cc + - src/cpp/codegen/codegen_init.cc + - src/cpp/common/alarm.cc + - src/cpp/common/auth_property_iterator.cc + - src/cpp/common/channel_arguments.cc + - src/cpp/common/channel_filter.cc + - src/cpp/common/completion_queue_cc.cc + - src/cpp/common/core_codegen.cc + - src/cpp/common/resource_quota_cc.cc + - src/cpp/common/rpc_method.cc + - src/cpp/common/secure_auth_context.cc + - src/cpp/common/secure_channel_arguments.cc + - src/cpp/common/secure_create_auth_context.cc + - src/cpp/common/tls_certificate_provider.cc + - src/cpp/common/tls_credentials_options.cc + - src/cpp/common/tls_credentials_options_util.cc + - src/cpp/common/validate_service_config.cc + - src/cpp/common/version_cc.cc + - src/cpp/server/async_generic_service.cc + - src/cpp/server/channel_argument_option.cc + - src/cpp/server/create_default_thread_pool.cc + - src/cpp/server/dynamic_thread_pool.cc + - src/cpp/server/external_connection_acceptor_impl.cc + - src/cpp/server/health/default_health_check_service.cc + - src/cpp/server/health/health_check_service.cc + - src/cpp/server/health/health_check_service_server_builder_option.cc + - src/cpp/server/insecure_server_credentials.cc + - src/cpp/server/secure_server_credentials.cc + - src/cpp/server/server_builder.cc + - src/cpp/server/server_callback.cc + - src/cpp/server/server_cc.cc + - src/cpp/server/server_context.cc + - src/cpp/server/server_credentials.cc + - src/cpp/server/server_posix.cc + - src/cpp/thread_manager/thread_manager.cc + - src/cpp/util/byte_buffer_cc.cc + - src/cpp/util/status.cc + - src/cpp/util/string_ref.cc + - src/cpp/util/time_cc.cc - test/core/transport/binder/transport_stream_receiver_test.cc deps: - grpc_test_util @@ -7907,24 +8165,100 @@ targets: build: test language: c++ headers: + - src/core/ext/transport/binder/client/channel_create.h + - src/core/ext/transport/binder/client/channel_create_impl.h + - src/core/ext/transport/binder/client/jni_utils.h + - src/core/ext/transport/binder/security_policy/internal_only_security_policy.h - src/core/ext/transport/binder/security_policy/security_policy.h - src/core/ext/transport/binder/security_policy/untrusted_security_policy.h + - src/core/ext/transport/binder/server/binder_server.h + - src/core/ext/transport/binder/server/binder_server_credentials.h + - src/core/ext/transport/binder/transport/binder_stream.h + - src/core/ext/transport/binder/transport/binder_transport.h - src/core/ext/transport/binder/utils/transport_stream_receiver.h - src/core/ext/transport/binder/utils/transport_stream_receiver_impl.h - src/core/ext/transport/binder/wire_format/binder.h + - src/core/ext/transport/binder/wire_format/binder_android.h - src/core/ext/transport/binder/wire_format/binder_constants.h - src/core/ext/transport/binder/wire_format/transaction.h - src/core/ext/transport/binder/wire_format/wire_reader.h - src/core/ext/transport/binder/wire_format/wire_reader_impl.h - src/core/ext/transport/binder/wire_format/wire_writer.h + - src/cpp/client/create_channel_internal.h + - src/cpp/client/secure_credentials.h + - src/cpp/common/channel_filter.h + - src/cpp/common/secure_auth_context.h + - src/cpp/common/tls_credentials_options_util.h + - src/cpp/server/dynamic_thread_pool.h + - src/cpp/server/external_connection_acceptor_impl.h + - src/cpp/server/health/default_health_check_service.h + - src/cpp/server/secure_server_credentials.h + - src/cpp/server/thread_pool_interface.h + - src/cpp/thread_manager/thread_manager.h - test/core/transport/binder/mock_objects.h src: + - src/core/ext/transport/binder/client/channel_create.cc + - src/core/ext/transport/binder/client/channel_create_impl.cc + - src/core/ext/transport/binder/client/jni_utils.cc + - src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc - src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc + - src/core/ext/transport/binder/server/binder_server.cc + - src/core/ext/transport/binder/server/binder_server_credentials.cc + - src/core/ext/transport/binder/transport/binder_transport.cc - src/core/ext/transport/binder/utils/transport_stream_receiver_impl.cc + - src/core/ext/transport/binder/wire_format/binder_android.cc - src/core/ext/transport/binder/wire_format/binder_constants.cc - src/core/ext/transport/binder/wire_format/transaction.cc - src/core/ext/transport/binder/wire_format/wire_reader_impl.cc - src/core/ext/transport/binder/wire_format/wire_writer.cc + - src/cpp/client/channel_cc.cc + - src/cpp/client/client_callback.cc + - src/cpp/client/client_context.cc + - src/cpp/client/client_interceptor.cc + - src/cpp/client/create_channel.cc + - src/cpp/client/create_channel_internal.cc + - src/cpp/client/create_channel_posix.cc + - src/cpp/client/credentials_cc.cc + - src/cpp/client/insecure_credentials.cc + - src/cpp/client/secure_credentials.cc + - src/cpp/codegen/codegen_init.cc + - src/cpp/common/alarm.cc + - src/cpp/common/auth_property_iterator.cc + - src/cpp/common/channel_arguments.cc + - src/cpp/common/channel_filter.cc + - src/cpp/common/completion_queue_cc.cc + - src/cpp/common/core_codegen.cc + - src/cpp/common/resource_quota_cc.cc + - src/cpp/common/rpc_method.cc + - src/cpp/common/secure_auth_context.cc + - src/cpp/common/secure_channel_arguments.cc + - src/cpp/common/secure_create_auth_context.cc + - src/cpp/common/tls_certificate_provider.cc + - src/cpp/common/tls_credentials_options.cc + - src/cpp/common/tls_credentials_options_util.cc + - src/cpp/common/validate_service_config.cc + - src/cpp/common/version_cc.cc + - src/cpp/server/async_generic_service.cc + - src/cpp/server/channel_argument_option.cc + - src/cpp/server/create_default_thread_pool.cc + - src/cpp/server/dynamic_thread_pool.cc + - src/cpp/server/external_connection_acceptor_impl.cc + - src/cpp/server/health/default_health_check_service.cc + - src/cpp/server/health/health_check_service.cc + - src/cpp/server/health/health_check_service_server_builder_option.cc + - src/cpp/server/insecure_server_credentials.cc + - src/cpp/server/secure_server_credentials.cc + - src/cpp/server/server_builder.cc + - src/cpp/server/server_callback.cc + - src/cpp/server/server_cc.cc + - src/cpp/server/server_context.cc + - src/cpp/server/server_credentials.cc + - src/cpp/server/server_posix.cc + - src/cpp/thread_manager/thread_manager.cc + - src/cpp/util/byte_buffer_cc.cc + - src/cpp/util/status.cc + - src/cpp/util/string_ref.cc + - src/cpp/util/time_cc.cc - test/core/transport/binder/mock_objects.cc - test/core/transport/binder/wire_reader_test.cc deps: @@ -7935,22 +8269,100 @@ targets: build: test language: c++ headers: + - src/core/ext/transport/binder/client/channel_create.h + - src/core/ext/transport/binder/client/channel_create_impl.h + - src/core/ext/transport/binder/client/jni_utils.h + - src/core/ext/transport/binder/security_policy/internal_only_security_policy.h - src/core/ext/transport/binder/security_policy/security_policy.h + - src/core/ext/transport/binder/security_policy/untrusted_security_policy.h + - src/core/ext/transport/binder/server/binder_server.h + - src/core/ext/transport/binder/server/binder_server_credentials.h + - src/core/ext/transport/binder/transport/binder_stream.h + - src/core/ext/transport/binder/transport/binder_transport.h - src/core/ext/transport/binder/utils/transport_stream_receiver.h - src/core/ext/transport/binder/utils/transport_stream_receiver_impl.h - src/core/ext/transport/binder/wire_format/binder.h + - src/core/ext/transport/binder/wire_format/binder_android.h - src/core/ext/transport/binder/wire_format/binder_constants.h - src/core/ext/transport/binder/wire_format/transaction.h - src/core/ext/transport/binder/wire_format/wire_reader.h - src/core/ext/transport/binder/wire_format/wire_reader_impl.h - src/core/ext/transport/binder/wire_format/wire_writer.h + - src/cpp/client/create_channel_internal.h + - src/cpp/client/secure_credentials.h + - src/cpp/common/channel_filter.h + - src/cpp/common/secure_auth_context.h + - src/cpp/common/tls_credentials_options_util.h + - src/cpp/server/dynamic_thread_pool.h + - src/cpp/server/external_connection_acceptor_impl.h + - src/cpp/server/health/default_health_check_service.h + - src/cpp/server/secure_server_credentials.h + - src/cpp/server/thread_pool_interface.h + - src/cpp/thread_manager/thread_manager.h - test/core/transport/binder/mock_objects.h src: + - src/core/ext/transport/binder/client/channel_create.cc + - src/core/ext/transport/binder/client/channel_create_impl.cc + - src/core/ext/transport/binder/client/jni_utils.cc + - src/core/ext/transport/binder/security_policy/internal_only_security_policy.cc + - src/core/ext/transport/binder/security_policy/untrusted_security_policy.cc + - src/core/ext/transport/binder/server/binder_server.cc + - src/core/ext/transport/binder/server/binder_server_credentials.cc + - src/core/ext/transport/binder/transport/binder_transport.cc - src/core/ext/transport/binder/utils/transport_stream_receiver_impl.cc + - src/core/ext/transport/binder/wire_format/binder_android.cc - src/core/ext/transport/binder/wire_format/binder_constants.cc - src/core/ext/transport/binder/wire_format/transaction.cc - src/core/ext/transport/binder/wire_format/wire_reader_impl.cc - src/core/ext/transport/binder/wire_format/wire_writer.cc + - src/cpp/client/channel_cc.cc + - src/cpp/client/client_callback.cc + - src/cpp/client/client_context.cc + - src/cpp/client/client_interceptor.cc + - src/cpp/client/create_channel.cc + - src/cpp/client/create_channel_internal.cc + - src/cpp/client/create_channel_posix.cc + - src/cpp/client/credentials_cc.cc + - src/cpp/client/insecure_credentials.cc + - src/cpp/client/secure_credentials.cc + - src/cpp/codegen/codegen_init.cc + - src/cpp/common/alarm.cc + - src/cpp/common/auth_property_iterator.cc + - src/cpp/common/channel_arguments.cc + - src/cpp/common/channel_filter.cc + - src/cpp/common/completion_queue_cc.cc + - src/cpp/common/core_codegen.cc + - src/cpp/common/resource_quota_cc.cc + - src/cpp/common/rpc_method.cc + - src/cpp/common/secure_auth_context.cc + - src/cpp/common/secure_channel_arguments.cc + - src/cpp/common/secure_create_auth_context.cc + - src/cpp/common/tls_certificate_provider.cc + - src/cpp/common/tls_credentials_options.cc + - src/cpp/common/tls_credentials_options_util.cc + - src/cpp/common/validate_service_config.cc + - src/cpp/common/version_cc.cc + - src/cpp/server/async_generic_service.cc + - src/cpp/server/channel_argument_option.cc + - src/cpp/server/create_default_thread_pool.cc + - src/cpp/server/dynamic_thread_pool.cc + - src/cpp/server/external_connection_acceptor_impl.cc + - src/cpp/server/health/default_health_check_service.cc + - src/cpp/server/health/health_check_service.cc + - src/cpp/server/health/health_check_service_server_builder_option.cc + - src/cpp/server/insecure_server_credentials.cc + - src/cpp/server/secure_server_credentials.cc + - src/cpp/server/server_builder.cc + - src/cpp/server/server_callback.cc + - src/cpp/server/server_cc.cc + - src/cpp/server/server_context.cc + - src/cpp/server/server_credentials.cc + - src/cpp/server/server_posix.cc + - src/cpp/thread_manager/thread_manager.cc + - src/cpp/util/byte_buffer_cc.cc + - src/cpp/util/status.cc + - src/cpp/util/string_ref.cc + - src/cpp/util/time_cc.cc - test/core/transport/binder/mock_objects.cc - test/core/transport/binder/wire_writer_test.cc deps: diff --git a/examples/android/binder/java/io/grpc/binder/cpp/exampleclient/BUILD b/examples/android/binder/java/io/grpc/binder/cpp/exampleclient/BUILD index d6f58b88025..c4dfa528f8e 100644 --- a/examples/android/binder/java/io/grpc/binder/cpp/exampleclient/BUILD +++ b/examples/android/binder/java/io/grpc/binder/cpp/exampleclient/BUILD @@ -25,9 +25,7 @@ cc_library( "-Wl,--no-undefined", ], deps = [ - # Temporarily directly depend on these targets before we expose a public API - "//src/core/ext/transport/binder/client:grpc_transport_binder_client", - "//src/core/ext/transport/binder/security_policy:untrusted_security_policy", + "//:grpc++_binder", "//examples/protos:helloworld_cc_grpc", ], alwayslink = True, diff --git a/examples/android/binder/java/io/grpc/binder/cpp/exampleserver/BUILD b/examples/android/binder/java/io/grpc/binder/cpp/exampleserver/BUILD index 04fd9021805..ec2cb1fe454 100644 --- a/examples/android/binder/java/io/grpc/binder/cpp/exampleserver/BUILD +++ b/examples/android/binder/java/io/grpc/binder/cpp/exampleserver/BUILD @@ -25,10 +25,8 @@ cc_library( "-Wl,--no-undefined", ], deps = [ - # Temporarily directly depend on these targets before we expose public APIs - "//src/core/ext/transport/binder/server:grpc_transport_binder_server", - "//src/core/ext/transport/binder/security_policy:untrusted_security_policy", "//:grpc++", + "//:grpc++_binder", "//examples/protos:helloworld_cc_grpc", ], alwayslink = True, diff --git a/src/core/ext/transport/binder/client/BUILD b/src/core/ext/transport/binder/client/BUILD deleted file mode 100644 index bf961d72f85..00000000000 --- a/src/core/ext/transport/binder/client/BUILD +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 2021 gRPC authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -load("//bazel:grpc_build_system.bzl", "grpc_cc_library") - -licenses(["notice"]) - -package( - default_visibility = ["//visibility:public"], - features = [ - "layering_check", - ], -) - -# TODO(mingcl): See if it is possible to add flags that warns about undefined symbol at link time -grpc_cc_library( - name = "grpc_transport_binder_client", - srcs = [ - "channel_create.cc", - "channel_create.h", - "jni_utils.cc", - ], - hdrs = [ - "channel_create.h", - "jni_utils.h", - ], - external_deps = [ - "absl/strings", - "absl/time", - ], - deps = [ - ":grpc_transport_binder_client_impl", - "//:gpr", - "//:gpr_base", - "//:gpr_platform", - "//:grpc", - "//:grpc++_base", - "//:grpc_base", - "//:grpc_codegen", - "//src/core/ext/transport/binder/security_policy:security_policy_interface", - "//src/core/ext/transport/binder/transport:binder_transport", - "//src/core/ext/transport/binder/utils:transport_stream_receiver", - "//src/core/ext/transport/binder/wire_format:binder_android", - "//src/core/ext/transport/binder/wire_format:wire_reader", - ], -) - -grpc_cc_library( - name = "grpc_transport_binder_client_impl", - srcs = ["channel_create_impl.cc"], - hdrs = ["channel_create_impl.h"], - external_deps = [], - deps = [ - "//:gpr", - "//:gpr_base", - "//:gpr_platform", - "//:grpc", - "//:grpc++_base", - "//:grpc_base", - "//:grpc_codegen", - "//src/core/ext/transport/binder/security_policy:security_policy_interface", - "//src/core/ext/transport/binder/transport:binder_transport", - "//src/core/ext/transport/binder/wire_format:binder", - ], -) diff --git a/src/core/ext/transport/binder/security_policy/BUILD b/src/core/ext/transport/binder/security_policy/BUILD deleted file mode 100644 index ed40fa9bb01..00000000000 --- a/src/core/ext/transport/binder/security_policy/BUILD +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 2021 gRPC authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -load("//bazel:grpc_build_system.bzl", "grpc_cc_library") - -licenses(["notice"]) - -package( - default_visibility = ["//visibility:public"], - features = [ - "layering_check", - ], -) - -grpc_cc_library( - name = "security_policy_interface", - hdrs = [ - "security_policy.h", - ], - deps = [ - "//:gpr_platform", - ], -) - -grpc_cc_library( - name = "internal_only_security_policy", - srcs = [ - "internal_only_security_policy.cc", - ], - hdrs = [ - "internal_only_security_policy.h", - ], - deps = [ - ":security_policy_interface", - "//:gpr_platform", - ], -) - -grpc_cc_library( - name = "untrusted_security_policy", - srcs = [ - "untrusted_security_policy.cc", - ], - hdrs = [ - "untrusted_security_policy.h", - ], - deps = [ - ":security_policy_interface", - "//:gpr_platform", - ], -) diff --git a/src/core/ext/transport/binder/server/BUILD b/src/core/ext/transport/binder/server/BUILD deleted file mode 100644 index 3f078ae3cc8..00000000000 --- a/src/core/ext/transport/binder/server/BUILD +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 2021 gRPC authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -load("//bazel:grpc_build_system.bzl", "grpc_cc_library") - -licenses(["notice"]) - -package( - default_visibility = ["//visibility:public"], - features = [ - "layering_check", - ], -) - -grpc_cc_library( - name = "grpc_transport_binder_server", - srcs = [ - "binder_server.cc", - "binder_server_credentials.cc", - ], - hdrs = [ - "binder_server.h", - "binder_server_credentials.h", - ], - external_deps = [ - "absl/container:flat_hash_map", - "absl/memory", - "absl/status", - ], - language = "c++", - deps = [ - "//:gpr_platform", - "//:grpc++_internals", - "//:grpc_base", - "//src/core/ext/transport/binder/security_policy:security_policy_interface", - "//src/core/ext/transport/binder/transport:binder_transport", - "//src/core/ext/transport/binder/wire_format:binder", - "//src/core/ext/transport/binder/wire_format:binder_android", - ], -) diff --git a/src/core/ext/transport/binder/transport/BUILD b/src/core/ext/transport/binder/transport/BUILD deleted file mode 100644 index 88ac38e6183..00000000000 --- a/src/core/ext/transport/binder/transport/BUILD +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 2021 gRPC authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -load("//bazel:grpc_build_system.bzl", "grpc_cc_library") - -licenses(["notice"]) - -package( - default_visibility = ["//visibility:public"], - features = [ - "layering_check", - ], -) - -grpc_cc_library( - name = "binder_transport", - srcs = [ - "binder_transport.cc", - ], - hdrs = [ - "binder_stream.h", - "binder_transport.h", - ], - external_deps = [ - "absl/container:flat_hash_map", - "absl/memory", - "absl/strings", - ], - deps = [ - "//:gpr_base", - "//:gpr_platform", - "//:grpc_base", - "//:slice_refcount", - "//src/core/ext/transport/binder/security_policy:security_policy_interface", - "//src/core/ext/transport/binder/utils:transport_stream_receiver", - "//src/core/ext/transport/binder/wire_format:binder", - "//src/core/ext/transport/binder/wire_format:wire_reader", - "//src/core/ext/transport/binder/wire_format:wire_writer", - ], -) diff --git a/src/core/ext/transport/binder/utils/BUILD b/src/core/ext/transport/binder/utils/BUILD deleted file mode 100644 index 50e86a9a033..00000000000 --- a/src/core/ext/transport/binder/utils/BUILD +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 2021 gRPC authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -load("//bazel:grpc_build_system.bzl", "grpc_cc_library") - -licenses(["notice"]) - -package( - default_visibility = ["//visibility:public"], - features = [ - "layering_check", - ], -) - -grpc_cc_library( - name = "transport_stream_receiver", - srcs = [ - "transport_stream_receiver_impl.cc", - ], - hdrs = [ - "transport_stream_receiver.h", - "transport_stream_receiver_impl.h", - ], - external_deps = [ - "absl/status:statusor", - "absl/strings", - "absl/synchronization", - ], - deps = [ - "//:gpr", - "//:gpr_base", - "//:gpr_platform", - "//src/core/ext/transport/binder/wire_format:transaction", - ], -) diff --git a/src/core/ext/transport/binder/wire_format/BUILD b/src/core/ext/transport/binder/wire_format/BUILD deleted file mode 100644 index 33e66f2569b..00000000000 --- a/src/core/ext/transport/binder/wire_format/BUILD +++ /dev/null @@ -1,123 +0,0 @@ -# Copyright 2021 gRPC authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -load("//bazel:grpc_build_system.bzl", "grpc_cc_library") - -licenses(["notice"]) - -package( - default_visibility = ["//visibility:public"], - features = [ - "layering_check", - ], -) - -grpc_cc_library( - name = "transaction", - srcs = [ - "transaction.cc", - ], - hdrs = [ - "transaction.h", - ], - external_deps = [ - "absl/base:core_headers", - "absl/strings", - ], - deps = [ - "//:gpr", - "//:gpr_platform", - ], -) - -grpc_cc_library( - name = "binder", - srcs = [ - "binder_constants.cc", - ], - hdrs = [ - "binder.h", - "binder_constants.h", - ], - external_deps = [ - "absl/base:core_headers", - "absl/status", - "absl/strings", - ], - deps = [ - "//:gpr", - "//:gpr_platform", - "//:orphanable", - ], -) - -grpc_cc_library( - name = "binder_android", - srcs = [ - "binder_android.cc", - ], - hdrs = [ - "binder_android.h", - ], - external_deps = [ - "absl/synchronization", - "absl/memory", - ], - deps = [ - ":binder", - ":wire_reader", - "//:gpr_platform", - ], -) - -grpc_cc_library( - name = "wire_writer", - srcs = ["wire_writer.cc"], - hdrs = ["wire_writer.h"], - external_deps = [ - "absl/container:flat_hash_map", - "absl/strings", - ], - deps = [ - ":binder", - ":transaction", - "//:gpr", - "//:gpr_base", - "//:gpr_platform", - ], -) - -grpc_cc_library( - name = "wire_reader", - srcs = ["wire_reader_impl.cc"], - hdrs = [ - "wire_reader.h", - "wire_reader_impl.h", - ], - external_deps = [ - "absl/container:flat_hash_map", - "absl/synchronization", - "absl/memory", - "absl/status:statusor", - ], - deps = [ - ":binder", - ":wire_writer", - "//:gpr", - "//:gpr_platform", - "//:orphanable", - "//src/core/ext/transport/binder/security_policy:security_policy_interface", - "//src/core/ext/transport/binder/utils:transport_stream_receiver", - ], -) diff --git a/test/core/transport/binder/BUILD b/test/core/transport/binder/BUILD index 43f85e010be..4826d9859ea 100644 --- a/test/core/transport/binder/BUILD +++ b/test/core/transport/binder/BUILD @@ -32,9 +32,7 @@ grpc_cc_library( ], language = "C++", deps = [ - "//src/core/ext/transport/binder/wire_format:binder", - "//src/core/ext/transport/binder/wire_format:wire_reader", - "//src/core/ext/transport/binder/wire_format:wire_writer", + "//:grpc++_binder", ], ) @@ -49,7 +47,7 @@ grpc_cc_test( uses_polling = False, deps = [ ":mock_objects", - "//src/core/ext/transport/binder/wire_format:wire_writer", + "//:grpc++_binder", "//test/core/util:grpc_test_util", ], ) @@ -65,8 +63,7 @@ grpc_cc_test( uses_polling = False, deps = [ ":mock_objects", - "//src/core/ext/transport/binder/security_policy:untrusted_security_policy", - "//src/core/ext/transport/binder/wire_format:wire_reader", + "//:grpc++_binder", "//test/core/util:grpc_test_util", ], ) @@ -81,7 +78,7 @@ grpc_cc_test( language = "C++", uses_polling = False, deps = [ - "//src/core/ext/transport/binder/utils:transport_stream_receiver", + "//:grpc++_binder", "//test/core/util:grpc_test_util", ], ) @@ -99,8 +96,7 @@ grpc_cc_test( deps = [ ":mock_objects", "//:grpc", - "//src/core/ext/transport/binder/security_policy:untrusted_security_policy", - "//src/core/ext/transport/binder/transport:binder_transport", + "//:grpc++_binder", "//test/core/util:grpc_test_util", ], ) diff --git a/test/core/transport/binder/end2end/BUILD b/test/core/transport/binder/end2end/BUILD index 53670789546..025b6ef184e 100644 --- a/test/core/transport/binder/end2end/BUILD +++ b/test/core/transport/binder/end2end/BUILD @@ -36,8 +36,7 @@ grpc_cc_library( ], deps = [ "//:gpr_base", - "//src/core/ext/transport/binder/wire_format:binder", - "//src/core/ext/transport/binder/wire_format:wire_reader", + "//:grpc++_binder", ], ) @@ -66,10 +65,8 @@ grpc_cc_library( deps = [ ":fake_binder", "//:grpc++_base", + "//:grpc++_binder", "//:grpc_base", - "//src/core/ext/transport/binder/security_policy:untrusted_security_policy", - "//src/core/ext/transport/binder/transport:binder_transport", - "//src/core/ext/transport/binder/wire_format:wire_reader", ], ) @@ -85,8 +82,7 @@ grpc_cc_test( deps = [ ":end2end_binder_channel", ":fake_binder", - "//src/core/ext/transport/binder/transport:binder_transport", - "//src/core/ext/transport/binder/wire_format:wire_reader", + "//:grpc++_binder", "//test/core/util:grpc_test_util", "//test/cpp/end2end:test_service_impl", ], @@ -100,9 +96,7 @@ grpc_cc_test( ], deps = [ "//:grpc++", - "//src/core/ext/transport/binder/client:grpc_transport_binder_client_impl", - "//src/core/ext/transport/binder/security_policy:untrusted_security_policy", - "//src/core/ext/transport/binder/server:grpc_transport_binder_server", + "//:grpc++_binder", "//test/core/transport/binder/end2end:fake_binder", "//test/core/util:grpc_test_util", "//test/cpp/end2end:test_service_impl",