userver
C++ Async Framework
Loading...
Searching...
No Matches
processor_mock.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/os_signals/processor_mock.hpp
4
/// @brief @copybrief os_signals::ProcessorMock
5
6
#
include
<
userver
/
engine
/
task
/
task_processor_fwd
.
hpp
>
7
#
include
<
userver
/
os_signals
/
processor
.
hpp
>
8
9
USERVER_NAMESPACE_BEGIN
10
11
namespace
os_signals
{
12
13
/// @brief Provides Processor for use in tests
14
class
ProcessorMock
final
{
15
public
:
16
explicit
ProcessorMock(engine::TaskProcessor& task_processor);
17
18
Processor& Get();
19
20
void
Notify(
int
signum);
21
22
private
:
23
Processor manager_;
24
};
25
26
}
// namespace os_signals
27
28
USERVER_NAMESPACE_END
userver
os_signals
processor_mock.hpp
Generated on Tue Nov 19 2024 11:28:37 for userver by
Doxygen
1.10.0