userver: userver/os_signals/processor_mock.hpp Source File
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
9USERVER_NAMESPACE_BEGIN
10
11namespace os_signals {
12
13/// @brief Provides Processor for use in tests
14class 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
28USERVER_NAMESPACE_END