#ifndef MOCK_SCRIPTING_ENVIRONMENT_HPP_ #define MOCK_SCRIPTING_ENVIRONMENT_HPP_ #include "extractor/extraction_segment.hpp" #include "extractor/extraction_turn.hpp" #include "extractor/maneuver_override.hpp" #include "extractor/profile_properties.hpp" #include "extractor/scripting_environment.hpp" #include #include #include namespace osrm { namespace test { // a mock implementation of the scripting environment doing exactly nothing class MockScriptingEnvironment : public extractor::ScriptingEnvironment { const extractor::ProfileProperties &GetProfileProperties() override final { static extractor::ProfileProperties properties; return properties; } std::vector GetNameSuffixList() override final { return {}; } std::vector> GetExcludableClasses() override final { return {}; }; std::vector GetClassNames() override { return {}; }; std::vector GetRelations() override { return {}; }; std::vector GetRestrictions() override final { return {}; } void ProcessTurn(extractor::ExtractionTurn &) override final {} void ProcessSegment(extractor::ExtractionSegment &) override final {} void ProcessElements(const osmium::memory::Buffer &, const extractor::RestrictionParser &, const extractor::ManeuverOverrideRelationParser &, const extractor::ExtractionRelationContainer &, std::vector> &, std::vector> &, std::vector &, std::vector &) override final { } bool HasLocationDependentData() const override { return false; }; }; } // namespace test } // namespace osrm #endif // MOCK_SCRIPTING_ENVIRONMENT_HPP_