userver: /data/code/userver/libraries/grpc-reflection/functional_tests/golden_path/grpc_reflection_service.cpp Source File
Loading...
Searching...
No Matches
grpc_reflection_service.cpp
1#include <userver/utest/using_namespace_userver.hpp> // IWYU pragma: keep
2
3#include <userver/clients/dns/component.hpp>
4#include <userver/clients/http/component.hpp>
5#include <userver/components/component.hpp>
6#include <userver/components/minimal_server_component_list.hpp>
7#include <userver/server/handlers/tests_control.hpp>
8#include <userver/storages/secdist/component.hpp>
9#include <userver/storages/secdist/provider_component.hpp>
10#include <userver/testsuite/testsuite_support.hpp>
11#include <userver/ugrpc/server/health/component.hpp>
12#include <userver/ugrpc/server/server_component.hpp>
13#include <userver/utils/daemon_run.hpp>
14
15#include <iostream>
16#include <string>
17#include <string_view>
18
19#include <fmt/format.h>
20
21#include <userver/grpc-reflection/reflection_service_component.hpp>
22
23int main(int argc, char* argv[]) {
24 const auto component_list = components::MinimalServerComponentList()
25 .Append<grpc_reflection::ReflectionServiceComponent>()
26 .Append<components::TestsuiteSupport>()
27 .Append<server::handlers::TestsControl>()
28 .Append<ugrpc::server::HealthComponent>()
29 .Append<components::HttpClient>()
30 .Append<ugrpc::server::ServerComponent>()
31 .Append<clients::dns::Component>();
32 return utils::DaemonMain(argc, argv, component_list);
33}