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 {
12 public:
13 GrpcControl() = default;
14
15 GrpcControl(std::chrono::milliseconds timeout, bool is_tls_enabled);
16
17 std::chrono::milliseconds MakeTimeout(
18 std::chrono::milliseconds duration) const;
19
20 bool IsTlsEnabled() const;
21
22 private:
23 std::chrono::milliseconds timeout_{};
24 bool is_tls_enabled_{false};
25};
26
27} // namespace testsuite
28
29USERVER_NAMESPACE_END