8#include <userver/dynamic_config/test_helpers.hpp>
9#include <userver/engine/io/sockaddr.hpp>
10#include <userver/utils/statistics/storage.hpp>
12#include <userver/testsuite/grpc_control.hpp>
13#include <userver/ugrpc/client/client_factory.hpp>
14#include <userver/ugrpc/client/impl/completion_queue_pool.hpp>
15#include <userver/ugrpc/impl/statistics_storage.hpp>
17USERVER_NAMESPACE_BEGIN
19namespace ugrpc::
tests {
26class StandaloneClientFactory
final {
31 client::ClientFactorySettings&& client_factory_settings = {});
37 template <
typename Client>
39 return client_factory_.MakeClient<Client>(
"test", endpoint);
46 utils::statistics::Storage statistics_storage_;
47 ugrpc::impl::StatisticsStorage client_statistics_storage_{
48 statistics_storage_, ugrpc::impl::StatisticsDomain::kClient};
49 dynamic_config::StorageMock config_storage_{
50 dynamic_config::MakeDefaultStorage({})};
51 client::impl::CompletionQueuePool completion_queues_{1};
52 testsuite::GrpcControl testsuite_control_{{},
false};
53 client::ClientFactory client_factory_;