| 166 | std::shared_ptr<IContext> PathfindingTestBase::_context; |
| 167 | |
| 168 | struct SimplePathfindingScenario |
| 169 | { |
| 170 | const char* name; |
| 171 | TileCoordsXYZ start; |
| 172 | uint32_t steps; |
| 173 | |
| 174 | SimplePathfindingScenario(const char* _name, const TileCoordsXYZ& _start, int _steps) |
| 175 | : name(_name) |
| 176 | , start(_start) |
| 177 | , steps(_steps) |
| 178 | { |
| 179 | } |
| 180 | |
| 181 | static std::string ToName(const testing::TestParamInfo<SimplePathfindingScenario>& param_info) |
| 182 | { |
| 183 | return param_info.param.name; |
| 184 | } |
| 185 | }; |
| 186 | |
| 187 | class SimplePathfindingTest : public PathfindingTestBase, public testing::WithParamInterface<SimplePathfindingScenario> |
| 188 | { |