James Kuszmaul | d67f6d2 | 2023-02-05 17:37:25 -0800 | [diff] [blame] | 1 | #ifndef Y2023_CONSTANTS_SIMULATED_CONFIG_SENDER_H_ |
| 2 | #define Y2023_CONSTANTS_SIMULATED_CONFIG_SENDER_H_ |
| 3 | |
| 4 | #include "aos/events/simulated_event_loop.h" |
| 5 | #include "aos/testing/path.h" |
| 6 | |
| 7 | namespace y2023 { |
James Kuszmaul | cf451fb | 2023-03-10 20:42:36 -0800 | [diff] [blame] | 8 | // Returns true, to allow this to be easily called in the initializer list of a |
| 9 | // constructor. |
| 10 | bool SendSimulationConstants( |
James Kuszmaul | 04a343c | 2023-02-20 16:38:22 -0800 | [diff] [blame] | 11 | aos::SimulatedEventLoopFactory *factory, int team, |
| 12 | std::string constants_path = |
| 13 | aos::testing::ArtifactPath("y2023/constants/test_constants.json")); |
James Kuszmaul | d67f6d2 | 2023-02-05 17:37:25 -0800 | [diff] [blame] | 14 | } // namespace y2023 |
| 15 | |
| 16 | #endif // Y2023_CONSTANTS_SIMULATED_CONFIG_SENDER_H_ |