userver: userver/testsuite/grpc_control.hpp Source File
Loading...
Searching...
No Matches
grpc_control.hpp
1#pragma once
2
3#include <chrono>
4
5#include <userver/engine/deadline.hpp>
6
7USERVER_NAMESPACE_BEGIN
8
9namespace testsuite {
10
11class GrpcControl {
12public:
13 GrpcControl() = default;
14
15 GrpcControl(std::chrono::milliseconds timeout, bool is_tls_enabled);
16
17 std::chrono::milliseconds MakeTimeout(std::chrono::milliseconds duration) const;
18
19 bool IsTlsEnabled() const;
20
21private:
22 std::chrono::milliseconds timeout_{};
23 bool is_tls_enabled_{false};
24};
25
26} // namespace testsuite
27
28USERVER_NAMESPACE_END