Files
bitcoin/src
Vasil Dimov 0802398e74 fuzz: make it possible to mock (fuzz) CThreadInterrupt
* Make the methods of `CThreadInterrupt` virtual and store a pointer to
  it in `CConnman`, thus making it possible to override with a mocked
  instance.
* Initialize `CConnman::m_interrupt_net` from the constructor, making it
  possible for callers to supply mocked version.
* Introduce `FuzzedThreadInterrupt` and `ConsumeThreadInterrupt()` and
  use them in `src/test/fuzz/connman.cpp` and `src/test/fuzz/i2p.cpp`.

This improves the CPU utilization of the `connman` fuzz test.

As a nice side effect, the `std::shared_ptr` used for
`CConnman::m_interrupt_net` resolves the possible lifetime issues with
it (see the removed comment for that variable).
2025-06-09 14:17:33 +02:00
..
2025-06-03 08:09:28 +01:00
2025-05-08 16:49:58 +01:00
2025-05-20 11:14:17 +01:00
2025-05-19 16:40:33 +01:00
2025-06-03 08:09:21 +01:00
2025-05-14 14:00:43 -07:00
2025-05-19 16:40:33 +01:00
2025-05-19 16:40:33 +01:00
2025-03-13 11:13:13 +00:00
2025-05-20 09:30:41 +01:00
2024-11-26 20:47:08 -05:00
2025-05-19 16:40:33 +01:00
2025-05-06 12:21:32 -07:00
2025-05-19 16:40:33 +01:00
2024-11-04 14:19:40 -05:00
2024-05-20 16:48:19 +00:00
2024-07-08 11:12:01 +02:00
2025-06-03 08:09:21 +01:00
2025-01-22 11:29:05 +01:00
2025-05-08 16:49:58 +01:00
2025-06-03 08:09:28 +01:00
2024-12-31 00:04:20 -03:00
2024-12-31 00:04:20 -03:00
2025-05-19 16:40:33 +01:00
2025-04-09 15:59:59 +01:00
2025-04-09 15:59:59 +01:00
2025-06-03 08:09:21 +01:00