16 const bool result =
false;
18 DumbCheck() =
default;
20 explicit DumbCheck(
const bool _result) : result(_result)
24 bool operator()()
const 29 void swap(DumbCheck& x) noexcept
42 std::vector<DumbCheck> checks_1;
43 std::vector<DumbCheck> checks_2;
44 const int size = fuzzed_data_provider.ConsumeIntegralInRange<
int>(0, 1024);
45 for (
int i = 0; i < size; ++i) {
46 const bool result = fuzzed_data_provider.ConsumeBool();
47 checks_1.emplace_back(result);
48 checks_2.emplace_back(result);
50 if (fuzzed_data_provider.ConsumeBool()) {
51 check_queue_1.
Add(checks_1);
53 if (fuzzed_data_provider.ConsumeBool()) {
54 (void)check_queue_1.Wait();
58 if (fuzzed_data_provider.ConsumeBool()) {
59 check_queue_control.
Add(checks_2);
61 if (fuzzed_data_provider.ConsumeBool()) {
62 (void)check_queue_control.Wait();
void Add(std::vector< T > &vChecks)
RAII-style controller object for a CCheckQueue that guarantees the passed queue is finished before co...
void Add(std::vector< T > &vChecks) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
Add a batch of checks to the queue.
Queue for verifications that have to be performed.
T ConsumeIntegralInRange(T min, T max)