| 117 | TEST_CASE("timer_set_pending_callback should execute callback in timer task") { |
| 118 | std::atomic<bool> called{false}; |
| 119 | struct Context { |
| 120 | std::atomic<bool>* called; |
| 121 | uint32_t expected_arg; |
| 122 | uint32_t received_arg; |
| 123 | } context = { &called, 0x12345678, 0 }; |
| 124 | |
| 125 | auto pending_cb = [](void* ctx, uint32_t arg) { |
| 126 | auto* c = static_cast<Context*>(ctx); |
no outgoing calls