userver: userver/utils/mock_now.hpp File Reference
Loading...
Searching...
No Matches
mock_now.hpp File Reference

Detailed Description

Mocking and getting mocked time values.

Definition in file mock_now.hpp.

Go to the source code of this file.

#include <chrono>
+ Include dependency graph for mock_now.hpp:

Namespaces

namespace  utils
 Utilities.
 
namespace  utils::datetime
 Date and time utilities.
 

Functions

void utils::datetime::MockNowSet (std::chrono::system_clock::time_point new_mocked_now)
 
void utils::datetime::MockSleep (std::chrono::milliseconds duration)
 
void utils::datetime::MockNowUnset () noexcept
 
bool utils::datetime::IsMockNow () noexcept