| 53 | } |
| 54 | |
| 55 | void openhd::testing::append_dummy_if_empty(std::vector<Setting>& ret) { |
| 56 | if (ret.empty()) { |
| 57 | auto tmp = openhd::IntSetting{0}; |
| 58 | const std::string id = "DUMMY"; |
| 59 | ret.push_back(Setting{id, tmp}); |
| 60 | } |
| 61 | } |
| 62 | void openhd::append_int_param(std::vector<Setting>& ret, const std::string& ID, |
| 63 | int value, const std::function<bool(int)>& cb) { |
| 64 | auto cb2 = [cb](std::string param_id, |