#include <userver/ugrpc/tests/service_fixtures.hpp>
template<typename GrpcService>
class ugrpc::tests::ServiceFixture< GrpcService >
- See also
- ugrpc::tests::Service
Definition at line 29 of file service_fixtures.hpp.
◆ ExtendDynamicConfig()
Modifies the internal dynamic configs storage. It is used by the server and clients, and is accessible through GetConfigSource. Initially, the configs are filled with compile-time defaults.
◆ GetConfigSource()
◆ GetServer()
◆ GetService()
template<typename GrpcService >
- Returns
- the stored service.
Definition at line 136 of file service.hpp.
◆ GetStatistics()
template<typename GrpcService >
◆ GetStatisticsStorage()
- Returns
- the statistics storage used by the server and clients.
◆ MakeClient()
template<typename Client >
Client ugrpc::tests::ServiceBase::MakeClient |
( |
| ) |
|
|
inlineinherited |
- Returns
- a client for the specified gRPC service, connected to the server.
Definition at line 56 of file service.hpp.
◆ RegisterService()
Register a gRPC service implementation. The caller owns the service and should ensure that the services live at least until StopServer is called.
◆ StartServer()
Starts the server and connects a grpc channel to it. Should be called after the services are registered.
◆ StopServer()
void ugrpc::tests::ServiceBase::StopServer |
( |
| ) |
|
|
noexceptinherited |
Should be called before the registered services are destroyed. Should typically be called in the destructor of your gtest fixture.
The documentation for this class was generated from the following file: